Skip to content
youdede

Foreground Process Guard

OperationsHookv1.0.0

Classifies bounded static shell commands and stops common servers, watchers, and follow-mode tools unless a timeout, detached session, or explicit background boundary is present.

Runs on

Scope
$npx @youdede/toolkit add foreground-process-guard --target claude-code

What it does

Block recognizable indefinite development processes launched in the foreground.

When it fires

  • implementation
  • pre-commit

How it behaves

Block recognizable indefinite development processes launched in the foreground.

It does not kill existing processes or manage process supervisors.

It does not block bounded one-shot build and test commands.

It does not execute dynamic shell content to discover its duration.

Configuration

targets/claude-code/foreground-process-guard.mjsnode · read-only

Version
1.0.0
Requires
Shell command guard
Licence
RiskThis automatic gate blocks recognizable indefinite development processes launched in the foreground; a false denial can interrupt legitimate work, but it does not execute the blocked action.
Medium
ModeHow it works: fixed rules, model instructions, or both.
Deterministic only
Behaviour
Enforces, blocks on violation
On failure
Denies and blocks
LatencyThe entrypoint handles one intercepted event to block recognizable indefinite development processes launched in the foreground without deferred work.
Immediate
Data retentionWhether data remains after use and who manages its storage.
Not retained

Often used with

All in Operations