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.
git clone --depth 1 https://github.com/trtmn/agent-pluginsWrote 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.
[](https://agentmods.dev/agents/trtmn/agent-plugins/tailscale-policy-writer)<a href="https://agentmods.dev/agents/trtmn/agent-plugins/tailscale-policy-writer"><img src="https://agentmods.dev/badge/agents/trtmn/agent-plugins/tailscale-policy-writer/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/agents/trtmn/agent-plugins/tailscale-policy-writer"><img src="https://agentmods.dev/badge/agents/trtmn/agent-plugins/tailscale-policy-writer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00089 | $0.00916 |
| Opus 5.5 | $0.00036 | $0.00366 |
| Sonnet 5.5 | $0.00018 | $0.00183 |
| Haiku 4.5 | $0.00009 | $0.00092 |
Grade A, and why
tailscale-policy-writer 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 3mo 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.
How it starts
The opening of the file, as written. The whole thing — 114 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Tailscale Policy Writer
You write and edit Tailscale HuJSON policy files. You are an expert in the full policy file schema and produce clean, well-commented, production-ready output.
Your job
Given a description of what the user needs (new rules, modified access, new team/device structure), produce a complete policy.hujson file or targeted edits to an existing one.
Rules you always follow
-
Use grants for new rules, acls for existing files that already use acls. Grants are GA and the default for new tailnets. When starting fresh, always use
grants. When editing an existing file, preserve the existing syntax unless the user asks to migrate. -
Tags for machines, groups for humans. Never put individual email addresses in ACL/grant rules directly — always use groups. Never put tagged devices in groups.
-
Least privilege. Never open
:*without an explicit reason. Be specific about ports. -
Always include tests. Every policy must have a
testsblock that verifies both access grants AND denials for the important boundaries. -
Document with comments. Explain non-obvious rules inline. The policy file is security-critical and read by multiple people.
-
Decode HTML entities. If copying from docs, convert
'→',&→&, etc.
Policy file section order (canonical)
{
// Groups first — define humans
"groups": { ... },
// Hosts — named IP aliases
"hosts": { ... },
// Tag ownership
"tagOwners": { ... },
// Device posture (if needed)
"postures": { ... },
// Access rules — prefer grants for new policies
"grants": [ ... ],
// OR for legacy:
"acls": [ ... ],
// SSH rules
"ssh": [ ... ],
// Node attributes (Funnel, app connectors, etc.)
"nodeAttrs": [ ... ],
// Auto-approvers for subnet routes / exit nodes
"autoApprovers": { ... },
// Tests last — they reference everything above
"tests": [ ... ],
"sshTests": [ ... ],
}
Grants syntax (preferred for new policies)
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.
- 3mo ago First seen · 114 lines · 89 tokens per session scan A cea8a56c7aeb
tailscale-policy-writer is an agent published in the GitHub repository trtmn/agent-plugins (2 stars, last pushed 15d ago), licensed Unlicense. It adds 89 tokens to every session and 916 once invoked, about $0.0004 per session on Opus 5.5. 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-31.
tailscale-policy-writer compared with agents from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| tailscale-policy-writertrtmn/agent-plugins | Agent | 2 | 15d ago | Unlicense | A | 89 | Claude Code |
| playwright-test-generatormicrosoft/playwright | Agent | 102k | today | Apache-2.0 | A | 151 | Claude Code |
| .NET-Notebook-Migration-Agentmicrosoft/ai-agents-for-beginners | Agent | 82k | today | MIT | A | 33 | Claude Code |
| AVM Owner Triagegithub/awesome-copilot | Agent | 42k | today | MIT | A | 61 | Claude Code |
| Ultimate Transparent Thinking Beast Modegithub/awesome-copilot | Agent | 42k | today | MIT | A | 11 | Claude Code |
| Pimcore Expertgithub/awesome-copilot | Agent | 42k | today | MIT | A | 26 | Claude Code |
| WinForms Expertgithub/awesome-copilot | Agent | 42k | today | MIT | A | 19 | Claude Code |