Skip to content
Automation
Hook

Hooks

What octo runs automatically, and when. A hook is a command Claude Code fires at a fixed moment, without you asking for it.

Install
$ npx -y skills add nyldn/claude-octopus --agent claude-code

Ships with octo. Installing the plugin gets these hooks.

What fires, and when

PreToolUse

  • Runs provider-routing-validator.sh.

PostToolUse

  • Runs post-tool-dispatch.sh.

SessionStart

Fires once when a session begins, and again after a context compaction. It is where a plugin sets up its environment, or restores state the compaction dropped.

  • Runs export.

TeammateIdle

  • Runs teammate-idle-dispatch.sh.

TaskCompleted

  • Runs task-completed-transition.sh.

ConfigChange

  • Runs config-change-handler.sh.

WorktreeCreate

  • Runs worktree-setup.sh.

WorktreeRemove

  • Runs worktree-teardown.sh.

SubagentStop

  • Runs subagent-result-capture.sh.

InstructionsLoaded

  • Runs instructions-loaded.sh.

PreCompact

  • Runs pre-compact.sh.

SessionEnd

  • Runs session-end.sh.

UserPromptSubmit

Fires before Claude sees each prompt you send. A plugin can use it to inject context, so the same instruction reaches the model every turn instead of only at session start.

  • Runs user-prompt-submit.sh.

StopFailure

  • Runs stop-failure-log.sh.

CwdChanged

  • Runs cwd-changed.sh.

TaskCreated

  • Runs discipline-task-gate.sh.

PostCompact

  • Runs post-compact.sh.

Elicitation

  • Runs elicitation-handler.sh.

ElicitationResult

  • Runs result.

PermissionDenied

  • Runs permission-denied-log.sh.
Read hooks/hooks.json

Where it lives

Showing the source of 6 of 52 scripts. Every one is linked above.

Read the script before you install anything that runs on your machine. This is the one part of a plugin that acts without being asked.

Ships withocto

Every AI model has blind spots. Claude Octopus supports ten external provider integrations — Codex, Gemini, Antigravity CLI, Copilot, Qwen, Ollama, Perplexity, OpenRouter, OpenCode, and Grok — alongside the built-in Claude Code host, with consensus gates that

Get the whole plugin, auto-invoked
Stats
3,921
Stars
12
Views
367
Forks
Active
Maintenance
Shell
Language
MIT
License
1d ago
Last commit
6mo ago
Created

Repo: nyldn/claude-octopus