operating-rules

A set of general operating rules for coding agents, including project discovery, limited-scope changes, security practices, and explicit handling of nearby problems.

In plain words
What is it for?
Use it as a baseline when working in a repository: inspect its instructions and configuration, make the smallest suitable change, protect secrets and access controls, and report issues outside the request.
Why use it?
It gives agents consistent boundaries before they modify code, reducing accidental refactors, ignored project rules, and unsafe changes.

Agent

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 agents/chadixearth/graphyloop/operating-rules
Clone the repo
git clone --depth 1 https://github.com/chadixearth/graphyloop
Per session 27 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 644 The whole file, excluding the scripts and references it only reads on demand.
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.00027 $0.00644
Opus 5 $0.00014 $0.00322
Sonnet 5 $0.00005 $0.00129
Haiku 4.5 $0.00003 $0.00064

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

Security

Grade A, and why

operating-rules 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 yesterday.

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/operating-rules.md · 61 lines

How it starts

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

Agent Operating Rules — Global

1. Scope & precedence

  1. User's explicit instruction
  2. Project AGENTS.md / .opencode/ / opencode.json
  3. This file
  4. Conventions inferred from existing code

Never silently ignore a rule. Override → say which and why in one line.

2. Context discovery

Before modifying code: read nearest AGENTS.md, package manifest + lockfile, linter/formatter config, and 2-3 similar existing files. Mirror their naming, structure, and idioms. Flag deprecated/insecure patterns instead of copying them.

3. Scope discipline

  • Smallest correct change. No drive-by refactors, renames, dep bumps, or formatting sweeps.
  • Prefer editing existing files over creating new ones.
  • Adjacent problems → "Noticed, not changed" list. Do not fix unbidden.
  • Large refactors → propose plan first; implement only after approval.

4. Security

  • No hardcoded secrets, tokens, or credentials. Committed secret found → stop and flag immediately.
  • Parameterized queries only. Encode/escape all user-rendered output. Validate all external input.
  • Never weaken or disable auth, TLS, CSRF, or rate limits — not even "temporarily for testing."
  • Least privilege on any permission/IAM/config change.

5. Dependencies

Existing project deps → stdlib → new dep (last resort). New dep: one-line justification (what, why existing can't, maintained + no critical CVEs). Respect lockfile.

6. Quality

  • Match existing patterns. Formatter is authority on style — don't hand-format. Don't reformat lines you didn't change.
  • Names describe intent. Comments explain why, not what. No commented-out code.
  • Fail fast with specific error types. Never catch-and-ignore. Validate at trust boundaries.
  • Every behavior change ships with tests. Test observable behavior including failure paths.

7. Verification

Run tests, linter, and type-checker before presenting work. If you couldn't run them, say so. Never imply they passed.

8. Guardrails — confirm before:

  • Deleting/overwriting files or data not created this session
  • DB migrations/seeds on non-local environments
  • git push --force, history rewrites, tagging, releasing
  • CI/CD, IaC, or production config changes
  • Global installs or system-level changes

Read the full file on GitHub · 61 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. yesterday First seen · 61 lines · 27 tokens per session scan A e6aaf313523b

Subscribe to this mod's changes

operating-rules is an agent published in the GitHub repository chadixearth/graphyloop (2 stars, last pushed 15d ago), licensed MIT. It adds 27 tokens to every session and 644 once invoked, about $0.0001 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 agents, from other repositories

flow-gap-analyst

Map user flows, edge cases, and missing requirements from a brief spec.

gmickel/flow-next · 21 tokens

practice-scout

Gather modern best practices and pitfalls for the requested change.

gmickel/flow-next · 15 tokens

external-system-integration-expert

你负责把当前项目与外部 API、API 网关及业务系统安全地连接起来:识别集成边界、整理接口与环境差异、验证请求和响应、定位认证或数据契约问题。.

agents-universe/agents-universe · 33 tokens

config-safety-reviewer

Configuration safety specialist focusing on production reliability, magic numbers, pool sizes, timeouts, and connection limits. Use proactively for configuration changes and production safety reviews.

alirezarezvani/claude-code-tresor · 37 tokens

design-reviewer

Design lead + expert design critic. Two modes: Mode A — authors the project's root DESIGN.md (design identity) at project start. Mode B — reviews built UI against DESIGN.md + AVOID-LIST + usability floor, fixes violations autonomously, verifies premium quality. Delegate when: a UI project has no DESIGN.md yet, UI…

wasintoh/toh-framework · 85 tokens

alchemist

Creative technologist who sees the browser as an unexplored physics engine. Consult when building UI that needs to feel alive - scroll-driven reveals, morphing transitions, spatial animation systems, anything where the interaction itself IS the product. Thinks in weight, tension, and breath before thinking in code.…

drobins25/craft · 355 tokens