Skip to content

feat: add an ai target that converts a HAR into a copy-pastable AI prompt#343

Open
erunion wants to merge 3 commits into
mainfrom
har-to-ai-prompt-generator
Open

feat: add an ai target that converts a HAR into a copy-pastable AI prompt#343
erunion wants to merge 3 commits into
mainfrom
har-to-ai-prompt-generator

Conversation

@erunion

@erunion erunion commented Jul 17, 2026

Copy link
Copy Markdown
Member

🧰 Changes

Adds a new ai target and prompt client for generating copy-and-pastable prompts for any AI model (ChatGPT, Claude, etc.) that asks the model to write code that makes the described HTTP request.

🧬 QA & Testing

This is what it looks like:

Write code that makes the HTTP request described below. Use my preferred programming language and HTTP client library — if I haven't told you what those are, ask me before writing any code.

Method: POST
URL: https://httpbin.org/anything?foo=bar

Headers:
  content-type: application/json

Body (application/json):
{"foo":"bar"}

The request the code makes must match the method, URL, headers, and body exactly as described above.

And when the client target is supplied a markdownURL:

Write code that makes the HTTP request described below. Use my preferred programming language and HTTP client library — if I haven't told you what those are, ask me before writing any code.

Method: GET
URL: https://httpbin.org/anything

The request the code makes must match the method, URL, headers, and body exactly as described above.

Check https://docs.example.com/reference/anything.md for more info.

erunion and others added 2 commits July 17, 2026 12:03
…prompt

Adds a new `ai` target with a single `prompt` client whose output is a
plain-text prompt describing the request (method, URL, headers, body)
that can be pasted into any AI model to generate code for making it.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
When supplied, appends "Check <URL> for more info." to the end of the
generated prompt.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@erunion erunion added the enhancement New feature or request label Jul 17, 2026
…wnURL`

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@erunion
erunion marked this pull request as ready for review July 17, 2026 20:53
@erunion
erunion requested review from darrenyong and gkoberger July 17, 2026 20:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants