Codemini-CLI: Instructions file for Codex

AGENTS.md

Codemini-CLI AGENTS.md is an instructions file for Codex, OpenCode from havingautism/Codemini-CLI. It costs 909 tokens per session, scanned A, original, MIT.

A set of instructions for working on Codemini CLI, a local coding assistant with a command-line interface, web interface, project indexing, skills, memory, and approval controls.

In plain words
What is it for?
It helps assistants install dependencies, run tests and builds, start the CLI, and locate code for chat sessions, commands, project indexing, skills, and hooks.
Why use it?
It shows where key parts of the application live, reducing the risk of changing the wrong file or bypassing the intended task routing.

Instructions file for CodexOpenCode

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

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

Reuse

Borrowing it

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

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 Codemini-CLI AGENTS.md

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/havingautism/codemini-cli/agents-md"><img src="https://agentmods.dev/badge/instructions/havingautism/codemini-cli/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 909 This file is loaded in full into every session.
When invoked 909 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.00909 $0.00909
Opus 5.5 $0.00364 $0.00364
Sonnet 5.5 $0.00182 $0.00182
Haiku 4.5 $0.00091 $0.00091

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

Security

Grade A, and why

Codemini-CLI 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 3d 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 · 61 lines

How it starts

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

AGENTS.md

This repo is Codemini CLI, a local-first coding agent with a CLI, Web UI, project indexing, skills, memories, approvals, and Windows-first shell ergonomics.

Commands

  • Install dependencies: npm install
  • Run all tests: npm test
  • Build bundled Web UI: npm run build:web
  • Run CLI locally: npm start

Task Routing

  • CLI command dispatch: start in src/cli.js, then src/commands/.
  • Chat/session runtime behavior: start in src/core/chat-runtime.js.
  • Scheduled tasks: src/core/scheduled-task-store.js, src/core/scheduled-worker.js; see docs/agents/scheduled-tasks.md.
  • System prompt composition: start in src/core/system-prompt-composer.js and src/core/default-system-prompt.js.
  • Project map and file index behavior: start in src/core/project-index.js.
  • Skill discovery, routing, and rendering: start in src/core/command-loader.js, then src/core/skill-registry.js.
  • Skill hooks (Claude-compatible discover/run/session): start in src/core/skill-hooks-*.js, wired from src/core/chat-runtime.js and src/core/agent-loop.js.
  • Hook Profiles (custom/global/project plus skill-backed profiles): src/core/hook-profiles.js and src/core/project-hooks.js; Web UI entry under Skills in the sidebar.
  • Tool matcher aliases (Claude Bash→run etc.): src/core/skill-hooks-tool-aliases.js.
  • Reflect-to-skill behavior: start in src/core/reflect-skill.js.
  • Memory / Skill distillation decisions: src/core/harness/distillation.js, wired from memory-session-review.js and reflect-skill.js; see docs/agents/memory-skill-distillation.md.
  • Built-in tool behavior: start in src/core/tools.js.
  • Subagent delegation (run_subagent): start in src/core/chat-runtime.js (runSubAgentTask + onRunSubAgent), src/core/subagent-orchestrator.js, and src/core/subagent-handoff-store.js.
  • Fork branches (fork_task, same-state parallel branches sharing the parent prefix): fork-point capture in src/core/agent-loop.js, branch execution in src/core/chat-runtime.js (runForkTask + onForkTask).
  • Desktop shell and GitHub Release artifacts: desktop/main.cjs, desktop/electron-builder.config.cjs, .github/workflows/desktop-release.yml; see DESKTOP.md.
  • Web UI API routes: start in codemini-web/server.js.
  • Web UI state and chat behavior: start in codemini-web/client/src/context/app-context.jsx and relevant components under codemini-web/client/src/components/.

Read the full file on GitHub · 61 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. 3d ago Changed · +17 lines · +212 tokens per session f62daaece10b
  2. 2mo ago First seen · 44 lines · 697 tokens per session scan A d83233f02ffd

Subscribe to this mod's changes

Codemini-CLI AGENTS.md is an instructions file published in the GitHub repository havingautism/Codemini-CLI (31 stars, last pushed 2d ago), licensed MIT. It adds 909 tokens to every session, about $0.0036 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

Codemini-CLI AGENTS.md compared with instructions from other repositories

Codemini-CLI AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
Codemini-CLI AGENTS.mdhavingautism/Codemini-CLIInstructions file312d agoMITA909Codex, OpenCode
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143kyesterdayMITA7,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