3.6 KB · updated 2026-05-19 · md

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/plugin/

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:refresh chains import + compile + obsidian-sync; /tesserae:status shows graph counts and last compile).
  • Auto-MCP-registration for the tesserae_mcp server — agent gets ask, search_nodes, list_sessions, find_session_findings, etc. as mcp__plugin_tesserae_tesserae__<tool> without manual config edits.
  • using-tesserae skill — 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.
  • 4 hooksSessionStart prints a graph summary; SessionEnd backgrounds an import+compile so this conversation's insights become graph nodes for the next session; PostToolUse (opt-in) does an incremental recompile on docs/ edits; PreToolUse 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 MD0.

Why a plugin AND an MCP server?

Different surfaces, different roles:

  • MCP tools = read-only graph queries the agent calls during a conversation. Always-on, low-friction.
  • Slash commands = workflow actions you explicitly invoke (compile, refresh, obsidian-sync). High-leverage but should be your decision.

You can use the MCP server alone (manual claude_desktop_config.json edit via tesserae project mcp-config) — the plugin just packages it together with the slash commands, the skill, and the hooks so installation is one step.

Verify install

/plugin list           # tesserae should appear
/mcp                   # `tesserae` MCP server should be registered
/tesserae:status       # prints the active project's graph stats

Uninstall

/plugin uninstall tesserae

Reversible. Does not touch any project's .tesserae/ directory.

See also