Skip to content

Develop#236

Merged
Alex793x merged 2 commits into
mainfrom
develop
Dec 26, 2025
Merged

Develop#236
Alex793x merged 2 commits into
mainfrom
develop

Conversation

@Alex793x
Copy link
Copy Markdown
Contributor

No description provided.

Alex Holmberg and others added 2 commits December 26, 2025 17:15
## Plan Mode & Planning Workflow
- Add PlanMode state (Standard/Planning) with Shift+Tab toggle
- Add plan tools: plan_create, plan_next, plan_update, plan_list
- Add plan_menu.rs for interactive post-plan action selection
  - Execute with auto-accept changes
  - Execute with review for each change
  - Modify plan with feedback
- Add plan resumption on startup - shows incomplete plans and suggests "continue"
- Add /plans command to list incomplete plans with progress info
- Update prompts with plan_execution_protocol explaining resumable plans

## Context Overflow Fix ("Input Too Long" Error)
- Fixed critical bug: was compacting empty conversation_history instead of raw_chat_history
- Add estimate_raw_history_tokens() to estimate tokens from rig::Message directly
- Truncate raw_chat_history directly when context too large (10→6→4 messages progressively)
- Add pre-request check to detect large context before hitting API limits
- Add find_most_recent_plan_file() for reliable plan path detection

## Auto-Accept Mode Improvements
- Show full code diff in auto-accept mode (same as confirmation prompts)
- Use render_diff() for existing files, render_new_file() for new files
- Apply to both WriteFileTool and WriteFilesTool

## Rate Limiting Mitigation
- Reduce extended thinking budget from 16000 to 8000 tokens
- Helps avoid API rate limits during heavy tool-use sessions

## New Modules
- src/agent/tools/plan.rs - Plan creation and execution tools
- src/agent/tools/truncation.rs - Output truncation utilities
- src/agent/tools/diagnostics.rs - Diagnostic tools
- src/agent/ui/plan_menu.rs - Plan action menu UI

## Vendor Changes
- Move rig-bedrock from patches/ to vendor/ directory
- Clean up obsolete patch files

## Prompts Updates
- Add is_plan_continuation_query() to detect "continue" requests
- Update plan_execution_protocol with resumption instructions
- Explain that plan_next automatically finds where you left off

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
@Alex793x Alex793x merged commit c37b7a1 into main Dec 26, 2025
Alex793x added a commit that referenced this pull request Mar 28, 2026
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