PAI

Documentation for Personal AI Infrastructure, a collection of packages and services used to coordinate AI agents and their work.

In plain words
What is it for?
Use it to understand agent packages, dashboards, real-time updates, audit logs, task queues, memory storage, and agent pooling.
Why use it?
It gives agents a shared structure for coordination, task handling, memory, monitoring, and communication across the system.

Agent

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 agents/docxology/codomyrmex/pai
Clone the repo
git clone --depth 1 https://github.com/docxology/codomyrmex
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 606 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. 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.00000 $0.00606
Opus 5 $0.00000 $0.00303
Sonnet 5 $0.00000 $0.00121
Haiku 4.5 $0.00000 $0.00061

Measured 2d ago against content hash 9c5176feef85, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, 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 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.

docs/agents/PAI.md · 42 lines

How it starts

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

Agent Documentation — Personal AI Infrastructure

Version: v1.3.0 | Status: Active | Last Updated: March 2026

Overview

PAI agents operating within the Codomyrmex ecosystem integrate through the agent documentation here. This directory governs 40 agent packages spanning CLI-based, API-based, core infrastructure, infrastructure, and specialized modules.

AI Capabilities

  1. Behavioral guidelines — Core operating rules for all AI agents (see rules/)
  2. Coordination patterns — How agent packages collaborate within and across modules
  3. Quality enforcement — Zero-Mock policy and functional integrity across all agent integrations
  4. Multi-agent orchestration — Pooling, load balancing, and mission control

Agent-PAI Integration Points

Integration Agent Module Purpose
Dashboard coordination pai/ Admin :8787 + PM :8888 dual-interface
WebSocket push pai/ Real-time updates via :8890
Agent observability history/ Audit logs, replay, telemetry
Task management droid/ Priority queues, cross-agent tasks
Memory systems memory/ Vector recall, episodic storage
Agent pooling pooling/ Load balancing, circuit breakers

Key Agents with PAI Deep Integration

  • Hermeshermes/ — 19 modular docs (gateway, Telegram, launchd, sessions, cron, troubleshooting); skills.md documents unified skill id registry, .codomyrmex/hermes_skills_profile.yaml, MCP hermes_skills_*, and PAI hermes_external_skills workflow steps
  • Claudeclaude/ — Anthropic integration with advanced reasoning
  • Geminigemini/ — Google CLI with file operations and session management
  • Julesjules/ — Swarm orchestration (113+ concurrent sessions)
  • Mission Controlmission_control/ — Multi-agent mission coordination

Read the full file on GitHub · 42 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. 2d ago First seen · 42 lines · 0 tokens per session scan A 9c5176feef85

Subscribe to this mod's changes

PAI is an agent published in the GitHub repository docxology/codomyrmex (11 stars, last pushed 2d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 606 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 agents, from other repositories

ai-readiness-reporter

Runs the AgentRC readiness assessment on the current repository and produces a self-contained, static HTML dashboard at reports/index.html. Explains every readiness pillar, the maturity level, and an actionable remediation plan, framed by AgentRC measure → generate → maintain loop. Use when asked to assess, audit…

github/awesome-copilot · 80 tokens

Custom Agent Foundry

Expert at designing and creating VS Code custom agents with optimal configurations.

github/awesome-copilot · 17 tokens

Agent Governance Reviewer

AI agent governance expert that reviews code for safety issues, missing governance controls, and helps implement policy enforcement, trust scoring, and audit trails in agent systems.

github/awesome-copilot · 35 tokens

chat-agents

Build AI-powered chat interfaces with AIChatAgent and useAgentChat. Messages are automatically persisted to SQLite, streams resume on disconnect, and tool calls work across server and client.

cloudflare/agents · 0 tokens

webhooks

Receive webhook events from external services and route them to dedicated agent instances. Each webhook source (repository, customer, device) can have its own agent with isolated state, persistent storage, and real-time client connections.

cloudflare/agents · 0 tokens

retries

Retry failed operations with exponential backoff and jitter. The Agents SDK provides built-in retry support for scheduled tasks, queued tasks, and a general-purpose this.retry() method for your own code.

cloudflare/agents · 0 tokens