Skip to content

The Orchestrator

Mission Role & Focus

The Orchestrator specializes in parallel workflow efficiency, building background execution worktrees and headless loops so the agent works on branches asynchronously without locking the developer's workspace.

The Target Feature

Add a Markdown Importer utility that reads a local .md file of topic ideas and automatically imports them as backlog topics.

The Agent Friction

Watching the agent analyze code, write files, compile, and run tests locally takes time and locks up your active IDE editor and terminal session, forcing you to wait.

Explorer Setup & Pointers

  • Git Worktrees: Understand git worktrees (git worktree add <path> <branch>). This allows you to check out multiple branches of the same repository in separate local folders.
  • Headless Shell Script: Create a Node.js script or bash script in the root directory (e.g., scripts/headless-agent.js) that:
    1. Creates a new git branch: git checkout -b feature/markdown-importer.
    2. Provisions a new worktree directory inside the workspace (e.g., worktrees/markdown-importer/).
    3. Runs the agent command headlessly in that directory using standard input pipe or CLI execution arguments.
    4. Automatically executes tests (pnpm test) and compiles check scripts in the background.
    5. Commits and pushes the results to GitHub, opening a pull request.
  • Execute Asynchronously: Run the script using background job execution (e.g., adding & in the terminal or running it as a background daemon process) so that your main terminal and IDE remain completely free for other tasks.

Mission Objectives

  1. Configure a basic background git-worktree script to parallelize agent execution.
  2. Execute a headless run to build the markdown importer feature without blocking your workspace.
  3. Inspect the generated pull request and verify that the codebase compiles and tests pass in the worktree.
  4. Discuss in the Show-and-Tell how parallel/headless agent execution scales development throughput.

Released under the MIT License.