prime

prime is a command for Claude Code from thrashr888/AllBeads. It costs 6 tokens per session (332 once invoked), scanned A, original, MIT.

A command that loads project information into the agent's working context, including active projects, ready tasks, recent activity, and issue statistics.

In plain words
What is it for?
Use it before complex work, at the start of a new session, after a context switch, or after the conversation has been shortened.
Why use it?
It helps an agent recover the state of a project at the start of a session or after switching projects, so planned work and recent changes are visible.

Command for Claude Code

Written for Claude Code: a Claude Code plugin manifest.

Not installable: its command points at a path on the author’s own machine, so it runs nowhere else. The line is /Users/me/Workspace/AllBeads.

Part of the allbeads plugin — 1 skill, 19 commands, 1 hook shipped together

Good fit Use it before complex work, at the start of a new session, after a context switch, or after the conversation has been shortened.

Compare 6 commands from other repositories ↓
Install

Getting it into your agent

This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.

Claude Code
/plugin marketplace add thrashr888/AllBeads
Claude Code
/plugin install allbeads

Made for: Claude Code.

Or install allbeads, the plugin that ships this one along with the rest of its 1 skill, 19 commands, 1 hook.

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 prime

README.md
[![agentmods](https://agentmods.dev/badge/commands/thrashr888/allbeads/prime.svg)](https://agentmods.dev/commands/thrashr888/allbeads/prime)
Your own site
<a href="https://agentmods.dev/commands/thrashr888/allbeads/prime"><img src="https://agentmods.dev/badge/commands/thrashr888/allbeads/prime.svg" alt="Measured on agentmods" height="20"></a>
Per session 6 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 332 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.00006 $0.00332
Opus 5 $0.00003 $0.00166
Sonnet 5 $0.00001 $0.00066
Haiku 4.5 $0.00001 $0.00033

Measured 7d ago against content hash a561a18c1096, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade A, and why

prime 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 7d 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.

.claude-plugin/commands/prime.md · 65 lines

What it actually says

Load project context into agent memory for effective work.

Usage

ab prime                    # Prime with all contexts
ab prime -C <context>       # Prime specific context

What Gets Loaded

  1. Project Overview

    • Active contexts and paths
    • Repository status (beads, agents)
  2. Ready Work

    • Unblocked beads ready to implement
    • Priority-sorted task list
  3. Recent Activity

    • Recently modified beads
    • Recent commits
  4. Statistics

    • Open/closed/blocked counts
    • Work distribution

When to Use

  • Start of new session
  • After conversation compaction
  • Switching between contexts
  • Before starting complex work

Output

# AllBeads Context Priming

## Active Contexts
- AllBeads: /Users/me/Workspace/AllBeads (174 beads)
- rookery: /Users/me/Workspace/rookery (23 beads)

## Ready Work (5 tasks)
1. ab-xyz [P1] - Implement feature X
2. rk-123 [P2] - Fix bug in auth

## Recent Activity
- 3 beads closed today
- 2 beads created today

## Statistics
- Open: 45, In Progress: 3, Blocked: 2, Closed: 124

See Also

  • /ready - Just show ready work
  • /stats - Just show statistics
  • /list - Full bead listing
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. 7d ago First seen · 65 lines · 6 tokens per session scan A a561a18c1096

Subscribe to this mod's changes

prime is a command published in the GitHub repository thrashr888/AllBeads (8 stars, last pushed 7d ago), licensed MIT. It adds 6 tokens to every session and 332 once invoked, about $0.0000 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-31.