basecamp: Instructions file for Codex

AGENTS.md

basecamp AGENTS.md is an instructions file for Codex, OpenCode from janmaaarc/basecamp. It costs 4,260 tokens per session, scanned B, a copy of basecamp CLAUDE.md, MIT.

Repository instructions for using RTK, a command-line proxy that shortens the output of development commands and reports token savings. They explain how to install, verify, and invoke it in different coding-agent environments.

In plain words
What is it for?
Use them when running shell commands in the Basecamp repository, checking RTK installation, viewing savings, or troubleshooting its proxy and hooks.
Why use it?
They help the agent use the intended RTK installation and avoid command-name collisions. Shorter command output can reduce the amount of terminal text the agent must process.

Instructions file for CodexOpenCode

Written for Codex and OpenCode: the file is AGENTS.md. Also seen: reads .claude/ paths; mentions CLAUDE.md; mentions Claude Code.

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

Reuse

Borrowing it

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

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 basecamp AGENTS.md

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/janmaaarc/basecamp/agents-md"><img src="https://agentmods.dev/badge/instructions/janmaaarc/basecamp/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 4,260 This file is loaded in full into every session.
When invoked 4,260 The same file — it is already loaded in full.
Security scan B 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin 89% copy Near-identical to another mod 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.04260 $0.04260
Opus 5.5 $0.01704 $0.01704
Sonnet 5.5 $0.00852 $0.00852
Haiku 4.5 $0.00426 $0.00426

Measured 7d ago against content hash 49902841dcfd, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade B, and why

basecamp AGENTS.md scanned grade B with 1 finding 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 7d 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.

Reads agent configuration directoriesmediumAgent snooping

.claude/, .codex/, .gemini/ hold keys, settings and other credentials a mod has no legitimate need for.

- Before editing `.claude/settings.json`, `.claude/settings.local.json`, `~/.codex/config.toml`, hooks, or MCP server config in any project: run `npx ecc-agentshield scan` first if not run recently. Not required for norm
Origin

This is a copy

89% identical to basecamp CLAUDE.md — 174 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

AGENTS.md · 338 lines

How it starts

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

RTK - Rust Token Killer

In Claude Code, all shell commands are transparently proxied through RTK via a hook. No action needed, RTK runs automatically in the background. In Codex, RTK is instruction-driven rather than hook-driven, so prefix commands with rtk as these instructions describe.

Usage: Token-optimized CLI proxy (60-90% savings on dev operations)

Meta Commands (always use rtk directly)

rtk gain              # Show token savings analytics
rtk gain --history    # Show command usage history with savings
rtk discover          # Analyze Claude Code history for missed opportunities
rtk proxy <cmd>       # Execute raw command without filtering (for debugging)

Installation Verification

rtk --version         # Should show: rtk X.Y.Z
rtk gain              # Should work (not "command not found")
which rtk             # Verify correct binary

Name collision: If rtk gain fails, you may have reachingforthejack/rtk (Rust Type Kit) installed instead.

Hook-Based Usage

All other commands are automatically rewritten by the agent's hook.

Claude Code, Cursor, Gemini CLI, Copilot, Factory Droid and Mistral Vibe get a hook processor that rewrites commands before they run. Codex works differently: rtk init -g --codex installs instructions into AGENTS.md and RTK.md instead of patching hooks, so the rewriting depends on the agent following those instructions rather than being intercepted. Check what a command becomes with rtk rewrite "git status". Example: git status → rtk git status (transparent, 0 tokens overhead) No additional configuration needed.

Karpathy Coding Principles

Behavioral guidelines to reduce common LLM coding mistakes.

Tradeoff: These guidelines bias toward caution over speed. For trivial tasks, use judgment.

Read the full file on GitHub · 338 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. 7d ago Changed · +58 lines · +588 tokens per session 49902841dcfd
  2. 14d ago Changed · +3 lines · +201 tokens per session 93814015307b
  3. 23d ago Changed · +7 lines · +157 tokens per session 1d3b7eaa8233
  4. 1mo ago Changed · +1 lines · +91 tokens per session dfe9271f232c
  5. 1mo ago First seen · 269 lines · 3,223 tokens per session scan B 7aaeb25ab4d5

Subscribe to this mod's changes

basecamp AGENTS.md is an instructions file published in the GitHub repository janmaaarc/basecamp (7 stars, last pushed 3d ago), licensed MIT. It adds 4,260 tokens to every session, about $0.0170 per session on Opus 5.5. A static security scan graded it B with 1 finding (reads agent configuration directories). It is 89% identical to basecamp CLAUDE.md, differing in 174 lines, and is treated as a copy.

Related

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).

microsoft/vscode · 9,715 tokens

next.js AGENTS.md

AGENTS.md instructions for vercel/next.js, covering next.js development guide, codebase structure, monorepo overview, core package: packages/next and other important packages.

vercel/next.js · 7,461 tokens

vscode oss-third-party-notices.instructions.md

Instructions for microsoft/vscode, covering vs code oss third-party-notices pipeline, architecture, pipeline flow in ci, cache eligibility and rollout and applying the notice (cutover).

microsoft/vscode · 5,262 tokens

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.

langchain-ai/langchain · 4,680 tokens

vscode copilot-instructions.md

Copilot instructions for microsoft/vscode, covering vs code copilot instructions, project overview, root folders, core architecture (src/ folder) and built-in extensions (extensions/ folder).

microsoft/vscode · 2,731 tokens

deepseek-harness AGENTS.md

AGENTS.md instructions for deepseek-ai/deepseek-harness, covering agents.md, pre-stable apis and released session data, repository layout, commands and host sandbox failures.

deepseek-ai/deepseek-harness · 4,261 tokens