AGENTS.md@packages/chat-gateway/src/guardA
AGENTS.md@packages/chat-gateway/src/guard from blackbelttechnology/pi-agent-dashboard is an AGENTS.md file: the standing instructions coding agents read in that repo.
mdr add blackbelttechnology/pi-agent-dashboard/packages/chat-gateway/src/guard/AGENTS.md@git:20260918.2f0b7e4Pins git:20260918.2f0b7e4 in mdr.lock. Pin the fingerprint instead.
- Audit grade
- A, 14 of 14 checks passed
- Kind
- AGENTS.md file
- Repository
- blackbelttechnology/pi-agent-dashboard
- Path
packages/chat-gateway/src/guard/AGENTS.md- Versions recorded
- 1
- Latest version
- git:20260918.2f0b7e4, committed Sep 18, 2026
- Size
- 1,907 bytes
- Repository stars
- 341
- License
- MIT
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
# DOX — packages/chat-gateway/src/guard
Files in this directory. One row per source file. See change: add-chat-gateway.
| File | Purpose |
|------|---------|
| `policy.ts` | The PURE L3 decision engine. `decideToolCall(toolName, policy)` — DENY-FIRST: explicit `allow` > explicit `approval` > `defaultAction` (default `"deny"`). An unrecognised tool name is denied, so the default fails closed; an empty/non-string name is denied rather than matching loosely. Deliberately NOT gamalan's prompt-injection guard — that shape is arguable out of a decision by model output, whereas pi's `tool_call` return is a hard gate. |
| `index.ts` | The companion pi extension loaded into gateway-SPAWNED sessions ONLY (attached sessions are owner-trusted and never handed it). `createToolCallGuard` returns the `tool_call` handler: allow ⇒ `undefined`, deny ⇒ `{block:true, reason}`, approval ⇒ `ctx.ui.confirm(...)` (which the bridge routes PromptBus → gateway → Discord yes/no). FAIL CLOSED (C3): an unanswered approval, a throwing confirm, or a timer expiry all resolve to BLOCK — never auto-allow. Timers are injectable for tests. Default export is the pi extension entrypoint; `policyFromEnv()` reads the…
…Read the whole file at its exact version.
How to install
mdr add blackbelttechnology/pi-agent-dashboard/packages/chat-gateway/src/guard/AGENTS.md@sha256:3e4af6ec872aac9aThe line at the top of this page pins the label git:20260918.2f0b7e4, 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.
[](https://markdownregistry.com/a/art_bujyugeyjavyoft7)
6 badge image fetches in 30 days. What the badge shows.
Versions
The registry has recorded 1 version of this file, committed on Sep 18, 2026.
Audit of the latest version
- pass: Size between 200 bytes and 200 KB (1907 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
blackbelttechnology/pi-agent-dashboard · 341 stars · license MIT · pushed 2026-11-06 · branch develop
API
GET https://markdownregistry.com/api/v1/artifacts/art_bujyugeyjavyoft7 GET https://markdownregistry.com/api/v1/resolve?ref=blackbelttechnology/pi-agent-dashboard/packages/chat-gateway/src/guard/AGENTS.md GET https://markdownregistry.com/api/v1/blob/3e4af6ec872aac9a96aa731543bd8e315be9ee8873523e8a6c35783f5763208e
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: how to write a good AGENTS.md · AGENTS.md vs CLAUDE.md · which agent file does what.