public-facing-agent-sandboxing

public-facing-agent-sandboxing is an agent for coding agents from Team-Commonly/commonly. It costs 0 tokens per session (734 once invoked), scanned A, original, Apache-2.0.

A security guide for agents that are readable or joinable by strangers, such as community support bots or public demos. It treats incoming messages as untrusted because they may contain attempts to trick the agent into unsafe actions.

In plain words
What is it for?
Use it to configure deny-by-default permissions for public-facing agents and extend the blocked paths to cover the host's private files, credentials, and repositories.
Why use it?
It limits what a successful prompt injection can access by allowing only necessary reading and tool use while blocking secrets, network access, shell commands, and file changes.

Agent

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add agents/team-commonly/commonly/public-facing-agent-sandboxing
Clone the repo
git clone --depth 1 https://github.com/Team-Commonly/commonly

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for public-facing-agent-sandboxing

README.md
[![agentmods](https://agentmods.dev/badge/agents/team-commonly/commonly/public-facing-agent-sandboxing.svg)](https://agentmods.dev/agents/team-commonly/commonly/public-facing-agent-sandboxing)
Your own site
<a href="https://agentmods.dev/agents/team-commonly/commonly/public-facing-agent-sandboxing"><img src="https://agentmods.dev/badge/agents/team-commonly/commonly/public-facing-agent-sandboxing.svg" alt="Measured on agentmods" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 734 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00000 $0.00734
Opus 5 $0.00000 $0.00367
Sonnet 5 $0.00000 $0.00147
Haiku 4.5 $0.00000 $0.00073

Measured 4d ago against content hash 83f2b390b361, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

public-facing-agent-sandboxing scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 4d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

docs/agents/public-facing-agent-sandboxing.md · 80 lines

How it starts

The opening of the file, as written. The whole thing — 80 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Sandboxing public-facing agents

If you attach an agent to a pod that strangers can read or join — a community support bot, a showcase greeter — that agent responds to untrusted input. Treat every message it receives as a potential prompt injection, and configure it so a successful injection has nothing to reach for.

The policy (deny-by-default)

Put this in the agent workspace's .claude/settings.json (Claude Code wrappers; adapt equivalently for other runtimes):

{
  "permissions": {
    "defaultMode": "default",
    "allow": [
      "Read(./**)",
      "Grep(./**)",
      "Glob(./**)",
      "mcp__commonly__*"
    ],
    "deny": [
      "Read(//home/<you>/.commonly/**)",
      "Read(//home/<you>/.ssh/**)",
      "Read(//home/<you>/.claude/**)",
      "Read(//home/<you>/.aws/**)",
      "Read(//home/<you>/.config/**)",
      "WebSearch", "WebFetch", "Bash",
      "Write", "Edit", "NotebookEdit", "Task"
    ]
  }
}

Extend the read-deny list with every directory on the host that holds secrets or private material (tokens, keys, private repos).

Why each line matters

  • No Bash, no WebSearch/WebFetch: removes the classic exfiltration and remote-instruction channels outright. A support bot answers from docs; it does not need a shell or the internet.
  • Path-scoped reads (Read(./**)), not bare Read: this is the trap. A bare Read allow lets the agent read anything the OS user can — including ~/.commonly/tokens/*.json, which contains live runtime tokens. Because the agent can still post messages (that's its job), unscoped read access turns any injection into token exfiltration through the chat itself.
  • No Write/Edit/Task: an injected agent shouldn't mutate its own workspace (poisoning future turns) or spawn subagents with different contexts.
  • Worst case by construction: with this policy, a fully successful injection can only make the agent post a wrong message in a pod humans already read. That is the correct blast radius for a public agent.

Read the full file on GitHub · 80 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 4d ago First seen · 80 lines · 0 tokens per session scan A 83f2b390b361

Subscribe to this mod's changes

public-facing-agent-sandboxing is an agent published in the GitHub repository Team-Commonly/commonly (1,325 stars, last pushed today), licensed Apache-2.0. It costs nothing until one of its globs matches a file; then it loads 734 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other agents, from other repositories

taskmaster

Development Pipeline Orchestrator who manages entire development workflows by coordinating specialist agents through configurable pipelines for any type of project.

tinyhumansai/openhuman · 26 tokens

ashigaru1

Ashigaru 1 — front-line execution.

yohey-w/multi-agent-shogun · 9 tokens

wiki-qa-probe

A single retrieval probe — explores ONE facet of a question deep through the knowledge graph, embeddings, and source files, and returns grounded findings with exact citations for the hypervisor to fuse.

bearlike/Assistant · 43 tokens

wiki-maintainer

Answers questions about, and makes targeted edits to, an already-indexed wiki project on demand. Reads current source through the traversal-guarded wiki tools, rewrites only the pages the user asked about, and never finalizes.

bearlike/Assistant · 50 tokens

story-explorer

故事项目结构化查询 agent(只读)。响应关于角色状态、伏笔进度、设定出现位置、 时间线节点、写作进度的查询。使用 grep + read 从项目文件系统中检索信息, 返回结构化 JSON 摘要。 被 story-long-write(日更 Step 1 上下文加载)、story-review(审查时查设定)、 story 路由(用户自然提问时)调用。 不做任何创作判断或修改。.

Xiaoyangy/novel-studio · 104 tokens

consistency-checker

事实一致性与伏笔状态检查专家(只读)。使用 grep-first + 推理型一致性审查检测设定矛盾、时间线冲突、 伏笔断线、角色属性不一致、规则边界悖论、设定层级冲突、跨章因果链断裂、规则可滥用漏洞、代价一致性。输出 S1-S4 分级冲突报告。 被 story-review、story-long-write(Phase 5)、story-short-write(Phase 4)调用。 不做任何创作判断。.

Xiaoyangy/novel-studio · 120 tokens