Skip to content
Fork Terminal logo

Fork Terminal

Spawn parallel AI agents in new terminal windows for true concurrency

SKILL.md

Full skill instructions

Fork Terminal Skill

Execute multiple AI agents concurrently in separate terminal windows, each with full context and task isolation.

Core Concept

Compute Advantage Equation:

Engineering Output = (# of Parallel Agents) × (Quality of Specs) × (Agent Autonomy)

Forking terminals allows you to multiply your development capacity by running agents in parallel.

Supported Agents

AgentCommand PrefixBest For
Claude Codeclaude codeBackend, architecture, TypeScript, Python, full-stack
Gemini CLIgeminiFrontend, UI/​UX, design, animations, creative work
GPT-4 CLIgpt4Documentation, content, general tasks

Usage Patterns

Single Fork

"fork terminal use claude code to implement backend API from specs/​api-spec.md"

Multiple Parallel Forks

"fork 3 terminals:
 1. Claude Code: Implement database migrations
 2. Gemini: Design and build UI components
 3. Claude Code: Write integration tests"

With Model Override

"fork terminal use claude code with opus model to refactor entire codebase architecture"

Context Handoff

When forking, automatically pass:

  • Current project specification (SPEC_TEMPLATE.md)
  • Recent conversation (last 5-10 messages)
  • Relevant file paths and contents
  • Active task from TodoWrite
  • Project context from CLAUDE.md

Implementation

Uses fork_terminal.py (if available) or manual terminal spawning:

  1. Detect OS (macOS: open, Linux: gnome-terminal or xterm, Windows: cmd)
  2. Spawn new terminal window
  3. Navigate to project directory
  4. Start agent with context file
  5. Monitor via logs in temp/​logs/​fork-{timestamp}.log

Git Worktree Integration

For complete isolation:

# Create isolated environment
git worktree add ../​project-feature-x -b feature/​x

# Fork into worktree
"fork terminal in worktree ../​project-feature-x use claude code to implement feature X"

Each agent works in separate git worktree = zero conflicts.

Monitoring

All forked agents log to:

  • temp/​logs/​fork-{agent}-{timestamp}.log
  • Monitored via hooks system (if enabled)
  • Aggregated in main session

Best Practices

When to Fork:

  • Independent features that can be built in parallel
  • Frontend + Backend simultaneous development
  • Research while implementation continues
  • Testing while new features are being developed

When NOT to Fork:

  • Tasks depend on each other sequentially
  • Single file needs editing by multiple agents (conflicts)
  • Simple tasks that take <5 minutes

Example Workflows

Full-Stack Parallel Development

"I'm building a SaaS dashboard.

Fork 3 terminals:
1. Claude Code: Create Next.js API routes for user management
   - Read: SPEC_TEMPLATE.md section on backend
   - Create: src/​app/​api/​users/​route.ts
   - Implement: CRUD operations with Supabase

2. Gemini: Design dashboard UI components
   - Read: SPEC_TEMPLATE.md section on UI requirements
   - Reference: .ai/​design.json for design system
   - Create: src/​components/​Dashboard.tsx

3. Claude Code: Set up database schema and RLS
   - Read: SPEC_TEMPLATE.md database requirements
   - Create: database/​migrations/​001_initial_schema.sql
   - Enable: RLS on all tables"

Research + Implementation

"fork 2 terminals:
1. Claude Code (research): Research best practices for WebSocket implementation in Next.js 14
   - Use Deep Research skill
   - Save findings to: temp/​research/​websocket-patterns.md

2. Claude Code (implementation): Continue building REST API
   - Complete all CRUD endpoints
   - Add error handling
   - Write tests"

Experimental Approaches

"fork 2 terminals to try different approaches:
1. Claude Code: Implement feature using LangGraph multi-agent pattern
2. Claude Code: Implement same feature using simple sequential processing

Test both, keep the better one."

Integration with Main Session

Forked agents report back by:

  1. Updating shared PROGRESS.md
  2. Committing code to feature branches
  3. Adding entries to directives/​learning.json
  4. Logging to temp/​logs/

Main session monitors forks and can:

  • Check progress via log files
  • Review commits via git log
  • Aggregate results when forks complete

Remember: Forking is about multiplying your capacity. Use it liberally for parallel work!

More skills from majiayu000

xiaohongshu logo
majiayu000/claude-arsenal

xiaohongshu

xiaohongshu

286 148
View
agent-task-conductor logo
majiayu000/claude-skill-registry

agent-task-conductor

Conduct multi-agent task orchestration and workflow coordination.

663 1
View
conductor-setup logo
majiayu000/claude-skill-registry

conductor-setup

Initialize project with Conductor artifacts (product definition,

663 1
View
animation-designer logo
majiayu000/claude-skill-registry

animation-designer

Expert in web animations, transitions, and motion design using Framer Motion and CSS

663 1
View
diagramming logo
majiayu000/claude-skill-registry

diagramming

Creates Mermaid and ASCII diagrams for flowcharts, architecture, ERDs, state machines, mindmaps, and more. Use when user mentions diagram, flowchart, mermaid, ASCII diagram, text diagram, terminal diagram, visualize, C4, mindmap, architecture diagram, sequence diagram, ERD, or needs visual docume...

663 1
View
h3-pg logo
majiayu000/claude-skill-registry-data

h3-pg

PostgreSQL bindings for H3 hexagonal grid system. Use when working with H3 cells in Postgres, including spatial indexing, geometry/geography integration, and raster analysis.

23 1
View
conductor-development logo
majiayu000/claude-skill-registry

conductor-development

Context-Driven Development skill for projects using Conductor. Use this skill when you detect a `conductor/` directory in the project, when working on tasks defined in a `plan.md` file, or when the user asks about tracks, specs, or plans. Automatically applies TDD workflow, tracks task completion...

663 1
View
conductor-status logo
majiayu000/claude-skill-registry

conductor-status

Display project status, active tracks, and next actions

663 1
View
dockerization logo
majiayu000/claude-skill-registry

dockerization

Official Stakpak application containerization standard operating procedure, a step-by-step guidline to properly dockerize applications. This is a rule book curated by the Stakpak Team.

663 1
View

Popular AI tools

Kaiber logo
Video

Kaiber

Generate, edit, and beat-sync AI video with leading models in one workspace.

Paid
View
Vimcal logo
Productivity

Vimcal

The world's fastest calendar for remote work

Free
View

Transform Your Design with AI Designer by ImgCreator.ai

Freemium
View
Akool AI logo
Content & writing

Akool AI

Revolutionizing Video Production with AI-Powered Creativity

Paid
View

Extend an image past the frame and let AI fill the new aspect ratio.

Freemium
View
StarByFace logo
Security

StarByFace

Discover your celebrity doppelgänger with StarByFace!

Free
View
C

ChainClarity explains 700+ crypto whitepapers in plain English, with layered summaries, comparisons, research tools, alerts, and a $4.99 Pro plan.

Freemium
View
Opus Clip logo
Coding & apps

Opus Clip

Opus.ai: Revolutionize Your Web Experience

Free
View