You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[TASK] Improve token efficiency with different modes #212
When pressing tab I would like that the CLI is changing mode to be in either: plan, auto-accept or standard (default).
In planning mode, only reading tools will be sent and the system prompt will be adjusted to only plan and present what the agent is going to do.
In auto-accept / yolo-mode the agent will simply ignore all guardrails and will execute whatever it need - no approval modal and require_approval config will completely disregarded.
In standard mode, the agent will respect the config and act as-is, all tools that enabled in the config will be sent over and the system prompt will be more actionable.
IMPORTANT: Don't leave backward compatibility code in the codebase - if we don't need it, delete it.
Acceptance Criteria
There are 3 different modes to run in
The toggle switch is shift+tab
There is an indicator below the input field that show in what mode the agent is currently in
changed the title [-][TASK] Improve token efficiency with different Modes[/-][+][TASK] Improve token efficiency with different modes[/+]on Nov 19, 2025
Activity
[-][TASK] Improve token efficiency with different Modes[/-][+][TASK] Improve token efficiency with different modes[/+]edenreich commentedon Nov 19, 2025
@claude Can you work on this?
claude commentedon Nov 19, 2025
Claude finished @edenreich's task —— View job •
claude/issue-212-20251119-1352• Create PR ➔✅ Successfully implemented agent mode switching feature!
Summary
Implemented three operational modes for the agent that can be toggled with Shift+Tab:
What was implemented
1. Domain Layer
AgentModeenum with three modesApplicationStatewith getter/setter methodsCycleAgentMode()method to cycle through modes2. State Management
StateManagerinterface with mode management methods3. Keybinding
shift+tabto known keys list4. UI Indicator
InputViewto show mode indicator below input field📋 PLAN MODE - Planning only, no execution (Shift+Tab to change)⚡ AUTO-ACCEPT MODE - All tools auto-approved (Shift+Tab to change)5. Mode-Specific Behavior
shouldRequireApproval()always returns false6. Documentation
7. Testing & Quality
Files Changed
internal/domain/state.go- Added AgentMode enum and state managementinternal/domain/interfaces.go- Updated StateManager interfaceinternal/services/state_manager.go- Implemented mode managementinternal/services/agent.go- Added StateManager field, approval bypassinternal/services/agent_utils.go- Mode-specific system promptsinternal/container/container.go- Inject StateManager into AgentServiceinternal/ui/keys/keys.go- Added shift+tab to known keysinternal/ui/keybinding/actions.go- Mode cycling keybindinginternal/ui/components/input_view.go- Mode indicator UIinternal/app/chat.go- Connect StateManager to InputViewREADME.md- Comprehensive documentationtests/mocks/generated/fake_state_manager.go- Regenerated mocksAcceptance Criteria Status
| Branch: claude/issue-212-20251119-1352
chore(release): 0.56.0 [skip ci]
inference-gateway-releaser commentedon Nov 19, 2025
🎉 This issue has been resolved in version 0.56.0 🎉
The release is available on:
v0.56.0Your semantic-release bot 📦🚀