template-repo
AGENTS.md135 starsChanged 2 months agoUnlicenseView on GitHub
For expression philosophy and communication style, see docs/agents/claude-expression.md This is a single-maintainer project by @AndrewAltimit with a container-first philosophy: Active agents (canonical roster: docs/agents/agent-matrix.md): Legacy / not allowed: Gemini (Google) and Codex (OpenAI). Their code stays in the repo but is unsupported and must not be enabled or used. Google dropped its AI Principles pledge against weapons and surveillance uses in February 2025; OpenAI partners with governments that conduct mass surveillance and enable autonomous weapons. See docs/agents/agent-matrix.md#legacy-agents-gemini-and-codex-not-allowed. For complete agent…
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about code style.
Of the AGENTS.md files we read, the 33,398 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.
In this repository2 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- .github/copilot-instructions.mdCopilot instructions
The file
We split this AGENTS.md into the rules it gives an agent
12 rules. About 0 are common, 10 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈10
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 11
All Python and Rust operations run in Docker containers
- Distinctive: line 14
No contributors model - optimized for individual developer efficiency
- Distinctive: line 15
No external engagement: - no feature requests, guidance, or community interaction accepted (legal protection due to dual-use codebase)
- Distinctive: line 34
Allow List: Only pre-approved users can trigger agents
- Distinctive: line 36
Implementation Requirements: Only complete, working code is accepted
- Distinctive: line 45
Do NOT change remote addresses to localhost in PR reviews
- Distinctive: line 120
Zero Local Dependencies: - All via Docker Compose
- Distinctive: line 121
Self-Hosted Infrastructure: - No cloud costs
- Distinctive: line 146
ALWAYS run CI checks: after completing work
- Distinctive: line 148
Follow container-first philosophy: - use Docker for all operations
- Very specific: line 159
Use the reaction-search MCP server for contextually appropriate reactions:
- Very specific: line 182
CRITICAL: Use Write tool + --body-file pattern for PR comments (shell escaping breaks ![]).
≈ “Common” is an estimate: at least 1 in 5 of the 43,423 AGENTS.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
AGENTS.md
This file provides guidance to AI agents (Cursor, Aider, and other AI coding assistants) when working with code in this repository.
For expression philosophy and communication style, see docs/agents/claude-expression.md
Project Context
This is a single-maintainer project by @AndrewAltimit with a container-first philosophy:
- All Python and Rust operations run in Docker containers
- Self-hosted infrastructure for zero-cost operation
- Designed for maximum portability - works on any Linux system with Docker
- No contributors model - optimized for individual developer efficiency
- No external engagement - no feature requests, guidance, or community interaction accepted (legal protection due to dual-use codebase)
AI Agent Collaboration
Active agents (canonical roster: docs/agents/agent-matrix.md):
- Claude Code - Primary development assistant; runs the security and quality PR reviews (
claude-opus-5-5) - OpenRouter - General PR review via Particle (
particle-ai/particle-1) - OpenCode - Code generation via OpenRouter
- Crush - Code generation via OpenRouter
- GitHub Copilot - Review suggestions in PRs
Legacy / not allowed: Gemini (Google) and Codex (OpenAI). Their code stays in the repo but is unsupported and must not be enabled or used. Google dropped its AI Principles pledge against weapons and surveillance uses in February 2025; OpenAI partners with governments that conduct mass surveillance and enable autonomous weapons. See
docs/agents/agent-matrix.md#legacy-agents-gemini-and-codex-not-allowed.
For complete agent documentation, see docs/agents/README.md
AI Agent Security Model
- Keyword Triggers:
[Action][Agent]format (e.g.,[Approved][Claude]) - Allow List: Only pre-approved users can trigger agents
- Commit Validation: Prevents code injection after approval
- Implementation Requirements: Only complete, working code is accepted
For complete security documentation, see docs/agents/security.md
Remote Infrastructure
IMPORTANT: Some MCP servers run on dedicated remote machines:
- Gaea2 MCP:
192.168.0.152:8007(requires Windows with Gaea2) - AI Toolkit/ComfyUI:
192.168.0.222(requires GPU) - Do NOT change remote addresses to localhost in PR reviews
Essential Commands
CI/CD (Most Used)
# Preferred: Rust CLI (build once with: cargo build --release --manifest-path tools/rust/automation-cli/Cargo.toml)
automation-cli ci run full # All Python checks
automation-cli ci run format # Check formatting
automation-cli ci run lint-full # Full linting
automation-cli ci run rust-full # All Rust checks
automation-cli ci run econ-full # Economic agents (fmt + clippy + test)
automation-cli ci list # Show all available stages
# Legacy shell (still works, wrappers delegate to Rust binary if built)
./automation/ci-cd/run-ci.sh full # All Python checks
./automation/ci-cd/run-ci.sh rust-full # All Rust checks
# Context protection - ALWAYS use for verbose output
automation-cli ci run full > /tmp/ci-output.log 2>&1 && echo "CI passed" || (echo "CI failed"; exit 1)Running Tests
automation-cli ci run test # Python tests (excludes gaea2)
automation-cli ci run test-gaea2 # Gaea2 tests only
automation-cli ci run test-all # All tests
# Legacy equivalents
./automation/ci-cd/run-ci.sh test # Python tests (excludes gaea2)
./automation/ci-cd/run-ci.sh test-all # All testsPR Monitoring
pr-monitor 48
pr-monitor 48 --since-commit abc1234(Install via tools/rust/pr-monitor/install.sh to put the binary on $PATH.)
Docker Operations
docker compose up -d # Start all services
docker compose logs -f <service> # View logs
docker compose down # Stop servicesFor complete command reference, see docs/agents/README.md#running-agents-locally
Architecture
MCP Servers
21 servers under tools/mcp/ (19 active, 2 legacy), plus the shared mcp_core and mcp_core_rust libraries.
| Category | Servers | Transport |
| Code Quality | code-quality, opencode, crush | STDIO (local) |
| Content | content-creation, meme-generator, elevenlabs-speech, video-editor, blender, sprite-sheet | STDIO |
| Integration | virtual-character, github-board, agentcore-memory, reaction-search, desktop-control | STDIO |
| Agent Integration | memory-explorer | STDIO (native) |
| Lab Automation | bioforge (not in .mcp.json by default) | STDIO |
| Legacy / not allowed | gemini, codex | Not to be enabled |
| Remote | gaea2, ai-toolkit, comfyui | HTTP (remote machines) |
For complete MCP documentation, see docs/mcp/README.md
Container Architecture
- Everything Containerized (with documented exceptions)
- Zero Local Dependencies - All via Docker Compose
- Self-Hosted Infrastructure - No cloud costs
For details, see docs/infrastructure/containerization.md
Research Packages
| Package | Language | Purpose |
packages/sleeper_agents/ | Python + Rust | Sleeper agent detection (Python ML core + Rust CLI orchestration) |
packages/economic_agents/ | Rust | Autonomous AI economic simulation |
packages/tamper_briefcase/ | Rust | Tamper-responsive briefcase with PQC recovery |
packages/bioforge/ | Rust | Agent-driven CRISPR automation platform |
packages/recurrent_depth/ | Python | Measurement toolkit for detecting looped (recurrent-depth) language models from configs, weights, or API access |
External packages (separate repositories):
| Package | Language | Purpose |
| game-mods | Rust | Injection toolkit for AI agent integration with legacy software |
| oasis-os | Rust | Embeddable OS framework (SDL2/PSP/UE5) with scene-graph UI and 8 themes |
| breakpoint | Rust/WASM | Multiplayer gaming platform for agentic office hours with agent alert overlay |
| rust-psp | Rust | PSP SDK: ~829 syscall bindings, 38+ modules, used by oasis-os |
Development Reminders
- ALWAYS run CI checks after completing work
- NEVER commit unless the user explicitly asks
- Follow container-first philosophy - use Docker for all operations
- NEVER use Unicode emoji in code, commits, or comments
GitHub Etiquette
- NEVER use @ mentions except for @AndrewAltimit
- Refer to AI agents without @: "Claude", "OpenRouter", "Copilot"
- Use
gh apiinstead ofgh pr editfor PR updates
Reaction Images for PR Comments
Use the reaction-search MCP server for contextually appropriate reactions:
search_reactions(query="celebrating after fixing a bug", limit=3)
get_reaction(reaction_id="miku_typing")Example PR comment with reaction:
Fixed the race condition in the worker pool. The issue was a missing lock
on the shared counter - now using AtomicUsize instead.
This renders as:
Fixed the race condition in the worker pool. The issue was a missing lock on the shared counter - now using AtomicUsize instead.
CRITICAL: Use Write tool + --body-file pattern for PR comments (shell escaping breaks ![]).
For complete GitHub etiquette, see docs/agents/github-etiquette.md
Documentation Index
Core
docs/README.md- Documentation overviewdocs/QUICKSTART.md- Template quickstart guide
AI Agents
docs/agents/README.md- Agent system overviewdocs/agents/security.md- Security documentationdocs/agents/board-workflow.md- Board-centric workflow guidedocs/agents/pr-monitoring.md- PR monitoring documentationdocs/agents/human-training.md- AI safety training guide
MCP
docs/mcp/README.md- MCP architecture (21 servers: 19 active, 2 legacy)docs/mcp/servers.md- Server referencedocs/mcp/tools.md- Tools reference
Hardware
docs/hardware/README.md- Hardware systems overviewdocs/hardware/ai-agent-containment-infrastructure-security-framework.md- AI agent containment and infrastructure securitydocs/hardware/agent-swarm-honeypot-guide.md- Deception program guide for detecting and reporting autonomous agent swarmsdocs/hardware/secure-terminal-briefcase.md- Tamper-responsive briefcase systemdocs/hardware/bioforge-crispr-automation.md- Agent-driven biological automation platformdocs/hardware/recurrent-depth-signatures.md- Detecting looped and recurrent-depth language models from the outside
Infrastructure
docs/infrastructure/containerization.md- Container philosophydocs/infrastructure/self-hosted-runner.md- Runner setupdocs/infrastructure/wrapper-guard.md- CLI binary hardening (git-guard, gh-validator)docs/developer/claude-code-hooks.md- Hook system
Integrations
docs/integrations/ai-services/ai-code-agents.md- AI code agentsdocs/integrations/creative-tools/ai-toolkit-comfyui.md- LoRA trainingdocs/integrations/creative-tools/virtual-character-elevenlabs.md- Virtual character system
Research Packages
packages/sleeper_agents/README.md- Sleeper agent detectionpackages/economic_agents/README.md- Economic agents simulation (Rust)packages/economic_agents/docs/economic-implications.md- AI governance policy analysis- game-mods - Injection toolkit for AI agent integration with legacy software (dedicated repo)
packages/tamper_briefcase/README.md- Tamper-responsive briefcase system (Rust)packages/bioforge/README.md- BioForge CRISPR automation (Rust)packages/bioforge/docs/governance-implications.md- Biological agent governance analysis- oasis-os - Embeddable OS framework with scene-graph UI, 4 backends (dedicated repo)
- breakpoint - Multiplayer gaming platform for agentic office hours (dedicated repo)
- rust-psp - PSP SDK with ~829 syscall bindings, used by oasis-os (dedicated repo)
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

