finfocus AGENTS.md

Repository guidelines for AI agents working on FinFocus, a Go command-line application. They cover building, testing, formatting, documentation, security, project structure, and pull requests.

In plain words
What is it for?
Use it when changing FinFocus code, especially its Go packages, command-line binary, fixtures, tests, documentation, or build scripts.
Why use it?
They tell an agent how this specific codebase is organized and how changes should be checked. This reduces the chance of using the wrong commands, style, or testing approach.

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/rshade/finfocus/agents-md
Clone the repo
git clone --depth 1 https://github.com/rshade/finfocus

Made for: Codex, OpenCode.

Per session 1,560 This file is loaded in full into every session.
When invoked 1,560 The same file — it is already loaded in full.
Security scan A 0 findings. Scan, not verified.
Origin original 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.01560 $0.01560
Opus 5 $0.00780 $0.00780
Sonnet 5 $0.00312 $0.00312
Haiku 4.5 $0.00156 $0.00156

Measured 2d ago against content hash 7ec4288923da, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

finfocus 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 2d 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.

AGENTS.md · 158 lines

How it starts

The opening of the file, as written. The whole thing — 158 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Repository Guidelines

Table of Contents:

Project Snapshot

  • Go CLI for finfocus in cmd/finfocus with unexported logic in internal/.
  • Fixtures live in examples/, testdata/, and test/e2e/fixtures/.
  • Docs are in docs/; scripts in scripts/; build artifacts in bin/.

Build, Lint, and Test Commands

  • make build: Build the finfocus binary into bin/ with version metadata.
  • make run / make dev: Build then run the CLI; make inspect launches MCP inspector.
  • make test | make test-race: Run unit tests (optionally with race detector).
  • go test ./...: Run the full Go test suite.
  • go test -run TestName ./path/to/package: Run a single test in one package.
  • go test -v ./... -run TestFunc: Run a single test across all packages.
  • make lint: Run golangci-lint v2.12.2 plus markdownlint.
  • make validate: Run go mod tidy -diff and go vet checks.
  • make docs-lint: Lint docs when editing Markdown.

Go Formatting and Imports

  • Go 1.26.5+; use tabs for indentation and run gofmt on Go files.
  • Imports grouped as: standard library, third-party, internal packages.
  • goimports/golines enforced via golangci-lint; keep lines tidy.
  • Avoid init() and global variables (lint rule).
  • //nolint:lintername only when required and with justification.

Read the full file on GitHub · 158 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. 2d ago First seen · 158 lines · 1,560 tokens per session scan A 7ec4288923da

Subscribe to this mod's changes

finfocus AGENTS.md is an instructions file published in the GitHub repository rshade/finfocus (5 stars, last pushed 16d ago), licensed Apache-2.0. It adds 1,560 tokens to every session, about $0.0078 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-08-31.

Related

Other instructions, from other repositories

costory-finops-mcp-skills AGENTS.md

AGENTS.md instructions for costory-io/costory-finops-mcp-skills, covering agents.md — conventions for ai coding agents in this repo, layout, skill id mapping (costory mcp), when changing a skill and when adding a new skill.

costory-io/costory-finops-mcp-skills · 1,611 tokens

ai-pricing-hub-mcp CLAUDE.md

Claude Code instructions for OptimNow/ai-pricing-hub-mcp, covering claude.md - ai pricing hub mcp app, what this project does, architecture, data sources and the fallback chain and project structure.

OptimNow/ai-pricing-hub-mcp · 7,347 tokens

ai-pricing-hub-mcp AGENTS.md

AGENTS.md instructions for OptimNow/ai-pricing-hub-mcp: Before writing code, first explore the project structure, then invoke the chatgpt-app-builder skill for documentation.

OptimNow/ai-pricing-hub-mcp · 22 tokens

insideout-power AGENTS.md

Instructions for luthersystems/insideout-power, covering insideout — riley infrastructure agent, what riley can do for you, how to invoke riley, via remote mcp (preferred — use this first) and via agent skills.

luthersystems/insideout-power · 1,155 tokens

cloud-mcp-server CLAUDE.md

Claude Code instructions for alexei-led/cloud-mcp-server, covering aws mcp server development guide, build & test commands, architecture, server (server.py) and sandbox (sandbox.py).

alexei-led/cloud-mcp-server · 1,114 tokens

langchain-aws AGENTS.md

Instructions for langchain-ai/langchain-aws, covering global development guidelines for the langchain monorepo, project architecture and context, langchain-aws structure, key components and langgraph-checkpoint-aws structure.

langchain-ai/langchain-aws · 1,740 tokens