luciazero: Instructions file for Codex

AGENTS.md

luciazero AGENTS.md is an instructions file for Codex, OpenCode from ohm41321/luciazero. It costs 1,960 tokens per session, scanned A, original, MIT.

A project instruction file that tells coding agents how to verify changes in the Luciazero repository. It documents different test commands for code, hooks, site files, video, and agent-bus scripts.

In plain words
What is it for?
Use it to guide an agent through the project's normal, focused, and full test loops, including ShellCheck, site checks, and video verification.
Why use it?
It reduces the risk of an agent declaring work finished without running the checks that apply to the changed files. It also records local and CI differences that can cause misleading results.

Instructions file for CodexOpenCode

Written for Codex and OpenCode: the file is AGENTS.md. Also seen: mentions CLAUDE.md; mentions Claude Code; mentions Codex.

This is ohm41321/luciazero's own configuration. It tells Codex and OpenCode how to work on luciazero 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 luciazero configures →

Reuse

Borrowing it

Nothing to install: this file belongs to ohm41321/luciazero. 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/ohm41321/luciazero/main/AGENTS.md
Clone the repo
git clone --depth 1 https://github.com/ohm41321/luciazero

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

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/ohm41321/luciazero/agents-md"><img src="https://agentmods.dev/badge/instructions/ohm41321/luciazero/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 1,960 This file is loaded in full into every session.
When invoked 1,960 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.01960 $0.01960
Opus 5.5 $0.00784 $0.00784
Sonnet 5.5 $0.00392 $0.00392
Haiku 4.5 $0.00196 $0.00196

Measured yesterday against content hash 217fd6f392a9, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

luciazero 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 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.md · 104 lines

How it starts

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

Project verification notes

  • Reuse ./test.sh --fast for the normal code loop and ./test.sh for full closeout/CI. For hook/report/prompt-only edits, ./test.sh --discipline is the narrower loop; for agentd/ and the Agent Bus scripts, ./test.sh --bus (--fast no longer runs the daemon suite). Coverage and prerequisites: CONTRIBUTING.md.
  • CI pins ShellCheck (0.9.0 on Linux, 0.10.0 on the macOS job, the first arm64 build) and fails on any finding, style included; locally tests/gates/core.sh skips ShellCheck when it is not installed. A newer local ShellCheck can pass what the older CI one flags (0.11.0 accepts A && [ "$(cmd)" = x ] || C, 0.9.0 reports SC2015): write multi-command assertions as if/then, and set LZ_REQUIRE_LINT=1 locally.
  • Site changes also need python3 scripts/check-site.py in the loop: only the full tier runs it (packaging gate), and the Pages workflow runs it again before it deploys.
  • Video changes need (cd video && npm run verify) against a fresh render; the root suite does not verify the MP4. Verification needs local ffmpeg, ffprobe and the video's Python environment, but no GPU or model quota. Rendering has separate browser/model requirements; see video/README.md. The intro master rendered 2026-09-30 fails audio not clipping (peak +0.13 dBFS; launch and teaser cuts pass), measured 2026-11-10 with no source change since that render: a red there predates later work.
  • Video checks sample content and timing, not text overlap, readable dwell time, continuous motion or musical quality. Inspect the final distribution encode and listen before release. Thresholds in video/verify.py were calibrated on the light renders of 2026-09-29 and 2026-09-30 (152 to 164 seconds; the intro master is now 168), as the comment above them records: after a recut, prove checks still reject broken output (audio moved in the samples, a frame shifted) rather than merely lowering thresholds until green.
  • Video terminal scenes reconstruct implementation output; some lines are shortened or illustrative. timeline.json documents provenance. Do not label every scene an unedited recording or every value a measured result.
  • The video uplift result is Claude Sonnet-specific, using the classic pack without hooks. Codex has an exploratory ceiling-effect pilot, so neither "Codex not measured" nor a claim of demonstrated Codex uplift is accurate. Keep caveats with evidence; see README.md and docs/benchmark.md.
  • Preserve the test suite's environment sanitation and service-root guard: uninstall fixtures must never resolve services under the real home directory.
  • Bash 3.2 can return zero on a syntax error in a sourced gate. Keep the dispatcher's pre-source syntax check; tests/gates/tiers.sh covers this.
  • Bash 3.2 also exits 0 on a fatal runtime error (unset var under set -u, ${x:?}, bad substitution) whenever an EXIT trap is armed: the trap's last status wins and $? inside it reads 0. bash -n passes all three. The dispatcher's RUN_ENDED sentinel turns that red; set it on any new intended exit-0 path, and never give a gate its own EXIT trap (use mktmp). tests/dispatcher-fatal-exit.sh guards it; CI runs it in bash:3.2 because the bug was seen on 3.2 and the runner's Bash 5 may not show it (not run locally: no Bash 5 on this Mac, 2026-11-03). A "$(printf '...$(cat <<...')" with a quote inside dies this way; use printf -v.
  • Eval graders have the same 3.2 exit-0 hazard, but it cannot fake a score: eval/run.sh books a grader with no SCORE line as INVALID, and the eval gate requires SCORE from the reference run. Probed 2026-11-03 with an unbound variable after red-suite's trap: grader rc=0, row INVALID — grader crashed (no SCORE line, rc=0). No grader change needed.
  • agentd/tests/test_nudge.py test_a_knock_waits_for_a_provider_that_is_mid_turn flakes under heavy host load (load average above ~5): it failed 1 run in 6 on unmodified HEAD and 1 in 6 on a working tree, interleaved (2026-10-06). A red full run on that test alone is not evidence of a regression; rerun it against HEAD before blaming a change. 53441d9 (2026-10-08) fixed a race that matched it; keep this rule until CI history shows it gone.
  • agentd/tests/test_adapters.py test_the_config_is_gone_however_the_turn_ends gave its fake provider a 1-second timeout; at load average ~26 the print('done') case failed once (False != True) and passed 6 of 6 in isolation with agentd unchanged from HEAD (2026-10-07). Since 53441d9 the turns that end get 30 seconds and only the timeout case keeps 1, but why the host took that long is unknown. Same rule as the nudge test: rerun before blaming.
  • The stop hook's shell-edit rules (aroundSteps, stepWrites and regexStep in claude/hooks/luciazero-verify.cjs) are heuristics tuned over ten review rounds (PR #26), and almost every narrowing fix broke a shape an earlier rule handled: a regex step that is any match loses a writer's edit, one that must match the program loses bash -c "pytest". When the order is unknown, prefer an extra nudge to a red. Revert-probe a new assertion against the last two or three commits of the hook, not only the latest. In zsh, quote "${rev}:path": $rev:c... is a modifier.
  • systemd reads WorkingDirectory= and StandardOutput=append: whole, with no unquoting: a quoted path is not absolute and the unit is refused as a bad setting (config_parse_working_directory, read 2026-11-10). Only ExecStart= and Environment= unquote. The quoted form shipped from 2.5.0 through 3.0.0 because every test read only the unit's text. Now SystemdRunTests in agentd/tests/test_service.py runs systemd-analyze verify on Linux, and its negative control proves that check refuses the quoted form. With LUCIAZERO_TEST_SYSTEMD=1 it also starts a linked copy under a user manager. The verify CI job does both; no systemd on macOS.
  • ps -o lstart= prints in the caller's LANG and TZ (de_DE gives Di. 10 Nov., an exported TZ another hour; probed 2026-11-10 on macOS). A start time one process records and another compares must come from procinfo.stable_started_at (C locale, UTC), as endpoint.json does. Bindings still use started_at in each side's own environment, so a service daemon may refuse a run binding made in a German terminal; not fixed yet, because changing the form refuses every binding already stored.
  • Claude Code silently drops an agent whose name: contains a colon (lucia:reviewer never loads; checked against the claude -p init event's agent list, 2.1.317). x:y only comes from plugin namespacing.
  • Reviewer cost A/B: run claude -p --system-prompt-file <agent body> --setting-sources project --strict-mcp-config in a fresh clone; that keeps the user's CLAUDE.md and hooks out. A small fixture hits a floor (4-5 steps for any prompt). The caller's brief drives step count more than the prompt, so A/B with a realistic long brief. Results: docs/experiments.md 2026-11-03.

Read the full file on GitHub · 104 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 · 104 lines · 1,960 tokens per session scan A 217fd6f392a9

Subscribe to this mod's changes

luciazero AGENTS.md is an instructions file published in the GitHub repository ohm41321/luciazero (6 stars, last pushed yesterday), licensed MIT. It adds 1,960 tokens to every session, about $0.0078 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-11-11.

Related

luciazero AGENTS.md compared with instructions from other repositories

luciazero AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
luciazero AGENTS.mdohm41321/luciazeroInstructions file6yesterdayMITA1,960Codex, OpenCode
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143ktodayMITA7,461Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA5,685GitHub Copilot
langchain AGENTS.mdlangchain-ai/langchainInstructions file149ktodayMITA4,680Codex, OpenCode
deepseek-harness AGENTS.mddeepseek-ai/deepseek-harnessInstructions file279kyesterdayMITA4,325Codex, OpenCode
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA3,086GitHub Copilot