knowledge-architect keeps the design record of a project's documentation checked and within reach of the work it bears on. It is built for projects developed mostly by AI agents, and has two parts that work together:
- A checker,
klarch. A project declares in a manifest what it records and where: its goals, its components, their design decisions, their open issues and tripwires. The checker verifies that every reference between those records resolves, that every record has the shape its register declares, and that the generated listings are current. Its commands list and display the records a session must read before it changes something. - An agent workflow, a set of skills and subagent definitions the checker installs into a project: setting up, writing goals, designing, planning, recording decisions, tracking open issues, reviewing, auditing the whole project on one aspect, a retrospective, and the intake of a retrospective's findings.
Why it exists, and what it aims for, is register@goal.
The version is 0.11.0, published on crates.io. The project stays at
0.x, with breaking changes allowed, until its owner asks to leave it, per
design@knowledge-architect@stays-at-zero-x.
The checker's commands, the smallest manifest and the exit codes are described in
path@cli@README.md, and what a manifest declares and the rules it is checked by in path@check@README.md. In short, from inside a project whose root holds a
knowledge-architect.toml:
klarch check # every check over the tree; the last line is the verdict
klarch commits <range> # every commit message of a range, judged as a document
klarch issues # every open issue, one row each
klarch show <ref> # one entry in full, and every reference to it
klarch index # regenerate the generated listings
klarch anchors # every anchor, and where each register's home isIn this repository, the checker built from the checkout runs as cargo klarch <subcommand>, and
cargo x gates runs every gate: formatting, the check, the commit messages, clippy, clippy for
Windows, the documentation build and the tests, the list whose home is design@xtask@gates-list-primary-home.
| path | what it holds |
|---|---|
| crates/cli | the command line: package knowledge-architect, binary klarch |
| crates/check | the checker: package knowledge-architect-check |
| crates/model | the library of what knowledge-architect reads of a project, knowledge-architect-model |
| crates/git | the library that wraps git for the tools of knowledge-architect, knowledge-architect-git |
| crates/cargo-reader | the library that reads what the tools of knowledge-architect need of Cargo, knowledge-architect-cargo-reader |
| crates/query | the library of the commands that read a project's record, or the changelogs of its dependencies, and run no check, knowledge-architect-query |
| crates/transcript | the library that reads an agent harness's session transcripts, knowledge-architect-transcript |
| crates/create | the library that creates a project and adds a Component to one, knowledge-architect-create |
| crates/testing | what an extension's tests need, and this repository's mock projects with the tests over them, knowledge-architect-testing |
| crates/agent-skills | the text the checker installs into a project |
| crates/gates | the library that runs a project's merge gates, cargo x gates here |
| crates/mutate | the library of the hand mutation, which applies one mutation, runs a command against it and restores the file, cargo x mutate here |
| tools/xtask | this repository's gates, cargo x gates, and its other repeated tasks |
| docs/ | the project's goals, design decisions, rejected designs, tripwires and open issues, the plan documents of docs/plans/, and the retrospective analyses whose outcomes are not all carried out |
Licensed under either of the MIT license (LICENSE-MIT) or the Apache License 2.0 (LICENSE-APACHE), at your option.