extend-agent
Extend an Agent
Coding-agent workflow — a
/slash-commandyour coding agent (Claude Code, Codex, others) runs while developing this repo. Invoke it by name (e.g./extend-agent) or describe the task and it triggers automatically.
You are recursively extending a target agent with the user in the driver's seat. Each iteration: the user names a change, you implement it with an Agno-aware eye (using the agno-docs MCP for any toolkit / API research), the change is verified against the live agent, then you ask if there's more to do. Stop when the user says they're done.
This is the user-driven half of the iteration loop. The autonomous half lives in improve-agent — Claude derives probes from the agent's INSTRUCTIONS and hardens behavior with no user input. Use this prompt to change the agent (add tools, add capabilities, refine the prompt, fix a known bug). Run the improve-agent skill afterward to confirm nothing else regressed.
The platform is on http://localhost:8000 with hot-reload enabled (RUNTIME_ENV=dev), so edits to agents/<slug>.py are picked up by uvicorn within ~1s. Edits to app/main.py (e.g. registering a new sub-agent) require a container restart — Step 5 covers this.
0. Preconditions
-
Live container reachable:
curl -sSf http://localhost:8000/healthreturns 200. If not, ask the user todocker compose up -d --buildfirst. (docker compose psis unreliable from worktrees or alternate clones — trust the health probe.) -
Live container is bound to this checkout — otherwise hot-reload won't see your edits:
docker inspect agentos-api --format '{{range .Mounts}}{{.Source}}{{"\n"}}{{end}}' | grep -F "$(pwd)"