Skip to main content
Glama

Cruxible

Governed, cross-source state for AI agents.

Cruxible is a local daemon that lets AI agents and people maintain typed, evidence-backed state across sources—so observations and judgments compound across sessions instead of getting re-derived from scratch or going quietly stale.

  • Automated pipelines run pinned providers—from API fetches and static analyzers to custom ML models—on a schedule or trigger, settling trusted observations and derivations or proposing findings for review without an agent in the loop.

  • Agents record judgments through a typed Python SDK, MCP server, or CLI, citing the exact source data or code passages they rest on, subject to signed review.

  • When inputs move, only the affected facts and judgments surface for re-checking—everything else stays current and untouched.

No LLM runs inside Cruxible. Accepted state is a signed Git ledger with per-field history and provenance. Runs on Linux (x86-64) and macOS (Apple silicon) with Python 3.11+; on Windows, use WSL2. Install and start.

See it work: vulnerability triage across five sources

Deciding whether a CVE actually affects an application combines an SBOM, OSV, CISA KEV, EPSS, your own source code, and a team's waiver rationale. No single scanner owns the whole picture, and Markdown notes drift as soon as a dependency or file changes.

With Cruxible's security kit on a Django app with 32 components:

1. Pull external facts and surface what needs judgment

One Runbook reads the SBOM and queries OSV, CISA KEV, and EPSS. In this kit, pulling those declared feeds is mechanical, so they settle under explicit, expiring mandates—recording both what was found and verified absences (like "not in KEV" only when the full catalog was read). Seven unjudged exposures above the exploit-likelihood threshold land in the inbox:

$ cruxible runbook run security.start
   1  Line:security.sbom-import.app              written 32 (settled 32, proposed 0)
   2  Line:security.osv-query                    written 181 (settled 181, proposed 0)
   3  Line:security.kev-triage                   written 181 (settled 181, proposed 0)
   4  Line:security.epss-triage                  written 543 (settled 543, proposed 0)
   5  Line:security.exposure-attention.unjudged  inbox 7 new

2. Record a judgment citing exact code; review and sign it

Judging reachability is the agent's job. It inspects the repository, finds that the app's SBOM pins PyYAML 5.1 while the only yaml.load lives in a separate container, and proposes a VEX justification citing that exact line:

from cruxible_client import Cruxible
from cruxible_client.contracts.write import FileEvidence

cx = Cruxible.connect()
batch = cx.changes(
    because="CVE-2020-14343: the only yaml.load in the repo is in dockerized_labs/a9_uckv_lab, "
            "a separate container with its own requirements; the Django app never imports yaml.",
)
pair = batch.create(
    "security.app_exposure",
    label="pair",
    key={
        "occurrence": "security.occurrence/sbom.cdx.json--pkg-pypi-pyyaml-5.1",
        "vulnerability": "security.vulnerability/cve-2020-14343",
    },
)
batch.set(
    pair,
    "justification",
    "vulnerable_code_not_in_execute_path",
    evidence=FileEvidence(
        file="dockerized_labs/a9_uckv_lab/app.py#data = yaml.load(file.stream, Loader=yaml.Loader)"
    ),
)
batch.write(accept="never")  # -> proposal; a second principal reviews and signs it

A second agent (or human) acting as reviewer sees the domain guidance, the proposed verdict, and the cited line before signing off:

$ CRUXIBLE_PRINCIPAL_ID=reviewer cruxible proposal review sha256:54251d28...
Guidance for ClaimType:security.app_exposure.justification: document:security.guidance.dependency (Judging a dependency exposure)
Values (4):
  create security.app_exposure/sbom.cdx.json--pkg-pypi-pyyaml-5.1--cve-2020-14343: created
  set security.app_exposure/sbom.cdx.json--pkg-pypi-pyyaml-5.1--cve-2020-14343 justification: vulnerable_code_not_in_execute_path  [CLM-34cb42d7...; verdict supported]
    cites CAP-0e7901adf211 dockerized_labs/a9_uckv_lab/app.py#data = yaml.load(file.stream, Loader=yaml.Loader)
      | data = yaml.load(file.stream, Loader=yaml.Loader)

3. When inputs move, re-check only what changed

When PyYAML is upgraded and the Runbook runs again, only the changed dependency and vulnerability are written; every other component and judgment is re-checked and left alone:

$ cruxible runbook run security.start
   1  Line:security.sbom-import.app              written 1; unchanged 31; retired 1
   2  Line:security.osv-query                    written 1; unchanged 178
   3  Line:security.kev-triage                   written 0; unchanged 179
   4  Line:security.epss-triage                  written 0; unchanged 537

If someone instead edits the cited line in dockerized_labs/a9_uckv_lab/app.py, cruxible next brings that specific judgment back as citation_drifted so a later session re-verifies it instead of trusting a stale waiver. Every field keeps its signed history and provenance:

$ cruxible get security.app_exposure/sbom.cdx.json--pkg-pypi-pyyaml-5.1--cve-2020-14343 --detail history
justification
  proposed 2026-11-18 by owner, approved by reviewer  stated  vulnerable_code_not_in_execute_path
      reason: CVE-2020-14343: the only yaml.load in the repo is in dockerized_labs/a9_uckv_lab, a
      separate container with its own requirements; the Django app this SBOM describes never imports yaml.

See the full security walkthrough to run this on your own repository. cruxible console opens a read-only view of the same state in your browser.

Related MCP server: mcp-witness

Install and start

Requirements: Python 3.11+ and Git. Linux x86-64 and macOS on Apple silicon; on Windows, use WSL2.

pip install cruxible        # or: uv tool install cruxible
cd your-project
cruxible init --principal-id owner
cruxible orient             # map of kinds, fields, and counts
cruxible next               # what needs attention right now

cruxible init starts a local daemon if none is running and creates this project's instance. For two-principal cosign—where a second agent or person must approve every proposal before it counts—initialize with a reviewer:

cruxible init --principal-id owner \
  --reviewer-key-dir ../reviewer-keys --require-independent-approval

Continue with the Quickstart to install the security kit or define your own vocabulary.

Why Cruxible

Autonomous, multi-session work hits structural limits with plain notes and single-purpose tools alike:

  • Notes + grep/RAG cannot track invalidation or exact sets. Markdown holds reasoning well, but it cannot wake up when an upstream dependency or cited line changes, reliably answer closed-world questions (NOT EXISTS, exact counts), resolve contradictions across append-only files, or refuse a bad write. Benchmarks show both sides of the trade-off: in LongMemEval (ICLR 2025), keeping only extracted facts lowered accuracy while indexing text alongside structured facts beat text alone; in MemoryAgentBench, tested memory systems frequently failed to prefer newer statements over older contradicting ones.

  • Single-purpose tools do not own cross-source judgments. Your repos, databases, and SaaS tools remain the sources of truth for their own records. Cruxible sits at the judgment layer across them—joining external feeds, local files, and team decisions without copying whole tables or locking your decision history inside one vendor.

Cruxible combines typed state, linked prose, and deterministic automation:

  • Typed state linked to prose. Each fact has one current value (with full history) and types grow as your domain does. Reasoning stays in your own Markdown pages, and facts cite the exact passages they rest on.

  • Freshness and completeness, not silent drift. Pipelines re-check facts on a schedule, stale_after flags expired evidence, citation_drifted catches edited files, and Cruxible distinguishes found, verified none (from a complete source read), and unknown—so a failed lookup never reads as "safe."

  • Graduated automation (observe → propose → settle). Pipelines start by observing or proposing for review, and only settle named fields on their own under explicit, scoped, expiring mandates.

  • Governed and verifiable. Every change is a proposal checked deterministically under your approval policy, recorded in a signed Git ledger where any earlier generation can be read back as it stood.

  • Stable subassemblies across sessions. Like Hora in Herbert Simon's watchmakers, agents build reusable, verified intermediate facts instead of re-deriving context from scratch every time a window resets.

Use it from your agent

One daemon owns the state; three clients talk to it:

  • MCP: configure your MCP client to launch cruxible mcp (uvx cruxible mcp from the registry listing). See MCP tools.

  • CLI: every command above, with --json for scripts and shell-capable agents. See the CLI reference.

  • Python SDK: cruxible-client, installed with cruxible, loads your vocabulary into typed Python handles and atomic write batches. See the SDK reference.

All three share the same verbs: orient, query and get read; set and write change values; authoring changes definitions. cruxible init starts a local daemon automatically; cruxible server start runs one explicitly.

The agent plugin for Claude Code and Codex adds five skills: survey works out what in a project is worth holding as state, adopt-kit starts from a kit, and create-state, automate-state and review-state cover ongoing work. See For AI agents.

How it works

  • Claims, Subjects, and Evidence. Each fact is a Claim about a Subject under a ClaimType that declares its value type, cardinality, freshness, and admitted evidence: the author's own words, a cited passage in a workspace file, or a retained Capture under a declared contract. (Evidence and admission, Asking questions)

  • Proposals and signed history. Every mutation is a proposal checked deterministically and accepted under your approval policy with signed approvals into a Git ledger. High-rate run telemetry stays in operational exhaust outside the ledger. (Review and governance, Architecture)

  • Procedures, Lines, and Triggers. A Procedure is a reviewed, replayable graph of steps that reads accepted state, invokes pinned provider builds through typed capability slots, extracts typed records, and proposes, settles, or posts to the inbox. Because computation lives in pinned provider packages—anything from API fetches and SQL queries to static analyzers or custom ML models—teams and agents can push any repeatable retrieval or derivation into a governed pipeline. A Line binds a Procedure's inputs, budgets, and authority ceiling to Triggers (cron, cadence, capture landing, or accepted changes). (Lines and automation)

  • Kits. A domain—its vocabulary, queries, guidance documents, Procedures, and bundled providers—travels between instances as a kit, installed and upgraded as reviewed changes. (Kits)

  • Credentials and principals. A credential is a daemon bearer token with a permission tier (read_only, governed_write, graph_write, admin); a principal is a signing key that attributes acts and signs approvals. (Who acts)

The concepts guide walks through all of these in order.

Documentation

Pick a starting point based on what you're trying to do (or browse the full index):

If you want to…

Start here

Try Cruxible on a real repo in minutes

Quickstart · Security walkthrough (full outputs + reviewed judgments)

Understand the mental model and vocabulary

Concepts · Architecture

Connect an AI agent (MCP, CLI, SDK, skills)

For AI agents · Agent plugin (survey, adopt-kit, create-state, automate-state, review-state)

Decide what to model as state vs. prose

Building team knowledge (modeling habits and Mistakes we made ourselves)

Keep Markdown docs in sync with live state

Documents and notes (atomic note+Claim writes, review guidance, and self-updating projection blocks)

Require stronger evidence or track predictions

Evidence and admission (admission rules, freshness, attestations, and predictions)

Query across relations or time-travel history

Asking questions (--follow, saved queries, --at, and grepping .cruxible/floor/)

Work drift queues and decide what to verify

Keeping knowledge current (next repairs, duplicates, audit ranking, and none vs. unknown)

Build scheduled pipelines or custom providers

Lines and automation (Procedures, pinned providers, inbox posts, and earning settle mandates)

Lock down review, cosign, or propose-only agents

Review and governance (approval policies, governed_write agents, and trust boundaries)

Evolve schemas or package reusable domains

Evolving your vocabulary (migrating Claims without losing history) · Kits

Reference & operations: CLI reference · MCP tools · Python SDK · Isolated deployment · Upgrading · Data and network · Hosted runtime image

Develop

git clone https://github.com/cruxible-ai/cruxible
cd cruxible
uv sync --all-packages --all-extras
uv run pytest -n auto --dist loadfile

See CONTRIBUTING.md for provider-runtime tests, lint, format, and type checks.

Apache-2.0 licensed.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      D
      maintenance
      MCP server for temporal state queries and cryptographic audit trails. Query historical entity state at any point in time, generate Merkle proofs of past state, and anchor contract snapshots for immutable provenance.
      MIT
    • A
      license
      Not graded
      quality
      C
      maintenance
      Self-hosted MCP gateway that applies deterministic, compiled policy to tool discovery, invocation, and outbound data flow, with no model in the enforcement path. Every decision emits a hash-chained receipt sealed with Ed25519 and verifiable using public keys only.
      Apache 2.0
    • A
      license
      Not graded
      quality
      C
      maintenance
      Provides evidence-oriented MCP service for cryptographically identified agents, bounded public contracts, privacy-preserving records, and append-only audit.
      Apache 2.0