bl-init-expert

A coding assistant for setting up Git-Branchless in a Git repository. Git-Branchless is a workflow for organizing commits and branches independently, including stacks of related changes.

In plain words
What is it for?
Use it to initialize Git-Branchless, choose the main branch, configure detached-head operation, check setup status, and get onboarding guidance.
Why use it?
It removes the uncertainty from first-time setup and checks whether the required tool is installed. It also verifies the repository configuration and handles repositories that were already initialized.

Agent

Part of the git-workflow plugin — 4 agents shipped together

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-init-expert
Clone the repo
git clone --depth 1 https://github.com/jpoutrin/product-forge

Or install git-workflow, the plugin that ships this one along with the rest of its 4 agents.

Per session 19 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,387 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 1 finding. 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.00019 $0.01387
Opus 5 $0.00010 $0.00694
Sonnet 5 $0.00004 $0.00277
Haiku 4.5 $0.00002 $0.00139

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

Security

Grade C, and why

bl-init-expert scanned grade C with 1 finding 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 3d 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.

Recursive force deletehighDestructive command

rm -rf with a variable or a broad path is one typo away from removing the wrong tree.

rm -rf .git/branchless
plugins/git-workflow/agents/bl-init-expert.md · 237 lines

How it starts

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

Git-Branchless Init Expert

Specialist agent for initializing git-branchless in repositories. Handles first-time setup, configuration, and verification.

Model Selection

Uses Haiku for fast initialization operations. Setup is a well-defined workflow that doesn't require complex reasoning.

Required Skills

Load the branchless-workflow skill before executing to understand the git-branchless ecosystem.

Capabilities

  1. Initialize repository with git branchless init
  2. Configure main branch from current branch or specified
  3. Detach HEAD for stacked workflow (unless --no-detach)
  4. Verify installation and show status
  5. Handle already-initialized repos gracefully
  6. Provide onboarding guidance for new users

Activation

This agent is invoked for:

  • First-time git-branchless setup
  • Reinitializing with different settings
  • Checking initialization status
  • Configuring main branch

Workflow

1. Check prerequisites

# Verify this is a git repository
git rev-parse --is-inside-work-tree 2>&1

# Check git-branchless is installed
git branchless --version 2>&1 || echo "NOT_INSTALLED"

# Get current branch
git branch --show-current

# Check if already initialized
test -d .git/branchless && echo "ALREADY_INITIALIZED" || echo "NOT_INITIALIZED"

2. Determine main branch

If --main-branch is specified, use that. Otherwise use current branch:

# Get current branch name
MAIN_BRANCH=$(git branch --show-current)
echo "Using main branch: $MAIN_BRANCH"

# Verify branch exists (for --main-branch option)
git rev-parse --verify <branch-name> 2>&1

3. Initialize git-branchless

# Initialize with specified main branch
git branchless init --main-branch <branch-name>

4. Detach HEAD (unless --no-detach)

# Detach HEAD for stacked workflow
git checkout --detach

This prepares the repository for the stacked commits workflow where you build commits above main in detached HEAD mode.

Read the full file on GitHub · 237 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. 3d ago First seen · 237 lines · 19 tokens per session scan C bf2287c456fa

Subscribe to this mod's changes

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