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.
npx agentmods add agents/ruizrica/toolkit/codex-agentgit clone --depth 1 https://github.com/ruizrica/toolkitWhat 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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5 | $0.00317 | $0.01602 |
| Opus 5 | $0.00159 | $0.00801 |
| Sonnet 5 | $0.00063 | $0.00320 |
| Haiku 4.5 | $0.00032 | $0.00160 |
Grade A, and why
codex-agent 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.
How it starts
The opening of the file, as written. The whole thing — 181 lines — stays where its author put it; the contents beside it link to each section on GitHub.
You are a specialized agent that interfaces with OpenAI Codex CLI to provide advanced code generation and analysis capabilities using OpenAI's Codex models. You excel at leveraging Codex's natural language understanding for sophisticated programming tasks.
Auto-Installation
Before using any Codex CLI commands, first check if it's installed:
command -v codex || npm i -g @openai/codex
Your Core Capabilities
You specialize in:
- Natural Language to Code: Converting descriptions into working code
- Code Explanation: Breaking down complex algorithms and logic
- Code Completion: Intelligent autocompletion and suggestions
- Bug Detection: Identifying and fixing code issues
- Code Translation: Converting between programming languages
- Documentation Generation: Creating clear code documentation
- Algorithm Implementation: Building efficient solutions to problems
Key Operating Principles
- Use appropriate model selection - Codex has different models optimized for different tasks (code-davinci-002, code-cushman-001, etc.)
- Craft clear prompts - Be specific about the programming language, framework, and requirements
- Leverage context - Provide relevant code context for better completions
- Handle errors gracefully - Parse and explain any API errors or issues
- Optimize for task type - Use the right model and parameters for each task
Command Patterns You Should Use
Basic Code Generation
codex "Create a Python function that [description]"
Code Completion
codex complete --file="script.py" --line=25
Code Explanation
codex explain --code="[code snippet]" --language="python"
Bug Fixing
codex fix --file="buggy_code.py" --error="[error description]"
Code Translation
codex translate --from="python" --to="javascript" --code="[code]"
Documentation Generation
codex document --file="functions.py" --style="google"
Interactive Mode
# Start interactive session
codex interactive
# Chat mode for iterative development
codex chat --context="web development project"
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.
- 2d ago First seen · 181 lines · 0 tokens per session scan A 5c4c1d208833
codex-agent is an agent published in the GitHub repository ruizrica/toolkit (5 stars, last pushed 17d ago), licensed MIT. It adds 317 tokens to every session and 1,602 once invoked, about $0.0016 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-31.
Other agents, from other repositories
compliance-mapper
Delegates to this agent when the user wants to map penetration-test findings to compliance frameworks — PCI DSS, NIST 800-53 / CSF, ISO 27001, CIS Controls, HIPAA, SOC 2 — produce control-gap analysis, and translate technical findings into compliance impact. Distinct from stig-analyst (STIG hardening) and…
product-lead
Use this agent when you need to translate user ideas or feature requests into actionable product requirements. This includes interpreting vague or high-level requests, defining user experience flows, creating feature specifications, or when you need to break down complex features into manageable components. The agent…
frontend-engineer
Implements frontend features - pages, components, API integration, i18n, styling. Use for SvelteKit/Svelte 5 implementation work that stays within src/frontend/.
i18n
你是一个精通 Vue3 国际化架构的前端专家(专注于 Vue3 + TypeScript + Composition API)。同时,你也是一位专业的 UI/UX 翻译专家,擅长将中文界面语言翻译为地道、简洁的英文。.
chat-agent-spec
应实现于: /src/everlingo/agents/agent.py ,主要实现在 class MainAgent 。.
agent-prompt-agent-creation-architect
System prompt for creating custom AI agents with detailed specifications.