Skip to content

v1.2.0 — Git Worktree Workflow & Universal Subagent Architecture

Latest

Choose a tag to compare

@jjmartres jjmartres released this 27 Sep 10:35
· 31 commits to main since this release

🚀 Highlights

  • Git Worktree Workflow & Automation: Native support for isolated git worktrees under .worktree/ with full OpenCode session relocation (tools.opencode.session_move), branch status monitoring, PR/MR state integration, and safe automated pruning.
  • Universal Subagent Architecture (mode: all): All 103 agents across all 11 categories now declare mode: all, enabling dual capability: invoke them directly in interactive chat via @mention or delegate them seamlessly to isolated child subagents without execution barriers.
  • Repository-Wide Changelog & Documentation Polish: Introduced standard Keep a Changelog (CHANGELOG.md), updated command references to standard dot notation, and synchronized all agent and command catalogs.

✨ New Features & Capabilities

🌳 Git Worktree Workflow & Session Relocation

  • Unified /worktree Command: Multi-purpose dispatcher for worktree operations (create, list, delete, and clean).
  • /worktree.create:
    • Automatically spins up an isolated worktree under .worktree/<branch-name>.
    • Automatically migrates or copies root .env and environment configurations into the worktree.
    • Dynamically relocates OpenCode's working directory to the target worktree using tools.opencode.session_move.
  • /worktree.list:
    • Lists all active worktrees with relative paths, branch names, commit SHAs, and dirty/clean status.
    • Interrogates GitHub (gh) and GitLab (glab) CLIs to display real-time PR/MR review status (Open, Merged, Closed).
    • Flags merged worktrees ready for safe cleanup.
  • /worktree.delete:
    • Safely deletes worktrees and branches.
    • Automatically checks if the current OpenCode session is inside the worktree being deleted; if so, safely moves the session back to repository root before running git worktree remove and git worktree prune.
    • Supports --merged flag to batch-prune all branches whose pull/merge requests have already merged.
  • Always-on git-worktree Rule: Added shared/.ai-agents/rules/git-worktree.md (and updated docs/RULES.md), mandating worktree isolation for all feature development, hotfixes, and parallel tasks to eliminate branch switching conflicts.
  • Workflow Integration: Updated /commit-and-create-mr and the work-on-ticket skill to adhere to worktree isolation standards.
  • Git Hygiene: Added .worktree/ to root .gitignore.

🤖 Universal Subagent Architecture (mode: all) Across All 103 Agents

  • Updated YAML frontmatter across all 103 agent persona files (shared/.ai-agents/agents/ across categories 00 through 10) to explicitly set mode: all.
  • Resolves OpenCode V2's strict mode segregation:
    • Previously, primary agents were rejected by OpenCode's subagent tool when spawned dynamically.
    • All agents can now be invoked interactively (@mention, /agents, opencode --agent <id>) or dispatched as autonomous subagents into isolated child sessions.

🛠 Refactoring & Documentation

  • Dot Notation Slash Commands: Standardized worktree commands to dot notation (/worktree.create, /worktree.delete, /worktree.list).
  • New CHANGELOG.md: Created root CHANGELOG.md following Keep a Changelog format and semantic versioning.
  • Documentation Synchronization:
    • Synchronized README.md, docs/ARCHITECTURE.md, docs/COMMANDS.md, and docs/RULES.md.
    • Accurately updated repository agent count to 103 and slash command count to 18.
    • Purged deprecated /speckit.model-selector reference from docs/COMMANDS.md.
    • Documented mode: all requirements in CONTRIBUTING.md.

📦 Installation & Upgrade Instructions

Upgrading an Existing Installation

  1. Pull latest changes:

    git pull origin main
    git submodule update --init --recursive
  2. Restow packages and update symlinks:

    make restow
  3. Verify symlink health:

    make status

Clean Installation

git clone --recurse-submodules https://github.com/jjmartres/ai-coding-agents.git
cd ai-coding-agents
make install