Pre-Planned Mode

The Executor. Automate repeatable workflows by loading predefined plan templates, substituting variables, and executing complex task sequences with precision.

How It Works

Template Loading

Loads a JSON-based plan definition from your workspace. These files define the exact sequence of tasks to perform.

Variable Substitution

Dynamically injects context into your plans using {{variable}} syntax, allowing one plan to serve many use cases.

Automated Execution

Once loaded and configured, the framework orchestrates the execution of the plan without needing to regenerate the strategy.

The Power of Templates

Pre-Planned Mode bridges the gap between ad-hoc AI assistance and rigid automation scripts. By defining a "Plan" as a JSON file, you can curate high-quality workflows for common tasks like code audits, migration scripts, or documentation generation.

When you invoke this mode, the system analyzes your request to identify which plan file to use and extracts any necessary variables to fill in the blanks.

Key Benefits

  • Consistency: Ensure tasks are performed the same way every time.
  • Efficiency: Skip the planning phase and jump straight to execution.
  • Shareability: Commit plan files to your repo to share workflows with your team.

Example Plan Template

{
  "mode": "Waterfall",
  "plan": [
    {
      "type": "FileSearchTask",
      "query": "TODO",
      "path": "{{target_dir}}"
    },
    {
      "type": "RunCodeTask",
      "code": "generate_report.py --input {{target_dir}}"
    }
  ]
}
User Request:
"Run the todo audit on src/main"
Resulting Variables: { "target_dir": "src/main" }