Cairn searches unknown state spaces from a defined origin to a goal using a shared fact-intent graph. Penetration testing was its first validated domain.
Overview
Cairn is a general problem-solving engine for tasks with a known start, a defined success condition, and an unknown path. Penetration testing, CTF work, and similar searches share that shape; security testing is the first domain where Cairn was exercised at scale.
The design uses a blackboard with Facts, Intents, and optional human Hints. Agent workers run an OODA loop, read the graph, decide next intents, and write new Facts without fixed roles. Coordination is stigmergic through the board only.
Bootstrap, Reason, and Explore task types run on the same worker. Cairn Server keeps graph consistency; Cairn Dispatcher schedules work and manages worker containers. Backends include Claude Code, Codex, and Pi, with local mode without Docker when configured.
Docker Compose starts cairn-server on port 8000 and a dispatcher with persisted data under ./datas/cairn/. Python 3.12 or newer is required on macOS or Linux. Use only on systems you are authorized to test.
Key features
- Fact-intent-hint blackboard graph
- Role-free OODA agent workers
- Bootstrap Reason Explore tasks
- Claude Codex Pi worker backends
- Docker Compose server and dispatcher
- Local execution without containers
- Stigmergic multi-agent coordination
- Python 3.12 dispatcher configuration
Use cases
- Authorized penetration test automation
- CTF and goal-directed search problems
- Research with explicit success criteria