generated-and-runtime-notes

Repository guidance for keeping generated application files, build outputs, local feature selections, and packaged runtime files out of source changes.

In plain words
What is it for?
Use it when reviewing repository changes, checking package integrity, or deciding whether a file belongs in a pull request.
Why use it?
It prevents accidental edits or commits to files created during builds or kept locally, and helps detect differences between the official package and the staged application.

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/ilysenko/codex-desktop-linux/generated-and-runtime-notes
Clone the repo
git clone --depth 1 https://github.com/ilysenko/codex-desktop-linux
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 512 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.00000 $0.00512
Opus 5 $0.00000 $0.00256
Sonnet 5 $0.00000 $0.00102
Haiku 4.5 $0.00000 $0.00051

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

Security

Grade A, and why

generated-and-runtime-notes 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 2d 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.

docs/agents/generated-and-runtime-notes.md · 56 lines

What it actually says

Generated and runtime notes

Do not edit or commit generated application/package state:

  • codex-app/, codex-app-next/, codex-app.backup-*, .codex-app.candidate-*
  • codex-*-app/, dist/, dist-next/, target/
  • linux-features/features.json, linux-features/local/
  • staged feature manifests and build/patch reports
  • updater config/state/cache/log directories under XDG paths

The local selection files are intentionally untracked:

linux-features/features.json
linux-features/local/<id>/

Do not replace them with committed defaults or include private local feature code in a pull request by accident.

The baseline staged tree is extracted from /usr/lib/chatgpt in the verified official package. Its runtime, native modules, commands, libraries, locales, and Owl metadata remain upstream-owned. start.sh and .codex-linux/ are generated from repository templates and feature manifests.

With no ASAR features, compare the staged and package resources/app.asar SHA-256 values. Any difference is a build bug. With features, consult the patch report and staged feature manifest.

Expected generated metadata under codex-app/.codex-linux/ includes build-info schema v2, the enabled feature snapshot, launcher hook directories, the community icon, and patch/build reports where applicable. These are regenerated from repository templates and manifests.

The official payload should continue to supply:

  • ChatGPT and its Electron libraries;
  • resources/app.asar;
  • Linux native modules;
  • bundled codex, rg, and code-mode host;
  • bundled official plugins, locales, assets, and Owl metadata.

A generated tree containing a downloaded replacement Electron, an external CLI bundle, rebuilt upstream native modules, or a local webview HTTP server signals that retired architecture has been reintroduced.

Updater candidates are siblings of the active tree and are promoted atomically. Do not manually rename an active/candidate pair or delete its recovery journal. An old root-owned codex-app.backup-* is disposable only after verifying it is not the active tree or the updater's recorded rollback artifact.

Package manager output under /opt/codex-desktop is installed state, not a development source tree. Fix templates in the repository, rebuild a package, and reinstall rather than modifying /opt in place.

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. 2d ago First seen · 56 lines · 0 tokens per session scan A bfd1c062b3c9

Subscribe to this mod's changes

generated-and-runtime-notes is an agent published in the GitHub repository ilysenko/codex-desktop-linux (3,737 stars, last pushed 2d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 512 tokens. 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.