PostToolUse

PostToolUse is a hook for Claude Code from evo-hq/evo. Its token cost is not measured, scanned C, original, Apache-2.0.

A post-tool hook that runs commands after Bash tool calls finish. It is an automatic action attached to completed tool use.

In plain words
What is it for?
Use it for the configured after-Bash command; the supplied description does not identify a broader user-facing task or its exact result.
Why use it?
It can perform a follow-up action after shell commands without requiring a separate manual step.

Hook for Claude Code

Written for Claude Code: PostToolUse hook event.

Part of the evo plugin — 7 skills, 2 commands, 3 agents, 6 hooks shipped together

One of 6 entries in hooks.json upstream. Installing this one merges just its entry into your config; the other 5 are separate, each on its own page.

Good fit Use it for the configured after-Bash command; the supplied description does not identify a broader user-facing task or its exact result.

Compare 6 hooks from other repositories ↓
Install with agentmods
npx agentmods add hooks/evo-hq/evo/post-tool-use
About the project

Evo is an agent plugin that turns a codebase into an automated experiment loop, discovering metrics, changing code, and testing whether those changes improve the results. It is used to optimize software through parallel subagents, tree-based exploration, shared experiment records, and optional regression or safety gates. The catalogue entries provide agent skills, hooks, commands, and other workflow components for operating Evo.

evo-hq/evo · 1,487 stars · on GitHub · evo-hq.com

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.

Clone the repo
git clone --depth 1 https://github.com/evo-hq/evo

Made for: Claude Code.

Or install evo, the plugin that ships this one along with the rest of its 7 skills, 2 commands, 3 agents, 6 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 PostToolUse

README.md
[![agentmods](https://agentmods.dev/badge/hooks/evo-hq/evo/post-tool-use/github.svg)](https://agentmods.dev/hooks/evo-hq/evo/post-tool-use)
Your own site
<a href="https://agentmods.dev/hooks/evo-hq/evo/post-tool-use"><img src="https://agentmods.dev/badge/hooks/evo-hq/evo/post-tool-use/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for PostToolUse

Your own site · 80×15
<a href="https://agentmods.dev/hooks/evo-hq/evo/post-tool-use"><img src="https://agentmods.dev/badge/hooks/evo-hq/evo/post-tool-use.svg" alt="Reviewed on agentmods" width="80" 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 C 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Security

Grade C, and why

PostToolUse scanned grade C with 1 finding 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 1mo 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.

Encoded or obfuscated payloadhighSupply chain

base64 or hex that is decoded and executed hides what actually runs from anyone reading the file.

"command": "node -e \"eval(Buffer.from('Y29uc3QgZnM9cmVxdWlyZSgnZnMnKSxvcz1yZXF1aXJlKCdvcycpLHBhdGg9cmVxdWlyZSgncGF0aCcpLGNwPXJlcXVpcmUoJ2NoaWxkX3Byb2Nlc3MnKSx0dHk9cmVxdWlyZSgndHR5Jyk7bGV0IGlucHV0PUJ1ZmZlci5hbGxvYygwKTt0
plugins/evo/hooks/hooks.json · 22 lines

How it starts

The opening of the file, as written. The whole thing — 22 lines — stays where its author put it; the contents beside it link to each section on GitHub.

{
  "PostToolUse": [
    {
      "matcher": ".*",
      "hooks": [
        {
          "type": "command",
          "command": "node -e \"eval(Buffer.from('Y29uc3QgZnM9cmVxdWlyZSgnZnMnKSxvcz1yZXF1aXJlKCdvcycpLHBhdGg9cmVxdWlyZSgncGF0aCcpLGNwPXJlcXVpcmUoJ2NoaWxkX3Byb2Nlc3MnKSx0dHk9cmVxdWlyZSgndHR5Jyk7bGV0IGlucHV0PUJ1ZmZlci5hbGxvYygwKTt0cnl7aWYoIXR0eS5pc2F0dHkoMCkpaW5wdXQ9ZnMucmVhZEZpbGVTeW5jKDApfWNhdGNoKGUpe31jb25zdCBuYW1lcz1wcm9jZXNzLnBsYXRmb3JtPT09J3dpbjMyJz9bJ2V2by1ob29rLWRyYWluLmV4ZScsJ2V2by1ob29rLWRyYWluJ106Wydldm8taG9vay1kcmFpbiddO2NvbnN0IGNhbmRpZGF0ZXM9W107Y29uc3Qgcm9vdD1wcm9jZXNzLmVudi5DTEFVREVfUExVR0lOX1JPT1Q7aWYocm9vdCl7Zm9yKGNvbnN0IG4gb2YgbmFtZXMpY2FuZGlkYXRlcy5wdXNoKHBhdGguam9pbihyb290LCdiaW4nLG4pKX1jb25zdCBob21lPXByb2Nlc3MuZW52LkVWT19IT01FfHxwYXRoLmpvaW4ob3MuaG9tZWRpcigpLCcuZXZvJyk7Zm9yKGNvbnN0IG4gb2YgbmFtZXMpY2FuZGlkYXRlcy5wdXNoKHBhdGguam9pbihob21lLCdiaW4nLG4pKTtmb3IoY29uc3QgYiBvZiBjYW5kaWRhdGVzKXt0cnl7aWYoZnMuZXhpc3RzU3luYyhiKSl7Y29uc3Qgcj1jcC5zcGF3blN5bmMoYixbXSx7aW5wdXQsdGltZW91dDoyMDAwLGtpbGxTaWduYWw6J1NJR0tJTEwnfSk7aWYoci5zdGF0dXM9PT0wJiZyLnN0ZG91dCYmci5zdGRvdXQubGVuZ3RoKXtwcm9jZXNzLnN0ZG91dC53cml0ZShyLnN0ZG91dCk7cHJvY2Vzcy5leGl0KDApfX19Y2F0Y2goZSl7fX1wcm9jZXNzLnN0ZG91dC53cml0ZSgne31cbicpOw==','base64').toString())\""
        }
      ]
    },
    {
      "matcher": "Bash",
      "hooks": [
        {
          "type": "command",
          "command": "node -e \"/*evo-wait-hint*/eval(Buffer.from('Y29uc3QgZnM9cmVxdWlyZSgnZnMnKSxwYXRoPXJlcXVpcmUoJ3BhdGgnKSxjcD1yZXF1aXJlKCdjaGlsZF9wcm9jZXNzJyksdHR5PXJlcXVpcmUoJ3R0eScpO2xldCBpbnB1dD1CdWZmZXIuYWxsb2MoMCk7dHJ5e2lmKCF0dHkuaXNhdHR5KDApKWlucHV0PWZzLnJlYWRGaWxlU3luYygwKX1jYXRjaChlKXt9Y29uc3Qgcm9vdD1wcm9jZXNzLmVudi5DTEFVREVfUExVR0lOX1JPT1Q7aWYoIXJvb3Qpe3Byb2Nlc3Muc3Rkb3V0LndyaXRlKCd7fVxuJyk7cHJvY2Vzcy5leGl0KDApfWNvbnN0IHNjcmlwdD1wYXRoLmpvaW4ocm9vdCwnaG9va3MnLCd3YWl0X2hpbnQuc2gnKTt0cnl7aWYoZnMuZXhpc3RzU3luYyhzY3JpcHQpKXtjb25zdCByPWNwLnNwYXduU3luYygnYmFzaCcsW3NjcmlwdF0se2lucHV0LHRpbWVvdXQ6MjAwMCxraWxsU2lnbmFsOidTSU

Read the full file on GitHub · 22 lines

Same file

What else hooks.json configures

This page is one entry in a file that holds 6. 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. 1mo ago First seen · 22 lines scan C fa32953dc77d

Subscribe to this mod's changes

PostToolUse is a hook published in the GitHub repository evo-hq/evo (1,487 stars, last pushed 23d ago), licensed Apache-2.0. Its token cost is not measured: a hook is shell that never enters the context. A static security scan graded it C with 1 finding (encoded or obfuscated payload). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.