Undefined: Instructions file for Codex

AGENTS.md

Undefined AGENTS.md is an instructions file for Codex, OpenCode from 69gg/Undefined. It costs 2,871 tokens per session, scanned A, original, MIT.

A set of repository instructions for Undefined, a Python project with desktop chat and management applications. It describes the source layout, development commands, tests, coding conventions, and included tools.

In plain words
What is it for?
Use it when navigating the repository, installing dependencies, building the applications, running tests, editing modules, or working with its submodule and generated data.
Why use it?
It gives a coding agent the project-specific rules it needs before changing or checking the code.

Instructions file for CodexOpenCode

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

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

Reuse

Borrowing it

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

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

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/69gg/undefined/agents-md"><img src="https://agentmods.dev/badge/instructions/69gg/undefined/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 2,871 This file is loaded in full into every session.
When invoked 2,871 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.02871 $0.02871
Opus 5.5 $0.01148 $0.01148
Sonnet 5.5 $0.00574 $0.00574
Haiku 4.5 $0.00287 $0.00287

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

Security

Grade A, and why

Undefined 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 26d 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 · 70 lines

How it starts

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

Repository Guidelines

Project Structure & Module Organization

src/Undefined/ contains the main runtime package. Core areas include ai/, services/, skills/, cognitive/, memes/, knowledge/, api/, webui/, config/, mcp/, and automations/ (AutomationService runtime plus JSON storage); media-facing integrations live in arxiv/, bilibili/, github/, jm/, and attachments/. src/Undefined/deploy/ is the containerized one-shot deployment path (uv run deploy, templates under deploy/templates/) and does not take part in runtime. tests/ holds the pytest suite.

Single source of truth for the module-level directory tree: docs/development.md. This file, CLAUDE.md, and ARCHITECTURE.md only keep overviews — update the tree first when the layout changes. apps/undefined-console/ is the Tauri + Vite management client and apps/undefined-chat/ is the native-first Tauri + React 19 chat client (both connect to the same Management/Runtime services), while code/NagaAgent/ remains a git submodule and should be updated deliberately, with upstream syncs kept separate from repo-local changes. Runtime and generated state primarily lives under data/, logs/, and dist/; the root knowledge/ directory stores knowledge-base data rather than application code. Prefer editing source files and docs over generated outputs unless the task is explicitly about runtime state.

Build, Test, and Development Commands

Use uv for the root project:

  • uv sync installs Python dependencies.
  • uv run playwright install installs browser runtimes used by screenshot and web tooling features.
  • uv run Undefined-webui starts the recommended Management-first local entrypoint.
  • uv run Undefined starts the bot directly.
  • uv run pytest tests/ runs the backend test suite.
  • npm ci --prefix tests/frontend installs the jsdom driver used by tests/test_webui_runtime_chat_behavior.py. Without it those cases skip silently on a local machine (on CI they fail instead, which is deliberate). Run it once after cloning if you touch WebUI JS.
  • uv run ruff check . and uv run ruff format --check . enforce Python linting and formatting.
  • uv run mypy . runs strict type checks.
  • uv build --wheel validates packaging and bundled resources.
  • bash scripts/install_git_hooks.sh enables the repository-managed git hooks.

Read the full file on GitHub · 70 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. 26d ago Changed · +30 tokens per session db1a2e4491b9
  2. 1mo ago Changed · +4 tokens per session bb72e1b4ac33
  3. 1mo ago Changed · +8 lines · +455 tokens per session cebc9561b0d2
  4. 1mo ago Changed · +1 lines · +97 tokens per session 54240898348b
  5. 1mo ago Changed · +2 lines · +121 tokens per session 64e8e845d71c
  6. 1mo ago Changed · +3 lines · +248 tokens per session 438c391cd172
  7. 1mo ago Changed · +4 lines · +226 tokens per session dac7d43e7e0d
  8. 2mo ago First seen · 52 lines · 1,690 tokens per session scan A 65e6c644f311

Subscribe to this mod's changes

Undefined AGENTS.md is an instructions file published in the GitHub repository 69gg/Undefined (256 stars, last pushed 13d ago), licensed MIT. It adds 2,871 tokens to every session, about $0.0115 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-08-30.

Related

Undefined AGENTS.md compared with instructions from other repositories

Undefined AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
Undefined AGENTS.md69gg/UndefinedInstructions file25613d agoMITA2,871Codex, OpenCode
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
deepseek-harness AGENTS.mddeepseek-ai/deepseek-harnessInstructions file274k2d agoMITA4,313Codex, OpenCode