plugsday
Week 1 · November 2, 2026 / proof-of-green

proof-of-green

PluginPassed every check★ 24 · by @BekirEfeoglu

A Stop hook for Claude Code (and, through an npx installer, Codex CLI). It blocks the agent from ending a turn once when it changed code and no test command passed after the last change. It decides by reading the commands the agent actually ran and their real exit codes.

See it on GitHub

What it can touch

files · read and writenetwork · none foundshell · runs commandssecrets · none found
fileswrite, including ~/.local/state/proof-of-green/, ~/.codex/hooks.json, ~/.codex/config.toml, ~/.claude/plugins/installed_plugins.json, ~/.claude/settings.json, ~/.claude/plugins/data/proof-of-green*/ledgers
networknone found
shellruns commands
secretsnone found

What it actually does

The Claude Code plugin registers hooks on UserPromptSubmit, PostToolUse, PostToolUseFailure, Stop and SubagentStop. Each hook runs `node gate.cjs`, which: - reads the hook payload from stdin; - parses the tool name, file paths and shell command text to decide whether a code file was edited or a test command ran; - appends records to a per-session JSONL ledger in the plugin data folder (or ~/.local/state/proof-of-green, or %LOCALAPPDATA%); - returns {decision: 'block', reason} at Stop when an edit has no later passing test. The block reason is plain text telling the agent to run or fix the tests, or to say plainly why it can't. It blocks at most once and fails open on any error. On Codex, Stop also reads the Codex rollout file named by transcript_path to get exit codes. To place copied or deleted files it may stat or read local files the command named, such as patch files and directories. The optional CLI does three things: - `install codex` copies the gate into the state folder and merges two hook entries into ~/.codex/hooks.json; `uninstall` removes them. - `doctor` reads ~/.codex/hooks.json, ~/.codex/config.toml, ~/.claude/plugins/installed_plugins.json, ~/.claude/settings.json and the error logs. - `status` reads the newest ledger. No network access, no child processes, no credential access, and no hidden or obfuscated content.

What the check found

mediumChanges the agent's instructions or settings

Editing CLAUDE.md, AGENTS.md, memory files, hooks or MCP settings lets a tool keep steering the agent even after it's removed.

README.md:45 This copies the gate into Codex's state folder and adds two hooks (`PostToolUse` and `Stop`) to `~/.codex/hooks.json`. Codex skips new hooks until you trust the

automated rule

mediumChanges the agent's instructions or settings

Editing CLAUDE.md, AGENTS.md, memory files, hooks or MCP settings lets a tool keep steering the agent even after it's removed.

docs/superpowers/specs/2026-10-31-proof-of-green-design.md:141 - Codex: `npx proof-of-green install codex` merges entries into `~/.codex/hooks.json`, keeping the command text byte-identical across releases so Codex trust su

automated rule

Keep an eye on it

This check is of one commit. Watch proof-of-green and we'll email you if a later commit changes what it can touch.

Made this? Add the badge

Checked by Plugsday

[![Checked by Plugsday](https://plugsday.com/badge/bekirefeoglu-proof-of-green.svg)](https://plugsday.com/tools/bekirefeoglu-proof-of-green)

About this check

Checked November 5, 2026 at commit 539f28dd6689, 47 files. Rules for known red flags, then two Claude reviews, one of them told to assume the author is malicious. A later commit hasn't been checked. How checks work.