main

main is a command for Claude Code from SatoruoGojoo/octopus. It costs 48 tokens per session (356 once invoked), scanned A, original, MIT.

A two-stage workflow for turning a software request into written specifications and then implemented code. It pauses for one approval before carrying out the planned tasks and producing an acceptance report.

In plain words
What is it for?
Use it to clarify requirements, record design decisions and tasks, implement a change, review the result, and prepare it for merging.
Why use it?
It reduces back-and-forth during development by settling decisions before implementation and keeping the work moving until the final merge review.

Command for Claude Code

Written for Claude Code: argument-hint in frontmatter.

Runs only inside its plugin — its command needs a path that Claude Code sets for a plugin’s own hooks and for nothing else. Install the plugin, not this.

Part of the octopus plugin — 9 commands, 7 agents, 1 hook shipped together

Good fit Use it to clarify requirements, record design decisions and tasks, implement a change, review the result, and prepare it for merging.

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 SatoruoGojoo/octopus
Claude Code
/plugin install octopus

Made for: Claude Code.

Or install octopus, the plugin that ships this one along with the rest of its 9 commands, 7 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 main

README.md
[![agentmods](https://agentmods.dev/badge/commands/satoruogojoo/octopus/main/github.svg)](https://agentmods.dev/commands/satoruogojoo/octopus/main)
Your own site
<a href="https://agentmods.dev/commands/satoruogojoo/octopus/main"><img src="https://agentmods.dev/badge/commands/satoruogojoo/octopus/main/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for main

Your own site · 80×15
<a href="https://agentmods.dev/commands/satoruogojoo/octopus/main"><img src="https://agentmods.dev/badge/commands/satoruogojoo/octopus/main.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 48 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 356 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.00048 $0.00356
Opus 5 $0.00024 $0.00178
Sonnet 5 $0.00010 $0.00071
Haiku 4.5 $0.00005 $0.00036

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

Security

Grade A, and why

main 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 9d 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/main.md · 16 lines

What it actually says

這是 Octopus 的 main 管線/octopus:spec/octopus:build 連跑,沒有第三套邏輯。

  1. 執行 spec.md 步驟 0~4——Analyst 釐清反問(發生在起點、使用者還在場);Architect 產完整包(change:proposal+delta+tasks+決策卡,落檔 Draft);呈現後等使用者一個 OK(=決策卡全採建議選項+鎖定;有意見就回話逐項改)
  2. 鎖定後以該 change 名稱執行 build.md 步驟 0~5:全自主(Builder 逐 task 實作+隨行回報→審查→P1 自動修,執行中不等人),直到【唯一硬停點:驗收 merge】

整條管線只有兩個停點:拍板 OK驗收 merge,沒有跳過任一個的模式。

兩段行為規則一律以 ${CLAUDE_PLUGIN_ROOT}/commands/spec.md${CLAUDE_PLUGIN_ROOT}/commands/build.md 為準(先 Read 這兩檔再開始)。

需求:$ARGUMENTS

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. 9d ago First seen · 16 lines · 48 tokens per session scan A 074e21f31f35

Subscribe to this mod's changes

main is a command published in the GitHub repository SatoruoGojoo/octopus (2 stars, last pushed 8d ago), licensed MIT. It adds 48 tokens to every session and 356 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-31.