Skip to content

feat: add dynamic routing hints for local discovery#54

Merged
Helweg merged 7 commits intomainfrom
feature/dynamic-codebase-routing-hints
Apr 14, 2026
Merged

feat: add dynamic routing hints for local discovery#54
Helweg merged 7 commits intomainfrom
feature/dynamic-codebase-routing-hints

Conversation

@Helweg
Copy link
Copy Markdown
Owner

@Helweg Helweg commented Apr 14, 2026

Summary

Add plugin-side runtime routing hints that steer local conceptual discovery toward codebase-index tools without making the overall workflow semantic-first.

Changes

  • add a dynamic routing hint controller that classifies turns into conceptual discovery, definition lookup, exact identifier, external, direct-path, or other requests
  • gate runtime hint injection behind the new search.routingHints config flag and route definition-style queries toward implementation_lookup
  • fix plugin runtime wiring so routing hints, auto-indexing, and file watching use the same shared indexer instance as the tool surface
  • harden exact-identifier routing by removing stateful backticked-query detection and adding a repeated-query regression test
  • document the new routing behavior, config option, and definition-first workflow in the README

Testing

How were these changes tested?

  • Unit tests added/updated
  • Manual testing performed
  • Build passes (npm run build)
  • Typecheck passes (npm run typecheck)
  • Tests pass (npm run test:run)
  • Lint passes (npm run lint)

Additional verification performed:

  • npx vitest run tests/routing-hints.test.ts tests/config.test.ts
  • npx vitest run tests/mcp-server.test.ts tests/commands.test.ts tests/search-integration.test.ts
  • npx vitest run tests/routing-hints.test.ts tests/config.test.ts tests/search-integration.test.ts tests/mcp-server.test.ts

Release Labels

  • Added at least one release category label (feature, bug, performance, documentation, dependencies, refactor, test, chore, or skip-changelog)
  • Added at most one semver label (semver:major, semver:minor, semver:patch) when needed

Related Issues

Fixes #(issue number)

@github-actions github-actions bot added documentation Documentation changes test Test changes labels Apr 14, 2026
@Helweg Helweg added feature New feature or capability semver:minor New feature (minor bump) labels Apr 14, 2026
@Helweg Helweg merged commit d49e616 into main Apr 14, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Documentation changes feature New feature or capability semver:minor New feature (minor bump) test Test changes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant