docs(serena): make code-search routing language-agnostic#533
Merged
Conversation
Contributor
|
code-review-audit skipped: no audit-relevant files changed in the un-audited delta (since the last clean audit); GAIA-Audit commit status stamped on HEAD so the merge gate is satisfied with no local audit run |
The advisory code-search rule now nudges toward Serena's symbol tools for any language Serena indexes for the project, not only TS/TSX and no longer scoped to app/ or test/. The rule frontmatter triggers on a broad multi-language source glob. The enforcement guard is left untouched and stays TypeScript-conservative and tsconfig-gated, since a wrong hard-block on a non-TS search is worse than a miss while the rule only nudges. The two Serena wiki pages document the split and a CHANGELOG entry records it. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
c597746 to
bdb69f9
Compare
Contributor
|
code-review-audit skipped: no audit-relevant files changed in the un-audited delta (since the last clean audit); GAIA-Audit commit status stamped on HEAD so the merge gate is satisfied with no local audit run |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Makes GAIA's Serena code-search routing language-agnostic instead of hardcoded to TypeScript. An adopter who configures another language server (Python, Go, Rust, ...) now gets the same Serena routing nudge, where before a GAIA-owned advisory surface pinned routing to TS +
app//test/.Changes
.claude/rules/code-search.mdgeneralized:paths:swapped from the TS-onlyapp/**/test/**pins to a broad multi-language source glob (ts,tsx,js,jsx,mjs,cjs,py,go,rs,java,rb,php,cs,cpp,cc,c,h,hpp,kt,swift,scala), so the rule activates for any language Serena might index, repo-wide.app/**andtest/**"; it prefers Serena's symbol tools for any language Serena indexes for the project. The note that grep is still right for prose / comments / non-code files is preserved.## Enforcementsection now states the split explicitly..claude/hooks/serena-code-search-guard.shstays TypeScript-conservative and tsconfig-gated. The guard is a hard BLOCK; a wrong block on a non-TS grep is worse than a miss, whereas the rule only nudges (zero false-block risk). Rule generalizes; guard stays conservative.wiki/concepts/Serena Integration.md,wiki/dependencies/Serena.md) updated in present tense to state the split: the advisory routing rule is language-agnostic (multi-language trigger, not TS/app/test-only) while the enforcement guard remains TS-conservative, so code and docs agree.## [Unreleased] → Changedentry recording the routing generalization and the deliberately conservative guard.Markdown-only change (rule + wiki + CHANGELOG); no source touched. Wiki-style audit greps on the two touched pages returned clean.
🤖 Generated with Claude Code