clawdinators: Instructions file for Codex

AGENTS.md

clawdinators AGENTS.md is an instructions file for Codex, OpenCode from openclaw/clawdinators. It costs 2,033 tokens per session, scanned C, original, MIT.

Operations instructions for Clawdinators, a project that declares infrastructure and NixOS modules for OpenClaw hosts. NixOS is a Linux system configured as code, and the project coordinates several related repositories.

In plain words
What is it for?
Use them to inspect infrastructure status, maintain tool definitions, track versions across the OpenClaw repositories, and record operational or architectural decisions.
Why use it?
They show agents where project knowledge and secrets guidance live, clarify which repository owns each change, and limit agents to monitoring unless asked to modify things.

Instructions file for CodexOpenCode

Written for Codex and OpenCode: the file is AGENTS.md. Also seen: built for openclaw.

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

Reuse

Borrowing it

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

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 clawdinators AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/openclaw/clawdinators/agents-md/github.svg)](https://agentmods.dev/instructions/openclaw/clawdinators/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/openclaw/clawdinators/agents-md"><img src="https://agentmods.dev/badge/instructions/openclaw/clawdinators/agents-md/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 clawdinators AGENTS.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/openclaw/clawdinators/agents-md"><img src="https://agentmods.dev/badge/instructions/openclaw/clawdinators/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 2,033 This file is loaded in full into every session.
When invoked 2,033 The same file — it is already loaded in full.
Security scan C 1 finding. 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.02033 $0.02033
Opus 5.5 $0.00813 $0.00813
Sonnet 5.5 $0.00407 $0.00407
Haiku 4.5 $0.00203 $0.00203

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

Security

Grade C, and why

clawdinators AGENTS.md scanned grade C with 1 finding 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 2mo 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.

Reaches for credential fileshighPrivilege escalation

SSH keys, cloud credentials, git-credentials, .npmrc, /etc/shadow: reading these is how a config file becomes a credential leak.

- Agenix identity is `~/.ssh/id_ed25519` (primary SSH key).
AGENTS.md · 126 lines

How it starts

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

CLAWDINATOR Agent Notes

Read these before acting:

  • docs/PHILOSOPHY.md
  • docs/ARCHITECTURE.md
  • docs/SHARED_MEMORY.md
  • docs/SECRETS.md
  • docs/POC.md
  • BOOTSTRAP.md
  • IDENTITY.md
  • SOUL.md
  • TOOLS.md
  • USER.md

Memory references:

  • For project goals, read memory/project.md
  • For architecture decisions, read memory/architecture.md
  • For ops runbook, read memory/ops.md
  • For Discord context, also read memory/discord.md

Repo rule: no inline scripting languages (Python/Node/etc.) in Nix or shell blocks; put logic in script files and call them.

System ownership (3 repos):

  • openclaw: upstream runtime and behavior.
  • nix-openclaw: packaging/build fixes for clawbot.
  • clawdinators: infra, NixOS config, secrets wiring, deployment flow.

Maintainer role:

  • Monitor issues + PRs and keep an inventory of what needs human attention.
  • Surface priorities and context; do not file issues or modify code unless asked.
  • Track running versions (openclaw/nix-openclaw/clawdinators) and note them in memory/ops.md.

Toolchain workflow (repo source of truth):

  • Add/remove tools in nix/tools/clawdinator-tools.nix (packages + descriptions).
  • Tools list is rendered into /etc/clawdinator/tools.md by Nix and appended to workspace TOOLS.md at seed time.
  • Keep clawdinator/workspace/TOOLS.md aligned with upstream template; do not hardcode tool lists there.
  • When you add a new tool, verify it appears in /etc/clawdinator/tools.md and in the workspace TOOLS.md after seed.

The Zen of Python Moltbot, by shamelessly stolen from Tim Peters:

  • Beautiful is better than ugly.
  • Explicit is better than implicit.
  • Simple is better than complex.
  • Complex is better than complicated.
  • Flat is better than nested.
  • Sparse is better than dense.
  • Readability counts.
  • Special cases aren't special enough to break the rules.
  • Although practicality beats purity.
  • Errors should never pass silently.
  • Unless explicitly silenced.
  • In the face of ambiguity, refuse the temptation to guess.
  • There should be one-- and preferably only one --obvious way to do it.
  • Although that way may not be obvious at first unless you're Dutch.
  • Now is better than never.
  • Although never is often better than right now.
  • If the implementation is hard to explain, it's a bad idea.
  • If the implementation is easy to explain, it may be a good idea.
  • Namespaces are one honking great idea -- let's do more of those!

Deploy flow (automation-first):

  • Use devenv.nix for tooling (nixos-generators, awscli2).
  • Build a bootstrap NixOS image with nixos-generators (raw) and upload it to S3.
    • Use nix/hosts/clawdinator-1-image.nix for image builds.
  • The old CI AMI/update/release workflows are intentionally disabled under .github/workflows-disabled/; AMI builds and deploys now require an explicit code change or a local operator run.
  • Image history is bounded on purpose: raw clawdinator-nixos-* uploads expire automatically, and old CLAWDINATOR AMIs/snapshots are pruned after successful builds while keeping the live fleet AMI plus a short rollback window.
  • Resume AMI pipeline work immediately if it stalls; do not use rsync as a workaround. Host edits are allowed but must be committed and baked into a new AMI to persist.
  • CI must provide CLAWDINATOR_AGE_KEY to build + upload the runtime bootstrap bundle to S3.
  • Bootstrap bundle location: s3://${S3_BUCKET}/bootstrap/<instance>/ (secrets + repo seeds).
  • Bootstrap S3 bucket + scoped IAM user + VM Import role with infra/opentofu/aws (use homelab-admin creds).
  • Bootstrap AWS instances from the AMI with infra/opentofu/aws (set TF_VAR_ami_id).
  • Import the image into AWS as an AMI (snapshot import + register image).
  • Ensure secrets are encrypted to the baked agenix key (see ../nix/nix-secrets/secrets.nix).
  • Ensure required secrets exist: clawdinator-github-app.pem, clawdinator-discord-token-<n>, clawdinator-control-token, clawdinator-control-aws-*, clawdinator-anthropic-api-key.
  • Update nix/hosts/<host>.nix (Discord allowlist, GitHub App installationId, identity name).
  • Discord must use messages.queue.byChannel.discord = "interrupt"; queue delays replies to heartbeat and makes the bot appear dead.
  • Ensure /var/lib/clawd/repos/clawdinators contains this repo (self-update requires it).
  • Verify systemd services: clawdinator; clawdinator-github-app-token only on hosts that explicitly enable GitHub App auth.
  • Commit and push changes; repo is the source of truth.

Read the full file on GitHub · 126 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. 2mo ago First seen · 126 lines · 2,033 tokens per session scan C 2ebf11000423

Subscribe to this mod's changes

clawdinators AGENTS.md is an instructions file published in the GitHub repository openclaw/clawdinators (158 stars, last pushed 18d ago), licensed MIT. It adds 2,033 tokens to every session, about $0.0081 per session on Opus 5.5. A static security scan graded it C with 1 finding (reaches for credential files). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

clawdinators AGENTS.md compared with instructions from other repositories

clawdinators AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
clawdinators AGENTS.mdopenclaw/clawdinatorsInstructions file15818d agoMITC2,033Codex, OpenCode
plan-forge naming.instructions.mdsrnichols/plan-forgeInstructions file62d agoMITA1,453GitHub Copilot
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143ktodayMITA7,461Codex, OpenCode
langchain AGENTS.mdlangchain-ai/langchainInstructions file149kyesterdayMITA4,680Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA5,516GitHub Copilot
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA3,093GitHub Copilot