claude-wiki
Installable Python package providing Claude Code hooks and a CLI for a personal knowledge base.
Install
With uv (recommended):
uvx claude-wiki init
From source in a clone of this repo:
uv sync --extra dev --frozen
Usage
Initialize a repository:
claude-wiki init
Daily commands:
claude-wiki compile [--all] [--file FILE] [--dry-run] [--path PATH]
claude-wiki query "your question" [--file-back]
claude-wiki lint [--structural-only]
claude-wiki migrate [--dry-run] [--path PATH] [--kb-dir KB_DIR] [--daily-dir DAILY_DIR]
claude-wiki rename-catalog [--dry-run] [--path PATH]
Hook entry points (called by Claude Code via .claude/settings.local.json by default):
claude-wiki-hook SessionStart
claude-wiki-hook SessionEnd
claude-wiki-hook PreCompact
What claude-wiki init creates
my-project/
├── .claude-wiki.lock # per-repo config (machine-managed)
├── .claude/settings.local.json # repo-local hook registration (default)
└── .claude/daily/ # conversation logs (created on first flush)
Use claude-wiki init --global to write hooks to ~/.claude/settings.json instead.
Use claude-wiki init --path PATH to target a different repository root.
Configuration
.claude-wiki.lock fields:
{
"repo_name": "my-project",
"repo_owner": "local",
"layout_version": "2",
"kb_dir": "project",
"daily_dir": ".claude/daily",
"reports_dir": "reports",
"timezone": "UTC",
"compile_after_hour": 18
}
layout_versiontracks the internal directory-layout generation. New repositories use"2".daily_dirdefaults to.claude/dailyin project mode and~/.local/share/claude-wiki-daily/<owner>/<repo>/in user mode.reports_diris deprecated; reports are written to the cache directory (<repo>/.claude/reports/in project mode).
Set CLAUDE_WIKI_PROJECT_DIR to override the knowledge base location.
Documentation
Full docs are in docs/.
See examples/ for a self-contained walkthrough of compiled output.
Development
make dev # install with dev dependencies
make install-precommit # install git hooks (run once per clone)
make test # run pytest
make lint # ruff check
make format # ruff format + mdformat
make typecheck # mypy
make precommit # all pre-commit hooks
make all # full CI gate (format, lint, typecheck, test, precommit)
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file claude_wiki-0.8.0.tar.gz.
File metadata
- Download URL: claude_wiki-0.8.0.tar.gz
- Upload date:
- Size: 209.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.11.23 {"installer":{"name":"uv","version":"0.11.23","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7a819387dec17675428fff8320e8b0f68074ed637a2da1b8c63ac4b8a65bcf8e
|
|
| MD5 |
3177936437b73194386e30c85581ef57
|
|
| BLAKE2b-256 |
10de99ab23290f06a81d6180357a28b6ed1edd14a93590974adfe608062eb867
|
File details
Details for the file claude_wiki-0.8.0-py3-none-any.whl.
File metadata
- Download URL: claude_wiki-0.8.0-py3-none-any.whl
- Upload date:
- Size: 57.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.11.23 {"installer":{"name":"uv","version":"0.11.23","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ab91914aa6b9c0a756adeddcf2e4fc7265b626d3b66d9273e2e0ce5e6176e964
|
|
| MD5 |
ae9249b4bb10212b0def839650aae230
|
|
| BLAKE2b-256 |
877ada71e88aacafbf8a78a068c0db24139ce16dd013c92143944af30191004b
|