Cruxible
Cruxible is a toolset that lets AI agents create, update and manage what they’ve learned through a typed, code-like interface, so they model the world rather than solely write notes about it. Their observations and judgments become building blocks that later sessions reuse instead of re-deriving.
It runs unattended as a local daemon. Pipelines you approve re-check sources on a schedule, and when the evidence behind a fact changes, the fact is flagged instead of going quietly stale. Agents reach it through a Python SDK, an MCP server or the CLI; all three talk to the same daemon, so they share one record.
Runs on Linux (x86-64) and macOS (Apple silicon) with Python 3.11+; on Windows, use WSL2. Install and start.
A short example
A small shop promises customers delivery dates. Whether a promise is safe depends on when the supplier restocks, and the supplier's notice page changes without warning. A pipeline the shop approved re-reads that page on a schedule and keeps each reading. An agent reads the latest one and records its judgment with the Python SDK:
w = cx.world() # typed handles for this shop's own vocabulary
order = w.shop.order["ord-1042"]
# the judgment: promise Friday delivery, citing the reading it rests on
order.set(
promise="open",
promised_for="2026-11-20",
evidence=CaptureEvidence(capture="CAP-c01ffabbbb61"), # the latest reading of the notice
because="Acme's notice confirms a restock of 200 for Thursday the 19th, "
"so we can promise Friday the 20th.",
)
# -> a proposal; a second agent reviews it before it counts
A second agent reviews the proposal, and sees the supplier's words under the judgment that rests on them:
$ cruxible proposal review sha256:e0518aa5...
Why: Acme's notice confirms a restock of 200 for Thursday the 19th, so we can promise Friday the 20th.
set shop.order/ord-1042 promise: open [CLM-3d57ae93...; verdict supported]
cites CAP-c01ffabbbb61 acme.notice
| {"restock": {"sku": "blue-widget", "quantity": 200, "date": "2026-11-19", "message": "Restock of 200 blue widgets confirmed for Thursday the 19th."}}
Then the supplier changes the page, and nobody at the shop has to notice. On its next run (every 20 seconds here) the pipeline reads the new page and records what it now says. Copying a fact from a source is the mechanical part, so it lands without review. Twelve seconds after the page changed, the promise that rested on the old date is back in front of an agent, through a saved query the shop wrote (Lines and automation):
$ cruxible get shop.item/blue-widget --detail history --field restock_expected
restock_expected
by owner changed 2026-11-19 -> 2026-11-27
reason: As the supplier's restock notice states. (Procedure shop.notice-check, run RUN-8af69fc0...)
by owner stated 2026-11-19
reason: As the supplier's restock notice states. (Procedure shop.notice-check, run RUN-d2498007...)
$ cruxible query --name shop.promises_at_risk
subject promised_for restock_expected sku
shop.order/ord-1042 2026-11-20 2026-11-27 blue-widget
The session that picks this up doesn't start over. It reads why the promise was made and what the notice says now, and changes its mind on the record, citing the new reading:
$ cruxible get shop.order/ord-1042 --detail history --field promise
promise
by owner, approved by reviewer changed open -> withdrawn
reason: Acme's notice now says the restock moved to Friday the 27th, so Friday the 20th no longer holds. Customer told; new date when it lands.
by owner, approved by reviewer stated open
reason: Acme's notice confirms a restock of 200 for Thursday the 19th, so we can promise Friday the 20th.
Why this beats notes alone
Agents today have two places to put what they learn. Notes in markdown are easy to write and hold reasoning well, but they can only be searched, not queried, and they pile up: a later note can contradict an earlier one, and nothing marks which is current. Structured data can be checked and queried, and a new value replaces the old one, but reducing everything an agent learns to fields loses detail. Research on agent memory finds both costs. In LongMemEval (ICLR 2025), storing only the facts extracted from a conversation, in place of its text, lowered accuracy, while keeping the text and indexing it with those facts beat the text alone. In MemoryAgentBench, when a later statement contradicted an earlier one, the memory systems tested often failed to answer from the newer one.
Cruxible is designed to keep the strengths of both. Facts are typed and queryable like structured data, and types can grow as agents learn more about your domain. Each fact has one current value: a new one replaces it, and the earlier values are kept as history, as the promise above shows. Reasoning stays in prose, in your own pages, and facts cite the passages they rest on. Your files, repos and services remain the source of truth: Cruxible points to them and keeps a snapshot only of the evidence a fact was drawn from, so every claim can be traced back.
- Fresh, not silently stale. Pipelines re-check facts on the schedule you set. When a source changes, the fact is updated or flagged, and a fact whose evidence is older than the window you set reads as stale instead of passing as current.
- Knowledge compounds. A fact checked once is reused by every later session and every agent until its evidence moves; work goes where the world changed.
- Governed, not only shared. Many agents and people work in one record instead of overwriting each other's notes. Every change is a proposal, checked against the rules you declared; your approval policy decides what lands at once and what waits for a second agent's signed review, and what a pipeline may write on its own is granted explicitly and expires.
- Every fact has its provenance. What was concluded, from which evidence, proposed by whom, approved by whom and when. Accepted state is a signed Git ledger, each fact keeps its own history, and any earlier value can be read back as it stood.
- Deterministic. No LLM runs inside Cruxible. Agents and people propose and judge; Cruxible applies declared rules deterministically.
Herbert Simon's watchmakers show why complex systems tend to be built from stable intermediate parts. Tempus builds each watch in one go, and every interruption makes him start over. Hora builds stable subassemblies, so an interruption costs only the piece in hand. Agent sessions with fresh context windows work like Tempus: context is pulled in on demand, and facts are re-derived and re-interpreted each time. Cruxible gives agents Hora's subassemblies. Each accepted fact has a fixed place: it belongs to the thing it describes, links to the things it relates to, and keeps the evidence it was derived from. Ask about one thing and everything known about it comes back together, so the cost of working something out is paid once and knowledge accumulates.
The security kit: the same loop on real work
A kit is a ready-made domain. The security kit keeps a project's dependencies, their known vulnerabilities and your team's judgments about them current. One Runbook reads the SBOM and asks OSV, CISA KEV and EPSS; here on a deliberately vulnerable Django app with 32 components:
$ 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
Facts copied from sources settle without review. The seven inbox items are unjudged exposures above the kit's exploit-likelihood threshold, and judging one is the agent's work: it reads the code, records its verdict with the passage it rests on, and a second agent reviews it.
$ 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.
When PyYAML is upgraded and the Runbook runs again, only what changed is written; everything else is re-checked and left as it is:
$ 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
The security walkthrough goes through all of
it on your own project. 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 \
--reviewer-key-dir ../reviewer-keys --require-independent-approval
cruxible orient # what this instance holds
cruxible next # what needs attention
init starts a local daemon if none is running and creates this project's
instance. The two reviewer options set up a second principal whose approval
every proposal needs; cruxible init --principal-id owner alone lets one
owner approve everything. The Quickstart continues from
here with the security kit.
Use it from your agent
One daemon owns the state; three clients talk to it:
- MCP: an MCP client launches
cruxible mcp(uvx cruxible mcpfrom the registry listing). See MCP tools. - CLI: every command above, for agents with a shell and for people.
- Python SDK:
cruxible-client, installed with the package. It reads your vocabulary into typed Python, as in the example at the top. See the SDK reference.
The verbs are the same on all three: orient, query and get read; set
and write change values; authoring changes definitions. init starts a
local daemon for you; cruxible server start runs one yourself.
The plugin for Claude Code and Codex adds five general
skills: survey works out what in a project with no kit is worth holding as
state, adopt-kit starts from a kit, and create-state, automate-state and
review-state cover the work after that.
For AI agents covers how an agent should read and
write.
How it works
- Facts, vocabulary and evidence. Each fact is a Claim about a Subject, under a ClaimType that says what the value may be and what may back it: the author's own words, a cited passage of a file, or a Capture (the slice of a source's response a fact rests on) under a declared contract. Agents extend the vocabulary as they learn, and queries follow the links between things. Evidence and admission, asking questions.
- Reviewed history. Every change is a proposal, checked deterministically and accepted under your approval policy with signed approvals. Accepted state is a signed Git ledger. Review and governance.
- Procedures. A Procedure is how repeatable work gets done with no agent in the loop. It is a reviewed, typed sequence of steps that reads accepted state, calls tools through declared interfaces (parse a dependency list, read a scanner's report, query an API), turns the results into typed records, and writes them back as facts, proposals or inbox items. The security kit's Procedures import an SBOM, match it against three vulnerability sources and flag the unjudged exposures worth attention. Runs are deterministic and replayable: each tool is pinned to an exact build, inputs and outputs are checked against contracts, and nothing reads the clock. A Procedure does only what it has been granted: observe, propose for review, or settle named fields on its own.
- Lines and attention. A Line runs a Procedure with its inputs, budgets
and an authority ceiling, on Triggers (a schedule, a new capture, an
accepted change), once you enable it. Agents author new ones as they find
sources worth watching.
nextlists what needs attention;cruxible linkattaches notes to Subjects and review guidance to ClaimTypes. Lines and automation. - Kits. A domain (vocabulary, pipelines, guidance) travels between instances as a kit, installed and upgraded as one reviewed change. Kits.
The concepts guide explains all of this in order.
Credentials and principals
A credential is a daemon bearer token with a permission tier; a principal is a signing key that attributes acts and signs approvals. See Who acts.
Documentation
- Quickstart and the security walkthrough
- Concepts
- For AI agents
- Asking questions, evidence and admission, review and governance, lines and automation, kits
- CLI reference, MCP tools, Python SDK
- Upgrading, data and network
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 the provider-runtime tests, lint, format and type checks.
Apache-2.0 licensed.
Metadata
Release files for cruxible 0.5.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| cruxible-0.5.0.tar.gz | 9.6 MB | With provenance | Details for cruxible-0.5.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| cruxible-0.5.0-py3-none-any.whl | Python 3 | none | any | Details for cruxible-0.5.0-py3-none-any.whl |
Total release size: 13.7 MB
Release files / cruxible-0.5.0.tar.gz
| Download URL | cruxible-0.5.0.tar.gz |
|---|---|
| Size | 9.6 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
705beb4df95616298d9dc79457c5eab3d685c208023908d213519dbbbc04d6d8
|
|
BLAKE2b-256 checksum How to use checksums |
baaf2a30d4f6ec826b27e31b5d134c8de9fc06630a20d6d334ff9e1ed5b58df3
|
| 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 19, 2026.
Transparency logRelease files / cruxible-0.5.0-py3-none-any.whl
| Download URL | cruxible-0.5.0-py3-none-any.whl |
|---|---|
| Size | 4.1 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2c0c06e2417664dc042669d84d0614d2ec62eb9a0a9b11927659cab674f33e7d
|
|
BLAKE2b-256 checksum How to use checksums |
82242e885e45cc9037c53eff0eb93f7ca13b2b6c57499fe5c088085c4470d060
|
| 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 19, 2026.
Transparency logSecurity for cruxible 0.5.0
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.
Attestation for cruxible-0.5.0.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 19, 2026.
Transparency logA 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.