Borrowing it
Nothing to install: this file belongs to basecamp/hey-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.
curl -O https://raw.githubusercontent.com/basecamp/hey-cli/main/AGENTS.mdgit clone --depth 1 https://github.com/basecamp/hey-cliWrote 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/basecamp/hey-cli/agents-md)<a href="https://agentmods.dev/instructions/basecamp/hey-cli/agents-md"><img src="https://agentmods.dev/badge/instructions/basecamp/hey-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.
<a href="https://agentmods.dev/instructions/basecamp/hey-cli/agents-md"><img src="https://agentmods.dev/badge/instructions/basecamp/hey-cli/agents-md.svg" alt="Reviewed on agentmods" width="80" 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.1 | $0.03814 | $0.03814 |
| Opus 5.5 | $0.01526 | $0.01526 |
| Sonnet 5.5 | $0.00763 | $0.00763 |
| Haiku 4.5 | $0.00381 | $0.00381 |
Grade A, and why
hey-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 19d 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 — 268 lines — stays where its author put it; the contents beside it link to each section on GitHub.
hey-cli
This file provides guidance to AI coding agents working with this repository.
What is hey-cli?
hey-cli is a CLI and TUI interface for HEY. It allows users to read and send emails, manage their boxes, manage their calendars and journal entries. The TUI is primarily intended for human use, while the CLI is primarily intended for use by AI agents and for scripting.
Development commands
This project uses make. make help covers most targets -- though not all of them:
install, check-toolchain and help itself are defined but unlisted.
make build # Builds ./bin/hey
make test # Runs the tests
make lint # Lints the code
make install # Installs the binary to /usr/local/bin/hey (not shown by make help)
Git
History is linear: merge commits are disallowed in this repository. Bring a branch up to date by rebasing it onto main, never by merging main into it.
Architecture Overview
This is a Go project that uses:
- spf13/cobra for the CLI interface
- [charm.land/bubbletea/v2] for the TUI interface along with bubbles/v2 and lipgloss/v2 (these are new versions that recently came out and differ from the v1 versions!)
All API interactions go through the HEY SDK (hey-sdk/go), with typed service methods accessed via internal/cmd/sdk.go (e.g., sdk.Boxes().List, sdk.Messages().Create, sdk.Calendars().GetRecordings). Authentication and token refresh are handled via internal/auth/.
Authentication
internal/auth/ manages four methods: browser OAuth with PKCE (hey auth login, the
primary one), a stored bearer token (--token), a browser session cookie (--cookie), and
the HEY_TOKEN environment variable. The Manager refreshes tokens with a 5-minute buffer,
and the SDK reaches it through the bridge in internal/cmd/sdk.go.
Every data-access command calls requireAuth() before it makes an API call. Logged out,
it exits 3 with Run: hey auth login, or offers to sign in at an interactive terminal with
styled output. HEY_NONINTERACTIVE=1 turns the offer off. The auth subcommands, hey login/hey logout, hey setup and hey doctor work without authentication.
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.
- 19d ago Changed · -696 lines · -12,940 tokens per session 4042e9ce250b
- 1mo ago Changed · +25 lines · +465 tokens per session 2e9fdd2ee0c5
- 1mo ago Changed · +9 lines · +183 tokens per session bab3ee2a9959
- 1mo ago Changed · +23 lines · +504 tokens per session bf7c1a38849b
- 1mo ago Changed · +4 lines · +93 tokens per session 7d6b7d48eff7
- 1mo ago Changed · +6 lines · +99 tokens per session 0b9a34afb57f
- 1mo ago Changed · -2 tokens per session c87db63b4bf6
- 2mo ago Changed · +16 lines · +296 tokens per session 935e2691682e
- 2mo ago First seen · 881 lines · 15,116 tokens per session scan A cccb80ecf1cd
hey-cli AGENTS.md is an instructions file published in the GitHub repository basecamp/hey-cli (423 stars, last pushed yesterday), licensed MIT. It adds 3,814 tokens to every session, about $0.0153 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.
hey-cli AGENTS.md compared with instructions from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| hey-cli AGENTS.mdbasecamp/hey-cli | Instructions file | 423 | yesterday | MIT | A | 3,814 | Codex, OpenCode |
| vscode buildNext.instructions.mdmicrosoft/vscode | Instructions file | 195k | yesterday | MIT | A | 9,719 | GitHub Copilot |
| next.js AGENTS.mdvercel/next.js | Instructions file | 143k | yesterday | MIT | A | 7,461 | Codex, OpenCode |
| langchain AGENTS.mdlangchain-ai/langchain | Instructions file | 149k | yesterday | MIT | A | 4,680 | Codex, OpenCode |
| vscode oss-third-party-notices.instructions.mdmicrosoft/vscode | Instructions file | 195k | yesterday | MIT | A | 5,516 | GitHub Copilot |
| vscode copilot-instructions.mdmicrosoft/vscode | Instructions file | 195k | yesterday | MIT | A | 3,093 | GitHub Copilot |
| deepseek-harness AGENTS.mddeepseek-ai/deepseek-harness | Instructions file | 274k | 2d ago | MIT | A | 4,313 | Codex, OpenCode |