codex-as: Instructions file for Codex

AGENTS.md

codex-as AGENTS.md is an instructions file for Codex, OpenCode from Axiweave/codex-as. It costs 296 tokens per session, scanned B, original, MIT.

Repository instructions for codex-as, a small Bash wrapper that launches Codex with selected authentication or provider profiles.

In plain words
What is it for?
Use them when changing the wrapper, authentication backends, shell completions, multilingual README files, dependency instructions, or its verification tests.
Why use it?
They preserve per-process authentication settings and prevent changes from permanently altering the user’s global Codex configuration.

Instructions file for CodexOpenCode

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

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

Reuse

Borrowing it

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

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

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/axiweave/codex-as/agents-md"><img src="https://agentmods.dev/badge/instructions/axiweave/codex-as/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 296 This file is loaded in full into every session.
When invoked 296 The same file — it is already loaded in full.
Security scan B 1 finding. 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.00296 $0.00296
Opus 5.5 $0.00118 $0.00118
Sonnet 5.5 $0.00059 $0.00059
Haiku 4.5 $0.00030 $0.00030

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

Security

Grade B, and why

codex-as AGENTS.md scanned grade B with 1 finding 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 1mo 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.

Reads agent configuration directoriesmediumAgent snooping

.claude/, .codex/, .gemini/ hold keys, settings and other credentials a mod has no legitimate need for.

- Prefer `codex -c` runtime overrides over editing `~/.codex/config.toml`.
AGENTS.md · 35 lines

What it actually says

AGENTS.md

Project Scope

This repository contains codex-as, a small Bash wrapper for launching Codex with selected auth/provider profiles.

Development Notes

  • Keep the implementation small and shell-first.
  • Do not commit downloaded reference repos under refs/; they are local research material.
  • Do not commit docs/superpowers/; keep those files local if generated.
  • Prefer codex -c runtime overrides over editing ~/.codex/config.toml.
  • Preserve the core design goal: avoid permanent global mutation of ~/.codex/auth.json and ~/.codex/config.toml.
  • On Linux, prefer the bubblewrap backend for per-process auth substitution.
  • On macOS, keep the startup-window fallback as the default and session-lock mode as the stricter opt-in behavior.
  • When changing user-facing README content, update all language variants: README.md, README.zh-CN.md, and README.zh-TW.md.
  • Keep dependency and install instructions synchronized across all README language variants, including bubblewrap package install commands.

Verification

Before publishing changes, run:

test/codex-as-test.bash
shellcheck bin/codex bin/codex-as test/codex-as-test.bash
zsh -n completions/_codex-as
git diff --check
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. 1mo ago First seen · 35 lines · 296 tokens per session scan B ef20ae541bcf

Subscribe to this mod's changes

codex-as AGENTS.md is an instructions file published in the GitHub repository Axiweave/codex-as (2 stars, last pushed 4mo ago), licensed MIT. It adds 296 tokens to every session, about $0.0012 per session on Opus 5.5. A static security scan graded it B with 1 finding (reads agent configuration directories). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other instructions, from other repositories