Metadata-Version: 2.1
Name: crypts-and-commits
Version: 0.4.0
Summary: A Coding Assistant Continuity Framework. Crypts and Commits uses a tabletop-gaming metaphor to describe collaboration between a developer and an AI coding assistant. The developer acts as the Game Master: establishing context, making decisions, and retaining final authority.
Author-Email: John Hoff <john.hoff@braindonor.net>
License: Apache-2.0
Requires-Python: >=3.11
Requires-Dist: typer
Requires-Dist: rich
Requires-Dist: click
Requires-Dist: python-frontmatter
Requires-Dist: mcp>=2.0.0
Requires-Dist: tomlkit>=0.15.1
Description-Content-Type: text/markdown

# crypts-and-commits

A Coding Assistant Continuity Framework. Crypts and Commits ("CAC") uses a tabletop-gaming metaphor to describe collaboration between a developer and an AI coding assistant: the developer plays Game Master, establishing context, making decisions, and retaining final authority; the assistant plays through that context to get work done. The `cac` CLI and its `cac-mcp` MCP server are how an assistant records project context and tracks its own work across sessions, so continuity survives context resets instead of being rebuilt from scratch every time.

## Install

```bash
pip install crypts-and-commits
```

This installs the `cac` CLI and the `cac-mcp` MCP server console script.

## Quickstart

From your project's root directory, run `cac bootstrap init`. It is a developer-run command; agents never run it. It:

- creates the `.sourcebook/` directory and seeds its world file;
- registers the `crypts-and-commits` MCP server for Claude Code and Codex;
- deploys three skills in Claude and Codex variants: `world-manager` for static context and lore, `world-planner` for goal planning and roadmap adoption, and `campaign-manager` for tactical selection and reviewed execution.

After a library upgrade, the developer reruns bootstrap to redeploy the framework-owned skills; agents never edit the deployed copies. Adopting local instruction changes and migrating records are separate steps.

For the full walkthrough, see the [Quickstart guide](https://github.com/theBraindonor/crypts-and-commits/blob/main/docs/QUICKSTART.md).

Use `cac docs get planning-workflow` for goals, context and triage,
`cac docs get development-workflow` for campaigns, encounters and approval gates,
`cac docs get workflow` for a short task router,
`cac docs get branching-guide` for planning, assignment and execution branch
examples, `cac docs get tool-reference` for exact tool and command contracts, and
`cac docs get migration-guide` before upgrading an existing project.
The migration guide explains obtaining target-release guidance from verified source
or distribution when the older installed library cannot expose it, and separates
local instruction adoption from developer-run redeployment and schema migration.

## What's inside

Content is organized around **world** (project summary), **lore** (standards), **region** (documented repository path), **boss** (goal, including adopted roadmap context), **campaign** (chosen effort pursuing zero, one or many bosses), **rumors** (numbered backlog notes captured from anywhere, triaged on planning into bosses or dismissed), **ruling** (developer-confirmed decision captured in an open campaign, canonized into lore, region or world updates or noted on planning), and **encounter** (reviewed unit of work). Bosses, campaigns, encounters and rumors use numbered names with short refs (`bNNN`, `cNNN`, `rNNN`, `cNNN/eNNN`); rulings are named `cNNN-eNNN-slug` for the campaign and encounter they came from and take full names only. Agents use the MCP server first and CLI as fallback; managed files are not edited directly. The packaged planning and development workflow guides supply branch, numbering, ownership, and approval procedure.

## Documentation

This package is one part of the `crypts-and-commits` development workspace — see the [project repository](https://github.com/theBraindonor/crypts-and-commits) for the full workspace. Deeper framework reference docs (e.g. the workflow guide) are available on demand via the `docs` CLI/MCP tools once your project is bootstrapped.

## License

Apache License 2.0 — see [LICENSE](https://github.com/theBraindonor/crypts-and-commits/blob/main/LICENSE).
