Skip to main content
Glama
README.md
# CapsuleKit (open core)

Ship your code as a capsule, and any AI can know exactly what it is,
what it says, and what it does, and prove it.

Your buyers are agents now, and agents choose from prose. Your
README says what your code does. Their agent reads it, guesses, and
either trusts you or moves on. Neither of you can check the claim.

A capsule is the fix: a package your codebase ships that states, in
exact structured terms, what it is, what it does, what it refuses to
do, how to call it, and what it needs, with the statements bound to
the exact bytes by content hashes, and the headline claims carried
by executable proof checks that a verifier re runs before it
believes a word.

The format is defined in [SPEC.md](SPEC.md) (capsule format 1.0).
It is machine first and, deliberately, human auditable: an artifact
an AI can verify and a human can audit is worth more than one
locked to either reader.

## What this repo is

The free, open core of CapsuleKit, in Python standard library only:

- **Verify** any capsule: structure validated, digest and every
  file hash recomputed, bundled proof checks re run in separate
  processes, one verdict object out: VERIFIED, FAILED, or INVALID.
- **Inspect** any capsule in one read: identity, purpose,
  capabilities with typed inputs and outputs, interfaces,
  requirements, provenance. Nothing executes.
- **Seal** a capsule you authored: recompute file hashes and the
  manifest digest after edits.
- **Serve** inspection and verification as MCP tools
  (`capsule_inspect`, `capsule_verify`), so any agent can
  understand and verify a capsule before touching it.

```
PYTHONPATH=src python3 -m capsulekit verify examples/tiny-capsule
PYTHONPATH=src python3 -m capsulekit inspect examples/tiny-capsule
PYTHONPATH=src python3 -m capsulekit serve
```

`examples/tiny-capsule` is a complete, sealed, working capsule of a
two function calculator. Change one byte in it and verify again:
the verdict flips to FAILED and names the file.

## Tests

54 tests ship in this repo, covering the model, schema,
verifier, MCP server, and CLI (the full package's suite is 62,
including the packer):

```
PYTHONPATH=src python3 -m unittest discover -s tests -t .
```

## What it does not claim

No token savings. No new agent language. The research on those is
public and it is not kind; this kit claims instant exact
understanding with proof, and its own demo is the evidence.

## The full package

This repo is the free tool layer. The complete CapsuleKit package
adds the packer (draft a capsule from an existing Python codebase
by static analysis, with a confirmation worklist), the worked
capsules of two real products with their full proof suites, and
the integration guides:

- Gumroad: https://deskside.gumroad.com/l/udlohk ($69 launch)
- HUD DataVendor: a full codebase package is staged with HUD
  DataVendor (Second Desk) at $75,000 non-exclusive.

## License

MIT for this open core repository. The full CapsuleKit package is
sold under its own license terms.