basecamp-cli: Instructions file for Claude Code

AGENTS.md

basecamp-cli AGENTS.md is an instructions file for Claude Code, Codex, OpenCode from basecamp/basecamp-cli. It costs 2,491 tokens per session, scanned A, original, MIT.

Development instructions for the Basecamp command-line application, including its setup, folder structure, API context, and testing workflow. A command-line application is a program operated through a terminal.

In plain words
What is it for?
Use them when developing Basecamp CLI features, finding the right package, following its contribution process, or running the project's standard checks.
Why use it?
They give contributors the repository conventions and the expected check command, making feature work and validation more consistent.

Instructions file for Claude CodeCodexOpenCode

Written for Claude Code and Codex and OpenCode: SessionStart hook event, but also the file is AGENTS.md. Also seen: reads .claude/ paths; mentions .claude-plugin; mentions subagents.

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

Reuse

Borrowing it

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

Made for: Claude Code, 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-cli AGENTS.md

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/basecamp/basecamp-cli/agents-md"><img src="https://agentmods.dev/badge/instructions/basecamp/basecamp-cli/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 2,491 This file is loaded in full into every session.
When invoked 2,491 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.02491 $0.02491
Opus 5.5 $0.00996 $0.00996
Sonnet 5.5 $0.00498 $0.00498
Haiku 4.5 $0.00249 $0.00249

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

Security

Grade A, and why

basecamp-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 24d 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 · 206 lines

How it starts

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

Basecamp CLI Development Context

Getting Started

See CONTRIBUTING.md for build setup, testing, and PR workflow.

The standard development loop in this repo: make changes, run bin/ci, fix what it catches, repeat until green, then push. Treat bin/ci as your inner-loop companion, not a final hurdle.

Repository Structure

basecamp-cli/
├── cmd/basecamp/     # Main entrypoint
├── internal/
│   ├── appctx/       # Application context
│   ├── auth/         # OAuth authentication
│   ├── cli/          # CLI framework
│   ├── commands/     # Command implementations
│   ├── completion/   # Shell completion
│   ├── config/       # Configuration management
│   ├── dateparse/    # Date parsing
│   ├── hostutil/     # Host utilities
│   ├── models/       # Data models
│   ├── names/        # Name resolution
│   ├── observability/ # Tracing and metrics
│   ├── output/       # Output formatting
│   ├── presenter/    # Output presentation
│   ├── resilience/   # Retry and backoff
│   ├── sdk/          # Basecamp SDK wrapper
│   ├── tui/          # Terminal UI
│   └── version/      # Version info
├── e2e/              # BATS integration tests
├── skills/           # Agent skills
├── hooks/            # Agent lifecycle hooks (both plugin agents)
├── .claude-plugin/   # Claude Code integration
└── .codex-plugin/    # Codex plugin manifest

Coding-agent integrations

Coding-agent integration lives in internal/harness (agent registry, detection, plugin and skill health checks) and internal/commands/wizard_agents.go (basecamp setup claude|codex|grok|agents). Claude Code and Codex each get a native plugin from the basecamp/claude-plugins marketplace and have registrations of their own (claude.go, codex.go). The plugin is basecamp-cli@37signals. During the deprecation window the marketplace keeps basecamp as an alias with the same source; setup treats basecamp@37signals as stale and replaces it by key, and the SessionStart hook (routed through agent-hook pre-commit-snapshot so older CLIs stay silent) tells alias installs once to switch. That is safe only while basecamp in the marketplace means this plugin: drop the isStalePluginKey / CodexLegacyPluginKey handling before the marketplace points basecamp at the hosted connector. Grok Build has no plugin: it reads the shared ~/.agents/skills/basecamp skill directly, so it is a row of harness.SkillAgent (name, id, home env var, home directory, binary) in skill_agent.go, and everything in internal/commands that touches a shared-skill agent — the setup handler, the BASECAMP_SETUP_AGENT values, doctor's remediation — loops over harness.SkillAgents() rather than naming it. A new shared-skill agent is a new row; the skill picker's (Global) row, the prose lists in the installers and the docs are the places to update by hand. setup <id> never fabricates an agent's home directory: a skill-only agent that is not detected is reported missing, not created.

Read the full file on GitHub · 206 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. 24d ago Changed · +1 lines · +11 tokens per session 660a1e43b167
  2. 1mo ago Changed · +6 lines · +132 tokens per session 95e196d0db51
  3. 1mo ago Changed · +25 lines · +410 tokens per session 6f79aafed54f
  4. 1mo ago Changed · +15 lines · +269 tokens per session 5197d7bf40dd
  5. 2mo ago First seen · 159 lines · 1,669 tokens per session scan A e75d0d8b9a51

Subscribe to this mod's changes

basecamp-cli AGENTS.md is an instructions file published in the GitHub repository basecamp/basecamp-cli (294 stars, last pushed yesterday), licensed MIT. It adds 2,491 tokens to every session, about $0.0100 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

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

basecamp-cli AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
basecamp-cli AGENTS.mdbasecamp/basecamp-cliInstructions file294yesterdayMITA2,491Claude Code, Codex, OpenCode
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143kyesterdayMITA7,461Codex, OpenCode
langchain AGENTS.mdlangchain-ai/langchainInstructions file149ktodayMITA4,680Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA5,516GitHub Copilot
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA3,093GitHub Copilot
deepseek-harness AGENTS.mddeepseek-ai/deepseek-harnessInstructions file275k2d agoMITA4,313Codex, OpenCode