Skip to main content
hook CX Codex

Devin — Claude Code and Codex hook for reviews and task handoff

Session lifecycle hooks for Claude Code: track start and end, gate stops with a review, and hand tasks off to Devin's cloud.

Apache-2.0 ★ 1,596 updated 2026-10-29

Install into Claude Code · Manually: put the files in place All methods and platforms ↓
.claude/settings.json
Open on GitHub

What devin does

The devin hook wires three interception points into Claude Code: SessionStart, SessionEnd, and Stop. A Node script called session-lifecycle-hook.mjs runs at the start and end of a session, logging the lifecycle. When the agent stops, stop-review-gate-hook.mjs takes over and holds the session for a review.

Timeouts are tight at the start: 5 seconds for SessionStart, 15 for SessionEnd. The stop gate gets 900 seconds, so the agent may sit there a while waiting for Devin to respond.

Setup goes through .claude/settings.json. The scripts live inside the plugin and are referenced via ${CLAUDE_PLUGIN_ROOT}.

What it helps with

  • Track a session from the moment it starts
  • Record session end with the result
  • Hold a stop until the review passes
  • Hand off work to app.devin.ai
  • Fit Devin into a Claude Code workflow

Example prompts for the agent

  • Add the devin hook to the Claude Code settings
  • Start a session and check that the lifecycle hook fires
  • Stop the agent and watch the review gate kick in

How to install devin

Manually: put the files in place

.claude/settings.json

The hooks block: event (PreToolUse, PostToolUse, Stop…) → command. Personal ones go to ~/.claude/settings.json

Step by step, with commands for each platform: Claude Code hooks: what they are, where to configure them, how to block a risky command

Questions about devin

How do I install the devin hook in Claude Code?

Add the hooks to .claude/settings.json. Each hook runs a Node script from ${CLAUDE_PLUGIN_ROOT}/scripts/.

What does the devin hook do?

It tracks session start and end, and runs a review gate on stop via stop-review-gate-hook.mjs.

How long does the stop review take?

The Stop hook has a 900-second timeout. If Devin does not return in time, the command is cut off.

Source text

hooks.json · Apache-2.0
Hooks bundle shipped with the devin plugin for Claude Code.

Devin AI code reviews, delegated tasks, Fusion lead/sidekick workflows, and cloud handoffs to app.devin.ai for Codex, Claude Code, and other coding agents.

Triggers on: SessionStart, SessionEnd, Stop.

```json
{
  "description": "Devin companion lifecycle tracking and optional stop-time review gate.",
  "hooks": {
    "SessionStart": [
      {
        "hooks": [
          {
            "type": "command",
            "command": "node \"${CLAUDE_PLUGIN_ROOT}/scripts/session-lifecycle-hook.mjs\" SessionStart",
            "timeout": 5
          }
        ]
      }
    ],
    "SessionEnd": [
      {
        "hooks": [
          {
            "type": "command",
            "command": "node \"${CLAUDE_PLUGIN_ROOT}/scripts/session-lifecycle-hook.mjs\" SessionEnd",
            "timeout": 15
          }
        ]
      }
    ],
    "Stop": [
      {
        "hooks": [
          {
            "type": "command",
            "command": "node \"${CLAUDE_PLUGIN_ROOT}/scripts/stop-review-gate-hook.mjs\"",
            "timeout": 900
          }
        ]
      }
    ]
  }
}

```

© devin-plugin-cc contributors · Apache-2.0 · hashgraph-online/awesome-codex-plugins

Similar hooks

All hooks for Agent setup: memory, context, orchestration →

From the same set391

The whole set →
homie homie checks tool calls, pauses risky actions for approval, and removes secrets from results the model reads. CX Codex ★ 1,596repo stars codex-goal-progress codex-goal-progress is a Claude Code hook that tracks Codex Goals with checklist progress and token usage. It shows goal status in the interface. CX Codex ★ 1,596repo stars espresso espresso triggers scripts on session launch and prompt submission to keep agent outputs brief while preserving evidence. CX Codex ★ 1,596repo stars development-skills This hook routes development work through three tiers, formats file changes, and sends each change to a staff-reviewer subagent. It supports Claude Code and Codex. CX Codex ★ 1,596repo stars deepseek-minimal-anchor deepseek-minimal-anchor adjusts DeepSeek default reasoning behavior in Claude Code and Codex. It injects working anchors at session start, guides prompts per turn, and logs trajectory reports. CX Codex ★ 1,596repo stars debt-ops The debt-ops hook records deferred tech-debt items in a repository registry, while a review skill ranks them by file churn. Use it to keep postponed cleanup visible during coding. CX Codex ★ 1,596repo stars cc cc — a hook bridge between Claude Code and Codex. It runs reviews, rescue tasks and tracked background jobs from Claude Code inside a Codex session. CX Codex ★ 1,596repo stars babok_analyst babok_analyst is a Claude Code hook bundle that manages the BABOK v3 business analysis agent’s session lifecycle and controls MCP tool execution through approval gates. CX Codex ★ 1,596repo stars

Project sponsors

Companies that keep this analytics open