Claude Wiki - installable hooks and CLI for a personal knowledge base
Project description
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
claude-wiki query "your question"
claude-wiki lint [--structural-only]
claude-wiki migrate [--dry-run]
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)
└── daily/ # conversation logs (created on first flush)
Use claude-wiki init --global to write hooks to ~/.claude/settings.json instead.
Configuration
.claude-wiki.lock fields:
{
"repo_name": "my-project",
"repo_owner": "local",
"kb_dir": "project",
"daily_dir": "daily",
"reports_dir": "reports",
"timezone": "UTC",
"compile_after_hour": 18
}
Set CLAUDE_WIKI_PROJECT_DIR to override the knowledge base location.
Development
make dev # install with dev dependencies
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)
Project details
Release history Release notifications | RSS feed
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.1.1.tar.gz.
File metadata
- Download URL: claude_wiki-0.1.1.tar.gz
- Upload date:
- Size: 119.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.11.22 {"installer":{"name":"uv","version":"0.11.22","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 |
a74dcb07dd9f7c1775dfc836be6b3f7d89b9fe320e133d869c9dcfa123e80e4b
|
|
| MD5 |
6ec5daff4eec5c9b26d7bad174723827
|
|
| BLAKE2b-256 |
8dc8464360c9df7570aee9adebe0bf3a2662ba34441fa34787f7f3fe7ca85e9e
|
File details
Details for the file claude_wiki-0.1.1-py3-none-any.whl.
File metadata
- Download URL: claude_wiki-0.1.1-py3-none-any.whl
- Upload date:
- Size: 36.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.11.22 {"installer":{"name":"uv","version":"0.11.22","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 |
e35f45c45581e7021abe35b72de22c945cdd8a06d89f779e614650010d186e4a
|
|
| MD5 |
52efeb07554258c7e31c6d06546b5e82
|
|
| BLAKE2b-256 |
66e778437f683acc92af1b1b8ca8d924872bacd81b383111a16bcc74ee123fbb
|