plan-with-baz

plan-with-baz is a skill for Claude Code from baz-scm/baz-plugin. It costs 70 tokens per session (2,987 once invoked), scanned A, original, MIT.

A planning process for software features or changes that searches an organization’s repositories with Baz, an indexed code-search service. It produces a structured implementation plan for the user to approve before coding starts.

In plain words
What is it for?
Use it to locate related code across repositories, identify affected components, define the work, and prepare an implementation plan.
Why use it?
It reduces the risk of planning from an incomplete view of the codebase and keeps implementation work paused until the approach is accepted.

Skill for Claude Code

Written for Claude Code: disable-model-invocation in frontmatter. Also seen: mentions Claude Code; mentions Codex.

Part of the baz plugin — 4 skills, 4 hooks 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 skills/baz-scm/baz-plugin/plan-with-baz
Any agent
npx skills add baz-scm/baz-plugin --skill plan-with-baz
Clone the repo
git clone --depth 1 https://github.com/baz-scm/baz-plugin

Made for: Claude Code.

Or install baz, the plugin that ships this one along with the rest of its 4 skills, 4 hooks.

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 plan-with-baz

README.md
[![agentmods](https://agentmods.dev/badge/skills/baz-scm/baz-plugin/plan-with-baz.svg)](https://agentmods.dev/skills/baz-scm/baz-plugin/plan-with-baz)
Your own site
<a href="https://agentmods.dev/skills/baz-scm/baz-plugin/plan-with-baz"><img src="https://agentmods.dev/badge/skills/baz-scm/baz-plugin/plan-with-baz.svg" alt="Measured on agentmods" height="20"></a>
Per session 70 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,987 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.1 $0.00070 $0.02987
Opus 5 $0.00035 $0.01494
Sonnet 5 $0.00014 $0.00597
Haiku 4.5 $0.00007 $0.00299

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

Security

Grade A, and why

plan-with-baz 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.

skills/plan-with-baz/SKILL.md · 174 lines

How it starts

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

Plan with Baz

You were invoked explicitly to plan a piece of work using Baz's indexed search. The work to plan is in $ARGUMENTS (if empty, ask the user what they want to plan).

This is a read-only procedure. Do not edit project files, run mutating commands, or start implementing until the user approves the plan. The only write allowed before approval is the plan document itself (see Step 2).

Step 1: Explore with Baz

Load and follow the baz-codebase-exploration skill for every search, read, and planning decision in this run. It is the authoritative source for tool routing, the search budget, the builder-vs-proxy and verify-before-you-assert checks, and the "enumerate an existing peer's registration sites" completeness rule. Invoke it now (via the Skill tool on Claude Code; on Cursor it is already applied as an always-on rule) and treat its rules as binding. This wrapper owns only the wrapper concerns — the plan-document schema and baz session close (Step 2), approval (Step 3), and the upload offer (Step 4).

If for any reason that skill is not in your context, these non-negotiables still apply — but prefer the full skill:

Job Tool
Find which repos are involved repo_search (Baz)
Find code by symbol / regex inside a repo remote_grep (Baz)
Find files by name / glob inside a repo remote_file_search (Baz)
Read one file whose path you already know your read tool — local Read if checked out, otherwise your own fetch
  • All searching goes through Baz — never list, walk, or grep a repo with your read or shell tool. Recursive tree fetches or ls/find to "look around" are searches; route them through remote_file_search / remote_grep. Your read tool is only for opening one already-known file path.
  • Search budget (hard): call repo_search once and don't rephrase keywords; after 3 searches on the same (repository, path) pair, read a matched file before searching that pair again; use at most 10 searches total for the whole run — all repos and paths combined, and hopping to a new pair does not reset the count.
  • Adding one more case to an existing set (another enum value, another implementation of an interface, another branch in a dispatcher): before finalizing, run ONE repo-wide search for the identifier of an existing peer already in that set. Its hits enumerate every site the set is wired through — the enum / constant list, factory or lookup maps, switch / match arms, dispatch or handler tables, route tables, and config — and your plan must add the new case at each. Skim that peer's tests too, in case an assertion that your case is absent needs updating.

Read the full file on GitHub · 174 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 · 174 lines · 70 tokens per session scan A a0efdbf7a056

Subscribe to this mod's changes

plan-with-baz is a skill published in the GitHub repository baz-scm/baz-plugin (10 stars, last pushed 9d ago), licensed MIT. It adds 70 tokens to every session and 2,987 once invoked, about $0.0003 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.