Borrowing it
Nothing to install: this file belongs to carlosprados/og-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/carlosprados/og-cli/main/CLAUDE.mdgit clone --depth 1 https://github.com/carlosprados/og-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/carlosprados/og-cli/claude-md)<a href="https://agentmods.dev/instructions/carlosprados/og-cli/claude-md"><img src="https://agentmods.dev/badge/instructions/carlosprados/og-cli/claude-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/carlosprados/og-cli/claude-md"><img src="https://agentmods.dev/badge/instructions/carlosprados/og-cli/claude-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.04329 | $0.04329 |
| Opus 5.5 | $0.01732 | $0.01732 |
| Sonnet 5.5 | $0.00866 | $0.00866 |
| Haiku 4.5 | $0.00433 | $0.00433 |
Grade A, and why
og-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 1mo 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 … | jq -S .` vs `og … -o json | jq -S .`), not against the spec. How it starts
The opening of the file, as written. The whole thing — 278 lines — stays where its author put it; the contents beside it link to each section on GitHub.
CLAUDE.md
This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.
Project
og is a CLI tool (binary name: og) for the OpenGate IoT platform REST API by Amplía Soluciones. Built in Go with Cobra (commands), Viper (config), and Bubble Tea + Lip Gloss (interactive TUI).
Commands
task build # build the og binary
task test # go test ./... -v
task lint # golangci-lint run ./...
task fmt # gofmt + goimports
task tidy # go mod tidy
task install # go install with ldflags
go test ./internal/client/ -run TestLogin -v # run a single test
Version info is injected via ldflags — see Taskfile.yml LDFLAGS.
Architecture
main.go → cmd.Execute()
cmd/ → Cobra commands (root, login, version, mcp, datamodels, devices)
pkg/opengate/ → OpenGate REST API client (HTTP methods, auth, resource methods)
pkg/query/ → Search filter parser (-w "field op value", query strings)
internal/config/ → Viper config, profiles, .env loading
internal/mcp/ → MCP server (stdio + HTTP transports) + tool definitions
internal/output/ → JSON/table output formatting
internal/tui/ → Bubble Tea interactive TUI
internal/unwrap/ → Workspace/rule/connector unwrap to local dirs
internal/views/ → Named field views for searches
pkg/ is the public library surface: it is consumed by external services (e.g.
Punto de Luz), so its API is a contract. internal/ is CLI-private.
Library conventions for pkg/:
- Every method that performs I/O takes
ctx context.Contextas its first parameter, propagated tohttp.NewRequestWithContext. No exceptions. - Per-client configuration goes through functional options on
New(WithHTTPClient,WithTLS,WithAPIVersion,WithAPIKey) — never process-wide state.ConfigureTLS/NewHTTPClientare deprecated leftovers kept for the CLI, which has exactly one endpoint per invocation. - North API path constants carry the
{v}version placeholder, resolved per client. Never hardcode a version segment. - A misconfigured client is not a panic and not a second constructor:
Newrecords the error, andErr()plus every request return it. - A typed getter is lossy by construction. Most families return
json.RawMessageand pass the platform's bytes through;datamodels,datasets,timeseriesandworkspacesdecode into structs, so any field the struct does not name is dropped without a word. Where a struct exists, ship a…Rawsibling (GetDatamodelRaw,GetDatasetRaw,GetTimeSeriesRaw,ListTimeSeriesRaw,GetWorkspaceRaw) so callers who need fidelity are not hostage to this package being current — and surface it as--rawon the CLIget. Noteog workspace pullreads through the struct too, so workspaces are the one family whose pull is not a passthrough.
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.
- 1mo ago Changed · +49 lines · +908 tokens per session 92387e786f5c
- 1mo ago Changed · +24 lines · +473 tokens per session 93830e2f8b2c
- 2mo ago Changed · +14 lines · +268 tokens per session 5fb15eb22f41
- 2mo ago First seen · 191 lines · 2,680 tokens per session scan A ee4236b439f4
og-cli CLAUDE.md is an instructions file published in the GitHub repository carlosprados/og-cli (2 stars, last pushed 1mo ago), licensed Apache-2.0. It adds 4,329 tokens to every session, about $0.0173 per session on Opus 5.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-31.
og-cli CLAUDE.md compared with instructions from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| og-cli CLAUDE.mdcarlosprados/og-cli | Instructions file | 2 | 1mo ago | Apache-2.0 | A | 4,329 | Claude Code |
| 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 |