Skip to content

chore: add codegraph - #4106

Merged
tothandras merged 1 commit into
mainfrom
chore/codegraph
Apr 9, 2026
Merged

tothandras merged 1 commit into
mainfrom
chore/codegraph

Conversation

@tothandras

@tothandras tothandras commented Apr 9, 2026 •

Copy link
Copy Markdown
Contributor

Summary by CodeRabbit

Release Notes

  • New Features

    • Integrated CodeGraph for Go code exploration and analysis capabilities.
  • Documentation

    • Added comprehensive guidance on CodeGraph usage, session rules, and lightweight lookup tools.
  • Chores

    • Added configuration files for CodeGraph server setup and Claude integration.
    • Added CodeGraph tool to development environment.

@tothandras
tothandras requested a review from a team as a code owner April 9, 2026 09:49
@tothandras tothandras added the release-note/ignore Ignore this change when generating release notes label Apr 9, 2026
@coderabbitai

coderabbitai Bot commented Apr 9, 2026 •

Copy link
Copy Markdown
Contributor
📝 Walkthrough

Walkthrough

This PR integrates CodeGraph, a code exploration tool for Go, by adding MCP (Model Context Protocol) server configuration, development environment setup, Git ignore rules, and documentation for using CodeGraph with agent sessions.

Changes

Cohort / File(s) Summary
Configuration & MCP Setup
.claude/settings.json, .mcp.json, flake.nix
Added MCP server configuration for CodeGraph with defined permissions for allowed operations (search, context, callers, callees, impact, node, status, files), configured stdio transport, and added CodeGraph package to dev environment via Node.js.
Git Management
.gitignore
Added .codegraph/ directory to ignore list to prevent tracking of generated CodeGraph artifacts.
Agent Documentation
AGENTS.md
Documented CodeGraph integration patterns, including session-use rules (main session avoids exploration tools, spawns dedicated Explore agent instead), lightweight allowed tools for main session, and startup instructions for user initialization.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~8 minutes

🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title 'chore: add codegraph' accurately summarizes the main change—adding CodeGraph integration files and configuration to the project.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch chore/codegraph

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Inline comments:
In @.claude/settings.json:
- Line 5: Remove the "mcp__codegraph__codegraph_context" entry from the
allowlist in the settings JSON so the main session cannot call
codegraph_context; locate the string "mcp__codegraph__codegraph_context" in the
.claude/settings.json allowlist and delete that array element (or comment it
out) to align with AGENTS.md guidance about avoiding
codegraph_context/codegraph_explore in the main session.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: 1d3ef51b-5018-4c9d-9a83-1bb63f7e9352

📥 Commits

Reviewing files that changed from the base of the PR and between 5d00754 and 7a0bec5.

📒 Files selected for processing (5)
  • .claude/settings.json
  • .gitignore
  • .mcp.json
  • AGENTS.md
  • flake.nix

Comment thread .claude/settings.json Resolved
@tothandras
tothandras merged commit 3cccdca into main Apr 9, 2026
26 of 27 checks passed
@tothandras
tothandras deleted the chore/codegraph branch April 9, 2026 16:12

This branch was previously deployed

1 inactive deployment
dev — 7a0bec50 Deployed Apr 9, 2026 by tothandras via Migration Checks #13321
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

release-note/ignore Ignore this change when generating release notes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants