codex-profiles: Instructions file for Codex

AGENTS.md

codex-profiles AGENTS.md is an instructions file for Codex, OpenCode from Ducksss/codex-profiles. It costs 1,943 tokens per session, scanned A, original, MIT.

A project instruction file for codex-profiles, a Bash command-line tool that keeps separate Codex settings and ChatGPT desktop data for named profiles.

In plain words
What is it for?
Use it when developing, testing, releasing, or reviewing the codex-profiles command-line tool.
Why use it?
It explains the repository structure, setup, tests, and important distinctions between different instruction files, reducing the risk of editing the wrong place or misunderstanding how profiles work.

Instructions file for CodexOpenCode

Written for Codex and OpenCode: the file is AGENTS.md. Also seen: mentions Claude Code; reads ~/.codex paths; mentions AGENTS.md.

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

Reuse

Borrowing it

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

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

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/ducksss/codex-profiles/agents-md"><img src="https://agentmods.dev/badge/instructions/ducksss/codex-profiles/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 1,943 This file is loaded in full into every session.
When invoked 1,943 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.01943 $0.01943
Opus 5.5 $0.00777 $0.00777
Sonnet 5.5 $0.00389 $0.00389
Haiku 4.5 $0.00194 $0.00194

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

Security

Grade A, and why

codex-profiles 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 13d 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 · 159 lines

How it starts

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

AGENTS.md

Guidance for AI coding agents (Codex, Claude Code, Cursor, and similar) working in this repository. Humans should start with README.md.

agent.md is the user-facing install and setup guide for agents. Project-internal outreach operations live under ops/outreach/.

What this project is

codex-profiles is a single-file, dependency-free Bash CLI for named Codex homes and named ChatGPT windows with separate local state. Every profile selects a CODEX_HOME; named macOS Desktop launches additionally select Electron user data for the entire ChatGPT window across Chat, Work, and Codex. The whole program is bin/codex-profile.

It is community-maintained and is not an official OpenAI project.

Repository layout

  • bin/codex-profile — the entire CLI (Bash). Edit this for behavior changes.
  • macos/ — optional native menu-bar companion; delegates profile operations to the bundled CLI. Build and DMG programs live in scripts/macos/.
  • raycast/ — optional Raycast extension (TypeScript, its own npm dependencies); delegates every profile operation to the codex-profile CLI (a standalone install or the menu-bar app's bundled copy) and never reads auth data. Background calls use argument lists; Terminal launches pass the user's shell one command whose values are single-quoted so sh, bash, zsh and fish all read them literally (AppleScript quoted form of is not fish-safe). It is outside the npm package and make check; verify it with npm run typecheck, npm test and npx prettier --check . inside raycast/. npm run lint fails until author in raycast/package.json is a real Raycast username, so use npx eslint src test until then. Its icon renderer is scripts/raycast/render-extension-icon.swift.
  • agent.md — user-facing install and profile-setup instructions for AI agents.
  • .agents/skills/ — repo-local Codex outreach workflow skills.
  • ops/outreach/ — project-internal distribution prompt, launch playbook, and tracker runbook.
  • scripts/check — canonical syntax, test, lint, and full-check dispatcher.
  • scripts/release/ — directly tested release-channel programs; workflow YAML only maps permissions, inputs, secrets, and ordering.
  • scripts/aur/ — non-pushing AUR preparation and read-only verification.
  • test/ — suites grouped by cli, install, packaging, release, site, and outreach; shared infrastructure lives in test/lib and fixtures in test/fixtures.
  • docs/ — GitHub Pages site plus llms.txt, robots.txt, and sitemap.xml.
  • Makefile — stable delegates including check, test, lint, install, and package smoke targets.
  • CHANGELOG.md — Keep a Changelog format; add entries under ## Unreleased.

Read the full file on GitHub · 159 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. 13d ago Changed · +4 lines · +68 tokens per session 04fa6683f028
  2. 26d ago Changed · +10 lines · +178 tokens per session c4a7ec627e72
  3. 1mo ago Changed · +2 lines · +36 tokens per session 3fabf360a056
  4. 2mo ago Changed · -2 tokens per session 2de843cf46ce
  5. 2mo ago Changed · +7 lines · +103 tokens per session a75499cbad2c
  6. 2mo ago First seen · 136 lines · 1,560 tokens per session scan A 8338b41eec7e

Subscribe to this mod's changes

codex-profiles AGENTS.md is an instructions file published in the GitHub repository Ducksss/codex-profiles (193 stars, last pushed 3d ago), licensed MIT. It adds 1,943 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-08-30.

Related

codex-profiles AGENTS.md compared with instructions from other repositories

codex-profiles AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
codex-profiles AGENTS.mdDucksss/codex-profilesInstructions file1933d agoMITA1,943Codex, OpenCode
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143ktodayMITA7,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