I've been evaluating GitButler as a replacement for Graphite in my AI-agent-driven development workflows. Through extensive hands-on testing with multiple AI agents (Claude Code and Droid), we've documented GitButler's capabilities, limitations, and potential for agentic collaboration.
You have access to:
- GITBUTLER.md: Comprehensive CLI reference and workflow patterns
- CLAUDE-GITBUTLER-EXPERIENCE.md: Claude's technical assessment and multi-agent testing insights
- DROID-GITBUTLER-EXPERIENCE.md: Droid's perspective on automation challenges
- GITBUTLER-FEEDBACK.md: Prioritized feedback for GitButler team with identified gaps
Create a comprehensive Canvas document that serves as the definitive guide for using GitButler in agentic development environments.
Objective: Build upon the provided documentation with additional research.
-
Core Concepts Deep Dive
- Virtual branches architecture and internals
- Integration branch (
gitbutler/workspace) mechanics - Stacked branches implementation vs. Graphite
- Operation log (oplog) snapshot system
- How GitButler differs fundamentally from git worktrees
-
CLI Completeness Audit
- Document ALL
butcommands comprehensively (go beyond what we tested) - Identify any commands/flags we missed in our exploration
- Research GitButler's JSON API structure in depth
- Find any undocumented CLI capabilities
- Document ALL
-
Additional Research Areas
- GitButler's conflict resolution mechanisms
- Performance characteristics (large repos, many branches)
- GitButler Cloud integration and API capabilities
- Webhook/automation possibilities
- Recent changelogs and roadmap items relevant to CLI/automation
Objective: Design novel workflows enabled by GitButler's unique architecture.
-
Multi-Agent Collaboration Patterns
- Parallel Feature Development: Multiple agents, separate virtual branches, same workspace
- Review-Driven Development: Agent writes code in branch A, reviewer agent creates fixes in branch B, commits swapped post-review
- Exploration Trees: Parent branch with multiple child branches testing different approaches, easy rollup
- Test-Driven Collaboration: Test-writing agent and implementation agent working in lockstep
- Refactor Sandboxing: Safe refactoring in virtual branch while feature work continues elsewhere
-
Commit Choreography Workflows
- Just-In-Time Commit Organization: Agents commit freely, then use
but rubto reorganize commits by feature/concern - Cross-Agent Commit Handoffs: Agent A starts work, Agent B picks up specific commits mid-flight
- Atomic Feature Assembly: Build features from commits across multiple agents/sessions
- Time-Travel Debugging: Use oplog to bisect agent decisions
- Just-In-Time Commit Organization: Agents commit freely, then use
-
Agent-Specific Use Cases Think through workflows for specialized agent roles:
- Code generation agents
- Test-writing agents
- Documentation agents
- Security/audit agents
- Performance optimization agents
- Migration/refactoring agents
Objective: Design missing tooling and automation to make GitButler production-ready for agents.
-
Critical Automation Gaps (from GITBUTLER-FEEDBACK.md) Design solutions for:
- ID Discovery: Better alternatives to text-parsing
but status - Filename Handling: Workarounds or wrappers for files with dashes/special chars
- JSON Improvements: What a comprehensive JSON API should expose
- Batch Operations: Scripts for bulk commit/file manipulation
- ID Discovery: Better alternatives to text-parsing
-
Agent Helper Tools Propose tools that would dramatically improve agent workflows:
- Smart Wrappers:
but-agentCLI that provides agent-friendly abstractions - Status Parsers: Reliable JSON/structured output extraction
- Conflict Detectors: Pre-flight checks before operations
- Stack Visualizers: ASCII/JSON representations of branch topology
- Oplog Query Tools: Search/filter operation history
- Branch Templates: Pre-configured branch structures for common patterns
- Commit Analyzers: Tools to suggest optimal commit organization
- Smart Wrappers:
-
Integration Opportunities
- GitButler + Linear/Jira integration patterns
- GitButler + CI/CD pipeline orchestration
- GitButler + code review tools (GitHub, GitLab)
- GitButler + MCP server possibilities
- GitButler + agent orchestration platforms
Objective: Create step-by-step guides for common agentic scenarios.
Document complete workflows for:
- Single Agent, Multiple Features (independent virtual branches)
- Dual Agent, Stacked Features (parent-child dependencies)
- Agent Swarm, Single Feature (multiple agents contributing to one branch)
- Agent Code Review Cycle (one agent codes, another reviews/fixes)
- Exploratory Development (trying multiple approaches in parallel)
- Commit Cleanup & Organization (post-development housekeeping)
- Emergency Hotfix (while feature work continues in virtual branches)
- Dependency Updates (isolating updates from feature work)
Each workflow should include:
- Setup steps
- Example commands
- Expected outputs
- Common pitfalls
- Recovery procedures
Objective: Imagine GitButler's evolution for agentic development.
-
Agent-Native Features What would GitButler look like if designed from the ground up for AI agents?
- Semantic commit APIs (intent-based, not ID-based)
- Natural language branch operations
- Agent-to-agent coordination primitives
- Conflict prediction and prevention
- Automatic commit optimization
-
Workflow Innovations Novel possibilities unique to GitButler + agents:
- Speculative Execution: Agents explore multiple solutions in virtual branches, merge winner
- Parallel Test Strategies: Different test approaches in different branches
- Architecture Explorations: Multiple architectural patterns side-by-side
- Performance Bake-Offs: Race different implementations
-
Ecosystem Integrations
- Agent marketplaces with GitButler-native workflows
- IDE plugins for visualizing agent branch activity
- Collaborative coding platforms built on virtual branches
- LLM-native git operations
Organize the Canvas document into clear sections:
- Executive Summary (TL;DR of GitButler for agentic workflows)
- Core Concepts (Phase 1 synthesis)
- Workflow Patterns (Phase 2 & 4 combined)
- Tooling & Automation (Phase 3)
- Vision & Future State (Phase 5)
- Quick Reference (Command cheat sheets, common patterns)
- Appendices (Research links, related tools, comparisons)
- Be specific: Show concrete examples, not abstractions
- Be pragmatic: Note what works today vs. what requires tooling
- Be visual: Include ASCII diagrams of branch structures, workflows
- Be comparative: Reference Graphite, git worktrees, plain git where relevant
- Be critical: Note limitations and workarounds honestly
- Go deep on technical mechanisms (how virtual branches work internally)
- Go wide on workflow possibilities (cover many scenarios)
- Go practical on tooling (propose buildable solutions)
- Go creative on vision (but flag as speculative)
As you create this Canvas, explicitly address:
- What makes GitButler transformative for agent workflows? (vs. incremental improvement)
- What are the 3 killer workflows only possible with GitButler?
- What's the minimum viable tooling needed for production agent use?
- Where does GitButler fall short, and what are workarounds?
- What's the migration path from Graphite to GitButler for agent teams?
- How does GitButler change the agent development mental model?
This Canvas document should enable someone to:
- Understand GitButler's core value for agents immediately
- Implement common agent workflows confidently
- Build missing tooling with clear requirements
- Evaluate GitButler vs. alternatives with full context
- Contribute ideas back to GitButler team
- Onboard new agents to GitButler-based workflows
When doing additional research:
- Prioritize GitButler's official documentation
- Check recent GitHub issues/PRs for undocumented features
- Look for community workflows and patterns
- Cite sources for any new information
- Flag assumptions vs. verified facts
Note: You don't need to focus on the specific tmux coordination or how we controlled multiple agents during testing. Extract the insights and patterns, not the specific testing apparatus.
Go deep. Be thorough. Think creatively. This is the definitive guide.