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.
npx agentmods add instructions/fredysandoval/pi-browser-template/agents-mdgit clone --depth 1 https://github.com/FredySandoval/pi-browser-templateWrote 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/instructions/fredysandoval/pi-browser-template/agents-md)<a href="https://agentmods.dev/instructions/fredysandoval/pi-browser-template/agents-md"><img src="https://agentmods.dev/badge/instructions/fredysandoval/pi-browser-template/agents-md.svg" alt="Measured on agentmods" 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 | $0.01154 | $0.01154 |
| Opus 5 | $0.00577 | $0.00577 |
| Sonnet 5 | $0.00231 | $0.00231 |
| Haiku 4.5 | $0.00115 | $0.00115 |
Grade A, and why
pi-browser-template AGENTS.md 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.
How it starts
The opening of the file, as written. The whole thing — 100 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Project files:
// packages/env-wxt/index.ts
38 export function getDefaultRuntimeEnv(): RuntimeEnv;
57 [unsafe text omitted]
// packages/env-wxt/standard.ts
37 function PathSegments(pointer: string): string[];
41 function ErrorToIssue(error: TLocalizedValidationError): StandardSchemaV1.Issue;
48 export class StandardSchemaProps<Value> implements StandardSchemaV1.Props<Value, Value>, StandardJSONSchemaV1.Props<Value, Value> {
constructor(type: TSchema);
}
71 export class StandardSchema<Type extends TSchema, out Value extends unknown = Static<Type>> implements StandardSchemaV1<Value>, StandardJSONSchemaV1<Value> {
constructor(type: Type);
}
81 export function StandardSchemaV1<const Type extends TSchema>(type: Type): StandardSchema<Type>;
// apps/native-host/src/host.ts
40 function log(message: string): void;
44 function sendNative(message: unknown): void;
52 function sendSocket(socket: net.Socket, message: unknown): void;
56 function getOrCreateToken(): string;
64 function onSocketMessage(socket: net.Socket, authed: { value: boolean }, message: PiToNativeHostMessage): void;
101 function onNativeMessage(message: unknown): void;
165 function shutdown(code: number): void;
// apps/native-host/src/install-native-host-script.ts
14 function chromeExtensionIdFromKey(publicKeyBase64: string): string;
26 function getChromeExtensionId(): string;
38 function loadEnvFiles(): void;
54 function listFromEnv(value: string | undefined, fallback: string[]): string[];
63 function chromeOriginFromId(value: string): string;
71 async function main(): Promise<void>;
// apps/pi/src/define-command.ts
11 export function defineCommand(command: CommandDefinition): CommandDefinition;
15 export function registerCommand(pi: ExtensionAPI, command: CommandDefinition): void;
19 [unsafe text omitted]
// apps/pi/src/host-client.ts
27 export async function connectToHost(options: { socketPath?: string; tokenFile?: string; token?: string } = {}): Promise<void>;
49 export async function openBrowserAlertAndWait(message: string, timeoutMs = getNativeBridgeAlertTimeoutMs()): Promise<AlertResult>;
65 export function disconnectFromHost(): void;
72 function attach(attached: net.Socket): void;
90 function handleLine(line: string): void;
97 function dispatch(message: HostMessage): void;
112 function sendLine(message: PiToHostMessage): void;
117 function rejectAll(error: Error): void;
125 async function readToken(explicitPath?: string): Promise<string>;
133 function isNotFound(error: unknown): boolean;
// apps/pi/src/index.ts
7 export default function browserAlert(pi: ExtensionAPI): void;
// packages/native-messaging-schemas/src/browser-to-native-host.ts
18 export function isBrowserAlertShownMessage(value: unknown): value is BrowserAlertShownMessage;
22 export function isBrowserAlertErrorMessage(value: unknown): value is BrowserAlertErrorMessage;
26 export function isBrowserToNativeHostMessage(value: unknown): value is BrowserToNativeHostMessage;
// packages/native-messaging-schemas/src/message-types.ts
33 export function isAlertShownMessage(value: unknown): value is AlertShownMessage;
37 export function isAlertErrorMessage(value: unknown): value is AlertErrorMessage;
// packages/native-messaging-schemas/src/native-bridge-config.ts
15 export function getNativeBridgeRuntimeDir(env: NativeBridgeEnv = process.env): string;
19 export function getNativeBridgeSocketPath(env: NativeBridgeEnv = process.env, platform = process.platform): string;
28 export function getNativeBridgeTokenPath(env: NativeBridgeEnv = process.env): string;
36 export function getNativeBridgeAlertTimeoutMs(env: NativeBridgeEnv = process.env, fallbackMs = DEFAULT_ALERT_TIMEOUT_MS): number;
// packages/native-messaging-schemas/src/native-host-to-browser.ts
17 export function isNativeHostShowAlertMessage(value: unknown): value is NativeHostShowAlertMessage;
21 export function isNativeHostToBrowserMessage(value: unknown): value is NativeHostToBrowserMessage;
// packages/native-messaging-schemas/src/native-host-to-pi.ts
45 export function isPongMessage(value: unknown): value is PongMessage;
49 export function isAlertShown(value: unknown): value is AlertShown;
53 export function isAlertError(value: unknown): value is AlertError;
57 export function isAlertTimeout(value: unknown): value is AlertTimeout;
61 export function isSessionReplaced(value: unknown): value is SessionReplaced;
65 export function isAlertResult(value: unknown): value is AlertResult;
69 export function isNativeHostToPiMessage(value: unknown): value is NativeHostToPiMessage;
// packages/native-messaging-schemas/src/pi-to-native-host.ts
33 export function isAuthMessage(value: unknown): value is AuthMessage;
37 export function isPingMessage(value: unknown): value is PingMessage;
41 export function isShowAlertRequest(value: unknown): value is ShowAlertRequest;
45 export function isPiToNativeHostMessage(value: unknown): value is PiToNativeHostMessage;
// apps/browser-extension/entrypoints/background/index.ts
17 function connectNative(): void;
50 function sendToNative(message: unknown): NativeSendResult;
73 async function activeTab(): Promise<Browser.tabs.Tab | undefined>;
78 async function handleNativeMessage(port: Browser.runtime.Port, message: unknown): Promise<void>;
// apps/browser-extension/entrypoints/popup/main.ts
3 function setNativeStatus(result: NativeConnectionResult): void;
16 async function refreshNativeStatus(): Promise<void>;
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.
- 4d ago First seen · 100 lines · 1,154 tokens per session scan A e58acbbc793a
pi-browser-template AGENTS.md is an instructions file published in the GitHub repository FredySandoval/pi-browser-template (52 stars, last pushed 3mo ago), licensed MIT. It adds 1,154 tokens to every session, about $0.0058 per session on Opus 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-30.
Other instructions, from other repositories
vscode buildNext.instructions.md
Working notes and architecture documentation for the new esbuild-based build system in build/next. Use when making changes to the new build pipeline (transpile/bundle commands, NLS plugin, source-map handling, resource copying, or self-hosting watch tasks).
spec-kit AGENTS.md
AGENTS.md instructions for github/spec-kit, covering agents.md, about spec kit and specify, quickstart — add a new integration in 5 steps, integration architecture and integrationmanifest — file tracking.
codex AGENTS.md
AGENTS.md instructions for openai/codex, covering rust/codex-rs, the codex-core crate, code review rules, crate api surface and model visible context.
langchain AGENTS.md
AGENTS.md instructions for langchain-ai/langchain, covering global development guidelines for the langchain monorepo, corridor security analysis, project architecture and context, monorepo structure and development tools & commands.
vscode oss-third-party-notices.instructions.md
Instructions for microsoft/vscode, covering vs code oss third-party-notices pipeline, architecture, pipeline flow in ci, applying the notice (cutover) and fallback chain (never fail the build).
next.js AGENTS.md
Instructions for vercel/next.js, covering next.js development guide, codebase structure, monorepo overview, core package: packages/next and other important packages.