WhyBuddy: Instructions file for Codex

AGENTS.md

WhyBuddy AGENTS.md is an instructions file for Codex, OpenCode from xiaojilele-glitch/WhyBuddy. It costs 1,225 tokens per session, scanned A, original, MIT.

Project-specific instructions for working on the WhyBuddy codebase. They describe its services, startup commands, Python virtual environment, and expected behavior when no language model is available.

In plain words
What is it for?
They are for starting, testing, and modifying this multi-service project, including its Node and Python parts.
Why use it?
They prevent changes from targeting the wrong running code path or failing because a required environment setup was missed.

Instructions file for CodexOpenCode

Written for Codex and OpenCode: the file is AGENTS.md. Also seen: mentions CLAUDE.md; mentions AGENTS.md.

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

Reuse

Borrowing it

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

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

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/xiaojilele-glitch/whybuddy/agents-md"><img src="https://agentmods.dev/badge/instructions/xiaojilele-glitch/whybuddy/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 1,225 This file is loaded in full into every session.
When invoked 1,225 The same file — it is already loaded in full.
Security scan A 0 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.01225 $0.01225
Opus 5.5 $0.00490 $0.00490
Sonnet 5.5 $0.00245 $0.00245
Haiku 4.5 $0.00122 $0.00122

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

Security

Grade A, and why

WhyBuddy AGENTS.md scanned grade A with 0 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.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

AGENTS.md · 93 lines

How it starts

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

AGENTS.md

The deepest project knowledge lives in code comments and test docstrings, not in docs. See CLAUDE.md for the project's core engineering disciplines (verify which code path actually runs before editing, mutation-test your assertions, etc.). Read it before making changes.

Cursor Cloud specific instructions

These notes are for agents starting in a VM where the startup update script has already installed dependencies (Node via pnpm install, and the Python venv at slide-rule-python/.venv). Standard commands live in package.json, CONTRIBUTING.md, and slide-rule-python/README.md — prefer those; the notes below only capture non-obvious caveats.

Services and how to run them

This is a polyglot product ("SlideRule / 面团 AI", a product-rehearsal engine). The four dev services and their run commands are in package.json scripts:

  • pnpm run dev:all — start the full stack: Vite frontend :3000, Node server :3001, Lobster executor :3031, and Python engine :9700. This is the normal start command.
  • pnpm run dev:stop — stop what dev:all started (and any leftover listeners on those four ports). Restart = dev:stop then dev:all.
  • pnpm run dev:sliderule — lean core loop: Vite :3000 + Python :9700 only (frontend proxies /api/sliderule and /api/agent-loop straight to Python).
  • pnpm run dev:frontend — UI only, no server, no .env (degraded/BYOK).

The authoritative rehearsal engine is the Python service (slide-rule-python, FastAPI on :9700); the Node server is a thin proxy that delegates V5 calls to Python. Open the workbench at http://localhost:3000/agent-loop/sliderule.

Python backend requires the venv (non-obvious)

scripts/dev-all.mjs / scripts/dev-sliderule.mjs only auto-start uvicorn when slide-rule-python/.venv/bin/python exists; otherwise they print a warning and skip Python (the SlideRule/AgentLoop pages then error until Python is up). The update script creates this venv. Run Python tests with the venv, from the repo root, keeping the slide-rule-python/ path prefix (per CLAUDE.md):

Read the full file on GitHub · 93 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 First seen · 93 lines · 1,225 tokens per session scan A aa76c0b7fede

Subscribe to this mod's changes

WhyBuddy AGENTS.md is an instructions file published in the GitHub repository xiaojilele-glitch/WhyBuddy (380 stars, last pushed 1mo ago), licensed MIT. It adds 1,225 tokens to every session, about $0.0049 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-23.

Related

WhyBuddy AGENTS.md compared with instructions from other repositories

WhyBuddy AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
WhyBuddy AGENTS.mdxiaojilele-glitch/WhyBuddyInstructions file3801mo agoMITA1,225Codex, OpenCode
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143ktodayMITA7,461Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA5,516GitHub Copilot
langchain AGENTS.mdlangchain-ai/langchainInstructions file149ktodayMITA4,680Codex, OpenCode
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA3,093GitHub Copilot
deepseek-harness AGENTS.mddeepseek-ai/deepseek-harnessInstructions file274k2d agoMITA4,313Codex, OpenCode