Cairn — General State-Space Search Engine
A general-purpose problem-solving engine for well-defined origins and goals, proven on autonomous penetration testing.
- Source repo
- oritera/Cairn
- Stars
- ★ 6.4k
- Last updated
- 2mo ago v0.2.1
- FARS reviewed
- Nov 07, 2026
- License
- AGPL-3.0
- Primary language
- Python
- FA score
- 51/100 · Major gaps
At a glance
- How it runs
- Works with
- Portable with changesCodex · Claude Code
- Cost
- Free software; you pay for model usage
- Setup effort
- Medium · a few setup steps
- You'll need
- Typical use
- Security teams automating authorized penetration tests, from reconnaissance to exploitation, against specified targets.
- Not a fit if
- Teams wanting a battle-tested, well-documented tool
- Users on shared hosts who can't accept unsandboxed agent permissions
- Maintenance
- Commits in the last 6 monthslast commit 2026-09-07latest release v0.2.1 (2026-05-10)+62.4 ★/day over 7 days
- Source review
- 51/100 · Major gaps
What does this agent do, and when should you use it?
Cairn is a general-purpose problem-solving engine built on a Blackboard Architecture with an explicit fact-intent graph. It defines no roles or workflows; given an origin and a goal, it searches for a path through an unknown state space. Penetration testing is the first validated domain, but it also applies to CTF, vulnerability research, and other similarly structured problems. The system comprises a Cairn Server that maintains graph consistency, a Dispatcher that reads the graph and schedules tasks, and per-project Worker Containers running multiple Agent Workers that execute an OODA loop, coordinating only via the shared blackboard (stigmergy). Supported worker backends include Claude Code, Codex, and Pi. Deployment offers Docker Compose, manual setup, and a local mode without Docker. In a Tencent Cloud hackathon, it solved 54/54 problems, the only team to achieve an AK, ranking 3rd. Licensed under AGPL-3.0, commercial use requires a separate license.
Cairn executes three task types: Bootstrap (attempts direct problem-solving at project start), Reason (reads the full graph, evaluates whether the goal is met, and proposes next intents), and Explore (claims an Intent, runs the exploration, and reports a Fact). The Dispatcher schedules tasks and manages worker containers, while Agent Workers receive prompts via the API and return structured output. The system runs via commands: cairn serve to start the server, cairn dispatch --config dispatch.yaml to start the dispatcher. It supports Docker Compose for containerized deployment, and local mode where workers run directly on the host using pre-installed CLIs (claude, codex, pi). Inputs are the origin (e.g., target IP) and goal (e.g., shell or flag); outputs are accumulated facts and completion states. Hints can be injected anytime by humans to guide exploration.
- Security teams automating authorized penetration tests, from reconnaissance to exploitation, against specified targets.
- CTF participants using Cairn to automatically discover exploitation chains and capture flags.
- Vulnerability researchers performing black-box testing to explore unknown attack surfaces in a structured way.
- Researchers applying the engine to other goal-directed problems such as mathematical proof search or decision-making.
- Red team operators evaluating autonomous agent efficiency in internal exercises.
- Developers testing Cairn in local mode without Docker, reusing existing CLI tools and configurations.
Key setup facts
Pulled from the install and usage notes below. The project README has the current values.
- Install / run
docker pull --platform=linux/amd64 ghcr.io/oritera/cairn-worker-container:latestdocker pull ghcr.io/astral-sh/uv:python3.13-trixiedocker compose up --build
- Config files
dispatch.example.yamldispatch.yamldispatch.local.example.yaml- Runtime
- Python 3.12+
- Install notes cover
- macOS · Linux · Docker
How do you install or deploy this agent?
Prerequisites: macOS or Linux, Python ≥ 3.12, Docker (for container mode). Pull the worker image: docker pull --platform=linux/amd64 ghcr.io/oritera/cairn-worker-container:latest. Copy configuration: cp dispatch.example.yaml dispatch.yaml and fill in LLM endpoints and API keys. For Docker Compose, pull the base image docker pull ghcr.io/astral-sh/uv:python3.13-trixie, then run docker compose up --build. For manual setup, start the server with uv run --project cairn cairn serve and the dispatcher with uv run --project cairn cairn dispatch --config dispatch.yaml. Local mode: copy dispatch.local.example.yaml to dispatch.yaml; ensure claude/codex/pi CLIs are installed and logged in on the host.
How do you use this agent?
After configuring dispatch.yaml with LLM credentials, start the server and dispatcher: uv run --project cairn cairn serve and uv run --project cairn cairn dispatch --config dispatch.yaml. The system creates per-project worker containers; multiple workers run concurrently inside. Coordination is via the shared blackboard: facts, intents, and hints. The dispatcher handles scheduling: bootstrap at start, reason on each cycle, and explore for pending intents. Use --startup-healthcheck-only for a quick check. In local mode, run the dispatcher directly on the host, and workers use the host's CLIs with no sandbox. Run tests with uv run --project cairn --group dev pytest.
Safety boundaries, hardening & integrations
Operational blast radius, source-verified safety controls, and first-run hardening steps before connecting this agent to real workspaces.
Declared capability surface (blast radius)
Can run terminal commands; pair with approval gates or container/OS sandboxing.
Modifies local files; work on a clean Git branch or dedicated worktree.
Makes outbound requests; verify telemetry settings and model data routing on private repos.
What are this agent's strengths and limitations?
- General engine not tied to a specific domain; applicable to any problem with defined origin and goal.
- Proven in a competitive setting: achieved 54/54 problems, the only team to AK, ranking 3rd among 610 teams.
- Blackboard architecture and stigmergy allow scalable concurrent workers without direct communication.
- Multiple worker backends and local mode reduce infrastructure overhead and vendor lock-in.
- Early-stage project, not battle-tested beyond one competition; limited documentation and community.
- Relies on external LLM API endpoints; requires API keys and incurs token costs.
- Local mode requires manual CLI authentication and lacks sandboxing, increasing risk on shared hosts.
- AGPL-3.0 license restricts commercial use without a separate license, which may deter adoption in companies.
How does this agent compare with similar options?
Key facts side by side with the most closely related agents.
| Agent | Source review | Form / cost | Stars | Updated | Language | Full support on |
|---|---|---|---|---|---|---|
| Cairn — General State-Space Search Engine This agent | 51 · Major gaps | Self-hosted serviceFree + model costs | ★ 6.4k | 2mo ago | Python | Codex · Claude Code |
| RedTeam Agent | 45 · Major gaps | CLIFree + model costs | ★ 170 | 6mo ago | Python | Claude Code |
| NeuroSploit | 39 · Major gaps | — | ★ 1.6k | today | Rust | OpenAI API · Claude API |
| VulnClaw | 60 · Some gaps | CLIFree + model costs | ★ 4k | 1mo ago | Python | — |
How does FollowAgents rate this agent?
Why each dimension lost points
The README says the Dispatcher manages tasks and containers, while local workers run with the user's permissions and without a sandbox. This makes an important permission boundary visible, but the materials show no per-task confirmation or fine-grained permission controls, so least privilege and confirmation are only partial. A configuration test handles API-key fields, and the README says local mode does not need keys in the config, but the packet does not explain secret storage, log redaction, or transport protection. The Dispatcher uses the Docker socket, and the documentation does not describe recovery from side effects; the authorization disclaimer does not establish execution-time consent or rollback. Author identity and maintenance responsibility are unclear, so attribution is partial.
The README's descriptions of Facts, Intents, Hints, Bootstrap, Reason, and Explore broadly align with the supplied CLI and tests for configuration and driver behavior. The test files show validation for configuration, argument construction, and container archive paths, but this static packet does not establish that tests were run or results verified. Setup depends on Python, Docker, external worker CLIs, container images, and model endpoints, with no dependency pinning or availability evidence supplied. The CLI converts some RuntimeErrors into readable errors, and configuration tests check invalid values, but broader recovery guidance is limited.
The README presents Cairn as a general state-space search engine and names penetration testing, CTFs, and vulnerability research, while identifying penetration testing as its first validated domain. This gives some scenario guidance, though evidence for general-purpose performance is limited. It describes three task types, supported worker backends, container and local modes, and the local mode's lack of sandboxing and need for already logged-in CLIs, making boundaries and environment requirements fairly clear. The sample SKILL.md defines a specific trigger and high-confidence condition for flag submission, but it is only one competition-specific sample and cannot establish the product's overall trigger policy.
The README organizes architecture, task flow, setup, runtime modes, tests, disclaimer, and licensing, and provides commands and configuration names. AGPL-3.0 has a separate LICENSE, and the README explains commercial licensing and contribution terms, so licensing is well documented. The packet shows no release history or changelog; stated limitations cover only some environments and usage constraints. Repository links offer possible contact paths, but no maintainer, support commitment, or update responsibility is stated, so maintenance responsibility is only partial.
The fact graph, intents, and human hints form a clear collaboration model, and the README gives task outputs and an architecture diagram. These support readable outputs and potential value compared with predefined role workflows. The sample skill supplies a directly usable API submission command and a cautious submission rule. The packet does not quantify operating costs, model-call overhead, or benefits in general scenarios, and the competition results are self-reported in the README, so cost-benefit is only partly established.
The README makes claims about architecture, competition results, and validation, but the supplied materials do not independently corroborate the results. Configuration and adapter tests support only limited implementation details and do not prove that the tests were executed. The README distinguishes penetration testing as the first validated domain from broader general-purpose aims and presents competition numbers as results, giving some separation between fact and inference; key effectiveness claims still lack checkable support.
- In local mode, workers run with the current user's permissions and no sandbox; use it only in authorized environments where the working directory, credentials, and target scope are understood.
- The competition results and general problem-solving claims in the README are not independently corroborated by this packet; do not treat them as verified by this static review.
Recent releases
Latest entries from the project's GitHub Releases. Notes are quoted from upstream as written, not rewritten or tested by FollowAgents.
-
Release notes excerpt
Highlights This patch release improves dispatcher stability for large project graphs and long-running worker executions. Cairn now avoids OS argument-size failures by passing large graph snapshots through files inside the worker container, while keeping worker command argv small and preserving the existing dispatcher execution flow. What's New * Store large graph snapshots in worker containers via Docker archive copy instead of embedding full graph YAML in command arguments …View on GitHub ↗ -
Release notes excerpt
Highlights This release adds Pi as a supported dispatcher worker backend. Cairn can now run with Claude Code, Codex, or Pi workers, enabling more flexible agent orchestration for autonomous security exploration workflows. What's New - Added Pi worker support in the dispatcher - Added Pi session recovery and JSONL output parsing - Added conclude-phase compatibility for Pi execution flows - Added Pi worker configuration example to dispatch.yaml Notes - Pi support has been validated across bootstrap, reason, explore, and conclude flows …View on GitHub ↗ -
Release notes excerpt
First public open-source release of Cairn. Cairn is a general-purpose problem-solving engine built around explicit state-space search. It was first validated on autonomous penetration testing and CTF-style tasks, but the underlying architecture is designed for broader goal-directed problem solving. Highlights - Explicit fact-intent graph for modeling progress through an unknown state space - Blackboard-based coordination model with shared, objective state - Three-task execution loop: Bootstrap, Reason, and Explore …View on GitHub ↗
FAQ
What are the hardware requirements?
Can I use Cairn on systems without authorization?
Does Cairn support custom models or worker types?
Is there a way to run Cairn without Docker?
Thanks — we use this to improve the page.
Subscribe to the FollowAgents RSS feed, or save this agent to your browser shortlist to compare on your next visit.