What is red-green?
red-green is a Claude Code mod by MDmubarak786 that run the project's tests after any turn that edited files, print pass or fail under Claude's answer, and send the failure back to Claude with one /fix command. It is listed under Interface and has no public popularity data yet.
| Type | Claude code mod |
|---|---|
| Author | MDmubarak786 |
| Repository | MDmubarak786/claude-mods |
| Popularity | no public popularity data yet |
| Category | Interface |
| Security | Low risk (84/100) |
| Rank | #3,952 of 5,272 Claude Code mods; #1,642 in Interface |
| License | MIT |
| Last commit | 2026-10-16 |
| Hooks | 4 events |
| Sees | Edit|Write|MultiEdit|NotebookEdit calls |
| Draws on | nothing |
Is red-green safe to install?
red-green scores 84/100 on the MCPMods security check: Low risk. Things to review: starts processes outside the sandbox. It passed 6 of 8 checks.
Mod footprints come from claude plugin validate, which lists every event a mod hooks and every API call it makes without running it.
| Check | Result |
|---|---|
| No network access | Pass |
| Starts processes outside the sandbox | Review |
| Writes no files or config | Pass |
| Doesn't read environment variables | Pass |
| Only sees the events it hooks | Pass |
| Drives Claude (model calls, prompts) | Note |
| Passes claude plugin validate | Pass |
| Has an open-source license | Pass |
API calls in its code
| Call | What it means |
|---|---|
$.clock.after | |
$.command.register | |
$.fs.exists | reads files |
$.fs.read | reads files |
$.process.run | runs processes |
$.prompt.submit | drives Claude |
$.session.root | |
$.store.get | keeps its own state |
$.store.set | keeps its own state |
$.ui.ask | draws interface |
$.ui.log | draws interface |
How do I install red-green?
- Check your Claude Code version. Mods need Claude Code 2.1.287 or later and are on by default.
claude --version
- Read its footprint. This lists every event it hooks and every API call it makes, without running it.
git clone https://github.com/MDmubarak786/claude-mods claude plugin validate ./claude-mods/mods/red-green
- Install it. Run this in your terminal, then /reload-plugins in an open session.
claude plugin marketplace add MDmubarak786/claude-mods && claude plugin install red-green@modhub
Or ask Claude to set it up
Paste this into Claude Code and it installs red-green for you:
Install the "red-green" Claude Code mod from https://github.com/MDmubarak786/claude-mods/tree/main/mods/red-green. Run claude plugin validate on it first and show me what it can access before you enable it.
More from MDmubarak786/claude-mods
This repository has at least 9 Claude Code mods on MCPMods.
- big-output: Keep huge shell output out of the context window. A Bash result over a threshold is saved to a file and Claude gets its (Review before installing)
- bingo: Classic 75-ball bingo, you against Claude. Numbers are called, you mark your card and shout Bingo first; Claude plays a (Low risk)
- circuit-breaker: Stop Claude from retrying the same failing shell command over and over. After N identical failures the next attempt is h (Low risk)
- connect-four: Connect Four against Claude, in a pane. Press a column's digit to drop a disc; Claude answers in half a second at three (Low risk)
- copy-last: Copy Claude's last reply, or its last code block, to the clipboard as clean Markdown with /copy, with no terminal indent (Low risk)
- ding: Play a sound and post a desktop notification when Claude finishes a turn or needs you to answer a question or a permissi (Low risk)
- dino: The Chrome dinosaur runner in a pane. Press w to jump the cacti; the ground speeds up as you go, and your best distance (Low risk)
- fence: Limit which paths Claude may edit in a project with one /fence command. Edits outside the fence are refused with a reaso (Low risk)