claude-code-plugin.md
docs/integrations/claude-code-plugin.md
Claude Code plugin
<!-- translations:start -->
한국어 · 中文 · 日本語 · Русский · Español · Français · Deutsch
<!-- translations:end -->
Tesserae ships a Claude Code plugin so you can drive the full Tesserae workflow from inside a TUI session — slash commands, an auto-registered MCP server, a skill that orients the agent, and four hooks that close the agent↔project-memory loop. The plugin lives in-repo at plugin/.
Install
# In a Claude Code session, from a local checkout
/plugin install /path/to/Tesserae/
Pre-req: tesserae already installed (pip install tesserae or pipx install tesserae). If installing via pipx, make sure ~/.local/bin is on the PATH Claude Code inherits at launch.
What's shipped
- 9 slash commands — seven 1:1 wrappers around the CLI (
/tesserae:compile,/tesserae:ask,/tesserae:sessions-import,/tesserae:build-site,/tesserae:serve,/tesserae:obsidian-sync,/tesserae:setup) plus two workflow macros (/tesserae:refreshchains import + compile + obsidian-sync;/tesserae:statusshows graph counts and last compile). - Auto-MCP-registration for the
tesseraeserver — the agent gets the full tool surface asmcp__plugin_tesserae_tesserae__<tool>without manual config edits: graph queries (search_nodes,node_context,graph_ppr,search_facts), the on-demandcompile_context/list_communities/fresh_insightscompiler, session memory (ask,list_sessions,find_session_findings,find_code_symbol_mentions), and guidedtesserae_setup_plan/tesserae_setup_apply. See mcp.md for the complete list. using-tesseraeskill — auto-loads when you ask about the typed graph, past-session recall, wiki/vault content, or any tesserae workflow. Teaches the agent which MCP tool to use vs which slash command to suggest.- 5 hooks —
SessionStartprints a graph summary;SessionEndbackgrounds an import+compile so this conversation's insights become graph nodes for the next session; twoPostToolUsehooks fire onEdit/Write/MultiEdit— one does an opt-in incremental recompile on docs/ edits, the other debounces (~30s) a code-graph sync;PreToolUse(onBash) gates large-graph compiles via a confirmation dialog.
Full details, the complete command/hook tables, and per-project opt-out instructions are in the plugin's own