Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx agentmods add instructions/kardolus/chatgpt-cli/claude-mdgit clone --depth 1 https://github.com/kardolus/chatgpt-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/kardolus/chatgpt-cli/claude-md)<a href="https://agentmods.dev/instructions/kardolus/chatgpt-cli/claude-md"><img src="https://agentmods.dev/badge/instructions/kardolus/chatgpt-cli/claude-md.svg" alt="Measured on agentmods" 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 | $0.01279 | $0.01279 |
| Opus 5 | $0.00639 | $0.00639 |
| Sonnet 5 | $0.00256 | $0.00256 |
| Haiku 4.5 | $0.00128 | $0.00128 |
Grade A, and why
chatgpt-cli CLAUDE.md scanned grade A 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 4d 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.
Makes network callslowCapability
Not a fault in itself. Listed so you know the mod talks to something, and to what.
curl -sL https://github.com/kardolus/chatgpt-cli/archive/refs/tags/vX.Y.Z.tar.gz | shasum -a 256 How it starts
The opening of the file, as written. The whole thing — 100 lines — stays where its author put it; the contents beside it link to each section on GitHub.
chatgpt-cli — release runbook
How to cut and publish a new release. A release touches two repos:
- this repo (
kardolus/chatgpt-cli) — run the tests, tag, build binaries, and publish a GitHub Release with those binaries attached (the direct-download install method). - the Homebrew tap (
kardolus/homebrew-chatgpt-cli) — bump the formula sobrew upgrade chatgpt-clipicks up the new version.
Homebrew builds chatgpt from source (the formula points at the tag's source tarball),
while the pre-built bin/chatgpt-<os>-<arch> artifacts serve the direct-download install
documented in the README (releases/latest/download/chatgpt-<os>-<arch>).
The tap repo is expected as a sibling checkout next to this one (i.e. ../homebrew-chatgpt-cli).
Prerequisites
- Go (the version in
go.mod'sgodirective; the toolchain auto-downloads ifGOTOOLCHAIN=auto). - golangci-lint v2 on your PATH. The lint step (
golangci-lint run, via.golangci.yml) targets the module's Go version; a v1 golangci-lint (built with an older Go) will refuse to run and the release will abort at the test step. ag(the_silver_searcher) —all-tests.shuses it to scan for strayTODOs.gh(GitHub CLI, authenticated) — to create the GitHub Release and upload binaries.chatgpton your PATH —shipituses the CLI itself to generate the release notes.- A sibling
../prompts/directory containingwrite_release_notes.md;shipitreferences it as../prompts/write_release_notes.md.
1. Cut the release
From this repo, on a clean main that's up to date with origin:
make shipit version=vX.Y.Z message="short release message"
version is the new semver tag (bump from the latest tag). This runs scripts/shipit.sh,
which:
- Aborts if the working tree has unstaged changes.
scripts/updatedeps.sh—go get -u ./...,go mod vendor,go mod tidy; if anything changed, it auto-commitschore: bump dependenciesand pushes.scripts/all-tests.sh—go mod tidycheck,go fmtcheck,golangci-lint run, aTODOscan, then unit + integration + contract tests.- Release notes — diffs the last tag to
HEADand pipes it throughchatgpt+../prompts/write_release_notes.md, printing the notes to stdout. Copy this output — it's the body for the GitHub Release in step 2. (Tip: tee it, e.g.make shipit ... | tee /tmp/release-notes.md.) - Tags the release (
git tag -a vX.Y.Z -m "message") and pushes tags. scripts/binaries.sh— buildsbin/chatgpt-<os>-<arch>for 8 targets (darwin / linux / windows / freebsd across amd64 / arm64 / 386), stampingGitCommitandGitVersion(fromgit describe) via-ldflags.
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.
- 4d ago First seen · 100 lines · 1,279 tokens per session scan A d10a7bc18359
chatgpt-cli CLAUDE.md is an instructions file published in the GitHub repository kardolus/chatgpt-cli (955 stars, last pushed 2d ago), licensed MIT. It adds 1,279 tokens to every session, about $0.0064 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
Other instructions, from other repositories
langroid CLAUDE.md
Claude Code instructions for langroid/langroid, covering claude.md, commands, development, testing and linting and type checking.
generative-ai-for-beginners AGENTS.md
Instructions for microsoft/generative-ai-for-beginners, covering agents.md, project overview, setup commands, initial repository setup and clone the repository.
ollama AGENTS.md
AGENTS.md instructions for ollama/ollama, covering agents.md and building.
awesome-go AGENTS.md
AGENTS.md instructions for avelino/awesome-go, covering awesome-go · llm contribution guide, project snapshot, when modifying the awesome list, coding guidelines and testing & validation.
go-micro CLAUDE.md
Claude Code instructions for micro/go-micro, covering claude.md - go micro project guide, project overview, build & test, run all tests and run tests for a specific package.
ollama CLAUDE.md
Claude Code instructions for ollama/ollama: See AGENTS.md for the shared agent instructions for this repository.