Second Brain, a local-first multi-agent system
- Python
- Postgres
- Docker
- Ollama
- LiteLLM
- Telegram
A personal system of cooperating agents (task management, research, drafting, monitoring) that runs on local models and asks for approval before any action with outside effects.
Key ideas:
- Approval gates. Agents draft; a human approves anything with outside effects (messages, posts, code merges). Hard rules are enforced in code, not just in prompts.
- Local-first models. Everyday work runs on local open models through a gateway, with paid models only as an approved fallback, keeping running costs near zero.
- Shared memory and events. Agents cooperate through a typed event bus and a searchable memory store.
- Measured quality. Evaluation suites gate prompt and playbook changes, and a learning loop proposes improvements for human review.
- Operations. Health monitoring, a kill switch, backups and restore drills are built in.
This is a personal project, built and run on my own hardware with open models. It is shared here to show the approach: approval gates, local-first model routing, evaluation and a self-improvement loop.