-
Notifications
You must be signed in to change notification settings - Fork 0
Remove subagent/Task tool instructions from buildPrompt #162
Copy link
Copy link
Closed
Description
Problem
The SUBAGENTS section in buildPrompt encourages Claude to spawn Explore subagents. lota-1 spawns subagents that re-read the ENTIRE codebase (25+ file reads) on tasks where it already knows the workspace. This wastes 5-10 turns and significant context window per task.
What to do
In src/daemon.ts, buildPrompt() function:
- Find and remove the SUBAGENTS section (around lines 686-695)
- Add a simple rule instead: "Do NOT use the Agent tool or Task tool. Use Grep and Read directly."
- Also consider adding Agent/Task to the denied permissions in settings.json (same approach as TodoWrite removal)
Acceptance
- No subagent instructions in the prompt
- Agent uses Grep/Read directly instead of spawning subagents
- Saves 5-10 turns per complex task
- Build passes:
npm run build
Reactions are currently unavailable