Personal
Agency Control
A small framework where several AI agents work together, each with its own model
Situation
Tools with several AI agents are usually large packages you cannot look into. I wanted to understand what happens inside them, and to have a system where I can read and change every line.
Approach
A lead agent breaks a task down and hands parts of it to subagents. Each agent can use a different model, Claude, OpenAI or a local model on the Mac, and Claude Code and Codex can be plugged in as workers too. A subagent only sees its own assignment, and the lead only gets the result. What an agent may do is decided by the code, not the prompt, and I confirm shell commands one by one. Everything is controlled from a control room in the terminal.
Outcome
The core runs, with a control room, a guided tour and a demo that needs no access keys. Next up are testing against the providers' real interfaces and streaming.
Stack
- Python, core without extra packages
- Claude, OpenAI and local models
- Claude Code and Codex as workers
- Terminal interface built with Textual
- Multi-agent
- AI agents
- Learning project