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
.claude/settings.jsonWhat 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.jsonThe 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