agentleFS
AndrewAltimitAndrewAltimit/template-repo/AGENTS.md

template-repo

AGENTS.md132 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 checking a change actually works.

    Of the AGENTS.md files we read, the 11,773 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.

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
  1. Distinctive:

    All Python and Rust operations run in Docker containers

    line 11
  2. Distinctive:

    No contributors model - optimized for individual developer efficiency

    line 14
  3. Distinctive:

    No external engagement: - no feature requests, guidance, or community interaction accepted (legal protection due to dual-use codebase)

    line 15
  4. Distinctive:

    Allow List: Only pre-approved users can trigger agents

    line 34
  5. Distinctive:

    Implementation Requirements: Only complete, working code is accepted

    line 36
  6. Distinctive:

    Do NOT change remote addresses to localhost in PR reviews

    line 45
  7. Distinctive:

    Zero Local Dependencies: - All via Docker Compose

    line 120
  8. Distinctive:

    Self-Hosted Infrastructure: - No cloud costs

    line 121
  9. Distinctive:

    ALWAYS run CI checks: after completing work

    line 145
  10. Distinctive:

    Follow container-first philosophy: - use Docker for all operations

    line 147
  11. Very specific:

    Use the reaction-search MCP server for contextually appropriate reactions:

    line 158
  12. Very specific:

    CRITICAL: Use Write tool + --body-file pattern for PR comments (shell escaping breaks ![]).

    line 181

≈ “Common” is an estimate: at least 1 in 5 of the 16,595 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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
AGENTS.md

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):

  1. Claude Code - Primary development assistant; runs the security and quality PR reviews
  2. OpenRouter - General PR review via Qwen (qwen/qwen3.7-max)
  3. OpenCode - Code generation via OpenRouter
  4. Crush - Code generation via OpenRouter
  5. 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 tests

PR 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 services

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

CategoryServersTransport
Code Qualitycode-quality, opencode, crushSTDIO (local)
Contentcontent-creation, meme-generator, elevenlabs-speech, video-editor, blender, sprite-sheetSTDIO
Integrationvirtual-character, github-board, agentcore-memory, reaction-search, desktop-controlSTDIO
Agent Integrationmemory-explorerSTDIO (native)
Lab Automationbioforge (not in .mcp.json by default)STDIO
Legacy / not allowedgemini, codexNot to be enabled
Remotegaea2, ai-toolkit, comfyuiHTTP (remote machines)

For complete MCP documentation, see docs/mcp/README.md

Container Architecture

  1. Everything Containerized (with documented exceptions)
  2. Zero Local Dependencies - All via Docker Compose
  3. Self-Hosted Infrastructure - No cloud costs

For details, see docs/infrastructure/containerization.md

Research Packages

PackageLanguagePurpose
packages/sleeper_agents/Python + RustSleeper agent detection (Python ML core + Rust CLI orchestration)
packages/economic_agents/RustAutonomous AI economic simulation
packages/tamper_briefcase/RustTamper-responsive briefcase with PQC recovery
packages/bioforge/RustAgent-driven CRISPR automation platform

External packages (separate repositories):

PackageLanguagePurpose
game-modsRustInjection toolkit for AI agent integration with legacy software
oasis-osRustEmbeddable OS framework (SDL2/PSP/UE5) with scene-graph UI and 8 themes
breakpointRust/WASMMultiplayer gaming platform for agentic office hours with agent alert overlay
rust-pspRustPSP 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 api instead of gh pr edit for 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.

![Reaction](https://raw.githubusercontent.com/AndrewAltimit/Media/refs/heads/main/reaction/miku_typing.webp)

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.

Image: Reaction

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 overview
  • docs/QUICKSTART.md - Template quickstart guide

AI Agents

  • docs/agents/README.md - Agent system overview
  • docs/agents/security.md - Security documentation
  • docs/agents/board-workflow.md - Board-centric workflow guide
  • docs/agents/pr-monitoring.md - PR monitoring documentation
  • docs/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 reference
  • docs/mcp/tools.md - Tools reference

Hardware

  • docs/hardware/README.md - Hardware systems overview
  • docs/hardware/ai-agent-containment-infrastructure-security-framework.md - AI agent containment and infrastructure security
  • docs/hardware/agent-swarm-honeypot-guide.md - Deception program guide for detecting and reporting autonomous agent swarms
  • docs/hardware/secure-terminal-briefcase.md - Tamper-responsive briefcase system
  • docs/hardware/bioforge-crispr-automation.md - Agent-driven biological automation platform

Infrastructure

  • docs/infrastructure/containerization.md - Container philosophy
  • docs/infrastructure/self-hosted-runner.md - Runner setup
  • docs/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 agents
  • docs/integrations/creative-tools/ai-toolkit-comfyui.md - LoRA training
  • docs/integrations/creative-tools/virtual-character-elevenlabs.md - Virtual character system

Research Packages

  • packages/sleeper_agents/README.md - Sleeper agent detection
  • packages/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)

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.