exit_plan_mode)This document describes the exit_plan_mode tool for Ollama Code.
Use exit_plan_mode when you are in plan mode and have finished presenting your implementation plan. This tool prompts the user to approve or reject the plan and transitions from planning mode to implementation mode.
The tool is specifically designed for tasks that require planning implementation steps before writing code. It should NOT be used for research or information-gathering tasks.
exit_plan_mode takes one argument:
plan (string, required): The implementation plan you want to present to the user for approval. This should be a concise, markdown-formatted plan describing the implementation steps.exit_plan_mode with Ollama CodeThe Exit Plan Mode tool is part of Ollama Code’s planning workflow. When you’re in plan mode (typically after exploring a codebase and designing an implementation approach), you use this tool to:
The tool will prompt the user with your plan and provide options to:
Usage:
exit_plan_mode(plan="Your detailed implementation plan here...")
Use exit_plan_mode when:
Do NOT use exit_plan_mode for:
exit_plan_mode examplesexit_plan_mode(plan="## Implementation Plan for User Dashboard
### 1. Create Dashboard Components
- Create `UserDashboard.tsx` with main dashboard layout
- Add `DashboardStats.tsx` for displaying user statistics
- Implement `ActivityFeed.tsx` for recent user activities
### 2. Add API Integration
- Create `dashboardApi.ts` for dashboard data fetching
- Add endpoints for user stats and activity data
- Implement error handling and loading states
### 3. Update Routing
- Add dashboard route in `App.tsx`
- Update navigation component with dashboard link
- Add route protection for authenticated users
### 4. Testing and Documentation
- Write unit tests for dashboard components
- Add integration tests for API calls
- Update user documentation with dashboard features
This implementation will take approximately 4-6 hours and requires changes to 8-10 files.")
exit_plan_mode(plan="## Database Layer Refactoring Plan
### Phase 1: Setup and Configuration
- Install and configure TypeORM dependencies
- Create database connection configuration
- Set up entity definitions for existing models
### Phase 2: Migration
- Create migration scripts for existing data
- Implement new repository pattern using TypeORM
- Replace raw SQL queries with TypeORM query builder
### Phase 3: Testing and Validation
- Update all database tests to use TypeORM
- Validate data integrity after migration
- Performance testing to ensure no regressions
This refactoring will modernize our database layer while maintaining backward compatibility.")
After calling exit_plan_mode, the user can respond in several ways:
The tool automatically adjusts the approval mode based on the user’s choice, streamlining the implementation process according to user preferences.
The Exit Plan Mode tool is part of a larger planning workflow:
exit_plan_mode to present plan to userThis workflow ensures thoughtful implementation approaches and gives users control over significant code changes.