worktrunk

Worktrunk is a CLI for Git worktree management, designed for parallel AI agent workflows

24 articles 7.5k View on GitHub ↗
24 articles
How Worktrunk's Output Rendering Streams Data Progressively

Discover how Worktrunk renders output progressively using stream() and delayed_stream() for responsive terminal feedback and full command traceability.

internals
Sep 14, 2026
Layering Strategy for Repository Caching in Worktrunk: Two-Layer Architecture Explained

Discover Worktrunk's dual-layer repository caching strategy. Learn how static caches and RepoCache instances accelerate Git data retrieval for efficient CLI commands.

architecture
Sep 14, 2026
How Worktrunk Manages Configuration Deprecation and Migration

Learn how Worktrunk manages configuration deprecation with an idempotent migration engine. It transforms legacy TOML patterns in-memory, deduplicates warnings, and guides users to explicit updates.

migration-guide
Sep 14, 2026
How Worktrunk Ensures Data Safety During File Writes: Atomic Operations Explained

Learn how Worktrunk ensures data safety with atomic file writes. Discover the `write_atomically` and `write_new_atomically` helpers for guaranteed data persistence.

internals
Sep 14, 2026
How Worktrunk Centralizes Signal Handling for Child Processes

Discover how Worktrunk centralizes signal handling for child processes using a two-tier architecture for seamless signal capture and consistent exit code propagation.

internals
Sep 14, 2026
Default Branch Detection in Worktrunk: A Three-Stage Caching Strategy

Discover Worktrunk's efficient default branch detection using a three-stage cache. Learn how it ensures CLI responsiveness even offline or with high latency.

internals
Sep 14, 2026
Worktrunk Network Access Policy: A Local-First Approach to Bounding Network Access

Discover Worktrunk's local-first network access policy. Learn how it bounds network access, treating operations as exceptions for offline Git and explicit remote fetches.

best-practices
Sep 14, 2026
How Worktrunk Handles Network Requests for CI Status and PR Details

Discover how Worktrunk efficiently fetches CI status and PR details by using background CLI commands, caching results, and updating the UI via file-system events without blocking the main thread.

internals
Sep 14, 2026
When Are Background Hook Pipelines Spawned Concurrently in Worktrunk?

Discover when Worktrunk's background hook pipelines spawn concurrently. Learn how post-hooks launch simultaneously after command success for efficient workflow automation.

internals
Sep 14, 2026
How Project-Defined Hooks Are Gated and Approved in Worktrunk

Learn how Worktrunk gates and approves project-defined hooks through a two-step mechanism involving HookPlans and explicit approval before freezing into an immutable ApprovedHookPlan.

how-to-guide
Sep 14, 2026
How Worktrunk Prevents TOCTOU Vulnerabilities in Hook Execution

Learn how Worktrunk prevents TOCTOU vulnerabilities by freezing approved hooks at the approval boundary, ensuring security during operation.

security
Sep 14, 2026
Understanding the Worktrunk Hook Security Model: Gate-by-Approval Protection

Discover the Worktrunk hook security model. Learn how Gate-by-Approval protects against untrusted code execution from cloned repositories, ensuring robust project safety.

security
Sep 14, 2026

Have a question about this repo?

These articles cover the highlights, but your codebase questions are specific. Give your agent direct access to the source. Share this with your agent to get started:

Share the following with your agent to get started:
curl -s "https://instagit.com/install.md"

Works with
Claude Codex Cursor VS Code OpenClaw Any MCP Client

Maintain an open-source project? Get it listed too →