Skip to content

feat: add plan mode tool calling - #70

Merged
yottadynamics merged 1 commit into
mainfrom
feature/add-plan-mode-tool-calling
Jun 7, 2026
Merged

yottadynamics merged 1 commit into
mainfrom
feature/add-plan-mode-tool-calling

Conversation

@yottadynamics

Copy link
Copy Markdown
Owner

Summary

This PR adds the ability for the agent to call tools while in plan mode. Previously, plan mode was read-only — the agent could investigate the codebase and write a plan, but couldn't execute any tools. Now the agent can use tools (like read_file, grep, list_dir, Agent, etc.) during plan mode to gather information before presenting the final plan.

Changes

  • Added new enter_plan_mode tool that the agent can call to enter plan mode
  • Modified the agent loop to allow tool execution during plan mode (with restrictions)
  • Updated TUI to render plan mode with tool calling capability
  • Added comprehensive tests for the new plan mode tool calling behavior
  • Updated documentation in docs/tools.md, docs/tui-slash-commands.md, docs/worktrees.md, and README.md

Related issue

Implements the plan mode tool calling feature requested in the roadmap.

How was this tested?

  • Ran go test ./... - all tests pass
  • Ran go vet ./... - clean
  • Added new tests in internal/agent/enter_plan_mode_tool_test.go and internal/tui/cmd_plan_test.go
  • Verified TUI plan mode rendering with internal/tui/cmd_plan_test.go

Checklist

  • go test ./... passes
  • go vet ./... is clean
  • Tests added — new capability ships with tests
  • Docs updated in the same change (relevant docs/ guides)
  • PR is focused on one logical change

@yottadynamics
yottadynamics merged commit be1f64e into main Jun 7, 2026
5 checks passed
@yottadynamics
yottadynamics deleted the feature/add-plan-mode-tool-calling branch June 7, 2026 04:56
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