gogcli AGENTS.md

AGENTS.md instructions for openclaw/gogcli, covering repository guidelines, project structure, build, test, and development commands, coding style & naming conventions and testing guidelines.

Instructions file for CodexOpenCode

Install

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.

agentmods
npx agentmods add instructions/openclaw/gogcli/agents-md
Clone the repo
git clone --depth 1 https://github.com/openclaw/gogcli

Made for: Codex, OpenCode.

Per session 754 This file is loaded in full into every session.
When invoked 754 The same file — it is already loaded in full.
Security scan A 0 findings. Scan, not verified.
Origin unknown 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 $0.00754 $0.00754
Opus 5 $0.00377 $0.00377
Sonnet 5 $0.00151 $0.00151
Haiku 4.5 $0.00075 $0.00075

Measured today against content hash 19638b51b43a, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

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.

AGENTS.md · 51 lines

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.go next to code; opt-in integration suite in internal/integration/ (build-tagged).
  • bin/: build outputs; docs/: specs/releasing; scripts/: release helpers + scripts/gog.mjs.

Build, Test, and Development Commands

  • make / make build: build bin/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 install enables pre-commit/pre-push checks.

Coding Style & Naming Conventions

  • Formatting: make fmt (goimports local prefix github.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 (and httptest where 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 diff and do not change branches.
  • Maintain CHANGELOG.md: add user-visible changes to Unreleased as 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 for openclaw/openclaw does not apply to this repository.

Read the full file on GitHub · 51 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. today First seen · 51 lines · 754 tokens per session scan A 19638b51b43a

Subscribe to this mod's changes

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.

Related

Other instructions, from other repositories