Codemini-CLI AGENTS.md

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

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add instructions/havingautism/codemini-cli/agents-md
Clone the repo
git clone --depth 1 https://github.com/havingautism/Codemini-CLI

Made for: Codex, OpenCode.

Per session 697 This file is loaded in full into every session.
When invoked 697 The same file — it is already loaded in full.
Security scan A 0 findings. Scan, not verified.
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 $0.00697 $0.00697
Opus 5 $0.00349 $0.00349
Sonnet 5 $0.00139 $0.00139
Haiku 4.5 $0.00070 $0.00070

Measured yesterday against content hash d83233f02ffd, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, 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 yesterday.

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 · 44 lines

How it starts

The opening of the file, as written. The whole thing — 44 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.
  • 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.
  • 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).
  • 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/.

Verification

  • General runtime changes: run npm test.
  • Skill routing / hooks changes: run node --test tests/skill-hooks-*.test.js tests/web-skill-editor-layout.test.js.
  • Project index changes: run node --test tests/chat-runtime.test.js tests/tools.test.js.
  • Web UI changes: run npm run build:web; add focused tests when behavior crosses the server/client boundary.

Read the full file on GitHub · 44 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. yesterday 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 (192 stars, last pushed 6d ago), licensed MIT. It adds 697 tokens to every session, about $0.0035 per session on Opus 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.