Getting it into your agent
It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.
git clone --depth 1 https://github.com/CES-Ltd/Luminpx agentmods add commands/ces-ltd/lumi/octo-extractWrote 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.
[](https://agentmods.dev/commands/ces-ltd/lumi/octo-extract)<a href="https://agentmods.dev/commands/ces-ltd/lumi/octo-extract"><img src="https://agentmods.dev/badge/commands/ces-ltd/lumi/octo-extract/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.
<a href="https://agentmods.dev/commands/ces-ltd/lumi/octo-extract"><img src="https://agentmods.dev/badge/commands/ces-ltd/lumi/octo-extract.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00026 | $0.11749 |
| Opus 5.5 | $0.00010 | $0.04700 |
| Sonnet 5.5 | $0.00005 | $0.02350 |
| Haiku 4.5 | $0.00003 | $0.01175 |
Grade A, and why
octo-extract 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 3mo 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.
This is a copy
86% identical to octo-extract — 57 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.
How it starts
The opening of the file, as written. The whole thing — 1,529 lines — stays where its author put it; the contents beside it link to each section on GitHub.
/octo:extract - Design System & Product Reverse-Engineering
Your first output line MUST be: 🐙 Octopus Extract
🤖 INSTRUCTIONS FOR CLAUDE
When the user invokes this command (e.g., /octo:extract <target> or /octo:extract <target>):
Step 0: PDF Page Selection (if target is PDF)
CRITICAL: For PDF files > 10 pages, ask user which pages to extract:
// Check if target is a PDF file
if (target.endsWith('.pdf') && isFile(target)) {
// Use Claude Octopus PDF page selection utility
const pageCount = await getPdfPageCount(target);
if (pageCount > 10) {
console.log(`📄 Large PDF detected: ${pageCount} pages`);
console.log(`Reading all pages may use ${pageCount * 750} tokens (~${Math.ceil(pageCount/133)} API calls).`);
const selection = await AskUserQuestion({
questions: [{
question: `This PDF has ${pageCount} pages. Which pages would you like to extract?`,
header: "PDF Pages",
multiSelect: false,
options: [
{label: "First 10 pages", description: "Quick overview (pages 1-10)"},
{label: "Specific pages", description: "Enter custom page range"},
{label: "All pages", description: `Full document (~${Math.ceil(pageCount/133)} API calls)`}
]
}]
});
let pageParam = "";
if (selection === "First 10 pages") {
pageParam = "1-10";
} else if (selection === "Specific pages") {
pageParam = await askForInput("Enter page range (e.g., 1-5, 10, 15-20):");
}
// else "All pages" - use empty string
// Store for use in extraction phases
target = { path: target, pages: pageParam };
console.log(`✓ Will extract pages: ${pageParam || 'all'}`);
}
}
Example output:
📄 Large PDF detected: 45 pages
Reading all pages may use 33,750 tokens (~34 API calls).
┌─────────────────────────────────────────────────────────┐
│ This PDF has 45 pages. Which pages would you like to │
│ extract? │
│ │
│ ● First 10 pages │
│ Quick overview (pages 1-10) │
│ │
│ ○ Specific pages │
│ Enter custom page range │
│ │
│ ○ All pages │
│ Full document (~34 API calls) │
└─────────────────────────────────────────────────────────┘
✓ Will extract pages: 1-10
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.
- 3mo ago First seen · 1,529 lines · 26 tokens per session scan A 9739005acfac
octo-extract is a command published in the GitHub repository CES-Ltd/Lumi (42 stars, last pushed 6mo ago), licensed MIT. It adds 26 tokens to every session and 11,749 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. It is 86% identical to octo-extract, differing in 57 lines, and is treated as a copy.
octo-extract compared with commands from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| octo-extractCES-Ltd/Lumi | Command | 42 | 6mo ago | MIT | A | 26 | Claude Code |
| designershyftlabs/continuum | Command | 86 | 2d ago | Apache-2.0 | A | 0 | Claude Code |
| checklistgithub/spec-kit | Command | 154k | today | MIT | A | 13 | Claude Code |
| clarifygithub/spec-kit | Command | 154k | today | MIT | A | 27 | Claude Code |
| specifygithub/spec-kit | Command | 154k | today | MIT | A | 13 | Claude Code |
| analyzegithub/spec-kit | Command | 154k | today | MIT | A | 26 | Claude Code |
| convergegithub/spec-kit | Command | 154k | today | MIT | A | 35 | Claude Code |