Stop

Stop is a hook for coding agents from dhslegen/digital-delivery-team. Its token cost is not measured, scanned A, a copy of SessionStart, MIT.

A stop hook that runs a Node.js command when the coding agent finishes responding. It starts a plugin hook bootstrap script from the digital-delivery-team plugin.

In plain words
What is it for?
Use it to trigger the digital-delivery-team plugin's finishing hook after each agent response.
Why use it?
It lets that plugin perform its configured end-of-response processing automatically instead of requiring a separate manual command.

Hook

Part of the digital-delivery-team plugin — 13 skills, 21 commands, 9 agents, 8 hooks shipped together

One of 8 entries in hooks.json — they are configured in one file and arrive together.

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add hooks/dhslegen/digital-delivery-team/stop
Clone the repo
git clone --depth 1 https://github.com/dhslegen/digital-delivery-team

Or install digital-delivery-team, the plugin that ships this one along with the rest of its 13 skills, 21 commands, 9 agents, 8 hooks.

Wrote 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.

agentmods badge for Stop

README.md
[![agentmods](https://agentmods.dev/badge/hooks/dhslegen/digital-delivery-team/stop.svg)](https://agentmods.dev/hooks/dhslegen/digital-delivery-team/stop)
Your own site
<a href="https://agentmods.dev/hooks/dhslegen/digital-delivery-team/stop"><img src="https://agentmods.dev/badge/hooks/dhslegen/digital-delivery-team/stop.svg" alt="Measured on agentmods" height="20"></a>
Per session not measured What this adds to a session before it is invoked.
When invoked not measured Not applicable: nothing here is loaded into a session.
Security scan A 0 findings. Scan, not verified.
Origin 91% copy Near-identical to another mod in the catalogue.
Security

Grade A, and why

Stop 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 3d ago.

A static scan of the commands this hook runs, not an audit. A hook is shell that executes on your machine at the event it names, which is why every command in it is printed with what was found.

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.

Origin

This is a copy

91% identical to SessionStart — 10 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.

hooks/hooks.json · 17 lines

What it actually says

{
  "Stop": [
    {
      "matcher": "*",
      "hooks": [
        {
          "type": "command",
          "command": "node -e 'const p=require(\"path\"),f=require(\"fs\"),o=require(\"os\");const ok=r=>r&&f.existsSync(p.join(r,\"hooks\",\"plugin-hook-bootstrap.js\"));const r=(()=>{const e=process.env.DDT_PLUGIN_ROOT||process.env.CLAUDE_PLUGIN_ROOT;if(ok(e))return p.resolve(e);const h=p.join(o.homedir(),\".claude\");for(const s of [[\"digital-delivery-team\"],[\"digital-delivery-team@digital-delivery-team\"],[\"marketplace\",\"digital-delivery-team\"],[\"marketplaces\",\"digital-delivery-team\"]]){const c=p.join(h,\"plugins\",...s);if(ok(c))return c}try{const ms=p.join(h,\"plugins\",\"marketplaces\");for(const m of f.readdirSync(ms,{withFileTypes:true})){if(!m.isDirectory())continue;const dr=p.join(ms,m.name);if(ok(dr))return dr;const ne=p.join(ms,m.name,\"digital-delivery-team\");if(ok(ne))return ne}}catch{}try{const cb=p.join(h,\"plugins\",\"cache\");for(const pub of f.readdirSync(cb,{withFileTypes:true})){if(!pub.isDirectory())continue;const pd=p.join(cb,pub.name,\"digital-delivery-team\");if(!f.existsSync(pd))continue;for(const v of f.readdirSync(pd,{withFileTypes:true}))if(v.isDirectory()){const c=p.join(pd,v.name);if(ok(c))return c}}}catch{}return null})();if(!r){process.stderr.write(\"[DDT Hook] Plugin root not found; skipping\\n\");process.exit(0)}process.env.DDT_PLUGIN_ROOT=r;process.env.CLAUDE_PLUGIN_ROOT=r;process.argv.splice(1,0,p.join(r,\"hooks\",\"plugin-hook-bootstrap.js\"));require(process.argv[1])' ddt:stop hooks/handlers/stop.js minimal,standard,strict",
          "async": true,
          "timeout": 15
        }
      ],
      "description": "Close open DDT phase and trigger background metrics aggregation",
      "id": "ddt:stop"
    }
  ]
}
Same file

What else hooks.json configures

This page is one entry in a file that holds 8. Installing the file brings all of them; each is measured and scanned on its own page.

Changes

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.

  1. 3d ago First seen · 17 lines scan A 93155112edc6

Subscribe to this mod's changes

Stop is a hook published in the GitHub repository dhslegen/digital-delivery-team (1 stars, last pushed 3mo ago), licensed MIT. Its token cost is not measured: a hook is shell that never enters the context. A static security scan graded it A with 0 findings. It is 91% identical to SessionStart, differing in 10 lines, and is treated as a copy.