coder/agentapi ? reverse-engineered prompt
Reverse engineered prompt
Build me a small Go service that lets me control coding agents through an HTTP API, with a simple web chat page too.
I want to be able to start the server with a CLI command, point it at an agent like Claude Code, Aider, Goose, Gemini, Codex, or Cursor CLI, and then send messages to that agent over REST. It should keep the conversation history, show whether the agent is idle or running, and stream live updates so a UI can watch messages as they happen. Please also add a basic docs page and an OpenAPI spec so it is easy to test from curl or another app.
If it makes sense, include a lightweight attach command for connecting to a running session, and make the server usable locally with sensible defaults for host and origin settings. Look up current docs online if you need to, but keep the result simple and practical.
Are you gonna build this?
make sure you review the code using coderabbit