Files
Claude e9fb8ffc51 Add agent mode to the web GUI and a read-only explore sub-agent
- Web GUI: a Chat / Agent mode selector. Agent mode runs the coding
  agent on `cod serve --root`, shows tool calls as cards, and asks for
  approval in the browser; sessions live in .cod/sessions/ and resume
  after a restart. Closing the stream stops the turn.
- The API now rejects requests whose Host isn't loopback (DNS rebinding)
  and POSTs without the per-process token embedded in the page.
- `explore` tool: a sub-agent on an in-memory session with only
  read_file, glob and grep, returning a report; its usage counts toward
  the turn.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_015NGPpYxuPWkyJUoefut3Wo
2026-10-25 17:13:49 +00:00

358 B
Executable File

Agent notes

See CLAUDE.md for how to work on this repository; the same rules apply to any coding agent.

The agent itself lives in src/agent/. engine.py runs the loop and yields events; terminal.py and web.py are the two front ends that consume them. A new front end should consume Agent.send() events too, rather than calling the API itself.