feat: v0.3 design spec, plan, and search_code prerequisite#44
Merged
Conversation
Phased implementation plan for the coding agent: - Phase A: CodeEditor + DiffRenderer - Phase B: AgentMemory - Phase C: Planner + CodingAgent loop - Phase D: Streaming UX + REPL integration Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- Add search_code tool as prerequisite - Fix Planner constructor (inject LLM agents) - Define EditValidationResult (avoid name collision with registry) - Document search field semantics per operation type - Add rollback policy for partial failures - Define classification precedence (isCodingTask before Router) - Route CodeEditor writes through SafetyGate - Rename src/agent/ to src/coding/ to avoid confusion with src/agents/ - Set 4096 minimum context window, add degradation path - Remove hybrid agent type (one agent per run) - Add JSON fallback parsing note for Planner Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- Add CodeEditor constructor with SafetyGate + cwd params - Clarify cross-iteration rollback ownership (CodingAgent holds initialOriginals) - Sketch search_code tool interface (params, return type, category) Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
12 tasks across 7 chunks covering: - Prerequisite: search_code tool - Phase A: CodeEditor + DiffRenderer - Phase B: AgentMemory - Phase C: Planner + CodingAgent loop - Phase D: Streaming + Config + Integration Addresses review findings: AgentResult toolCalls field, validation via execFileSync (not shell allow-list), mode flag respect, listener leak prevention, no dead config. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Implements the search_code tool definition with grep-backed file search
returning structured { file, line, match } results. Registers it in the
default registry and updates the registry test count to reflect the new
total of 7 built-in tools.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Only pass --include when a glob filter is specified. Previously passed --include * which works by accident via fnmatch but is not correct by design. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
5 tasks
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.
Summary
docs/superpowers/specs/)docs/superpowers/plans/)search_codetool to the v0.2 tool registry — structured code search returning{ file, line, match }results, needed by the coding agent's ANALYZE phaseWhat's in the spec
Turn Locode from a chat router into a coding agent with:
Implementation phases (separate PRs)
search_codeprerequisite toolTest plan
search_codetool tests pass (metadata, matches, no matches, glob filtering)npm run buildsucceeds🤖 Generated with Claude Code