Skip to main content

Cruxible

Cruxible

Cruxible is a state layer that gives your agents and teams a shared model of what they believe to be true.

It lets you:

  • Accumulate evidence-backed knowledge — agents and people build on what's already verified instead of starting from scratch or overwriting each other, recording typed facts and judgments through a Python SDK, MCP, or CLI with citations and signed review.
  • Keep it current automatically — autonomous pipelines pull from APIs, scanners, static analyzers, or custom models on a schedule or trigger, without an agent in the loop.
  • Draw attention only to what changed — when an input moves, only the affected facts and judgments surface for review; everything else stays current and untouched.

Cruxible doesn't replace your Markdown notes, code, or databases—prose and source records stay where they live, while Cruxible holds the typed claims pointing to them and tracks when they change.

No LLM runs inside Cruxible. Everything runs locally on Linux (x86-64) and macOS (Apple silicon) with Python 3.11+ (Windows via WSL2), backed by a signed Git ledger with per-field history. 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.

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.
  • A plain database still needs this layer built around it. SQLite or Postgres stores rows cleanly (Cruxible itself indexes into SQLite), but for agent-maintained knowledge you still end up building citations, freshness, verified none vs. unknown, signed review, and versioned history on top. Cruxible gives you that layer out of the box.
  • 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.

Metadata

Release files for cruxible 0.5.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for cruxible 0.5.1
File Size Uploaded Provenance Actions
cruxible-0.5.1.tar.gz 9.7 MB With provenance Details for cruxible-0.5.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for cruxible 0.5.1
File Interpreter ABI Platform Actions
cruxible-0.5.1-py3-none-any.whl Python 3 none any Details for cruxible-0.5.1-py3-none-any.whl

Total release size: 13.8 MB

Release files / cruxible-0.5.1.tar.gz

Download URL cruxible-0.5.1.tar.gz
Size 9.7 MB
Tags Source
SHA-256 checksum
How to use checksums
85b2c9f3ee255fe3014c4c3a8a5ee797e08d346793d5d4db9280de5b56a4b48e
BLAKE2b-256 checksum
How to use checksums
ab8094f22eeaaae680341df890ff88e3621b84ef567042152976d2aa1308f79f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 23, 2026.

Transparency log

Release files / cruxible-0.5.1-py3-none-any.whl

Download URL cruxible-0.5.1-py3-none-any.whl
Size 4.1 MB
Tags Python 3
SHA-256 checksum
How to use checksums
25af22f042b3993bbd7e7fa48e530e43381629ae1ef164ae0bf8a0ccc197abce
BLAKE2b-256 checksum
How to use checksums
0d515517d5ab90d8d66dc3b69c0c3221c39eea41e92ca083f4484ec33bfe5b7b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 23, 2026.

Transparency log

Security for cruxible 0.5.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for cruxible-0.5.1.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 23, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page