Skip to content

Commit ce7390b

Browse files
committed
chore: add changeset for richer search results
1 parent 99ea625 commit ce7390b

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
---
2+
"@lytics/dev-agent-core": minor
3+
"@lytics/dev-agent-mcp": minor
4+
---
5+
6+
feat: Richer search results with code snippets, imports, and token budget management
7+
8+
**Core Scanner:**
9+
- Extract code snippets during indexing (truncated to 50 lines)
10+
- Parse and store import statements using ts-morph
11+
- Extended DocumentMetadata with `snippet` and `imports` fields
12+
13+
**MCP Formatters:**
14+
- CompactFormatter and VerboseFormatter now render snippets and imports
15+
- Progressive disclosure: full → signature → minimal detail levels
16+
- Token budget management (500-10000 tokens, configurable per-search)
17+
- Improved token estimation for code-heavy text
18+
19+
**Search Adapter:**
20+
- New `tokenBudget` parameter for dev_search tool
21+
- Enables snippets and imports by default
22+
23+
The `dev_search` tool now returns actionable context instead of just pointers, making it significantly more useful for AI assistants to understand code without additional file reads.
24+

0 commit comments

Comments
 (0)