mectrics AGENTS.md

mectrics AGENTS.md is an instructions file for Codex, OpenCode from farukkamcici/mectrics. It costs 4,487 tokens per session, scanned A, original, MIT.

A project instruction file that defines the working rules for mectrics, including English-only contributions, project structure, translations, and menu-bar display.

In plain words
What is it for?
Use it when modifying the Swift packages, command-line tools, translations, or menu-bar interface.
Why use it?
It gives both people and coding agents one shared source of truth for repository conventions. This reduces inconsistent code, documentation, and user-interface changes.

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

Made for: Codex, OpenCode.

Wrote 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.

agentmods badge for mectrics AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/farukkamcici/mectrics/agents-md.svg)](https://agentmods.dev/instructions/farukkamcici/mectrics/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/farukkamcici/mectrics/agents-md"><img src="https://agentmods.dev/badge/instructions/farukkamcici/mectrics/agents-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 4,487 This file is loaded in full into every session.
When invoked 4,487 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.04487 $0.04487
Opus 5 $0.02243 $0.02243
Sonnet 5 $0.00897 $0.00897
Haiku 4.5 $0.00449 $0.00449

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

Security

Grade A, and why

mectrics 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 5d 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 · 291 lines

How it starts

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

AGENTS.md — Working agreement for mectrics

This file is the source of truth for conventions in this repository. It applies to any AI agent or human contributor. CLAUDE.md points here.

0. Golden rule: English-only repository

Everything committed to this repo is in English — no exceptions:

  • Source code: identifiers, types, function names, variables.
  • Comments and documentation comments.
  • All Markdown docs (README.md, docs/**).
  • Commit messages, branch names, PR titles/descriptions.
  • User-facing UI strings: English is the base/development language (localized to other languages via the String Catalog — see §2).

The only place another language may appear is a live chat conversation with the user (who may write in Turkish). Nothing from that chat leaks into the repo in another language.

1. Project shape

  • Packages/MetricsKit/ — UI-independent metric engine (SwiftPM). Providers, scheduler, ring-buffer store, engine. No UI, no localization (data-only, English identifiers).
    • swift build, swift test, swift run metricskit-demo (internal live provider readout).
    • swift run mectrics runs the read-only user CLI. It reads alert configuration from the app and offers check, snapshot, event streaming, and rule listing. Tests/MectricsCLITests owns its process, exit-code, JSON-fixture, and failure-path contracts.
    • Builds in the Swift 6 language mode and must stay warning-free. MetricProvider requires Sendable; providers are @unchecked Sendable because the engine samples them on one serial queue. Guard anything read outside that queue with a lock.
  • Mectrics/ — the menu bar app (SwiftUI + AppKit).
  • project.yml — XcodeGen project definition. This is the source; Mectrics.xcodeproj is generated. After editing project.yml or adding/removing source files, run xcodegen generate.
  • docs/ — the architecture deep dive, and nothing else. Contributor-facing only: planning notes, roadmaps, backlogs, and maintainer-only runbooks do not belong in the public repository. The release procedure lives in scripts/release.sh, which is self-documenting through its required environment variables.

Read the full file on GitHub · 291 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. 5d ago First seen · 291 lines · 4,487 tokens per session scan A 2d83e88c1167

Subscribe to this mod's changes

mectrics AGENTS.md is an instructions file published in the GitHub repository farukkamcici/mectrics (143 stars, last pushed 4d ago), licensed MIT. It adds 4,487 tokens to every session, about $0.0224 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-30.

Related

Other instructions, from other repositories

CodexBar CLAUDE.md

Claude Code instructions for bob-zebedy/CodexBar, covering claude.md, 写作风格, 代码和注释, 项目文档 and 项目概述.

bob-zebedy/CodexBar · 14,239 tokens

CodexBar AGENTS.md

AGENTS.md instructions for bob-zebedy/CodexBar, covering repository guidelines, 项目结构与模块组织, 构建、测试与开发命令, 写作风格 and 代码和注释.

bob-zebedy/CodexBar · 2,724 tokens

Applite CLAUDE.md

Instructions for milanvarady/Applite, covering claude.md, project overview, build & run, architecture and data flow.

milanvarady/Applite · 2,572 tokens

scarf AGENTS.md

AGENTS.md instructions for awizemann/scarf: This repo carries its own agent memory — plain files in git, served by the in-repo memophant-mcp MCP server, managed by the Memophant macOS app. It works the same for every agent (Claude Code, Codex, Cursor, Gemini, Copilot). This block is regenerated between the memophant…

awizemann/scarf · 1,827 tokens

scarf copilot-instructions.md

Copilot instructions for awizemann/scarf: File memory notes under one of six folders (architecture/conventions/decisions/operations/project/roadmap), never the root. When a note is grounded in code, pass sourcepaths (the repo files it depends on) so Memory Health can drift-check it — an unanchored code note can't be…

awizemann/scarf · 571 tokens

cuda-metal AGENTS.md

AGENTS.md instructions for Lulzx/cuda-metal, covering agents.md — cumetal development guide, project identity, current focus, repository structure and non-negotiable constraints.

Lulzx/cuda-metal · 1,065 tokens