the-council: Instructions file for Codex

AGENTS.md

the-council AGENTS.md is an instructions file for Codex, OpenCode from DantesPeak85/the-council. It costs 1,644 tokens per session, scanned D, original, MIT.

Project instructions for The Council, a Bash-and-Markdown Claude Code skill that asks OpenAI Codex and Google Gemini for independent advice. It explains the project structure, architecture, and key design decisions.

In plain words
What is it for?
Use it when reviewing, debugging, or changing The Council's prompts, scripts, workflow, or command-line integration.
Why use it?
It gives coding agents the project context needed to review or modify the advisory skill accurately.

Instructions file for CodexOpenCode

Written for Codex and OpenCode: reads ~/.codex or $CODEX_HOME, but also the file is AGENTS.md. Also seen: mentions CLAUDE.md; mentions Claude Code; mentions AGENTS.md.

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

Reuse

Borrowing it

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

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 the-council AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/dantespeak85/the-council/agents-md.svg)](https://agentmods.dev/instructions/dantespeak85/the-council/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/dantespeak85/the-council/agents-md"><img src="https://agentmods.dev/badge/instructions/dantespeak85/the-council/agents-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 1,644 This file is loaded in full into every session.
When invoked 1,644 The same file — it is already loaded in full.
Security scan D 2 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.01644 $0.01644
Opus 5 $0.00822 $0.00822
Sonnet 5 $0.00329 $0.00329
Haiku 4.5 $0.00164 $0.00164

Measured 8d ago against content hash 3895902dcca5, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade D, and why

the-council AGENTS.md scanned grade D with 2 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 8d 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.

| `CODEX_MODEL` | unset → `~/.codex/config.toml` | Codex advisor model (passed via `-m`) |

Recursive force deletehighDestructive command

rm -rf with a variable or a broad path is one typo away from removing the wrong tree.

Invocation creates `.council-tmp/council_<mode>_YYYYMMDD_HHMMSS/` (where `<mode>` is `full`, `codex`, or `gemini` depending on which advisors ran) in the working directory, containing `prompt_final.txt`, `review_request.
Origin

Copies of this mod

1 near-identical copy found in the catalogue:

AGENTS.md · 67 lines

How it starts

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

Advisory Context (synced from CLAUDE.md)

You are being consulted as an external advisor on this project. Review the project context below and provide your expert analysis when prompted. Focus on correctness, potential issues, and alternative approaches.


CLAUDE.md

This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.

Project Overview

The Council is a Claude Code Skill plugin that convenes OpenAI Codex (codex CLI) and Google Gemini (agy CLI, Google's Antigravity client running Gemini 3.5 Flash by default) as an advisory board. Both run in parallel as effectively read-only consultants, returning independent analyses that Claude synthesizes into unified recommendations.

This is not a Node/TypeScript application — it's a pure Bash + Markdown skill with no build system, package manager, or test framework.

Architecture

skills/the-council/
├── SKILL.md                        # Operational guide (skill definition + workflow)
├── references/prompt-templates.md  # 4 prompt templates (review, architecture, debug, general)
└── scripts/
    ├── council_preflight.sh        # Detects available CLIs + auth status (cached 2h)
    ├── council_sync.sh             # Copies CLAUDE.md → AGENTS.md (Codex only)
    └── council_invoke.sh           # Parallel CLI invocation: timeouts, OS sandbox, snapshot safety net, response validation

Execution flow: Preflight → Sync context → Compose prompt from template → Invoke advisors in parallel → Synthesize responses (consensus/divergence/recommendation) → Generalize learnings into CLAUDE.md/AGENTS.md.

Operating modes are determined by preflight: Full Council (both CLIs), Codex-only, Gemini-only, or abort (neither available).

Key Design Decisions

  • Read-only enforcement (1.3.0+): Both advisors run with OS-level deny-write sandboxes on macOS. Codex uses its built-in --sandbox read-only. Gemini (agy) is wrapped in sandbox-exec with a deny-write profile at skills/the-council/scripts/council_sandbox.sb; writes are allowed only to ~/.gemini/, the per-invocation .council-tmp/<...>/ dir, system temp, and agy-specific ~/Library/Caches/ subdirs. On non-macOS, the script refuses to run agy unless --allow-unsandboxed-gemini is passed.
  • Diff safety net (1.3.0+): pre/post-invocation snapshot of $WORK_DIR (git: HEAD + status with --ignored=traditional + sha256 of tracked + untracked + gitignored files; non-git: find + sha256). Snapshot excludes .council-tmp/ (response files) and .antigravitycli/ (agy's housekeeping dir). Any other change fails the invocation with exit 2 and a [COUNCIL_SAFETY_NET] banner. See SKILL.md for the historical 1.2.x ghost-write incident this replaces.
  • Gemini invocation (1.4.0): Gemini reviews the INLINED prompt only — no project --add-dir, no repo exploration. The composed prompt is written into the per-invocation .council-tmp/<run>/ dir, which becomes the advisor's only workspace. The backend is resolved at runtime: gemini CLI (single-shot, stdin, JSON envelope) when a paid GEMINI_API_KEY/GOOGLE_API_KEY is set and gemini is on PATH, else agy (pty-wrapped via script, sandboxed). The old maxSessionTurns settings injection was a verified no-op and is gone — ~/.gemini/antigravity-cli/settings.json is never touched.
  • Prompt sanitization: jsr: import strings are redacted from the Gemini prompt before invocation to avoid spurious safety/policy blocks from agy.
  • Empty-response retry: If agy exits 0 with no stdout and no stderr, the invocation is retried once before being reported as failed.
  • Response validation (1.4.0): an advisor fails only on empty output, a script-written [COUNCIL-ADVISOR-FAILURE] placeholder, a nonzero exit with no verdict line, a refusal, or non-engagement (a short verdict-less reply to a large prompt). The old response-body word-grep (policy/blocked/quota/rate limit) is gone — it false-failed substantive reviews; stderr noise now demotes to an advisory *_warnings.log, not a failure.
  • Parallel execution: Both advisors run as background processes with configurable timeout (COUNCIL_TIMEOUT, default 600s).
  • NVM compatibility: council_invoke.sh loads NVM environment to find globally-installed CLI tools.
  • macOS support: Uses gtimeout (from coreutils) when available, falls back to timeout or no timeout.
  • Graceful degradation: Works with one advisor if the other is unavailable; shows install help if neither exists.

Read the full file on GitHub · 67 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. 8d ago First seen · 67 lines · 1,644 tokens per session scan D 3895902dcca5

Subscribe to this mod's changes

the-council AGENTS.md is an instructions file published in the GitHub repository DantesPeak85/the-council (3 stars, last pushed yesterday), licensed MIT. It adds 1,644 tokens to every session, about $0.0082 per session on Opus 5. A static security scan graded it D with 2 findings (reads agent configuration directories, recursive force delete). 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

next.js AGENTS.md

AGENTS.md instructions for vercel/next.js, covering next.js development guide, codebase structure, monorepo overview, core package: packages/next and other important packages.

vercel/next.js · 7,296 tokens

codex AGENTS.md

AGENTS.md instructions for openai/codex, covering rust/codex-rs, the codex-core crate, code review rules, crate api surface and model visible context.

openai/codex · 5,153 tokens

vscode buildNext.instructions.md

Working notes and architecture documentation for the new esbuild-based build system in build/next. Use when making changes to the new build pipeline (transpile/bundle commands, NLS plugin, source-map handling, resource copying, or self-hosting watch tasks).

microsoft/vscode · 6,785 tokens

vscode oss-third-party-notices.instructions.md

Instructions for microsoft/vscode, covering vs code oss third-party-notices pipeline, architecture, pipeline flow in ci, applying the notice (cutover) and fallback chain (never fail the build).

microsoft/vscode · 5,001 tokens

langchain AGENTS.md

AGENTS.md instructions for langchain-ai/langchain, covering global development guidelines for the langchain monorepo, corridor security analysis, project architecture and context, monorepo structure and development tools & commands.

langchain-ai/langchain · 4,469 tokens

spec-kit AGENTS.md

AGENTS.md instructions for github/spec-kit, covering agents.md, about spec kit and specify, quickstart — add a new integration in 5 steps, integration architecture and integrationmanifest — file tracking.

github/spec-kit · 7,104 tokens