init

init is a command for coding agents from beerandcodeteam/beer-and-code-harness. It costs 47 tokens per session (1,199 once invoked), scanned A, original, MIT.

A command that checks the status of a project setup chain and runs the next initialization command when required.

In plain words
What is it for?
Use it to progress through project description, user stories, database schema, and project phases during repository setup.
Why use it?
It shows whether the expected planning files exist or are out of date, while leaving the actual writing to the specialized initialization commands.

Command

Part of the bc-harness plugin — 3 commands, 6 agents, 1 hook 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 commands/beerandcodeteam/beer-and-code-harness/init
Clone the repo
git clone --depth 1 https://github.com/beerandcodeteam/beer-and-code-harness

Or install bc-harness, the plugin that ships this one along with the rest of its 3 commands, 6 agents, 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 init

README.md
[![agentmods](https://agentmods.dev/badge/commands/beerandcodeteam/beer-and-code-harness/init.svg)](https://agentmods.dev/commands/beerandcodeteam/beer-and-code-harness/init)
Your own site
<a href="https://agentmods.dev/commands/beerandcodeteam/beer-and-code-harness/init"><img src="https://agentmods.dev/badge/commands/beerandcodeteam/beer-and-code-harness/init.svg" alt="Measured on agentmods" height="20"></a>
Per session 47 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,199 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.00047 $0.01199
Opus 5 $0.00023 $0.00600
Sonnet 5 $0.00009 $0.00240
Haiku 4.5 $0.00005 $0.00120

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

Security

Grade A, and why

init 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 4d 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.

commands/init.md · 81 lines

How it starts

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

init

You are the router for the init spec chain. You inspect the state of the artifacts, report it, and invoke the next command in the chain. You never write or edit any artifact yourself — all authoring lives in the init:* commands you invoke.

The chain

# Artifact Produced by Inputs (stamped on line 3)
1 .spec/init/project-description.md /init:project-description — (head of chain, no stamp)
2 .spec/init/user-stories.md /init:user-stories project-description.md
3 .spec/init/database-schema.md /init:database-schema project-description.md, user-stories.md
4 .spec/init/project-phases.md /init:project-phases project-description.md, user-stories.md, database-schema.md
.spec/init/design/ developer (manual)

.spec/init/design/ is always a manual artifact: the developer creates and populates it; no init:* command writes there. Its absence is never an error. init:project-phases reads it when present — screen and component tasks point at design refs inside it.

Flow

1 — Presence

for f in project-description user-stories database-schema project-phases; do
  test -f ".spec/init/$f.md" && echo "present: $f.md" || echo "absent: $f.md"
done
test -d .spec/init/design && echo "present: design/" || echo "absent: design/"

2 — Freshness

Line 3 of each generated downstream artifact records the inputs it was built from (file@sha256:<12 chars>). Recompute and compare:

# prints nothing when the whole chain is fresh; any output = an input changed after that artifact was generated
for doc in user-stories database-schema project-phases; do
  [ -f ".spec/init/$doc.md" ] || continue
  for pair in $(sed -n '3p' ".spec/init/$doc.md" | grep -oE '[a-z0-9.-]+\.md@sha256:[0-9a-f]{12}'); do
    [ "$(sha256sum ".spec/init/${pair%%@*}" | cut -c1-12)" = "${pair##*:}" ] \
      || echo "stale: $doc.md predates current ${pair%%@*}"
  done
done

A present file whose line 3 carries no stamp predates the staleness mechanism — freshness unknown, report it as such.

Read the full file on GitHub · 81 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. 4d ago First seen · 81 lines · 47 tokens per session scan A 9e76a447ce21

Subscribe to this mod's changes

init is a command published in the GitHub repository beerandcodeteam/beer-and-code-harness (43 stars, last pushed 15d ago), licensed MIT. It adds 47 tokens to every session and 1,199 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.