Skip to content

Remove subagent/Task tool instructions from buildPrompt #162

@xliry

Description

@xliry

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:

  1. Find and remove the SUBAGENTS section (around lines 686-695)
  2. Add a simple rule instead: "Do NOT use the Agent tool or Task tool. Use Grep and Read directly."
  3. 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

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions