octo-factory

octo-factory is a command for Claude Code from CES-Ltd/Lumi. It costs 13 tokens per session (1,348 once invoked), scanned A, original, MIT.

A command for an autonomous software pipeline that turns a written specification into software through multiple AI providers and review stages.

In plain words
What is it for?
Running the documented factory pipeline when a user invokes `/octo:factory`, including multi-provider dispatch, adversarial review, and quality gates.
Why use it?
It enforces a defined workflow with orchestration and quality checks instead of allowing the command to skip directly to implementation.

Command for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: mentions subagents; names the AskUserQuestion tool; positional $N argument.

Part of the octo plugin — 10 skills, 47 commands shipped together

Good fit Running the documented factory pipeline when a user invokes /octo:factory, including multi-provider dispatch, adversarial review, and quality gates.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/ces-ltd/lumi/octo-factory
View source ↗ CES-Ltd/Lumi
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.

Clone the repo
git clone --depth 1 https://github.com/CES-Ltd/Lumi

Made for: Claude Code.

Or install octo, the plugin that ships this one along with the rest of its 10 skills, 47 commands.

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 octo-factory

README.md
[![agentmods](https://agentmods.dev/badge/commands/ces-ltd/lumi/octo-factory/github.svg)](https://agentmods.dev/commands/ces-ltd/lumi/octo-factory)
Your own site
<a href="https://agentmods.dev/commands/ces-ltd/lumi/octo-factory"><img src="https://agentmods.dev/badge/commands/ces-ltd/lumi/octo-factory/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 octo-factory

Your own site · 80×15
<a href="https://agentmods.dev/commands/ces-ltd/lumi/octo-factory"><img src="https://agentmods.dev/badge/commands/ces-ltd/lumi/octo-factory.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 13 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,348 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.00013 $0.01348
Opus 5 $0.00006 $0.00674
Sonnet 5 $0.00003 $0.00270
Haiku 4.5 $0.00001 $0.00135

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

Security

Grade A, and why

octo-factory 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 12d 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.

resources/seed/octopus/commands/octo-factory.md · 134 lines

How it starts

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

Factory - Dark Factory Mode (v8.25.0)

MANDATORY COMPLIANCE — DO NOT SKIP

When the user invokes /octo:factory, you MUST execute the full autonomous pipeline below. You are PROHIBITED from:

  • Building the software directly without running the spec-driven pipeline
  • Skipping the embrace workflow or quality gates
  • Deciding the spec is "simple enough" to implement without multi-provider synthesis
  • Substituting a single-model implementation for the multi-LLM factory pipeline

The user chose Dark Factory deliberately. They want spec-in, software-out with full multi-AI orchestration, adversarial review, and quality gates. If you catch yourself thinking "I can just implement this directly" — STOP. That is the exact rationalization this instruction prohibits.

EXECUTION MECHANISM — NON-NEGOTIABLE

You MUST execute this command by calling orchestrate.sh as documented below. You are PROHIBITED from:

  • ❌ Doing the work yourself using only Claude-native tools (Agent, Read, Grep, Write)
  • ❌ Using a single Claude subagent instead of multi-provider dispatch via orchestrate.sh
  • ❌ Skipping orchestrate.sh because "I can do this faster directly"

Multi-LLM orchestration is the purpose of this command. If you execute using only Claude, you've violated the command's contract.


INSTRUCTIONS FOR CLAUDE

When the user invokes this command (e.g., /octo:factory --spec <path>):

Step 1: Ask Clarifying Questions

CRITICAL: Before starting the factory pipeline, use the AskUserQuestion tool to gather context:

Ask 3 clarifying questions:

  1. Spec path — Where is the NLSpec file? (provide path, or paste inline)
  2. Satisfaction target — Accept spec default, or override? (Use spec default / Custom target 0.80-0.99)
  3. Cost confirmation — Factory mode runs 20-30 agent calls ($0.50-2.00). Proceed? (Yes / Yes with --ci for non-interactive / No)

After receiving answers: validate spec path exists, set overrides, proceed.

Step 2: Check Provider Availability & Display Banner

Read the full file on GitHub · 134 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. 12d ago First seen · 134 lines · 13 tokens per session scan A 32b3402bfaed

Subscribe to this mod's changes

octo-factory is a command published in the GitHub repository CES-Ltd/Lumi (31 stars, last pushed 4mo ago), licensed MIT. It adds 13 tokens to every session and 1,348 once invoked, about $0.0001 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.