stealth-cli: Instructions file for Codex

AGENTS.md

stealth-cli AGENTS.md is an instructions file for Codex, OpenCode from Youhai020616/stealth-cli. It costs 3,000 tokens per session, scanned A, original, MIT.

Project instructions for stealth-cli, a command-line tool and software library for controlling an anti-detection Camoufox browser through Playwright. Playwright is a tool for automating web browsers.

In plain words
What is it for?
Working on stealth-cli's browser control, background daemon, profiles, saved sessions, cookies, proxies, and human-like browser behavior.
Why use it?
They tell the coding assistant where important parts of the project live and warn it to check the actual Camoufox API instead of guessing.

Instructions file for CodexOpenCode

Written for Codex and OpenCode: the file is AGENTS.md. Also seen: mentions AGENTS.md.

This is Youhai020616/stealth-cli's own configuration. It tells Codex and OpenCode how to work on stealth-cli itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything stealth-cli configures →

Reuse

Borrowing it

Nothing to install: this file belongs to Youhai020616/stealth-cli. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/Youhai020616/stealth-cli/main/AGENTS.md
Clone the repo
git clone --depth 1 https://github.com/Youhai020616/stealth-cli

Made for: Codex, OpenCode.

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 stealth-cli AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/youhai020616/stealth-cli/agents-md/github.svg)](https://agentmods.dev/instructions/youhai020616/stealth-cli/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/youhai020616/stealth-cli/agents-md"><img src="https://agentmods.dev/badge/instructions/youhai020616/stealth-cli/agents-md/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.

agentmods 80×15 button for stealth-cli AGENTS.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/youhai020616/stealth-cli/agents-md"><img src="https://agentmods.dev/badge/instructions/youhai020616/stealth-cli/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 3,000 This file is loaded in full into every session.
When invoked 3,000 The same file — it is already loaded in full.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.03000 $0.03000
Opus 5.5 $0.01200 $0.01200
Sonnet 5.5 $0.00600 $0.00600
Haiku 4.5 $0.00300 $0.00300

Measured 2mo ago against content hash abe71ab700ee, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

stealth-cli 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 2mo 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.

AGENTS.md · 197 lines

How it starts

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

stealth-cli — Agent Development Guide

Core reminder

Reason from first principles, end to end. When the evidence does not support a conclusion, say "no basis found" instead of presenting an inference as a finding. Read the current file before editing it; keep changes scoped to the request; prefer an existing repository pattern over a new abstraction.

Product direction

Stealth Browser is a Camoufox cloud browser and hosted-agent platform, matching Browser Use's product capabilities: hand a task to the platform's agent, or create and control a cloud browser through the API and SDK. Browser execution is stealth-cli / SDK — the component this repository ships today, also usable on its own as a CLI, SDK, daemon, and MCP server over one engine, Camoufox. The Agent Core is Penguin Harness (selected, not integrated). Freepost, Travel Agent, and other applications integrate as external consumers of the generic API and SDK. Whether the platform's modules live in this repository or another is not decided; the browser component stays independent either way.

The goal, the interactions the product is judged on, the current implementation status, the requirements, and the scope it declines are the root of the documentation: SPEC.md. Read it before proposing a feature; it settles whether the feature belongs, and at which level.

Hard rules

  1. Camoufox through playwright-core's Firefox driver is the only engine. Never chromium.launch(), never the playwright bundle, never a second engine behind a flag. The product's one claim rests on the engine (decision).
  2. Do not guess the camoufox-js API. It is a small library with little public documentation. Read src/utils/browser-factory.js and src/browser.js for actual usage; the launch call is reproduced in docs/architecture.md.
  3. Nothing the browser component does leaves a footprint in the page. No marker attributes, no globals, no injected panels. Perception runs in Playwright's utility world; if a feature needs to draw or remember something, it does so outside the page or not at all. This is a stated boundary, not a claim that the operation as a whole is undetectable: clicks are synthetic and isTrusted is false, and documents say so where it applies.
  4. Named state is single-writer and fails closed. Leases live in module-private WeakMaps and never on a handle; writes are validated with the branded ownsStateLock; stale locks and cross-process .claim / .tmp / .rollback artifacts are reported with their exact path and never auto-removed (decision).
  5. Every surface tells the same truth. A daemon-mode operation has the same result shape, error code, and state effect as its direct-mode twin, or the difference is documented at the command. Errors cross a transport only through serializeErrorForTransport(); raw causes, credential-bearing URLs, and cleanup internals stay non-enumerable.
  6. The browser component's dependencies are exactly camoufox-js, playwright-core, commander, chalk, ora, and vitest for development. Not playwright, not yargs/meow/oclif, not a second image or DOM library. Adding one is a decision written under docs/decisions/ first. Platform modules, when they exist, carry their own dependency rule.
  7. ESM, plain JavaScript with JSDoc, Commander. Never require(), no TypeScript. New commands go in src/commands/<name>.js exporting register<Name>(program); new extractors in src/extractors/<engine>.js exporting name, canHandle(url), extractResults(page, max).
  8. Every change leaves the living documents true. A change that alters a boundary, a contract, or a default updates docs/architecture.md and the affected guideline in the same commit; one that settles a trade-off worth remembering adds a note under docs/decisions/. A document left describing the old behaviour is part of the defect, not a follow-up.
  9. English is the working language of living documents — code, comments, commit messages, SPEC.md, this file, docs/architecture.md, docs/guidelines/, docs/decisions/, docs/postmortem/, tasks/. Dated records under docs/research/ and docs/design/ may be in the author's language; see the writing rules.

Read the full file on GitHub · 197 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. 2mo ago Changed · +59 lines · +913 tokens per session abe71ab700ee
  2. 2mo ago First seen · 138 lines · 2,087 tokens per session scan A 21d082435214

Subscribe to this mod's changes

stealth-cli AGENTS.md is an instructions file published in the GitHub repository Youhai020616/stealth-cli (45 stars, last pushed 2mo ago), licensed MIT. It adds 3,000 tokens to every session, about $0.0120 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-30.

Related

stealth-cli AGENTS.md compared with instructions from other repositories

stealth-cli AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
stealth-cli AGENTS.mdYouhai020616/stealth-cliInstructions file452mo agoMITA3,000Codex, OpenCode
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA9,719GitHub Copilot
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA5,516GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143ktodayMITA7,461Codex, OpenCode
langchain AGENTS.mdlangchain-ai/langchainInstructions file149ktodayMITA4,680Codex, OpenCode
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA3,093GitHub Copilot
vscode model-prompts.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA2,022GitHub Copilot