ClaudeCodeMod

All shelves / Mods / Safety

subagent-wall

By erikdarlingdata

subagent-wall is a Claude Code safety mod by erikdarlingdata.

Holds a subagent after a time limit to git, gh, and Markdown or text writes, and nudges a code-changing subagent that has edited nothing.

Holds a command

Install

The marketplace name is erikdarling.

In Claude Code
/plugin marketplace add erikdarlingdata/claude-plugins
/plugin install subagent-wall@erikdarling
Open the repo

It runs inside the Claude Code process. The side panel is only what the author's README names. Read the repo before you install, or run claude plugin validate on the plugin folder.

Version
1.0.0
License
MIT
Repo stars
27
Last change
2026-10-06

What it can reach

  • Holds a command
  • Sees tool calls
  • Reads usage or context figures

The README says these mods need a Claude Code version that loads plugin hook modules. It sets a wall-clock limit for subagents. After warnMinutes, 45 by default, a subagent is told to finish up. After limitMinutes, 60, it can only run git and gh commands and write .md or .txt files, so it commits, reports, and ends instead of running on. It also nudges a code-changing subagent, of the types in codeAgentTypes, general-purpose by default, that has noEditNudgeK thousands of context tokens, 100, and no edited file, to stop exploring and make the change. The author says the main session is never limited. Set any of the three numbers to 0 to turn that check off, in /config or under pluginConfigs in settings.json.

The marketplace, erikdarling, holds eight Darling Data plugins, open-asks, subagent-fence, and usage-budget among them. Add erikdarlingdata/claude-plugins. This one installs on its own. Holding a subagent that runs too long is why this page files it under safety. subagent-fence-erikdarlingdata, by the same author, refuses a force-push, a push to a protected branch, a git command that skips hooks, and killing a process by name. usage-budget-erikdarlingdata toasts when the 5-hour or 7-day window crosses a percent, and refuses a new subagent past 95% by default. This one limits each subagent by its own clock. Its plugin.json names Erik Darling as its author. In the source, the warning and the nudge are added to a tool result as context, each once per subagent, the context it counts is each step's input with cache reads and writes, and if the wall itself fails, the call goes ahead.

Demo

The subagent-wall section on the author's GitHub page
Screenshot of the author's GitHub page.

What it hooks into

  • agent.spawnWhen a subagent starts
  • turn.stepAt each step of a turn
  • turn.completeWhen a turn ends
  • tool.callAround a tool call, where it can hold one

Read from the on() calls in its hook modules. Open its source under Files to check what each one does.

Files

The author's source, 3 files. They load when you open them.

Facts

Author
erikdarlingdata
Category
Safety
Marketplace
erikdarling
Repo
erikdarlingdata/claude-plugins
Folder
plugins/subagent-wall
Version
1.0.0
License
MIT
Repo stars
27
Last change
2026-10-06
Language
TypeScript
Files
6

Other mods in Safety

public-repo-guardSzotaszHolds a commandAsks in a popup before a push to a public GitHub repo, or before one goes public, when outgoing commits hold keys, emails, local paths, or private repo names.agentic-qe-fleetproffesor-for-testingHolds a commandHolds a command that would delete or overwrite .agentic-qe learning data, and toasts when the guard is set to notify.secrets-guardBioInfoHolds a commandDenies writes of secret files and credential-shaped content, and Bash that would print those secrets.wp-credential-guardnathanonnHolds a commandMasks a WordPress username and application password, refuses a slash command that carries one, and denies Bash when a placeholder is unknown.cockpittsergeytovarovHolds a commandDraws context weather and the plan limits above the prompt, and can stop a dangerous command.taxi-speedcamdevbrother2024Holds a commandStops a risky shell command and asks before it runs, shown as a taxi speed camera.guardrails-mdberget-aiHolds a commandSends each Bash command to a Berget AI scoring model and blocks it when the score says it destroys data, leaks a secret, or breaks your GUARDRAILS.md.pdpa-thaiBoom-VittHolds a commandRefuses a tool call that repeats a placeholder for Thai or other personal data it redacted before sending, and masks that data on screen.subagent-fenceerikdarlingdataHolds a commandRefuses a force-push, a push to a protected branch, a git command that skips hooks, and killing a process by name.launch-codesOneWave-AIHolds a commandHolds a dangerous shell command until you type a one-time code and press LAUNCH, and denies it otherwise.dogmaMarcel-BichHolds a commandRuns, asks about, or blocks git commands and deletes by your DOGMA-PERMISSIONS.md, always denies deleting a protected path, and draws the restricting rules.guard-packatretyak1985Holds a commandHolds file tools and shell moves that leave the project's roots, asks before a production deploy, and redacts secrets in a tool result before Claude reads it.
All 73 in Safety