codomyrmex: Command for Claude Code

.github/commands/PAI.md

PAI is a command for Claude Code from docxology/codomyrmex. It costs 0 tokens per session (346 once invoked), scanned A, original, MIT.

A guide for coordinating Personal AI Infrastructure with Gemini command configurations used by GitHub Actions.

In plain words
What is it for?
Use it to compare PAI findings with Gemini pull-request reviews, assess coverage gaps, and escalate critical findings for human review.
Why use it?
It helps an agent understand what automated review already covers so it can find missing checks without repeating the same work.

Command for Claude Code

Written for Claude Code: a Claude Code command (commands/*.md).

This is docxology/codomyrmex's own configuration. It tells Claude Code how to work on codomyrmex 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 codomyrmex configures →

Reuse

Borrowing it

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

Made for: Claude Code.

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 PAI

README.md
[![agentmods](https://agentmods.dev/badge/commands/docxology/codomyrmex/pai/github.svg)](https://agentmods.dev/commands/docxology/codomyrmex/pai)
Your own site
<a href="https://agentmods.dev/commands/docxology/codomyrmex/pai"><img src="https://agentmods.dev/badge/commands/docxology/codomyrmex/pai/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 PAI

Your own site · 80×15
<a href="https://agentmods.dev/commands/docxology/codomyrmex/pai"><img src="https://agentmods.dev/badge/commands/docxology/codomyrmex/pai.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 346 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 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.00000 $0.00346
Opus 5.5 $0.00000 $0.00138
Sonnet 5.5 $0.00000 $0.00069
Haiku 4.5 $0.00000 $0.00035

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

Security

Grade A, and why

PAI 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 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.

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.

.github/commands/PAI.md · 37 lines

What it actually says

.github/commands — PAI Integration Guide

Status: Active | Last Updated: February 2026

Purpose

PAI reads Gemini command configs to understand the automated review/triage system. PAI does not invoke these commands directly — they run via GitHub Actions.

PAI Phase Mapping

PAI Phase Usage
OBSERVE Read TOML configs to understand what AI review is already providing
THINK Assess if review coverage gaps exist (e.g., no security-focused review pass)
PLAN Consider whether a new Gemini command config would fill a gap
VERIFY Check if Gemini review comments on a PR align with PAI's own review findings

Understanding the Review System

The gemini-review.toml runs Gemini as a code reviewer on every PR. PAI should:

  • Complement Gemini's review, not duplicate it
  • Focus on architectural concerns Gemini may miss (cross-module impact, ISC coverage)
  • Escalate to human review anything Gemini flags as 🔴 Critical

Key Operational Notes

  • Gemini reviews post as GitHub review comments (visible in PR Conversations tab)
  • Commands run in isolated Actions environments with no access to repository secrets
  • The additional_context env var in workflow steps customizes per-run focus areas
  • gemini-scheduled-triage.toml runs weekly — check it when issues appear unlabeled

Constraints

  • Do not modify TOML prompts without testing on a fork — changes affect all future PRs
  • Preserve all security constraints (input demarcation, scope limitation, tool exclusivity)
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 · 37 lines · 0 tokens per session scan A 90cfea5b4f04

Subscribe to this mod's changes

PAI is a command published in the GitHub repository docxology/codomyrmex (11 stars, last pushed today), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 346 tokens. 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.

Related

Other commands, from other repositories

ci-sentinel

Daily autonomous classifier for failing PRs across your repos. Runs /ci-debug headless against every open PR with red required checks, posts the verdict as a collapsed PR comment, and appends to a per-repo .sentinel/ledger.jsonl. v1 is propose-don't-apply — NEVER auto-pushes a fix. Use when you're tired of /status…

yonatangross/orchestkit · 94 tokens

ci-debug

Diagnose a failing CI run against an 11-pattern playbook. Classifies the failure, cites the relevant memory entry, proposes the exact fix command — but NEVER applies without explicit user approval. Use when a specific PR check or GitHub Actions run failed and you want a diagnosis instead of speculation. Don't use for…

yonatangross/orchestkit · 92 tokens

expect

Diff-aware AI browser testing — reads the git diff, maps changes to affected pages via the route map, generates a targeted test plan, and executes it via agent-browser (Rust daemon + CDP, ARIA-tree-first) with pass/fail reporting. Use when testing UI changes, verifying PRs before merge, or running regression checks on…

yonatangross/orchestkit · 73 tokens

memory

Read-side memory operations on the knowledge graph: search past decisions and patterns, load session context, view decision timelines, render Mermaid graph visualizations. Subcommands: search, load, history, viz, status. Use when finding or reviewing what memory already holds. For storing new knowledge instead, invoke…

yonatangross/orchestkit · 77 tokens

docker-cicd-pipeline

Du bist ein Docker CI/CD Experte. Du musst eine vollständige Pipeline zum Bauen, Testen, Scannen und Deployen von Docker-Images generieren.

TheBeardedBearSAS/claude-craft · 4 tokens

compact-prep

Ask the agent to prepare for conversation compaction by updating any relevant state and providing guidance for the compaction agent and to kick off the session there after.

sammcj/agentic-coding · 30 tokens