beads

beads is a skill for Claude Code, Codex from thoreinstein/gemini-beads. It costs 38 tokens per session (1,036 once invoked), scanned A, original, MIT.

A Git-backed issue tracker for tasks that span sessions, with dependencies and persistent notes.

In plain words
What is it for?
It helps break down multi-session work, record dependencies and blockers, recover context later, and synchronize issue information through Git.
Why use it?
It preserves task state and context in the repository, so progress and blockers survive conversation limits and can be shared with a team.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: names the TodoWrite tool; mentions AGENTS.md.

Good fit It helps break down multi-session work, record dependencies and blockers, recover context…

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/thoreinstein/gemini-beads/beads
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.

Any agent
npx skills add thoreinstein/gemini-beads --skill beads
Clone the repo
git clone --depth 1 https://github.com/thoreinstein/gemini-beads

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for beads

README.md
[![agentmods](https://agentmods.dev/badge/skills/thoreinstein/gemini-beads/beads.svg)](https://agentmods.dev/skills/thoreinstein/gemini-beads/beads)
Your own site
<a href="https://agentmods.dev/skills/thoreinstein/gemini-beads/beads"><img src="https://agentmods.dev/badge/skills/thoreinstein/gemini-beads/beads.svg" alt="Measured on agentmods" height="20"></a>
Per session 38 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,036 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.00038 $0.01036
Opus 5 $0.00019 $0.00518
Sonnet 5 $0.00008 $0.00207
Haiku 4.5 $0.00004 $0.00104

Measured 6d ago against content hash 85bd0ca46899, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

beads 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 6d 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.

Origin

Copies of this mod

1 near-identical copy found in the catalogue:

  • beads — 88% identical, 20 lines differ
skills/beads/SKILL.md · 98 lines

How it starts

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

Beads - Persistent Task Memory for AI Agents

Graph-based issue tracker that survives conversation compaction. Provides persistent memory for multi-session work with complex dependencies.

bd vs TodoWrite

bd (persistent) TodoWrite (ephemeral)
Multi-session work Single-session tasks
Complex dependencies Linear execution
Survives compaction Conversation-scoped
Git-backed, team sync Local to session

Decision test: "Will I need this context in 2 weeks?" → YES = bd

When to use bd:

  • Work spans multiple sessions or days
  • Tasks have dependencies or blockers
  • Need to survive conversation compaction
  • Exploratory/research work with fuzzy boundaries
  • Collaboration with team (git sync)

When to use TodoWrite:

  • Single-session linear tasks
  • Simple checklist for immediate work
  • All context is in current conversation
  • Will complete within current session

Prerequisites

bd --version  # Requires v0.47.0+
  • bd CLI installed and in PATH
  • Git repository (bd requires git for sync)
  • Initialization: bd init run once (humans do this, not agents)

CLI Reference

Run bd prime for AI-optimized workflow context (auto-loaded by hooks). Run bd <command> --help for specific command usage.

Essential commands: bd ready, bd create, bd show, bd update, bd close, bd sync

Session Protocol

  1. bd ready — Find unblocked work
  2. bd show <id> — Get full context
  3. bd update <id> --claim — Claim and start work atomically
  4. Add notes as you work (critical for compaction survival)
  5. bd close <id> --reason "..." — Complete task
  6. bd sync — Persist to git (always run at session end)

Advanced Features

Feature CLI Resource
Molecules (templates) bd mol --help MOLECULES.md
Chemistry (pour/wisp) bd pour, bd wisp CHEMISTRY_PATTERNS.md
Agent beads bd agent --help AGENTS.md
Async gates bd gate --help ASYNC_GATES.md
Worktrees bd worktree --help WORKTREES.md

Read the full file on GitHub · 98 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. 6d ago First seen · 98 lines · 38 tokens per session scan A 85bd0ca46899

Subscribe to this mod's changes

beads is a skill published in the GitHub repository thoreinstein/gemini-beads (26 stars, last pushed 6mo ago), licensed MIT. It adds 38 tokens to every session and 1,036 once invoked, about $0.0002 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.