factory

factory is a command for Claude Code from nyldn/claude-octopus. It costs 14 tokens per session (2,259 once invoked), scanned B, a copy of octo-factory, MIT.

A command that runs a predefined, multi-agent factory pipeline from a natural-language specification. It asks for the specification, a quality target, and confirmation before starting.

In plain words
What is it for?
Use it to turn a specification into an orchestrated development workflow with configurable quality and CI options.
Why use it?
It coordinates many agent calls around a written specification instead of relying on one direct implementation pass.

Command for Claude Code

Written for Claude Code: disable-model-invocation in frontmatter. Also seen: mentions subagents; names the AskUserQuestion tool; positional $N argument.

Part of the octo plugin — 70 skills, 106 commands, 10 agents, 18 hooks shipped together

Good fit Use it to turn a specification into an orchestrated development workflow with configurable quality and CI options.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/nyldn/claude-octopus/factory
About the project

Claude Octopus is an orchestration project that sends research, design, and coding tasks to Claude Code and other AI model providers so their results can be compared. Developers use it for multi-model work, disagreement detection, reviews, persistent context, and an optional workflow that moves from discovery through delivery. The catalogue entries are its commands, skills, agents, instructions, hooks, plugins, and settings.

nyldn/claude-octopus · 4,061 stars · on GitHub · reddit.com

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/nyldn/claude-octopus

Made for: Claude Code.

Or install octo, the plugin that ships this one along with the rest of its 70 skills, 106 commands, 10 agents, 18 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 factory

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

Your own site · 80×15
<a href="https://agentmods.dev/commands/nyldn/claude-octopus/factory"><img src="https://agentmods.dev/badge/commands/nyldn/claude-octopus/factory.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 14 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,259 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 2 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin 97% copy Near-identical to another mod 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.00014 $0.02259
Opus 5 $0.00007 $0.01130
Sonnet 5 $0.00003 $0.00452
Haiku 4.5 $0.00001 $0.00226

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

Security

Grade B, and why

factory scanned grade B with 2 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 8d 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.

Reads agent configuration directoriesmediumAgent snooping

.claude/, .codex/, .gemini/ hold keys, settings and other credentials a mod has no legitimate need for.

helper="$(find "${HOME}/.claude/plugins/cache" "${HOME}/Library/Application Support/Claude" "${LOCALAPPDATA:-/dev/null}/Claude" "${XDG_DATA_HOME:-${HOME}/.local/share}/Claude" -maxdepth 8 -path "*/nyldn-plugins/octo/*/sc

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

printf "ollama:%s\n" "$(command -v ollama >/dev/null 2>&1 && curl -sf http://localhost:11434/api/tags >/dev/null 2>&1 && echo available || echo missing)"
Origin

This is a copy

97% identical to octo-factory — 6 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

commands/factory.md · 192 lines

How it starts

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

Factory - Dark Factory Mode (v8.25.0)

INSTRUCTIONS FOR CLAUDE

MANDATORY COMPLIANCE — DO NOT SKIP

When the user explicitly invokes /octo:factory, you MUST execute the orchestrated factory pipeline below. You are PROHIBITED from replacing the pipeline with a direct Claude-only implementation.

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 1.5: Ensure plugin root is resolvable (run via Bash tool)

OCTO_ROOT="${HOME}/.claude-octopus/plugin"
if [[ ! -x "$OCTO_ROOT/scripts/orchestrate.sh" ]]; then
  helper="$OCTO_ROOT/scripts/helpers/ensure-plugin-root.sh"
  if [[ ! -x "$helper" ]]; then
    helper="$(find "${HOME}/.claude/plugins/cache" "${HOME}/Library/Application Support/Claude" "${LOCALAPPDATA:-/dev/null}/Claude" "${XDG_DATA_HOME:-${HOME}/.local/share}/Claude" -maxdepth 8 -path "*/nyldn-plugins/octo/*/scripts/helpers/ensure-plugin-root.sh" -print -quit 2>/dev/null)"
  fi
  [[ -x "$helper" ]] && bash "$helper" >/dev/null 2>&1 || true
fi
test -x "$OCTO_ROOT/scripts/orchestrate.sh" && echo "plugin-root:ok" || echo "plugin-root:missing"

If the output is plugin-root:missing, stop and ask the user to run /octo:setup.

Step 2: Check Provider Availability & Display Banner

Check via bash:

codex_available="Not installed"
if command -v codex >/dev/null 2>&1; then
  codex_available="Available"
fi

MANDATORY: Check provider availability before displaying the banner:

Read the full file on GitHub · 192 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. 8d ago First seen · 192 lines · 14 tokens per session scan B e103142d2fa4

Subscribe to this mod's changes

factory is a command published in the GitHub repository nyldn/claude-octopus (4,061 stars, last pushed yesterday), licensed MIT. It adds 14 tokens to every session and 2,259 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it B with 2 findings (reads agent configuration directories, makes network calls). It is 97% identical to octo-factory, differing in 6 lines, and is treated as a copy.