Akashic is a local-first CLI for Git-backed knowledge repositories. It helps teams keep structured Markdown documentation beside real source repositories, then browse that documentation through a local web UI.
Akashic does not analyze code by itself. It manages the knowledge repo, discovers attached source repos, builds generation prompts, and hands those prompts to an agent provider such as Codex or Claude.
- Initialize a Git-backed knowledge repository.
- Attach one or more local Git source repositories.
- Generate structured docs for services, flows, system notes, ADRs, entities, and glossary entries.
- Preserve hand-written content through
<!-- HUMAN:START -->sections. - Serve docs through a local React/Vite site.
- Build a static read-only docs site.
- Validate setup with
doctorand inspect repo state withstatus.
Akashic is a Python package targeting Python 3.10+.
Install the released CLI:
uv tool install akashic-kb
# or
pipx install akashic-kbThe installed command is still akashic:
akashic --versionFor local development:
uv sync
uv run akashic --versionIf installing from a checkout:
pip install .
akashic --versionThe documentation site commands also require Node.js and npm.
Create a knowledge repository:
mkdir knowledge
cd knowledge
akashic initAttach source repositories:
akashic attach /path/to/source-repo
akashic attach /path/to/another-repo --name billing
akashic listGenerate docs:
akashic generateReview changes, then commit them yourself:
git status
git add -A
git commit -m "Generate knowledge docs"Browse docs locally:
akashic serveBuild a static site:
akashic build-site| Command | Purpose |
|---|---|
akashic init [PATH] |
Initialize a knowledge repo. |
akashic root |
Print discovered knowledge repo root. |
akashic attach [PATH] [--name NAME] |
Register a source Git repo. |
akashic detach NAME |
Remove an attached source repo. |
akashic list |
List attached source repos. |
akashic generate |
Compose prompts and run configured provider. |
akashic serve |
Start local docs site. |
akashic build-site |
Build static docs site. |
akashic doctor |
Validate config, Git, repos, provider, and runtime. |
akashic status |
Show attached repos, generation state, and doc counts. |
Global options:
--version: print package version.--knowledge <dir>: use a specific knowledge repo instead of discovering one.
Akashic stores shared repo configuration in .akashic/config.yaml and
machine-local absolute paths in .akashic/config.local.yaml. The local config
is gitignored so the knowledge repo can be shared across machines.
Workspace discovery order:
--knowledge <dir>AKASHIC_HOME- Parent directory walk from the current working directory
Full docs live in docs/README.md:
docs/installation.mddocs/quickstart.mddocs/commands.mddocs/configuration.mddocs/generation.mddocs/site.mddocs/publishing.mddocs/troubleshooting.md
Run tests:
uv run pytestRun focused CLI commands from the checkout:
uv run akashic doctor --knowledge /path/to/knowledgeFrontend sources live under frontend/ and are packaged into the Python wheel.
The built-in fake provider writes files and is useful for exercising the full
pipeline. Real providers (codex, claude) are documented in
docs/generation.md, including current execution
behavior and limitations.
MIT. See LICENSE.