Skip to content

Latest commit

Β 

History

2,901 Commits

Folders and files

NameName
Last commit message
Last commit date
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ¦€

cargo binstall decapod && decapod init

Decapod
Repo-native governance kernel for bounded, provable, shippable AI coding work.

Work in Cursor, Claude Code, Codex, Antigravity, Grok, or any harness you prefer. Decapod governs the work without replacing the agent or its harness.

CI crates.io License: MIT Constitution Research


Quick start

cargo binstall decapod
decapod init

One command installs the kernel. One command prepares the repository. You keep speaking naturally. Agents call Decapod at the points that matter: before acting, before inference, at validation boundaries, and before publication.

What was asked, what was understood, what changed, and what was proven is written into the project itself.

The layer Decapod occupies

Decapod sits between agent capability and trusted delivery:

Models produce intelligence.
Agents perform work.
Repositories preserve state.
Decapod governs the transition from intent to proof.

As agents make code generation easier, generation is no longer the complete reliability problem. Organizations need to trust what was generated. Reliability is designed, not hoped for: intent, boundaries, durable state, validation, recovery, and evidence make trust an architectural property of the delivery path.

What Decapod is

Decapod is a repo-native governance kernel that turns human intent into bounded, durable, and proof-backed agent work.

Software work has always required people to manage commands, workflows, state, and recovery. AI agents improve that interface, but natural language alone does not prevent drift, lost context, conflicting work, or false completion. Decapod moves those execution burdens into governed repository state.

Why you need Decapod

The model can reason. Decapod makes the agent converge.

Convergence means the agent preserves the original intent, stays within explicit boundaries, carries durable state across invocations, responds to validation, remediates supported failures, and produces evidence before claiming completion. Governance is the mechanism. Reliable convergence is the outcome.

Execution flow

Human intent
β†’ agent interpretation
β†’ explicit boundaries
β†’ governed execution
β†’ validation and recovery
β†’ proof-backed publication

The human expresses intent and provides judgment. The agent interprets the repository, performs the work, authors the living specifications, follows validation feedback, and gathers evidence. Decapod governs accepted work and blocks publication when required conditions are not satisfied. The repository preserves the state and history that let the work continue across processes, models, harnesses, and Decapod invocations.

Boundaries

Decapod is not an autonomous coding agent, LLM, inference engine, orchestration framework, daemon, prompt library, coding assistant, project-management system, or replacement for an agent harness. It governs work performed by agents.


How Decapod works

An agent task may span many Decapod invocations. Each CLI or RPC invocation is ephemeral. Decapod intentionally runs without a daemon; durable execution state lives in the repository. Agents repeatedly invoke the kernel as they interpret, execute, validate, remediate, revalidate, and publish.

flowchart LR
    subgraph HumanGroup["Human"]
        UserIn["User"]
        UserOut["User"]
    end

    subgraph HarnessGroup["Agent Harness"]
        HarnessNode["Harness"]
    end

    subgraph IntelligenceGroup["Intelligence"]
        ModelNode["Model"]
    end

    subgraph GovernanceGroup["Governance"]
        DecapodNode["Decapod"]
    end

    subgraph AgentGroup["Agent"]
        AgentNode["Agent"]
    end

    UserIn ==>|intent| HarnessNode
    HarnessNode ==>|request| AgentNode
    AgentNode -.->|pre-inference| DecapodNode
    DecapodNode -.->|context, gates| AgentNode
    AgentNode ==>|inference| ModelNode
    ModelNode ==>|response| AgentNode
    AgentNode -.->|post-inference| DecapodNode
    DecapodNode -.->|proof| AgentNode
    AgentNode ==>|verified result| UserOut
    AgentNode -.->|clarify| UserIn

    style UserIn fill:#9f1239,stroke:#4c0519,color:#ffffff
    style UserOut fill:#9f1239,stroke:#4c0519,color:#ffffff
    style HarnessNode fill:#1e40af,stroke:#172554,color:#ffffff
    style AgentNode fill:#6b21a8,stroke:#3b0764,color:#ffffff
    style ModelNode fill:#155e75,stroke:#083344,color:#ffffff
    style DecapodNode fill:#111827,stroke:#f59e0b,color:#fbbf24,stroke-width:3px
    style HumanGroup fill:#fff1f2,stroke:#9f1239,color:#4c0519,stroke-width:2px
    style HarnessGroup fill:#dbeafe,stroke:#1e40af,color:#172554,stroke-width:2px
    style IntelligenceGroup fill:#cffafe,stroke:#155e75,color:#083344,stroke-width:2px
    style GovernanceGroup fill:#fef3c7,stroke:#b45309,color:#78350f,stroke-width:2px
    style AgentGroup fill:#f3e8ff,stroke:#6b21a8,color:#3b0764,stroke-width:2px
    linkStyle default stroke:#334155,stroke-width:1.5px
Loading

Validation is part of that control loop, not a terminal report. A failed gate usually means the task remains incomplete. When Decapod exposes a supported remediation, the agent applies it, updates the relevant artifact, and validates again. Not every failure is recoverable; unresolved decision gates and contradictions remain visible for human judgment. Publication is a governed state transition, and agent-reported completion is not proof that it occurred.


Capabilities

  1. Intent β€” Vague requests become explicit, versioned specifications.
  2. Context β€” Only the relevant code and docs, with provenance.
  3. Coordination β€” Exclusive claims and isolated workspaces for concurrent agents.
  4. Trajectory β€” Durable events for handoff across sessions and harnesses.
  5. Boundaries β€” Protected branches and sensitive modules stay protected.
  6. Adaptation β€” Instruction changes go through explicit review.
  7. Proof β€” Completion requires deterministic verification.

Substrate

.decapod/ holds the durable state of governed agent work:

.decapod/
  managed/specs/     # Living project specifications
  managed/sessions/  # Session custody
  generated/         # Context capsules and proof artifacts
  data/              # Local project store
  governance/        # Trajectory, claims, and validation
  workspaces/        # Isolated worktrees (containers when configured)
  config.toml        # Project shape
  OVERRIDE.md        # Local authority, in plain Markdown
  • Intent becomes specs and todos.
  • Context becomes scoped capsules.
  • Custody becomes claimed tasks and workspaces.
  • Trajectory becomes event-backed records.
  • Boundaries become rules, overrides, and gates.
  • Validation becomes proof artifacts.
  • Completion becomes a verified state transition.

OVERRIDE.md is yours to edit. Write instructions the way you write documentation. Decapod binds each directive to its source and body with fail-closed resolution.

Decapod does not author repository meaning or perform the agent's work. It makes the work reviewable and publishable by turning governance into repository state.


The Constitution

Decapod ships with an embedded engineering constitution β€” architecture, security, performance, research, and testing as queryable doctrine.

Agents consult it, cite claims, follow gates, and produce proof. Judgment remains human. Authority is explicit: baseline constitution, project override, task-scoped projection.


Guarantees

  • Daemonless β€” Invoked like git or grep.
  • Local-first β€” Governance runs on your machine by default.
  • Repo-native β€” State stays with the repository.
  • Provider-agnostic β€” Any model, any harness. The project is the coordination surface.
  • Proof-gated completion β€” VERIFIED requires passed proof-plan gates.
  • Branch isolation β€” Protected paths and branches stay protected.

Decapod is a governance kernel. The agent remains responsible for the work.


Documentation


Contributing

git clone https://github.com/DecapodLabs/decapod
cd decapod
cargo build && cargo test

CONTRIBUTING Β· SECURITY Β· Issues

About

Repo-native governance kernel for bounded, convergent, proof-backed agent work.

Topics

Resources

Contributing

Security policy

Stars

233 stars

Watchers

2 watching

Forks

Releases

Sponsor this project

Packages

Used by

Contributors

Languages