Skip to content

plan-mode polish: foreground parallelism, entry card, prompt nudges - #24

Merged
yottadynamics merged 1 commit into
mainfrom
feature/enhanse-subagent-prompt
May 16, 2026
Merged

yottadynamics merged 1 commit into
mainfrom
feature/enhanse-subagent-prompt

Conversation

@yottadynamics

@yottadynamics yottadynamics commented May 16, 2026 •

Copy link
Copy Markdown
Owner

Summary

  • Improve plan mode by enabling parallel foreground subagents and updating UI.

Changes

  • Updated docs/subagents.md to clarify foreground subagent parallelism and causal chaining.
  • Modified internal/agent/agent_tool.go to allow concurrent foreground subagents (ParallelSafe true) and added MaxForegroundSubagents cap.
  • Added tests for foreground subagent parallelism and cap enforcement.
  • Updated internal/agent/prompt.go and internal/agent/prompt_test.go to advise preferring run_in_background:false in plan mode and to note large-file read guidance.
  • Updated internal/subagents/tasks.go to track active foreground subagents.
  • Refactored plan mode UI in internal/tui/cmd_plan.go, internal/tui/cmd_plan_test.go, internal/tui/plan_mode_render.go to use card-shaped entries.
  • Adjusted internal/tui/model.go to add blank lines around user message blocks for better scrollback separation.

Test plan

  • Run unit tests to ensure no regressions.
  • Manual verification: enter plan mode and observe the new entry card.
  • Test that spawning more than 8 foreground subagents in one turn returns an error.

Notes for reviewer

  • The changes are focused on plan mode and subagent concurrency.
  • The UI changes are purely presentational and do not affect functionality.

@yottadynamics
yottadynamics merged commit 534a922 into main May 16, 2026
5 checks passed
@yottadynamics
yottadynamics deleted the feature/enhanse-subagent-prompt branch May 16, 2026 05:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant