Skip to content

chore: update CodeGraph startup guidance - #4466

Merged
GAlexIHU merged 1 commit into
mainfrom
codex/update-codegraph-start-guidance
Jun 1, 2026
Merged

GAlexIHU merged 1 commit into
mainfrom
codex/update-codegraph-start-guidance

Conversation

@GAlexIHU

@GAlexIHU GAlexIHU commented Jun 1, 2026 •

Copy link
Copy Markdown
Contributor

What changed

  • Updated AGENTS.md so agents refresh CodeGraph at the start of work.
  • Replaced the old "ask before init" path with automatic codegraph init -i when .codegraph/ is missing.

Why

This keeps symbol-aware lookup available before code exploration and matches the workflow expected for this repo.

Validation

  • Reviewed the staged markdown diff.
  • Ran nix develop --impure .#ci -c codegraph sync.

Summary by CodeRabbit

  • Documentation
    • Enhanced CodeGraph setup documentation with clearer initialization and usage procedures
    • Added explicit step-by-step instructions for refreshing the index at the beginning of work sessions
    • Documented the index rebuild process for when the index becomes stale or after branch switches

@coderabbitai

coderabbitai Bot commented Jun 1, 2026 •

Copy link
Copy Markdown
Contributor

Review Change Stack

Caution

Review failed

Pull request was closed or merged during review

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: 026b2e70-d361-4475-9abe-9da8e1c3d5f0

📥 Commits

Reviewing files that changed from the base of the PR and between b25ac93 and fb1919d.

📒 Files selected for processing (1)
  • AGENTS.md

📝 Walkthrough

Walkthrough

AGENTS.md updates CodeGraph startup guidance to provide explicit, conditional procedures for session initialization. The change clarifies that agents should sync or rebuild the index when it exists, or initialize it from scratch when absent, replacing the prior interactive prompt with direct instructions.

Changes

CodeGraph startup procedures documentation

Layer / File(s) Summary
Startup refresh and initialization guidance
AGENTS.md
CodeGraph initialization prompt replaced with explicit steps: run codegraph sync to refresh when .codegraph/ exists, run codegraph index for full rebuilds when stale or after branch switches, and run codegraph init -i before exploring code when the directory is absent.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~3 minutes

Possibly related PRs

  • openmeterio/openmeter#4106: Both PRs update AGENTS.md with overlapping CodeGraph initialization and sync instructions for agent startup workflows.

Suggested labels

release-note/ignore

Suggested reviewers

  • turip
🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title 'chore: update CodeGraph startup guidance' accurately reflects the main change—updating documentation for CodeGraph initialization procedures.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

✏️ 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 codex/update-codegraph-start-guidance

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.

@GAlexIHU GAlexIHU added the release-note/misc Miscellaneous changes label Jun 1, 2026
@GAlexIHU
GAlexIHU marked this pull request as ready for review June 1, 2026 14:00
@GAlexIHU
GAlexIHU requested a review from a team as a code owner June 1, 2026 14:00
@GAlexIHU
GAlexIHU enabled auto-merge (squash) June 1, 2026 14:00
@GAlexIHU
GAlexIHU disabled auto-merge June 1, 2026 14:00
@GAlexIHU GAlexIHU changed the title [codex] update CodeGraph startup guidance chore: update CodeGraph startup guidance Jun 1, 2026
@GAlexIHU
GAlexIHU enabled auto-merge (squash) June 1, 2026 14:00
@GAlexIHU
GAlexIHU merged commit 8bca288 into main Jun 1, 2026
27 of 29 checks passed
@GAlexIHU
GAlexIHU deleted the codex/update-codegraph-start-guidance branch June 1, 2026 14:07

This branch was previously deployed

1 inactive deployment
dev — fb1919dc Deployed Jun 1, 2026 by GAlexIHU via Migration Checks #14751
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

release-note/misc Miscellaneous changes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants