• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

decentraland / agent-server / 24577417771

17 Apr 2026 05:10PM UTC coverage: 39.812% (-2.3%) from 42.1%
24577417771

Pull #90

github

nachomazzara
feat: add CLI backend (claude -p) as alternative to pi-agent

Add a second agent backend that spawns Claude CLI as a subprocess,
selectable via AGENT_BACKEND=cli (default remains pi-agent).

Architecture:
  agent.ts          — router + auth infra (shared)
  agent/shared.ts   — rate limits, session labels, error helpers
  agent/types.ts    — AgentBackend interface, BackendRunOptions, RunResult
  agent/cli/        — CliBackend (claude -p subprocess)
  agent/pi/         — PiAgentBackend (in-process pi-coding-agent)

Both backends implement AgentBackend.run() with symmetric fallback
handling (429 rate limits + 401/403 auth errors).

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Pull Request #90: feat: spawn process

334 of 879 branches covered (38.0%)

Branch coverage included in aggregate %.

121 of 400 new or added lines in 8 files covered. (30.25%)

3 existing lines in 1 file now uncovered.

596 of 1457 relevant lines covered (40.91%)

3.99 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/src/agent/cli/process.ts


Build SHA Not Found

The commit SHA "0e217058f20324cb42e0982a9593cb55a42c13fb" was not found in your repository, so the file cannot be loaded. This may be because you posted from a local development environment, or your CI created an ephemeral commit.

STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc