reduce-foreground-guard-prompts SKILL.md skillA

reduce-foreground-guard-prompts from karlkfi/claude-bouncer is an agent skill: a SKILL.md folder an AI agent loads when a task calls for it.

Install it, pinned
mdr add karlkfi/claude-bouncer/reduce-foreground-guard-prompts@git:20261004.442c86e

Pins git:20261004.442c86e in mdr.lock. Pin the fingerprint instead.

Audit grade
A, 17 of 17 checks passed
Kind
SKILL.md skill
Repository
karlkfi/claude-bouncer
Path
plugins/foreground-guard/skills/reduce-foreground-guard-prompts/SKILL.md
Versions recorded
2
Latest version
git:20261004.442c86e, committed Oct 4, 2026
First version recorded
Aug 22, 2026
Size
13,075 bytes
Repository stars
13
License
MIT

Explain why foreground-guard is prompting on Bash commands and how to stop the avoidable prompts. Use when the user asks "why am I getting so many foreground-guard prompts", "reduce foreground-guard prompts", "stop the watch/sleep/gh run watch permission prompts", or otherwise wants fewer confirmation prompts from this hook.

Collected from public GitHub. Every version is saved exactly as it was and never changes. Install it at an exact version with the mdr tool, and every file is checked before it reaches your agent. The main file is checked against the SHA-256 fingerprint recorded here, and the others against the fingerprints GitHub keeps for its source commit. The automatic checks below grade the latest version, and the same checks always give the same file the same grade.

What the file says

# Reducing foreground-guard prompts

foreground-guard is a `PreToolUse` hook for `Bash` that guards the session's
**main-thread time**. It blocks in two classes and defers silently on
everything else. The verdict is `deny` by default: the resource at stake is the
session's own time, so every finding carries a rewrite the agent can apply and
nobody has to be woken. `"action": "ask"` on either class turns the denies back
into prompts for someone who wants to watch the guard work.

- **Class A — foreground poll/watch**: a command that parks the main thread on a
  live view — watch/follow modes (`gh run watch`, `gh pr checks --watch`,
  `kubectl logs -f`, `kubectl get -w`, `tail -f`, `journalctl -f`,
  `docker logs -f`, `watch ...`), a `while`/`until`/`for` loop that polls with
  `sleep`, a chained repeat-with-sleep (`cmd; sleep N; cmd`), or a bare `sleep N`
  at/above the floor (default 10s). `run_in_background: true` does **not** exempt
  Class A: a detached poll still holds a task slot for the whole wait and hands
  back output whose freshness the agent can't judge, so it still blocks.
- **Class B — slow command with an inadequate timeout**: a command the repo
…

Read the whole file at its exact version.

How to install

The exact contents, by fingerprint
mdr add karlkfi/claude-bouncer/reduce-foreground-guard-prompts@sha256:20954d4d53574735

The line at the top of this page pins the label git:20261004.442c86e, which is what most people want. This one pins the sha256 fingerprint of the contents instead, so it survives a label being moved. Either way the exact version is written to mdr.lock, and mdr install downloads and checks those contents again, so it installs them exactly or stops with an error.

Badge

mdr badge

[![mdr](https://markdownregistry.com/badge/art_p2oshvbifnvaeazm.svg)](https://markdownregistry.com/a/art_p2oshvbifnvaeazm)

2 badge image fetches in 30 days. What the badge shows.

Versions

The registry has recorded 2 versions of this file, between Aug 22, 2026 and Oct 4, 2026, about one every 44 days.

versioncommittedcommitsizeaudit
git:20261004.442c86e latest2026-10-04 442c86e 13,075 BA view · diff
git:20260822.35bc5212026-08-22 35bc521 12,985 BA view

Audit of the latest version

A  17 of 17 checks passed. Fixed automatic checks with no AI involved, so the same checks give the same answer every run.
  • pass: Frontmatter block present
  • pass: Frontmatter declares a name
  • pass: Frontmatter declares a description
  • pass: Size between 200 bytes and 200 KB (13075 bytes)
  • pass: No zero-width or bidi control characters
  • pass: No instruction hidden inside an HTML comment
  • pass: No link to an exfiltration or paste host
  • pass: No credential-shaped string
  • pass: No instruction to send local credentials anywhere
  • pass: No text hidden with inline styles
  • pass: No prompt-injection phrasing
  • pass: No curl or wget piped into a shell
  • pass: No recursive delete of root, home or parent
  • pass: No instruction to read or print local credentials
  • pass: No base64 blob over 200 characters
  • pass: No link to a raw IP address
  • pass: No script tag

Source

GitHub

karlkfi/claude-bouncer · 13 stars · license MIT · pushed 2026-11-06 · branch main

API

GET https://markdownregistry.com/api/v1/artifacts/art_p2oshvbifnvaeazm
GET https://markdownregistry.com/api/v1/resolve?ref=karlkfi/claude-bouncer/reduce-foreground-guard-prompts
GET https://markdownregistry.com/api/v1/blob/20954d4d53574735c2532d11f0e76dfa74a35958a4e50fa5586cafb6e83075d7

Your AI assistant does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.

Guides: the SKILL.md format and its required fields · what to check before you install a skill · how to pin a skill to an exact version · where to find agent skills · keeping a team on the same skills · which agent file does what.

More from karlkfi/claude-bouncer

CLAUDE.md CLAUDE.md file
karlkfi/claude-bouncer · CLAUDE.md
git:20261006.8304e4f · audit A · 13 stars
CLAUDE.md@plugins/branch-guard CLAUDE.md file
karlkfi/claude-bouncer · plugins/branch-guard/CLAUDE.md
git:20261102.947e0a0 · audit A · 13 stars
AGENTS.md@plugins/exit-status-guard AGENTS.md file
karlkfi/claude-bouncer · plugins/exit-status-guard/AGENTS.md
git:20260822.9b36c53 · audit B · 13 stars
CLAUDE.md@plugins/exit-status-guard CLAUDE.md file
karlkfi/claude-bouncer · plugins/exit-status-guard/CLAUDE.md
git:20260824.627254a · audit A · 13 stars
CLAUDE.md@plugins/foreground-guard CLAUDE.md file
karlkfi/claude-bouncer · plugins/foreground-guard/CLAUDE.md
git:20261004.9e4ee8c · audit A · 13 stars
CLAUDE.md@plugins/prod-guard CLAUDE.md file
karlkfi/claude-bouncer · plugins/prod-guard/CLAUDE.md
git:20261002.c0bf6c4 · audit A · 13 stars
AGENTS.md@plugins/workspace-guard AGENTS.md file
karlkfi/claude-bouncer · plugins/workspace-guard/AGENTS.md
git:20260822.b9e0405 · audit B · 13 stars
CLAUDE.md@plugins/workspace-guard CLAUDE.md file
karlkfi/claude-bouncer · plugins/workspace-guard/CLAUDE.md
git:20260909.80d19b3 · audit A · 13 stars
reduce-workspace-guard-prompts SKILL.md skill
karlkfi/claude-bouncer · plugins/workspace-guard/skills/reduce-workspace-guard-prompts/SKILL.md · Explain why workspace-guard is prompting on Bash file commands and how to stop the avoidable prompts. Use when the user…
git:20261004.442c86e · audit A · 13 stars

Every file in karlkfi/claude-bouncer

Browse by kind, by grade A, or by owner.