friday AGENTS.md

friday AGENTS.md is an instructions file for Codex, OpenCode from HaraldBregu/friday. It costs 957 tokens per session, scanned A, original, MIT.

A set of project instructions for coding agents working in the HaraldBregu/friday repository.

In plain words
What is it for?
Guiding coding decisions around planning, simplicity, focused edits, and frontend design.
Why use it?
It helps agents make deliberate, small changes and surface uncertainty instead of guessing or adding unnecessary code.

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

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 friday AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/haraldbregu/friday/agents-md.svg)](https://agentmods.dev/instructions/haraldbregu/friday/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/haraldbregu/friday/agents-md"><img src="https://agentmods.dev/badge/instructions/haraldbregu/friday/agents-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 957 This file is loaded in full into every session.
When invoked 957 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.00957 $0.00957
Opus 5 $0.00478 $0.00478
Sonnet 5 $0.00191 $0.00191
Haiku 4.5 $0.00096 $0.00096

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

Security

Grade A, and why

friday 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 4d 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 · 92 lines

How it starts

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

AGENTS.md

Behavioral guidelines to reduce common LLM coding mistakes. Merge with project-specific instructions as needed.

Tradeoff: These guidelines bias toward caution over speed. For trivial tasks, use judgment.

1. Think Before Coding

Don't assume. Don't hide confusion. Surface tradeoffs.

Before implementing:

  • State your assumptions explicitly. If uncertain, ask.
  • If multiple interpretations exist, present them - don't pick silently.
  • If a simpler approach exists, say so. Push back when warranted.
  • If something is unclear, stop. Name what's confusing. Ask.

2. Simplicity First

Minimum code that solves the problem. Nothing speculative.

  • No features beyond what was asked.
  • Do not over-engineer the solution; actively look for the simplest solution that satisfies the request.
  • No abstractions for single-use code.
  • No "flexibility" or "configurability" that wasn't requested.
  • No error handling for impossible scenarios.
  • Use established design patterns when they prevent tangled control flow or repeated ad hoc logic; don't add patterns preemptively.
  • Use dependency injection when it makes dependencies explicit, improves readability, or simplifies testing; avoid hidden globals and hard-coded service construction in business logic.
  • Default to a module-based file structure. Split code into separate files when responsibilities diverge, and move any function or component reused by multiple modules into its own shared file.
  • Implement one function per file maximum.
  • Use a one-word filename in 99% of cases; use longer names only when existing conventions or clarity require it.
  • If you write 200 lines and it could be 50, rewrite it.

Ask yourself: "Would a senior engineer say this is overcomplicated?" If yes, simplify.

3. Surgical Changes

Touch only what you must. Clean up only your own mess.

When editing existing code:

  • Don't "improve" adjacent code, comments, or formatting.
  • Don't refactor things that aren't broken.
  • Match existing style, even if you'd do it differently.
  • Don't add code comments unless the user explicitly asks for them.
  • If you notice unrelated dead code, mention it - don't delete it.
  • When implementing a new feature, do not use patch-style or workaround implementations; implement the requested behavior directly in the relevant code, and do not create or run migrations unless explicitly requested.

Read the full file on GitHub · 92 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. 4d ago First seen · 92 lines · 957 tokens per session scan A 677958ccb917

Subscribe to this mod's changes

friday AGENTS.md is an instructions file published in the GitHub repository HaraldBregu/friday (10 stars, last pushed 4d ago), licensed MIT. It adds 957 tokens to every session, about $0.0048 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.