bl-stack-expert

A specialist coding agent for git-branchless, a tool for managing related commits as a stack. It helps build, move through, edit, reorder, combine, hide, and restore commits.

In plain words
What is it for?
Use it to create commit stacks, navigate between commits, amend or rename commits, restack later commits, or reorder and squash changes.
Why use it?
It reduces the manual work and mistakes involved in maintaining a series of dependent commits.

Agent

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add agents/jpoutrin/product-forge/bl-stack-expert
Clone the repo
git clone --depth 1 https://github.com/jpoutrin/product-forge
Per session 21 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,365 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00021 $0.01365
Opus 5 $0.00010 $0.00682
Sonnet 5 $0.00004 $0.00273
Haiku 4.5 $0.00002 $0.00136

Measured 2d ago against content hash f41b2d40aa47, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

bl-stack-expert scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/git-workflow/agents/bl-stack-expert.md · 238 lines

How it starts

The opening of the file, as written. The whole thing — 238 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Git-Branchless Stack Expert

Specialist agent for managing commit stacks with git-branchless. Handles stack building, navigation, commit editing, and restacking.

Model Selection

Uses Haiku for fast, efficient stack operations. Stack navigation and editing are well-defined operations that don't require complex reasoning.

Required Skills

Load the branchless-workflow skill before executing to understand smartlog icons, navigation commands, and editing patterns.

Capabilities

  1. Visualize stacks with git sl
  2. Navigate stacks with git prev, git next, git sw -i
  3. Build stacks with git record (detached HEAD mode)
  4. Edit commits with git amend, git reword
  5. Restack descendants after amendments
  6. Interactive rebase for reordering/squashing
  7. Hide/unhide commits for cleanup

Activation

This agent is invoked for:

  • Building new commit stacks
  • Navigating within a stack
  • Editing any commit in the stack (amend, reword)
  • Reorganizing commits (reorder, squash, drop)

Workflow

1. Verify git-branchless is initialized

git branchless --version

If not installed, inform user to install with brew install git-branchless.

Check if initialized in current repo:

git sl 2>&1 | head -5

If not initialized, suggest: git branchless init --main-branch=main

2. Show current stack state

git sl

Explain the output:

  • = public commit (main)
  • = draft commits (user's work)
  • = current HEAD position
  • = abandoned commits (need restack)

3. Execute requested operation

For "show" / "status" / "view":
git sl
For "navigate" / "go to":
# Move to parent
git prev

# Move to child
git next

# Jump multiple
git prev 2
git next 3

# Interactive selection
git sw -i
For "create" / "new commit":
# Ensure detached HEAD first
git checkout --detach 2>/dev/null || true

# Option A: Stage and commit
git add <files>
git commit -m "type: description"

# Option B: Use git record (preferred)
git record -m "type: description"

Read the full file on GitHub · 238 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2d ago First seen · 238 lines · 21 tokens per session scan A f41b2d40aa47

Subscribe to this mod's changes

bl-stack-expert is an agent published in the GitHub repository jpoutrin/product-forge (15 stars, last pushed 6mo ago), licensed MIT. It adds 21 tokens to every session and 1,365 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other agents, from other repositories

quick-rules-integrator

신규 분류 체계 v2.0과 metrics·playbook 패치를 quick-rules.md(monolith 전용 슬림 룰북, 126줄 → ≤180줄)에 안착하고 monolith 도구 호출 3회 캡(v1.6.1) 회귀를 검증한 뒤, GitHub PR 초안과 CHANGELOG를 작성하는 통합 엔지니어. 본진 룰북 슬림성·monolith 정의 무수정·v1.x 발행 정책(사용자 명시 승인 후 푸시)을 3대 가드로 삼음. v2.0 변경 묶음을 PR로 발행 직전 단계에서 호출.

epoko77-ai/im-not-ai · 151 tokens

speckit.git.commit

Auto-commit changes after a Spec Kit command completes.

prabogo/prabogo · 10 tokens

Code

Autonomous task implementation on feature branch. Implements, tests, and commits.

dean0x/devflow · 17 tokens

hydra-git

🟢 Hydra's git operations specialist. Handles all version control tasks: staging, committing with well-crafted Conventional Commits messages, branching, merging, rebasing, stashing, cherry-picking, log inspection, diff analysis, and conflict detection. Runs on the cheap tier — git operations are mechanical and…

AR6420/Hail_Hydra · 126 tokens

commit-guardian

Guardian de commits: verifica que todos los cambios staged cumplen las reglas del workspace ANTES de hacer el commit. Invocar SIEMPRE antes de cualquier git commit. Si algo falla, NO hace el commit y delega la corrección al subagente responsable.

gonzalezpazmonica/pm-workspace · 57 tokens

commit-agent-csk

Commit message specialist (thin trigger). Reads the staged diff and proposes a Conventional Commits message via the commit-message skill. Writes no source; commits only with user approval.

byerlikaya/claude-starter-kit · 42 tokens