Something went wrong. Try again.
An agent harness for spec-driven development.
Something went wrong. Try again.
Files
- TypeScript 83%
- JavaScript 17%
README.md
# Charter
Charter is a Jazz-native workspace for spec-driven development.
The invariant is intentionally blunt: the spec is the product surface, and Jazz is the coordination truth. Humans edit documents. Charter turns meaningful document changes, spans, comments, prompt changes, and agent lifecycle activity into project events, durable work items, consumer packets, and inspectable agent runs.
This repo's `spec/` directory is Charter's own local Markdown projection. The database is the canonical coordination surface for sync, cursors, work queues, consumers, packets, provenance, optional APIs, future UI, and runners.
## Current contents
- `spec/` - local filesystem projection of Charter's product spec.
- `src/markdown.ts` - Markdown/frontmatter parser.
- `src/spec-files.ts` - `spec/**/*.md` scanner and import-plan builder.
- `src/db/jazz.ts` - default Charter database adapter; persistent Jazz 2 tables with optional sync-server participation.
- `src/db/json.ts` - local JSON projection adapter for tests/fallback (`CHARTER_DB_ADAPTER=json`).
- `src/jazz/schema.ts` - Jazz 2 schema for projects, sources, documents, work, workers, leases, packets, and runs.
- `src/server.ts` - shared runtime/watch helpers plus optional local HTTP inspection API/status page.
- `src/status.ts` - truthful project-state summary over projection drift, database durability, events, work, consumers, packets, and requests.
- `src/cli.ts` - CLI with `watch`, `status`, `serve`, `start`, `frontend`, `scan`, `index`, `search`, `changes`, `events`, `work`, `agent`, `queue`, `report`, `requests`, and `sync` commands.
## Target product
The desired first-class product command is:
```bash
charter watch
```
That starts the local runtime:
- watches `spec/**/*.md`.
- ingests filesystem edits into the Jazz-backed database.
- writes semantic project events and durable work items.
- matches registered consumer agents.
- emits structured JSONL terminal logs.
- runs agents as subordinate processes when invoked.
- records packets, reports, failures, std…