Set up once in about 5 minutes, then use in any project.
Need source code too? Open it on GitHub
Before you start, check these basics:
claude --version in terminal, or by seeing the Claude icon in VS Code/JetBrains).git --version)scripts/validate.py and trace tools)If you do NOT have Bash on Windows, see Common issues under "Windows without Bash".
Run one command to download + extract + install automatically from the latest GitHub release.
curl -fsSL https://github.com/philngt/contextd/releases/latest/download/install.sh | shiwr https://github.com/philngt/contextd/releases/latest/download/install.ps1 -UseBasicParsing | iexThese URLs always point to the latest published installer assets.
Or download the zip manually if needed, then run the installer.
This link works when opening files locally or when hosting a directory that includes release/.
Extract to any folder — for example ~/wiki on Linux/macOS or D:\tool\wiki-template on Windows.
mkdir -p ~/wiki && unzip contextd-latest.zip -d ~/wiki
# The zip contains root folder 'wiki-template' → unzip creates ~/wiki/wiki-template/
cd ~/wiki/wiki-template
# PowerShell
Expand-Archive -Path contextd-latest.zip -DestinationPath D:\tool
# Creates D:\tool\wiki-template\
cd D:\tool\wiki-template
# Or Git Bash
unzip contextd-latest.zip -d /d/tool
Or right-click the zip file and choose "Extract All..." in File Explorer.
Same as Step 2 in the Git clone path — the file scripts/install-to-claude.sh is already in the zip:
bash scripts/install-to-claude.sh
Verify the same way as Git install: cat ~/.claude/wiki-global.json should show "wiki_root" with your extracted path.
Same as Step 3 below — run /contextd-setup in your codebase.
git pull. We recommend Git clone if you update often.
bash scripts/package-release.sh. Output is written to release/wiki-template-{version}.zip + release/contextd-latest.zip. It automatically excludes .git/, raw evidence, workspaces other than wiki/, and runs/cache/log files. See scripts/package-release.sh --help.
If you have Git and want easier updates later, use this path.
Choose any base folder — for example ~/wiki on Linux/macOS or D:\tool\wiki-template on Windows.
git clone https://github.com/philngt/contextd ~/contextd
cd ~/contextd
git clone https://github.com/philngt/contextd /d/tool/contextd
cd /d/tool/contextd
In Git Bash, Windows path D:\tool\ is written as /d/tool/ (forward slash).
This repo needs no build and no dependency install — it is markdown plus bash scripts.
Run this command (safe to run multiple times):
bash scripts/install-to-claude.sh
This command automatically does 3 things:
~/.claude/commands/ and ~/.claude/agents/ — Claude Code reads these folders automatically~/.claude/wiki-global.json and points wiki_root to your cloned repogit pull to refresh commandsCheck that the config path is correct:
cat ~/.claude/wiki-global.json
# PowerShell
type $env:USERPROFILE\.claude\wiki-global.json
# Or Git Bash
cat ~/.claude/wiki-global.json
You should see field "wiki_root" with an absolute path to your cloned repo. Example:
{
"wiki_root": "/home/user/wiki",
"default_workspace": null,
"obsidian": { ... }
}
Open Claude Code and run /contextd-setup → if the slash command appears in autocomplete, setup is successful.
Go to the codebase folder where you want to use the wiki, open Claude Code (or the IDE extension) there, and run:
/contextd-setup
The setup flow guides you step by step:
package.json / pom.xml / Cargo.toml / .../new-workspace {name}<codebase>/.claude/wiki.json with complete config + per-codebase pack overrides/use-contextd, /find, /tool-design, ...).
Next: open index.html and choose a persona path (PM / Engineer / Wiki Owner / Solo Builder).
If you do not have Git Bash or WSL, use these 4 manual steps:
templates\wiki-global.json → %USERPROFILE%\.claude\wiki-global.json"wiki_root" to the absolute repo path, and use \\ instead of \:
{
"wiki_root": "D:\\tool\\wiki-template",
...
}
.claude\commands\ and .claude\agents\ to %USERPROFILE%\.claude\:
xcopy /E /I /Y .claude\commands %USERPROFILE%\.claude\commands xcopy /E /I /Y .claude\agents %USERPROFILE%\.claude\agents
type %USERPROFILE%\.claude\wiki-global.jsonRecommended: install Git for Windows (free) to get Git Bash → installer runs with one simple command.
~/.claude/commands/ contains .md files (e.g. contextd-setup.md)/exit then reopen; IDE: reload window)bash scripts/install-to-claude.shwiki_root not found when running slash commands~/.claude/wiki-global.json and confirm "wiki_root" is an absolute path (do NOT use ~ or relative paths)CLAUDE.md, packs/, workspaces/)ls "$(jq -r .wiki_root ~/.claude/wiki-global.json)"/contextd-setup shows "workspace not found"/new-workspace {name} first (e.g. /new-workspace acme-corp)/list-workspaceschmod +x scripts/install-to-claude.sh then run againbash scripts/install-to-claude.sh (no executable bit required)After each git pull in the wiki-template repo, re-run the installer to sync updated slash commands:
cd ~/wiki
git pull
bash scripts/install-to-claude.sh # idempotent — updates everything
/tool-design)packs/Your workspaces (workspaces/{your-ws}/) are data — they are not affected by engine updates.
← Back to Onboarding QUICKSTART.md (text) README.md GitHub Repository