tandem-browser: Instructions file for Codex

AGENTS.md

tandem-browser AGENTS.md is an instructions file for Codex, OpenCode from hydro13/tandem-browser. It costs 5,614 tokens per session, scanned A, original, MIT.

A repository instruction file for developers and coding agents working on Tandem Browser, an Electron web browser that lets people and AI browse together.

In plain words
What is it for?
Use it when working in the Tandem Browser repository, especially before modifying its Electron, TypeScript, Express API, or MCP server code.
Why use it?
It gives contributors the project context, architecture rules, testing approach, and commands they should follow before changing code.

Instructions file for CodexOpenCode

Written for Codex and OpenCode: the file is AGENTS.md. Also seen: mentions subagents; mentions AGENTS.md; built for openclaw.

This is hydro13/tandem-browser's own configuration. It tells Codex and OpenCode how to work on tandem-browser 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 tandem-browser configures →

Reuse

Borrowing it

Nothing to install: this file belongs to hydro13/tandem-browser. 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/hydro13/tandem-browser/main/AGENTS.md
Clone the repo
git clone --depth 1 https://github.com/hydro13/tandem-browser

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 tandem-browser AGENTS.md

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/hydro13/tandem-browser/agents-md"><img src="https://agentmods.dev/badge/instructions/hydro13/tandem-browser/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 5,614 This file is loaded in full into every session.
When invoked 5,614 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. ✓ AI security review Sonnet 5 · 7 Sept 2026 📄 Read the review
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.05614 $0.05614
Opus 5.5 $0.02246 $0.02246
Sonnet 5.5 $0.01123 $0.01123
Haiku 4.5 $0.00561 $0.00561

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

Security

Grade A, and why

tandem-browser 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 · 536 lines

How it starts

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

AGENTS.md — Tandem Browser Development Guide

Internal development workflow document. This file exists for local developer and coding-agent operations and is not the primary public project guide.

Who Are You?

You are a developer agent working on Tandem Browser: an Electron browser built for human-AI symbiosis. The user (the human) and Wingman (the AI) browse the web together. You write the code.

Read PROJECT.md first. It contains the full overview of what Tandem is, how it works, and why it exists. Read ARCHITECTURE.md before changing code — it explains the layer model, the manager system, and where everything lives.

The Project

  • Repo: hydro13/tandem-browser (GitHub: hydro13)
  • Stack: Electron + TypeScript + Express.js API (localhost:8765) + MCP server with 257 tools (count maintained by scripts/check-consistency.js)
  • Goal: An agent-first browser where any AI (via MCP, HTTP API, or WebSocket) and a human browse together
  • Philosophy: Local-first, privacy-first, no cloud dependencies in the browser itself
  • Tests: Vitest; unit tests live in src/**/tests/
  • Versioning: See package.json and CHANGELOG.md for the current release and full history

Counts in docs: trust only the automated ones. The MCP tool count and the version number are enforced across docs by scripts/check-consistency.js (part of npm run verify) — those you can trust. Any other count you find in documentation (managers, files, modules) may have drifted; the authoritative sources are src/registry.ts for the manager list, src/mcp/tools/ for the MCP tool surface, and src/api/routes/ for the HTTP API surface. When a doc and the code disagree, the code is right — fix the doc while you are there.

Project Structure

tandem-browser/
├── src/                       # TypeScript application code (main process)
│   ├── main.ts                # Electron main process entry
│   ├── registry.ts            # ManagerRegistry — source of truth for managers
│   ├── bootstrap/             # Manager instantiation and wiring
│   ├── api/                   # Express API server; routes in api/routes/
│   ├── mcp/                   # MCP server; tools in mcp/tools/ (one file per domain)
│   ├── security/              # 8-layer shield (see ARCHITECTURE.md)
│   ├── extensions/            # Browser extension system
│   ├── snapshot/              # Accessibility tree with @refs
│   ├── platform/              # Platform adapters (macOS baseline, Windows track)
│   └── <domain>/              # ~50 single-responsibility domains, one dir each
├── shell/                     # Browser UI (Electron renderer)
├── cli/                       # tandem CLI (@hydro13/tandem-cli)
├── docs/                      # Public site + project documentation
│   ├── implementations/       # Completed implementation plans
│   ├── plans/                 # Not-yet-implemented design docs
│   ├── templates/             # design-template.md, manager-pattern.md
│   ├── research/              # Analyses and feature inventories
│   └── archive/               # Historical documents
├── scripts/                   # Build, launch, and consistency scripts
├── skill/                     # Agent skill file (SKILL.md)
├── tests/                     # Smoke tests (unit tests live in src/**/tests/)
├── ARCHITECTURE.md            # System structure — read before changing code
├── PROJECT.md                 # Product vision
├── AGENTS.md                  # This file
├── TODO.md                    # Current priorities
└── CHANGELOG.md

Read the full file on GitHub · 536 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 First seen · 536 lines · 5,614 tokens per session scan E 52e8d2f62ed6

Subscribe to this mod's changes

tandem-browser AGENTS.md is an instructions file published in the GitHub repository hydro13/tandem-browser (627 stars, last pushed 4d ago), licensed MIT. It adds 5,614 tokens to every session, about $0.0225 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

tandem-browser AGENTS.md compared with instructions from other repositories

tandem-browser AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
tandem-browser AGENTS.mdhydro13/tandem-browserInstructions file6274d agoMITA5,614Codex, OpenCode
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143kyesterdayMITA7,461Codex, OpenCode
langchain AGENTS.mdlangchain-ai/langchainInstructions file149kyesterdayMITA4,680Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA5,516GitHub Copilot
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA3,093GitHub Copilot
deepseek-harness AGENTS.mddeepseek-ai/deepseek-harnessInstructions file274k2d agoMITA4,313Codex, OpenCode