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/openclaw/gogcli/agents-mdgit clone --depth 1 https://github.com/openclaw/gogcliWhat 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.00754 | $0.00754 |
| Opus 5 | $0.00377 | $0.00377 |
| Sonnet 5 | $0.00151 | $0.00151 |
| Haiku 4.5 | $0.00075 | $0.00075 |
Grade A, and why
gogcli 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 today.
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 — 51 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Repository Guidelines
Project Structure
cmd/gog/: CLI entrypoint.internal/: implementation (cmd/, Google API/OAuth, config/secrets, output/UI).- Tests:
*_test.gonext to code; opt-in integration suite ininternal/integration/(build-tagged). bin/: build outputs;docs/: specs/releasing;scripts/: release helpers +scripts/gog.mjs.
Build, Test, and Development Commands
make/make build: buildbin/gog.make tools: install pinned dev tools into.tools/.make fmt/make lint/make test/make ci: format, lint, test, full local gate.- Optional:
pnpm gog …: build + run in one step. - Hooks:
lefthook installenables pre-commit/pre-push checks.
Coding Style & Naming Conventions
- Formatting:
make fmt(goimportslocal prefixgithub.com/openclaw/gogcli+gofumpt). - Output: keep stdout parseable (
--json/--plain); send human hints/progress to stderr. - Gmail labels: treat label IDs as case-sensitive opaque tokens; only case-fold label names for name lookup.
Testing Guidelines
- Unit tests: stdlib
testing(andhttptestwhere needed). - Integration tests (local only):
[email protected] go test -tags=integration ./internal/integration- Requires OAuth client credentials + a stored refresh token in your keyring.
Commit & Pull Request Guidelines
- Create commits with
committer "<msg>" <file...>; avoid manual staging. - Follow Conventional Commits + action-oriented subjects (e.g.
feat(cli): add --verbose to send). - Group related changes; avoid bundling unrelated refactors.
- PRs should summarize scope, note testing performed, and mention any user-facing changes or new flags.
- PR review flow: when given a PR link, review via
gh pr view/gh pr diffand do not change branches. - Maintain
CHANGELOG.md: add user-visible changes toUnreleasedas fixes and features land, with PR/issue references and contributor thanks. Finalize that section at release; do not put later work under an already published version. The release-time-only changelog exception foropenclaw/openclawdoes not apply to this repository.
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.
- today First seen · 51 lines · 754 tokens per session scan A 19638b51b43a
gogcli AGENTS.md is an instructions file published in the GitHub repository openclaw/gogcli (8,363 stars, last pushed today), licensed MIT. It adds 754 tokens to every session, about $0.0038 per session on Opus 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-09-03.
Other instructions, from other repositories
google-mcp CLAUDE.md
Instructions for quinnjr/google-mcp, covering claude.md, commands, architecture, entry & server and auth.
mailwarden CLAUDE.md
Claude Code instructions for csitte/mailwarden, covering mailwarden — projektinstruktionen, harte design-regeln (nicht ohne rücksprache ändern), architektur-muster, arbeitsweise and session-bridge.
google-mailpilot AGENTS.md
AGENTS.md instructions for johnneerdael/google-mailpilot, covering agent rules for gmail secretary, 🛡️ critical: human-in-the-loop (hitl) for all mutations, mutation tools requiring confirmation, the draft-review-send pattern and 📊 bulk action rules: confidence-based gating.
google_workspace_mcp general.instructions.md
Instructions for taylorwilsdon/google_workspace_mcp, covering 📄 project context, 🎯 review goals & priorities, 🚦 low‑value feedback to skip, 🧭 review structure template and ✅ gmail.sendmessage – input schema issue.
Gmail-MCP-Server CLAUDE.md
Instructions for ArtyMcLabin/Gmail-MCP-Server, covering claude.md - gmail mcp server, branch workflow and pr & issue review.
gws-mcp-server CLAUDE.md
Instructions for conorbronsdon/gws-mcp-server, covering gws-mcp-server, architecture, key constraints, development and testing.