ralphy: Instructions file for Codex

AGENTS.md

ralphy AGENTS.md is an instructions file for Codex, OpenCode from alecs5am/ralphy. It costs 10,031 tokens per session, scanned C, original, Apache-2.0.

Instructions for Ralphy, a command-line runtime operated by AI agents to create and manage content projects. They explain how agents should route requests, use workspaces, and treat SQLite as the authoritative project database.

In plain words
What is it for?
They are for routing agent requests, selecting an explicit workspace or session, checking the Ralphy version, and exporting or importing portable workspaces.
Why use it?
They prevent agents from using outdated workspace pointers or ambiguous project state, which can lead to changes being made in the wrong place.

Instructions file for CodexOpenCode

Written for Codex and OpenCode: the file is AGENTS.md. Also seen: mentions CLAUDE.md; mentions subagents; positional $N argument.

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

Reuse

Borrowing it

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

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

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/alecs5am/ralphy/agents-md"><img src="https://agentmods.dev/badge/instructions/alecs5am/ralphy/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 10,031 This file is loaded in full into every session.
When invoked 10,031 The same file — it is already loaded in full.
Security scan C 2 findings. 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.10031 $0.10031
Opus 5.5 $0.04012 $0.04012
Sonnet 5.5 $0.02006 $0.02006
Haiku 4.5 $0.01003 $0.01003

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

Security

Grade C, and why

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

Recursive force deletehighDestructive command

rm -rf with a variable or a broad path is one typo away from removing the wrong tree.

- **If the user wants a clean slate**, use `ralphy project delete <id>` (registry-aware) or wait for explicit `rm -rf` permission scoped to a named path. Never volunteer a cleanup.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

1. **Only registered provider connectors may hold keys / hit provider hosts — no ad-hoc curl.** Keys flow through a connector's own `envVar` (`OPENROUTER_API_KEY`, `ELEVENLABS_API_KEY`, `FAL_KEY`, `FIRECRAWL_API_KEY`, `A
AGENTS.md · 178 lines

How it starts

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

AGENTS.md — playbook router

The authoritative domain state is SQLite under the explicit .ralphy data root. Normal commands and bridge handlers use explicit --workspace scope or an immutable Session; registry/current-Workspace pointers and legacy control files are not authoritative. Portable transfer uses workspace.export and workspace.import.

This file is @-imported by CLAUDE.md, so it's always in the system prompt. It is the routing contract for every user request.

Current ralphy CLI: v0.3.0 (released 2026-06-02). Verify the user's binary via ralphy --version. If it lags this version, suggest brew upgrade ralphy (macOS) or npm update -g @alecs5am/ralphy (cross-platform) so they pick up the fixes documented in this routing table.

Product and repository ownership

The Ralphy desktop application is the primary product. This repository owns both the application in apps/desktop/ and the runtime/standalone CLI in cli/. Read apps/desktop/AGENTS.md before changing the application. Use the documented CLI/bridge contract between the application and runtime; keep runtime code independent of the application package.

Run the desktop only from this repository root. Use bun run dev for Electron + Vite hot reload and bun run start for a production-style local build; both enter the pinned Bun runtime, rebuild the current Core binary, and pass its absolute path to Electron. bun run dev deliberately reuses the packaged app's ralphy-media profile, so saved provider keys plus Codex/Claude Code installations and sessions remain available. Use bun run dev:renderer only for browser fixtures. Never launch electron ., Vite, or apps/desktop scripts directly for normal development, and never launch the historical sibling checkout ../ralphy-desktop. Before starting, close stale Electron instances from other Ralphy checkouts; leave only the process whose app path is this repository's apps/desktop and whose dev renderer is http://127.0.0.1:4180.

Read the full file on GitHub · 178 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. 1mo ago Changed · +2 lines · +170 tokens per session fb3971605c60
  2. 1mo ago Changed · +12 lines · +229 tokens per session scan D → C 0336ced650e3
  3. 1mo ago First seen · 164 lines · 9,632 tokens per session scan D a97dd362ce93

Subscribe to this mod's changes

ralphy AGENTS.md is an instructions file published in the GitHub repository alecs5am/ralphy (140 stars, last pushed 1mo ago), licensed Apache-2.0. It adds 10,031 tokens to every session, about $0.0401 per session on Opus 5.5. A static security scan graded it C with 2 findings (recursive force delete, makes network calls). 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,649 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,549 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