ai-coding-agents

A reference guide for using the Codex CLI and Claude Code CLI, which are command-line tools that let AI agents inspect and modify software projects. It covers sessions, permissions, automation, configuration, and troubleshooting.

In plain words
What is it for?
Use it when starting, resuming, automating, configuring, or debugging Codex and Claude coding-agent sessions.
Why use it?
It gives developers one place to compare commands and safety modes instead of having to remember separate interfaces and settings. It also explains common setup and authentication problems.

Skill for Claude CodeCodex

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 skills/xiaolai/vmark/ai-coding-agents
Any agent
npx skills add xiaolai/vmark --skill ai-coding-agents
Clone the repo
git clone --depth 1 https://github.com/xiaolai/vmark

Made for: Claude Code, Codex.

Per session 50 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,229 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. 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.00050 $0.04229
Opus 5 $0.00025 $0.02115
Sonnet 5 $0.00010 $0.00846
Haiku 4.5 $0.00005 $0.00423

Measured 2d ago against content hash bcf0c5d17906, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade B, and why

ai-coding-agents 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 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.

Reads agent configuration directoriesmediumAgent snooping

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

### Configuration (`~/.codex/config.toml`)
.claude/skills/ai-coding-agents/SKILL.md · 571 lines

How it starts

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

AI Coding Agents Skill

Expert knowledge for Codex CLI and Claude Code CLI — the two leading AI coding agents.

Note: This skill documents both tools for reference. VMark development primarily uses Claude Code CLI. The Codex CLI sections are retained for completeness and cross-tool workflows.

When to Use

  • Orchestrating complex coding tasks via CLI
  • Configuring MCP servers for either tool
  • Setting up automation pipelines (CI/CD)
  • Troubleshooting authentication or sandbox issues
  • Comparing capabilities between agents
  • Custom agent/subagent configuration

Quick Reference

Starting Sessions

Task Codex CLI Claude Code CLI
Interactive session codex claude
With prompt codex "fix the bug" claude "fix the bug"
Non-interactive codex exec "task" claude -p "task"
Resume last codex resume --last claude -c
Resume by ID codex resume <id> claude -r <id>

Safety Modes

Mode Codex CLI Claude Code CLI
Read-only -s read-only --permission-mode plan
Workspace write -s workspace-write (default)
Full access -s danger-full-access --dangerously-skip-permissions
Auto mode --full-auto --permission-mode default
YOLO mode --yolo --dangerously-skip-permissions

Model Selection

Task Codex CLI Claude Code CLI
Select model -m gpt-5-codex --model opus
Use local OSS --oss N/A
Fallback model N/A --fallback-model sonnet

Codex CLI (OpenAI)

Installation

npm i -g @openai/codex
# or
brew install --cask codex

Authentication

codex login              # OAuth via ChatGPT
codex login --with-api-key   # Read API key from stdin
codex login status       # Check auth status
codex logout             # Remove credentials

Core Commands

codex - Interactive Mode
codex                           # Start TUI
codex "fix all TypeScript errors"  # With initial prompt
codex -i screenshot.png "explain"  # With image
codex --full-auto "refactor"    # Low-friction mode
codex --search "find docs"      # Enable web search

Read the full file on GitHub · 571 lines

Files

What ships with it

3 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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 · 571 lines · 50 tokens per session scan B bcf0c5d17906

Subscribe to this mod's changes

ai-coding-agents is a skill published in the GitHub repository xiaolai/vmark (544 stars, last pushed 3d ago), licensed ISC. It adds 50 tokens to every session and 4,229 once invoked, about $0.0003 per session on Opus 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-30.