zlog: Instructions file for Codex

AGENTS.md

zlog AGENTS.md is an instructions file for Codex, OpenCode from sebin-gg/zlog. It costs 689 tokens per session, scanned A, original, MIT.

Repository instructions for contributing to zlog, including commit, merge, synchronization, and verification rules.

In plain words
What is it for?
They are for validating shell scripts, checking document structure, testing file-selection logic, and keeping README content synchronized.
Why use it?
They define checks to run before commits and require documentation snippets to stay consistent across files.

Instructions file for CodexOpenCode

Written for Codex and OpenCode: the file is AGENTS.md. Also seen: mentions AGENTS.md.

This is sebin-gg/zlog's own configuration. It tells Codex and OpenCode how to work on zlog itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything zlog configures →

Reuse

Borrowing it

Nothing to install: this file belongs to sebin-gg/zlog. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/sebin-gg/zlog/main/AGENTS.md
Clone the repo
git clone --depth 1 https://github.com/sebin-gg/zlog

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

README.md
[![agentmods](https://agentmods.dev/badge/instructions/sebin-gg/zlog/agents-md/github.svg)](https://agentmods.dev/instructions/sebin-gg/zlog/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/sebin-gg/zlog/agents-md"><img src="https://agentmods.dev/badge/instructions/sebin-gg/zlog/agents-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.

agentmods 80×15 button for zlog AGENTS.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/sebin-gg/zlog/agents-md"><img src="https://agentmods.dev/badge/instructions/sebin-gg/zlog/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 689 This file is loaded in full into every session.
When invoked 689 The same file — it is already loaded in full.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.00689 $0.00689
Opus 5.5 $0.00276 $0.00276
Sonnet 5.5 $0.00138 $0.00138
Haiku 4.5 $0.00069 $0.00069

Measured 1mo ago against content hash feff15319a0c, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

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

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 · 60 lines

How it starts

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

AGENTS.md — zlog contributor workflow

Branch hygiene (required)

Merged branches are deleted, never left behind.

  • Before opening a branch or PR: sweep and delete stale branches first.
    git fetch --all --prune
    gh pr list --state all --head <branch> --json number,state   # MERGED -> candidate
    git ls-remote --heads origin <branch> | wc -l                # 0 -> remote gone
    
  • After a PR merges: delete both halves in the same task.
    git push origin --delete <branch>
    git branch -d <branch>
    
    (or pass --delete-branch to gh pr merge).
  • Squash merges break ancestry checks. After any squash merge, git merge-base --is-ancestor <branch> origin/main returns false even though the work landed. Verify by content instead:
    git diff origin/main <branch> -- <files-the-branch-authored>   # empty = in main
    
    git cherry is also unreliable for multi-commit squashes.
  • Never delete: main, a branch with an OPEN PR, or any branch whose content differs from main in a way you cannot explain. Ask first.

Commit & merge workflow

  1. Verify before every commit (see below).
  2. Agent merges to main itself once verification passes — no review wait, no PR gate.
  3. After merge, report back to the user with what changed and the verification evidence.

Verification before every commit

  • bash -n scripts/zlog.sh, bash -n install.sh, bash -n tests/test-posix.sh, bash -n tests/test-install.sh.
  • PowerShell parse check on scripts/zlog.ps1 and tests/test-powershell.ps1 (must report 0 errors, including on stock PS 5.1 syntax rules).
  • Frontmatter check: SKILL.md must start with --- and contain name, description, license, compatibility, allowed-tools.
  • Behavioral tests (not just syntax): bash tests/test-posix.sh, bash tests/test-install.sh, and tests/test-powershell.ps1 must pass — they cover prune, symlink escape, purge age/lock, stale artifacts, size guard, locks, restore, installer backup/rollback.
  • Any find predicate change must keep the symlink-escape fixture green.

Read the full file on GitHub · 60 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. 1mo ago Changed · +26 lines · +279 tokens per session feff15319a0c
  2. 1mo ago Changed · +2 lines · +23 tokens per session a98056779733
  3. 1mo ago Changed · +9 lines · +157 tokens per session cd0ec70fcb1d
  4. 1mo ago First seen · 23 lines · 230 tokens per session scan A cbf653843743

Subscribe to this mod's changes

zlog AGENTS.md is an instructions file published in the GitHub repository sebin-gg/zlog (2 stars, last pushed 19d ago), licensed MIT. It adds 689 tokens to every session, about $0.0028 per session on Opus 5.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-09-16.

Related

zlog AGENTS.md compared with instructions from other repositories

zlog AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
zlog AGENTS.mdsebin-gg/zlogInstructions file219d agoMITA689Codex, OpenCode
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143kyesterdayMITA7,461Codex, OpenCode
langchain AGENTS.mdlangchain-ai/langchainInstructions file149kyesterdayMITA4,680Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA5,516GitHub Copilot
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA3,093GitHub Copilot
deepseek-harness AGENTS.mddeepseek-ai/deepseek-harnessInstructions file274k2d agoMITA4,313Codex, OpenCode