Install the runtime-neutral CLI first, then add only the host adapters you use.
Need source code too? Open it on GitHub
Before you start, check these basics:
curl or wget on Linux/macOS; PowerShell on Windows.The CLI, source checkout, and Claude adapters are separate install surfaces. Pick only the paths you need.
Run one command to install the latest prebuilt CLI binary from GitHub Releases.
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.
contextd
binary only. They do not install Claude slash commands and do not provide
a knowledge root. Verify with contextd --version, then use an
existing team knowledge root or follow the source path below.
Need the bundled default workspace, packs, or Claude adapters? Download the source zip below or use the Git clone path.
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\contextd on Windows.
mkdir -p ~/wiki && unzip contextd-latest.zip -d ~/wiki
# The zip contains root folder 'contextd' → unzip creates ~/wiki/contextd/
cd ~/wiki/contextd
# PowerShell
Expand-Archive -Path contextd-latest.zip -DestinationPath D:\tool
# Creates D:\tool\contextd\
cd D:\tool\contextd
# Or Git Bash
unzip contextd-latest.zip -d /d/tool
Or right-click the zip file and choose "Extract All..." in File Explorer.
python3 -m pip install -e .
contextd --version
# Optional: only for Claude Code slash commands and subagents
bash scripts/install-to-claude.sh --knowledge-root "$(pwd)"
The Python command installs the CLI. The Bash script is a separate, optional Claude adapter installer.
Continue to Connect your first project. Use contextd init for the CLI path or /contextd-setup after installing Claude adapters.
git pull. We recommend Git clone if you update often.
bash scripts/package-release.sh. Output is written to release/contextd-{version}.zip + release/contextd-latest.zip. It automatically excludes .git/, raw evidence, workspaces other than default/, and runs/cache/log files. See scripts/package-release.sh --help.
Use this path when editing contextd, using the bundled default workspace, or installing host adapters.
Choose any base folder — for example ~/wiki on Linux/macOS or D:\tool\contextd 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).
The source checkout contains the Python CLI, workspace knowledge, packs, schemas, docs, and host adapter installers. Python ≥ 3.10 is required for the CLI.
python3 -m pip install -e .
contextd --version
# Optional and safe to run multiple times:
bash scripts/install-to-claude.sh --knowledge-root "$(pwd)"
The optional Bash command does 3 Claude-specific things:
~/.claude/commands/ and ~/.claude/agents/ — Claude Code reads these folders automatically~/.contextd/config.json and points knowledge_root to your cloned repogit pull to refresh commandsCheck that the config path is correct:
cat ~/.contextd/config.json
# PowerShell
type $env:USERPROFILE\.contextd\config.json
# Or Git Bash
cat ~/.contextd/config.json
You should see field "knowledge_root" with an absolute path to your cloned repo. Example:
{
"knowledge_root": "/home/user/contextd",
"default_workspace": null
}
If you installed Claude adapters, open Claude Code and run /contextd-setup. Autocomplete confirms that adapter installation succeeded.
contextd connect --client codex --knowledge-root "$(pwd)" --workspace default.
See docs/mcp.md for Claude, Cursor, and Codex examples.
For the runtime-neutral CLI, go to the codebase and run:
cd /path/to/your-codebase
contextd init --knowledge-root /path/to/contextd-or-team-knowledge-root --workspace default
contextd check
contextd synapse --preview --text
contextd context "describe your first task" --preview
If you installed Claude adapters, the equivalent guided setup is:
/contextd-setup
The setup flow guides you step by step:
package.json / pom.xml / Cargo.toml / .../new-workspace {name}<codebase>/.contextd/config.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).
The Windows release installer needs no Bash. If you specifically want Claude adapters without Git Bash or WSL, use these PowerShell steps from a source checkout:
New-Item -ItemType Directory -Force "$env:USERPROFILE\.contextd"
@'
{
"knowledge_root": "D:\\tool\\contextd",
"default_workspace": "default"
}
'@ | Set-Content "$env:USERPROFILE\.contextd\config.json" -Encoding utf8
New-Item -ItemType Directory -Force "$env:USERPROFILE\.claude" Copy-Item -Recurse -Force .claude\commands "$env:USERPROFILE\.claude\commands" Copy-Item -Recurse -Force .claude\agents "$env:USERPROFILE\.claude\agents"
Get-Content "$env:USERPROFILE\.contextd\config.json"Recommended: 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.sh --knowledge-root "$(pwd)"knowledge_root not found when running slash commands~/.contextd/config.json and confirm "knowledge_root" is an absolute path (do NOT use ~ or relative paths)workspaces/. It may be the contextd source checkout or a separate team knowledge repository.ls "$(jq -r .knowledge_root ~/.contextd/config.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)For a release binary, rerun the release installer. For a source checkout, pull changes and refresh the CLI; rerun the adapter installer only if you use Claude:
cd ~/contextd
git pull
python3 -m pip install -e .
bash scripts/install-to-claude.sh --knowledge-root "$(pwd)" # optional Claude adapter refresh
/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