Overview
Transform dev_search from returning pointers to returning actionable context that LLMs can reason over without additional tool calls.
Motivation
Currently when an LLM calls dev_search("authentication"), it gets:
1. [85%] function: handleAuth (src/auth/handler.ts:45)
Then the LLM has to call read_file to see what that actually is. This means:
- Extra round-trip latency
- Extra tokens for the LLM to request the file
- Fragmented understanding
With richer results, the LLM gets actionable context in one call.
Philosophy
Structured data over summaries — Provide raw data, let LLMs synthesize.
This epic is the foundation for dev-agent's "context quality" initiative (v0.2).
Acceptance Criteria
Before
1. [85%] function: handleAuth (src/auth/handler.ts:45)
After (compact)
1. [85%] function: handleAuth (src/auth/handler.ts:45-67)
export async function handleAuth(req: Request): Promise<Response> {
const token = extractToken(req);
// ... 20 more lines
}
Imports: ./service, ../utils/jwt
After (verbose)
{
"score": 0.85,
"type": "function",
"name": "handleAuth",
"file": "src/auth/handler.ts",
"lines": [45, 67],
"snippet": "export async function handleAuth(req: Request)...",
"imports": ["./service", "../utils/jwt"],
"exported": true
}
Sub-issues
Out of Scope
- Call graph / "what calls this" (future:
dev_refs)
- Codebase skeleton (future:
dev_map)
- Planner refactor (depends on this epic)
Estimate
~1-2 weeks total
Overview
Transform
dev_searchfrom returning pointers to returning actionable context that LLMs can reason over without additional tool calls.Motivation
Currently when an LLM calls
dev_search("authentication"), it gets:Then the LLM has to call
read_fileto see what that actually is. This means:With richer results, the LLM gets actionable context in one call.
Philosophy
This epic is the foundation for dev-agent's "context quality" initiative (v0.2).
Acceptance Criteria
Before
After (compact)
After (verbose)
{ "score": 0.85, "type": "function", "name": "handleAuth", "file": "src/auth/handler.ts", "lines": [45, 67], "snippet": "export async function handleAuth(req: Request)...", "imports": ["./service", "../utils/jwt"], "exported": true }Sub-issues
Out of Scope
dev_refs)dev_map)Estimate
~1-2 weeks total