codex-desktop-linux: Instructions file for Codex

AGENTS.md

codex-desktop-linux AGENTS.md is an instructions file for Codex, OpenCode from distsystem/codex-desktop-linux. It costs 1,840 tokens per session, scanned A, original, MIT.

Repository-specific instructions for adapting the macOS Codex Desktop app into Linux packages such as .deb, .rpm, pacman, and AppImage. They describe the build process, update manager, supported upstream version, and rules for Linux-specific features.

In plain words
What is it for?
Use them when updating the Linux port, fixing changes in the upstream DMG, rebuilding native modules, preparing packages, or deciding where experimental Linux integrations belong.
Why use it?
They help an agent keep Linux packaging aligned with the latest upstream app and avoid leaving outdated compatibility workarounds in the code.

Instructions file for CodexOpenCode

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

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

Reuse

Borrowing it

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

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 codex-desktop-linux AGENTS.md

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/distsystem/codex-desktop-linux/agents-md"><img src="https://agentmods.dev/badge/instructions/distsystem/codex-desktop-linux/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 1,840 This file is loaded in full into every session.
When invoked 1,840 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.01840 $0.01840
Opus 5.5 $0.00736 $0.00736
Sonnet 5.5 $0.00368 $0.00368
Haiku 4.5 $0.00184 $0.00184

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

Security

Grade A, and why

codex-desktop-linux 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 10d 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 · 169 lines

How it starts

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

AGENTS.md

Purpose

This repository repackages OpenAI's signed official Linux chatgpt package as the independently named codex-desktop distribution. It preserves the official ELF/Electron payload and bundled tools, adds disabled-by-default Linux features, builds deb/RPM/pacman/AppImage/Nix outputs, and ships a Rust update manager that rebuilds from the signed stable APT repository.

Non-negotiable rules

  • Support only the latest signed stable OpenAI Linux package on amd64 and arm64. Remove obsolete drift paths in the same change.
  • Trust InRelease through the pinned repository key, then verify Packages and package SHA-256 values by default, including explicitly supplied local packages. latest URLs are never a trust root. A local-package build may skip this official verification for that invocation only via --skip-oai-official-sig-verification only; retain structural checks and record the skip in build provenance. With no flag, all builds verify without prompting or reading user input, including interactive local builds. Never silently fall back to a skip after verification failure.
  • Never execute upstream maintainer scripts. Extract the data payload only.
  • A clean build with no enabled ASAR feature and no required core patch must preserve resources/app.asar byte-for-byte.
  • Keep the output identity codex-desktop under /opt/codex-desktop; do not install the upstream APT source, key, package identity, or maintainer scripts.
  • Keep the user-facing desktop name ChatGPT Community and its distinct community icon; ChatGPT without the qualifier identifies the upstream app.
  • The core patch registry contains only reproduced launch/work blockers with required regression tests; otherwise it stays empty.
  • Experimental or workflow-specific behavior belongs in linux-features/ and remains disabled in committed configuration.
  • Known retired feature IDs are ignored; arbitrary unknown IDs remain errors.
  • Do not edit generated output (codex-app/, dist/, candidates, target/).

Read the full file on GitHub · 169 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. 10d ago Changed · -32 lines · -420 tokens per session 455515ba34be
  2. 2mo ago First seen · 201 lines · 2,260 tokens per session scan A a023254766db

Subscribe to this mod's changes

codex-desktop-linux AGENTS.md is an instructions file published in the GitHub repository distsystem/codex-desktop-linux (17 stars, last pushed 9d ago), licensed MIT. It adds 1,840 tokens to every session, about $0.0074 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-08-30.

Related

codex-desktop-linux AGENTS.md compared with instructions from other repositories

codex-desktop-linux AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
codex-desktop-linux AGENTS.mddistsystem/codex-desktop-linuxInstructions file179d agoMITA1,840Codex, 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,516GitHub Copilot
langchain AGENTS.mdlangchain-ai/langchainInstructions file149ktodayMITA4,680Codex, OpenCode
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA3,093GitHub Copilot
vscode ai-customization.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA1,907GitHub Copilot