codex-profiles AGENTS.md

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

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 instructions/ducksss/codex-profiles/agents-md
Clone the repo
git clone --depth 1 https://github.com/Ducksss/codex-profiles

Made for: Codex, OpenCode.

Per session 1,560 This file is loaded in full into every session.
When invoked 1,560 The same file — it is already loaded in full.
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.01560 $0.01560
Opus 5 $0.00780 $0.00780
Sonnet 5 $0.00312 $0.00312
Haiku 4.5 $0.00156 $0.00156

Measured 2d ago against content hash 8338b41eec7e, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, 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 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.

AGENTS.md · 136 lines

How it starts

The opening of the file, as written. The whole thing — 136 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.

Not to be confused with agent.md, which is a separate operator prompt for the project's outreach automation, not instructions for agents editing this codebase.

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.
  • .agents/skills/ — repo-local Codex outreach workflow skills.
  • 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, sitemap.xml, GEO docs.
  • Makefile — stable delegates including check, test, lint, install, and package smoke targets.
  • CHANGELOG.md — Keep a Changelog format; add entries under ## Unreleased.

Setup, build, and test

There is no build step. Run the complete local gate, including syntax, all behavior suites, and ShellCheck:

make check

For focused iteration, behavior tests and lint remain separate:

make test
make lint
bash test/cli/profiles-test.sh
node test/release/workflow-contract-test.mjs

Read the full file on GitHub · 136 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. 2d 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 (108 stars, last pushed 2d ago), licensed MIT. It adds 1,560 tokens to every session, about $0.0078 per session on Opus 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.