dag-patterns

Git DAG Patterns for Multi-Agent Collaboration

Content Preview
# Git DAG Patterns for Multi-Agent Collaboration

## Core Concepts

### Directed Acyclic Graph (DAG)

Git's commit history is a DAG where:
- Each commit points to one or more parents
- No cycles exist (you can't be your own ancestor)
- Branches are just pointers to commit nodes

In AgentHub, the DAG represents all approaches ever tried:
- Base commit = task starting point
- Each agent creates a branch from the base
- Commits on each branch = incremental progress
- Frontier = branch tips with no 
How to Use

Recommended: Install to project (local)

mkdir -p .claude/skills
curl -o .claude/skills/dag-patterns.md \
  https://raw.githubusercontent.com/alirezarezvani/claude-skills/main/engineering/agenthub/references/dag-patterns.md

Skill is scoped to this project only. Add .claude/skills/ to your .gitignoreif you don't want to commit it.

Alternative: Clone full repo

git clone https://github.com/alirezarezvani/claude-skills

Then reference at engineering/agenthub/references/dag-patterns.md

Related Skills