aios: Instructions file for Claude Code

CLAUDE.md

aios CLAUDE.md is an instructions file for Claude Code from rexleimo/aios. It costs 4,101 tokens per session, scanned B, original, MIT.

Project instructions for AIOS that explain the difference between the AIOS installation folder and the project folder where commands are run.

In plain words
What is it for?
Resolving paths correctly, locating project state, and distinguishing framework scripts from files belonging to the current project.
Why use it?
They prevent the agent from reading or changing project files in the framework directory by mistake when both locations use relative paths.

Instructions file for Claude Code

Written for Claude Code: SessionStart hook event. Also seen: reads .claude/ paths; mentions CLAUDE.md; mentions Claude Code.

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

Not installable: its command points at a path on the author’s own machine, so it runs nowhere else. The line is /Users/rex/.rexcil/aios.

Reuse

Borrowing it

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

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 aios CLAUDE.md

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/rexleimo/aios/claude-md"><img src="https://agentmods.dev/badge/instructions/rexleimo/aios/claude-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 4,101 This file is loaded in full into every session.
When invoked 4,101 The same file — it is already loaded in full.
Security scan B 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.04101 $0.04101
Opus 5.5 $0.01640 $0.01640
Sonnet 5.5 $0.00820 $0.00820
Haiku 4.5 $0.00410 $0.00410

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

Security

Grade B, and why

aios CLAUDE.md scanned grade B 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 13d 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.

Enumerates other installed skillsmediumAgent snooping

Other skills' SKILL.md files reveal prompts, capabilities and secrets that should be invisible to peers.

ls -la .aios/ .claude/skills/ docs/plans/
CLAUDE.md · 357 lines

How it starts

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

CLAUDE.md

This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.

Path Conventions (路径约定)

IMPORTANT: All relative paths in this document are relative to the PROJECT ROOT (current working directory), NOT AIOS_ROOT.

Two Key Paths

  1. AIOS_ROOT / AIOS_ROOT_DIR - AIOS framework installation location

    • Contains scripts/, package.json, core framework code
    • Example: /Users/rex/.rexcil/aios or ~/aios-framework
    • Set via environment variable or auto-detected
  2. Project Root - Your current working directory where you run AIOS commands

    • Contains .aios/, .claude/skills/, docs/plans/, project-specific state
    • This is where pwd points when you run aios commands
    • All paths in this document like .aios/context-db/, .claude/skills/ are relative to this directory

Why This Matters

  • If your AIOS_ROOT=/Users/rex/.rexcil/aios but you're working in /Users/rex/my-project/:
    • .aios/context-db/ means /Users/rex/my-project/.aios/context-db/ (✓ correct)
    • NOT /Users/rex/.rexcil/aios/.aios/context-db/ (✗ wrong)
  • Framework scripts live in $AIOS_ROOT/scripts/
  • Your project state lives in $(pwd)/.aios/

Verification Commands

# Check your project root
pwd

# Check AIOS framework location
echo $AIOS_ROOT

# List your project's AIOS directories
ls -la .aios/ .claude/skills/ docs/plans/

Evaluate the AIOS workflow policy before creating a plan, selecting a skill, or dispatching work.

  1. direct and noop turns do not create a persistent plan or invoke a skill chain.
  2. guarded turns use only the required edit and verification gates.
  3. planned turns create or reuse one work-item plan, then execute only the Provider selected by the current rex Command.
  4. Do not insert a global bootstrap or compatibility skill chain. aios-workflow-router helps classify work but does not replace the Provider selected by the current Rex Capability Command.
  5. Invoke the selected Provider rather than paraphrasing it; use verification-before-completion before claiming a changed behavior is complete.

Read the full file on GitHub · 357 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. 13d ago Changed · +2 tokens per session 1bbdcc271aed
  2. 1mo ago Changed · +2 lines · +41 tokens per session 1e6927fd580c
  3. 1mo ago Changed · +44 lines · +640 tokens per session 4919ded63f38
  4. 1mo ago First seen · 311 lines · 3,418 tokens per session scan B fbb0a1ae1c45

Subscribe to this mod's changes

aios CLAUDE.md is an instructions file published in the GitHub repository rexleimo/aios (61 stars, last pushed today), licensed MIT. It adds 4,101 tokens to every session, about $0.0164 per session on Opus 5.5. A static security scan graded it B with 1 finding (enumerates other installed skills). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other instructions, from other repositories

vscode buildNext.instructions.md

Working notes and architecture documentation for the new esbuild-based build system in build/next. Use when making changes to the new build pipeline (transpile/bundle commands, NLS plugin, source-map handling, resource copying, or self-hosting watch tasks).

microsoft/vscode · 9,715 tokens

next.js AGENTS.md

AGENTS.md instructions for vercel/next.js, covering next.js development guide, codebase structure, monorepo overview, core package: packages/next and other important packages.

vercel/next.js · 7,786 tokens

vscode oss-third-party-notices.instructions.md

Instructions for microsoft/vscode, covering vs code oss third-party-notices pipeline, architecture, pipeline flow in ci, cache eligibility and rollout and applying the notice (cutover).

microsoft/vscode · 5,262 tokens

langchain AGENTS.md

AGENTS.md instructions for langchain-ai/langchain, covering global development guidelines for the langchain monorepo, corridor security analysis, project architecture and context, monorepo structure and development tools & commands.

langchain-ai/langchain · 4,680 tokens

vscode copilot-instructions.md

Copilot instructions for microsoft/vscode, covering vs code copilot instructions, project overview, root folders, core architecture (src/ folder) and built-in extensions (extensions/ folder).

microsoft/vscode · 2,731 tokens

deno copilot-instructions.md

Copilot instructions for denoland/deno, covering deno development guide for github copilot, network access, high level overview, key directories and key files to understand first.

denoland/deno · 3,077 tokens