Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Run automatically on Claude Code events. Claude doesn't decide.
No risk signals detected
Nothing flagged in this plugin's hooks, MCP servers or commands. Other components are not analyzed.
Static checks of hooks, mods, MCP servers and commands. Not a security audit.
1 marketplace, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Cairn is a local symbol-aware code index served over MCP. This plugin
wires the cairn MCP server into the host (Claude Code or Codex) and
installs a SessionStart hook that injects cairn's structural-tool
guidance into the host's context at the start of every session.
.mcp.json). Adds cairn over stdio so
the host can call list_repos / get_outline / find_symbols /
find_subtypes / find_supertypes / find_callers /
find_callees / find_references / find_imports /
get_symbol_source / register_repo / reindex_repo without any
per-project setup.SessionStart guidance injection (hooks/hooks.json →
SERVER_INSTRUCTIONS.md). On startup, resume, clear, and
compact events, the host runs cat "${PLUGIN_ROOT:-$CLAUDE_PLUGIN_ROOT}/SERVER_INSTRUCTIONS.md" and the
hook's stdout becomes additional context for the next agent turn.
This is where the "reach for cairn before grep" framing, the
structural-failure catalog, and the tier3_status / completeness
/ hints recovery guidance live. Before v0.7.0 the same text was
shipped as MCP serverInstructions; in v0.7.0 it moved to the
plugin's SessionStart hook so it survives Claude Code's
serverInstructions size cap and reaches Codex hosts that ignore
the field.cairn daemon is running. (cairn daemon is the long-lived index
service the MCP server talks to.)cairn is available on PATH.This plugin is shipped in-tree alongside the cairn binary so its
version matches the daemon it talks to. Both Claude Code and Codex
discover plugins through marketplace catalogs (marketplace.json),
not by scanning arbitrary directories — the repo root carries a
.claude-plugin/marketplace.json that points at this plugin/
subdir as the install source.
From a published GitHub remote:
claude plugin marketplace add naoto256/cairn
claude plugin install cairn@naoto256-cairn
From a local checkout (handy during development):
claude plugin marketplace add /absolute/path/to/cairn
claude plugin install cairn@naoto256-cairn
After install, restart the Claude Code session so the MCP server registration and hook take effect.
See https://code.claude.com/docs/en/discover-plugins for the full plugin command reference.
From a published GitHub remote:
codex plugin marketplace add naoto256/cairn
codex plugin add cairn@naoto256-cairn
From a local checkout (handy during development):
codex plugin marketplace add /absolute/path/to/cairn
codex plugin add cairn@naoto256-cairn
After install, restart the Codex session so the MCP server registration and hook take effect.
Codex reads .codex-plugin/plugin.json, .mcp.json, and
hooks/hooks.json from the same plugin/ directory. See
https://developers.openai.com/codex/hooks for the host-specific
hook contract.
The ${PLUGIN_ROOT:-$CLAUDE_PLUGIN_ROOT} expansion in
hooks/hooks.json handles either host's plugin-path environment
variable so the same SERVER_INSTRUCTIONS.md is loaded under both.
The MCP server is discovered as cairn mcp on PATH. The
SessionStart hook has no runtime dependencies; both Claude Code
and Codex honor it and load the guidance once per session.
To silence the guidance injection, uninstall the plugin:
/plugin uninstall cairn@naoto256-cairn
Built from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
Plugins from other owners that cover similar ground