by levi-qiao
Long-horizon agent skill for Claude Code / Cursor / Codex / Grok — multi-task ledger loop (related or not), host-portable (re-send the prompt to continue), clean-context supervisor, verified gates. Markdown library (loop-graph · quest), not a framework.
# Add to your Claude Code skills
git clone https://github.com/levi-qiao/octopus-skillGuides for using ai agents skills like octopus-skill.
octopus-skill is an open-source ai agents skill for AI coding assistants such as Claude Code, Codex CLI, and ChatGPT, built by levi-qiao. Long-horizon agent skill for Claude Code / Cursor / Codex / Grok — multi-task ledger loop (related or not), host-portable (re-send the prompt to continue), clean-context supervisor, verified gates. Markdown library (loop-graph · quest), not a framework. It has 50 GitHub stars.
octopus-skill's catalog security scan is still queued. You can run an instant dependency and prompt-injection check now with the "Scan for vulnerabilities" button above.
Clone the repository with "git clone https://github.com/levi-qiao/octopus-skill" and add it to your Claude Code skills directory (see the Installation section above). octopus-skill ships a SKILL.md manifest, so compatible agents can discover and load it automatically.
octopus-skill is primarily written in Shell. It is open-source under levi-qiao on GitHub, so you can review or fork the full source.
Yes. SkillsLLM lists many other AI Agents skills you can browse and compare side by side. Open the AI Agents category from the badge at the top of this page, or use the Related Skills and comparison links further down to weigh octopus-skill against similar tools.
No comments yet. Be the first to share your thoughts!
Unlocks once the catalog security scan passes (runs nightly).
The deep catalog scan for this skill is still queued. Run an instant dependency check now instead.
octopus has one authoring path: loop-graph. Read and
follow that skill to interview, generate, and deliver the run. Do not execute the
generated runtime nodes from this authoring skill.
Shared reference: lib/methodology.md explains why the graph's
discipline exists. The loop-graph author loads one small per-host reference only after
the host is selected.
Long-horizon agent skill for Claude Code, Cursor, Codex & Grok.
Stop agent drift with a durable ledger, a clean-context supervisor, and verified gates. Queue many long tasks in one loop — even unrelated ones — and keep going after a host switch by re-sending the same prompt against the files.
Design once → compile a durable loop-graph → verify all the way to done.
English · 简体中文
octopus (octopus-skill) is a curated Claude Code skill / agent skill and
cross-host prompt library for long-running / long-horizon agent work —
multi-hour coding, multi-milestone migrations, a queue of long tasks in one
loop (they need not be related), and anything that outlives one context window.
It is graph engineering for agents: specialized roles (executor · supervisor ·
scout) connected through durable, inspectable files — not another orchestration
runtime. Because the scoreboard lives on disk, you can change hosts mid-run:
open the same workspace, re-send the frozen node prompt, and continue.
One durable graph, portable across hosts. For a simple self-contained goal, use the host's normal task or goal directly; octopus starts where durable graph structure adds value.
Reach for octopus when you need any of:
| Approach | Runtime / server? | Independent verifier | Durable scoreboard | Multi-task queue + mid-run host switch |
|---|---|---|---|---|
| LangGraph / CrewAI / AutoGen | Yes | You build it | Usually yes | Framework-bound; often one deployment stack |
| One mega-prompt / single skill | No | No (self-check) | Weak (chat memory) | Weak — progress dies with the session |
| octopus (this repo) | No — Markdown only | Yes (supervisor node) | Yes (ledger.md) |
Yes — files are the run; re-send the prompt |
Also called / related searches: long-running agent skill, prevent agent drift, multi-task agent loop, switch AI coding host mid-task, Claude Code multi-agent supervisor, agent ledger, loop skill, graph engineering for agents, clean-context review.
Long-running agents tend to drift in predictable ways: scope expands, “done” becomes self-reported, tests stop proving the real path, and early decisions disappear from context. octopus moves the safeguards outside the model’s memory:
.octopus/<date-slug>/, not chat
history. Point another host at the same workspace, re-send the compiled node
prompt, and pick up the next open ledger item.It is Markdown, not an orchestration framework: no application runtime, server, or vendor lock-in. Install it as a Claude Code plugin or symlink the skills into Cursor / Codex / Grok.
One loop is a queue, not a single story. Each round still does one ledger item end-to-end (implement → verify → record), but the ledger can hold many long items at once — related milestones or unrelated backlog (the gate-wait backlog pattern is the extreme case: useful work with no dependency on the item under audit). You do not need a new graph every time the next long task is about something else.
The host is swappable; the files are not. A compiled loop-graph run freezes
prompts and state under .octopus/<date-slug>/. To continue elsewhere:
ledger.md / directives.md and continues from the next open item.You are not exporting chat transcripts. Invocation syntax still follows each host’s dialect (per-host references) — only the progress is portable.
| Your task shape | Choose | What you get |
|---|---|---|
| One self-contained goal that fits a normal task/session | Use the host's ordinary task or goal directly | No octopus wrapper or extra prompt layer |
| Many rounds, durable state, non-skippable gates, owner boundaries, host switching, or independent verification | octopus / loop-graph | An executor loop plus a clean-context supervisor, coordinated through durable files |
Rule of thumb: if you do not need the graph, do not use octopus.
Install the plugin from the marketplace:
/plugin marketplace add levi-qiao/octopus-skill
/plugin install octopus@octopus-skill
Install the library and symlink it into supported hosts:
curl -fsSL https://raw.githubusercontent.com/levi-qiao/octopus-skill/main/install.sh | sh
To install from a local clone, run ./install.sh from the repository root.
Invoke /octopus. It detects Codex or Claude Code, inspects the workspace, and asks
only for unresolved owner decisions before compiling the run. Choose direct creation
to have it start both same-host runtime nodes, or prompts-only for manual/cross-host
launch. You can also invoke loop-graph directly.
Authoring and runtime stay separate: the author skill compiles the work but never
executes it. Generated nodes follow their frozen run contract under
.octopus/<date-slug>/.
| Role | Responsibility | Durable edge |
|---|---|---|
| Executor | Works one ledger item, verifies it in the same round, then records the result | Reads and writes ledger.md |
| Supervisor | Re-verifies from its own separate context, checkpoints passing work, and corrects drift | Reads the ledger; writes only the directives edge (live queue + cold archive) |
| Scout (optional) | Researches a bounded question away from the critical path | Writes a findings file read only on reference |
The load-bearing rule is one node = one prompt + one single-writer edge. The ledger has exactly one writer. The supervisor never shares the executor’s context, never edits its scoreboard, and steers only through the one-way directives edge.
For the rationale behind every constraint, read the methodology. For the node and edge model, see the loop-graph model.
| Host | loop-graph execution |
|---|---|
| Codex | ✅ detects the host and directly creates both runtime nodes |
| Claude Code | ✅ detects the host and directly creates two background runtime sessions when capability checks pass |
| Grok | prompts-only execution target |
| Cursor | prompts-only execution target |
| shell / cron | prompts-only execution target |
Authoritative syntax, pacing, context carry, and hooks live in separate per-host references, so authoring loads only the selected host. Mid-run host switches reuse the same durable run directory; only how you start each tick changes.
| Path | Purpose |
|---|---|
Root SKILL.md |
/octopus entrypoint; checks fit and delegates authoring to loop-graph |
| Loop-graph author | Generates executor, supervisor, ledger, and directive artifacts |
lib/ |
Shared methodology |
| [Hos |