Released: 2026-09-23
Repository: full-stack-plugins/codegraph-plugin
License: Apache-2.0
Plugin ID: codegraph · Version: 0.1.5
Localization: This file is the English release notes. The Chinese version is in RELEASE-NOTES.zh-CN.md.
| Version | Date | Changes |
|---|---|---|
| 0.2.0 | 2026-10-09 | Behaviour change — the codegraph-helper skill no longer treats an existing index as its activation gate; it now activates on code-structure questions in any repo, checks for .codegraph/ itself, and proactively offers to index when absent (running codegraph init only after user consent). Documented the init vs install boundary. Regression guard added |
| 0.1.7 | 2026-10-09 | Fix MCP tool claims to match upstream DEFAULT_MCP_TOOLS (only codegraph_explore is listed to agents by default); drop the fabricated codegraph affected MCP alternative; add /codegraph-context (codegraph 1.6.0 command) for 21/23 coverage; re-sync prompt text against codegraph v1.6.0; fix ./codegraph/ path typo; align AGENTS.md wording with actual marketplace schema; add regression guard for non-default MCP tool claims |
| 0.1.5 | 2026-09-23 | Fix format-attribution claims (JSON/Markdown neutral wording, ecosystem-verified); rename KIMI_COMMANDS test variable; document command-directory convention in AGENTS.md |
| 0.1.4 | 2026-09-23 | Add bump-plugin CLI tests (untested-hotspot closure); description parity check for all 40 command files; README heading-structure parity test; marker-containment guard in replace_or_append_marked_section |
| 0.1.3 | 2026-09-23 | Fix bump-plugin.mjs sync failure handling (no longer aborts post-write); extend cross-link lint to cover kimi-commands/*.md; make scripts/tests/ discoverable; sync version surfaces |
| 0.1.2 | 2026-09-23 | Add defaultPromptZhCn to ZCode manifest; fix OpenSpec delta headers |
| 0.1.1 | 2026-09-23 | First bump-plugin.mjs release run (4 manifests + catalog + 3 marketplaces) |
| 0.1.0 | 2026-09-23 | Initial release (below) |
Initial release of codegraph-plugin — a thin orchestration layer on top of the upstream colbymchenry/codegraph (MIT) CLI.
-
Discoverability via prompt injection: at session start, when a
.codegraph/directory exists in the cwd, this plugin injects the official CodeGraph prompt block — verbatim from upstreamsrc/installer/instructions-template.ts— into both:- the host's instruction file (
<cwd>/.claude/CLAUDE.mdif present, else<cwd>/AGENTS.md); and - the active agent session via
SessionStart.additionalContext.
No user action required. The plugin is silent in non-indexed projects.
- the host's instruction file (
-
20 slash commands: complete coverage of all visible
codegraphCLI subcommands —init,uninit,install,uninstall,index,sync,status,query,explore,node,files,callers,callees,impact,affected,daemon,unlock,version,telemetry,upgrade— in two formats — JSON (commands/*.json, declared inkimi.plugin.json) and Markdown (kimi-commands/*.md). Hidden commands (prompt-hook,serve --mcp) are intentionally not exposed. -
One plugin-local skill (
codegraph-helper): conditions the agent to prefer CodeGraph's MCP tools (codegraph_explore,codegraph_callers,codegraph_callees,codegraph_impact, etc.) when answering code-structure questions in indexed repositories.
CodeGraph's own codegraph install writes the same prompt block to ~/.claude/CLAUDE.md. This plugin's marker-fenced writer is byte-equal idempotent, so:
- If the user has already run
codegraph install, this plugin's hook is a no-op. - If the user runs
codegraph installafter installing this plugin, both writers' byte-equal strategies give no churn.
What this plugin adds on top of codegraph install alone:
- Two audiences covered — the plugin emits
additionalContextfor the main agent at runtime; the file write handles Task-tool subagents. AGENTS.mdfallback — projects without.claude/CLAUDE.mdget the block written toAGENTS.md(the OpenSpec / multi-agent convention).- Slash commands —
codegraph installexposes no commands; this plugin covers all 20.
The plugin is shipped as a single command on the host:
# Codex / ZCode / Kimi marketplace install (auto-discovers marketplace (latest)):
codex plugin add codegraph@full-stack-plugins
zcode plugin install codegraph --ref v0.1.5After install, in any indexed project (.codegraph/ exists), start a new session — the plugin auto-injects the official prompt.
In a non-indexed project, no action happens. To index:
/codegraph-init| Event | Matcher | Timeout | Purpose |
|---|---|---|---|
SessionStart |
startup|resume |
10s | Inject the official CodeGraph prompt |
No PreToolUse / PostToolUse / UserPromptSubmit / Stop hooks — this plugin deliberately stays out of those events to avoid collision with codeguard-plugin and other plugins that own them.
21 commands. Covers every codegraph CLI subcommand except help (the host has its own), ui/web (opens a browser viewer meant for humans, not agents), and the two hidden internal commands prompt-hook / serve --mcp.
| Slash | Equivalent CLI |
|---|---|
/codegraph-init |
codegraph init [path] |
/codegraph-uninit |
codegraph uninit [path] |
/codegraph-install |
codegraph install |
/codegraph-uninstall |
codegraph uninstall |
/codegraph-index |
codegraph index [path] |
/codegraph-sync |
codegraph sync [path] |
/codegraph-status |
codegraph status [path] |
| Slash | Equivalent CLI | MCP tool |
|---|---|---|
/codegraph-query |
codegraph query <search> |
codegraph_search |
/codegraph-explore |
codegraph explore <query> |
codegraph_explore (primary entry) |
/codegraph-node |
codegraph node <name> |
codegraph_node |
/codegraph-files |
codegraph files |
codegraph_files |
/codegraph-callers |
codegraph callers <symbol> |
codegraph_callers |
/codegraph-callees |
codegraph callees <symbol> |
codegraph_callees |
/codegraph-impact |
codegraph impact <symbol> |
codegraph_impact |
/codegraph-affected |
codegraph affected [files] |
(CLI only) |
| Slash | Equivalent CLI |
|---|---|
/codegraph-daemon |
codegraph daemon |
/codegraph-unlock |
codegraph unlock [path] |
/codegraph-version |
codegraph version |
/codegraph-telemetry |
codegraph telemetry [status|on|off] |
/codegraph-upgrade |
codegraph upgrade [version] |
- Plugin host: Claude Code (any version with
SessionStart.additionalContextsupport), Codex, ZCode, Kimi. - Upstream:
codegraphv1.6.0 (re-verified 0.1.7, byte-equal, 805 bytes). The plugin's prompt block is verbatim fromcodegraph/src/installer/instructions-template.ts:42-51. When upstream'sinstructions-template.tschanges, this plugin'sscripts/codegraph_lib/prompt.pymust be re-synced and a patch version bumped (seeAGENTS.mddiscipline). - Runtime: pure Python stdlib. No
pip install, no third-party runtime dependencies. - Filesystem: writes to host instruction files only. Never auto-creates
<cwd>/.claude/directory.
- Does not install the
codegraphCLI itself. Users runnpm i -g @colbymchenry/codegraph(orinstall.shfrom upstream) before this plugin is useful. - Does not auto-run
codegraph init. Indexing is the user's decision; this plugin only activates when.codegraph/already exists. - Does not modify the upstream
codegraphproject. The official prompt block is copied verbatim with attribution inNOTICE.
To upgrade after the upstream codegraph release:
# 1. Verify prompt text matches upstream
diff codegraph/src/installer/instructions-template.ts scripts/codegraph_lib/prompt.py
# 2. If text drifted, update prompt.py
# 3. Bump version (syncs 4 manifests + catalog.json + 3 platform marketplaces)
CODEGUARD_SKIP_GATE=1 node scripts/bump-plugin.mjs codegraph patch
# 4. Commit both repositories and push
cd /Users/wandl/workspaces/workspace-agent-skills/full-stack-plugins && git add -A && git commit -m "release: codegraph 0.1.x" && git push
cd /Users/wandl/workspaces/workspace-agent-skills/full-stack-plugins-repositories/codegraph-plugin && git add -A && git commit -m "release: v0.1.x" && git push86 files, 42 unit tests (all passing):
- 1 skill manifest (
skills/codegraph-helper/SKILL.md+ 2 references) - 21 JSON slash commands (
commands/codegraph-*.json, declared inkimi.plugin.json) - 21 Markdown slash commands (
kimi-commands/codegraph-*.md) - 4 host manifests (
kimi.plugin.json,.codex-plugin/plugin.json,.zcode-plugin/plugin.json,.agents/plugins/marketplace.json) - 3 SVG assets (logo, composer icon, banner) + 3 PNG equivalents
- 1 hook (
hooks/inject_codegraph_prompt.py) + manifest (hooks/hooks.json) - 4 Python library modules (
scripts/codegraph_lib/) - 5 test files (
tests/+scripts/tests/) - 3 docs (
docs/codegraph-architecture.{md,zh_CN.md},docs/codegraph-plugin-design.md) - 1 OpenSpec change (
openspec/changes/2026-09-23-add-codegraph-plugin/) - Standard plugin metadata:
LICENSE,NOTICE,PRIVACY.md,TERMS.md,README.md,README.zh-CN.md,AGENTS.md - Release notes pair:
RELEASE-NOTES.md(English, this file),RELEASE-NOTES.zh-CN.md
The official CodeGraph prompt block in scripts/codegraph_lib/prompt.py is verbatim from the upstream colbymchenry/codegraph project (MIT, Copyright (c) 2026 Colby McHenry). See NOTICE for full attribution.
Apache-2.0. See LICENSE.