coder/agentapi
HTTP API for Claude Code, Goose, Aider, Gemini, Amp, and Codex
What's novel
HTTP API for Claude Code, Goose, Aider, Gemini, Amp, and Codex
Code Analysis
12 files read · 4 roundsProvides an HTTP API and web chat interface to control CLI coding agents (Claude, Goose, Aider, Codex, etc.) by spawning them in a pseudo-terminal, polling the screen at 40fps, using screen diffing to detect responses, and parsing TUI output to extract clean conversation messages.
Strengths
Genuinely novel PTY-based approach to agent control with sophisticated message parsing that handles 11 different agent TUI layouts, excellent test coverage with deterministic mock-clock testing, and clean separation of concerns across termexec, screentracker, msgfmt, and httpapi packages.
Weaknesses
Relies on a fragile HACK that accesses xpty internal implementation, uses heuristic-based fuzzy matching with arbitrary constants for message parsing that may break when agent UIs change, and lacks integration tests with real agents.
Score Breakdown
Signal breakdown
Innovation
Craft
Traction
Scope
Evidence
Commits
271
Contributors
9
Files
302
Active weeks
40
Repository
Language
Go
Stars
1275
Forks
108
License
MIT