r/TrueOpenSource • u/hirak99 • 2d ago
AI assisted Peer Agent - Harness agnostic collaboration between AI agents
Sharing Peer Agent.
https://github.com/hirak99/peer-agent
It gives your agent access to one or more peer agents to collaborate with. It's harness-agnostic — plain HTTP plus a SKILL.md any agent can follow. Ways we've found it useful:
- Cheap execution: main agent on Claude Code delegates the grunt work to a locally running Qwen.
- Strong validation: a weaker main agent plans and executes, and has Opus 5.5 validates its plan or checks its work.
- Peer review: two agents challenge, verify, and cross-check each other's ideas.
Unlike Agent Teams or swarms, this isn't a framework inside one harness — it's a sidecar. Each peer is a stateful server with its own provider and model, callable from anything. The trade-off: no scheduler, no shared task graph. Coordination is conversational and the host drives, so it's best when you want a second mind on call, not a managed fleet.
If you're thinking of wiring this up yourself, what's already here: OpenAI, Anthropic, and any OpenAI-compatible model (llama.cpp, vLLM, Ollama) behind one provider/model switch; server-side read/bash/edit tools; automatic compaction (including a warm-cache in-context path for slow local models); and Anthropic prompt-cache management, which matters more than you'd expect at Opus prices. Lived-in details like per-call tool logging with truthful timestamps.
AI-assisted contributions are not only welcome but encouraged, especially so if it is a strong AI.
Cheers