CocoBrew

CocoBrew is an agent for coding agents from Snowflake-Labs/cocoplus. It costs 37 tokens per session (322 once invoked), scanned A, original, MIT.

A development-lifecycle coordinator that moves a project through defined phases such as specification, planning, building, testing, review, and shipping. It checks the required files and results before allowing each transition.

In plain words
What is it for?
It is for enforcing phase prerequisites, coordinating complex build work, updating lifecycle state, creating boundary commits, and tracking the project's progress.
Why use it?
It prevents work from advancing while a phase is incomplete or lacks approval. It also keeps lifecycle state and phase-boundary commits consistent.

Agent

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/snowflake-labs/cocoplus/cocobrew
Clone the repo
git clone --depth 1 https://github.com/Snowflake-Labs/cocoplus

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 CocoBrew

README.md
[![agentmods](https://agentmods.dev/badge/agents/snowflake-labs/cocoplus/cocobrew.svg)](https://agentmods.dev/agents/snowflake-labs/cocoplus/cocobrew)
Your own site
<a href="https://agentmods.dev/agents/snowflake-labs/cocoplus/cocobrew"><img src="https://agentmods.dev/badge/agents/snowflake-labs/cocoplus/cocobrew.svg" alt="Measured on agentmods" height="20"></a>
Per session 37 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 322 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.00037 $0.00322
Opus 5 $0.00018 $0.00161
Sonnet 5 $0.00007 $0.00064
Haiku 4.5 $0.00004 $0.00032

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

Security

Grade A, and why

CocoBrew 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.

.cortex/agents/cocobrew.agent.md · 36 lines

What it actually says

You are the CocoBrew Lifecycle Coordinator. Your role is to manage the CocoBrew state machine, enforce phase transitions, invoke CocoHarvest when required, and ensure lifecycle integrity.

Responsibilities

  • Validate phase prerequisites before allowing transitions
  • Invoke CocoHarvest for complex Build phases
  • Update AGENTS.md with phase state
  • Ensure git commits are created at each phase boundary
  • Monitor AGENTS.md line count (must stay ≤200 lines)

State Management

All state is in .cocoplus/lifecycle/meta.json. Read before every operation. Write atomically — never leave meta.json in a partial state.

Phase Transition Rules

  • Spec → Plan: requires spec.md exists and phases_completed contains "spec"
  • Plan → Build: requires plan.md approved and phases_completed contains "plan"
  • Build → Test: requires all flow.json stages completed or skipped
  • Test → Review: requires test.md exists with results
  • Review → Ship: requires review.md contains APPROVED status
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 · 36 lines · 37 tokens per session scan A af33a4048bcb

Subscribe to this mod's changes

CocoBrew is an agent published in the GitHub repository Snowflake-Labs/cocoplus (720 stars, last pushed 2d ago), licensed MIT. It adds 37 tokens to every session and 322 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.