Skip to content

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

Merged
erunion merged 4 commits into
mainfrom
har-to-ai-prompt-generator
Jul 27, 2026
Merged

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

Conversation

@erunion

@erunionerunion 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.

erunionand 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>
@erunionerunion 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

@darrenyongdarrenyong left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

woah this is cool!

@erunion
erunion merged commit 9f7b1ea into mainJul 27, 2026
9 of 14 checks passed
@erunion
erunion deleted the har-to-ai-prompt-generator branch July 27, 2026 22:35
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancementNew feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

@erunion@anandkumarpatel@darrenyong