code-assistant: Instructions file for Codex

AGENTS.md

code-assistant AGENTS.md is an instructions file for Codex, OpenCode from stippi/code-assistant. It costs 3,871 tokens per session, scanned A, original, MIT.

Repository instructions for a Rust application that helps AI agents perform coding tasks, including its structure and test commands.

In plain words
What is it for?
Use them when developing or testing the command-line application, agent core, tools, language-model integration, web layer, or other Rust packages.
Why use it?
They show how the Rust components fit together and which checks confirm that code builds, is formatted, passes tests, and meets lint rules.

Instructions file for CodexOpenCode

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

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

Reuse

Borrowing it

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

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 code-assistant AGENTS.md

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/stippi/code-assistant/agents-md"><img src="https://agentmods.dev/badge/instructions/stippi/code-assistant/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 3,871 This file is loaded in full into every session.
When invoked 3,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.03871 $0.03871
Opus 5.5 $0.01548 $0.01548
Sonnet 5.5 $0.00774 $0.00774
Haiku 4.5 $0.00387 $0.00387

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

Security

Grade A, and why

code-assistant 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 today.

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

How it starts

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

Repository Guidance

This file provides guidance to AI agents when working with code in this repository. Additional documentation is available in the docs folder if needed.

Essential Commands

  • cargo check - Test if the project compiles
  • cargo check --tests - Test if the tests compile
  • cargo test - Run all tests
  • cargo test --package <crate> - Test a single crate (names in Crate Layers below)
  • cargo fmt --all -- --check - Check code formatting
  • cargo clippy --all-targets --all-features -- -D warnings - Run linter
  • cargo deny check - Check dependencies for advisories, licenses and sources (policy in deny.toml; cargo install cargo-deny once)

Architecture Overview

This is a Rust-based AI coding agent harness with multiple operational modes.

Crate Layers

Layer 0 (generic):    llm  command_executor  pty_session  fs_explorer  sandbox  web  git  github  terminal  terminal_output  audio
                      process_env       — the login environment every child process starts with
Layer 1 (generic):    tools_core        — tool trait, registry, render, spec, permissions
                      mcp_client        — wraps MCP server tools as registry tools
Layer 2 (generic):    agent_core        — agent loop, hook traits, dialect trait, AgentUi trait
Layer 3 (domain):     code_assistant_core — sessions, SessionService, event stream, UiEvent,
                                           tool impls, dialects (xml/caret), plugins, sub-agents
Layer 4 (frontends):  ui_gpui  ui_terminal  ui_acp  mcp_server
Layer 5 (binary):     code_assistant    — CLI, config, feature-gated frontend wiring

Key Entry Points

  • Agent loop: crates/agent_core/src/runtime.rs
  • Domain agent wrapper: crates/code_assistant_core/src/agent/runner.rs
  • Tool implementations: crates/code_assistant_core/src/tools/
  • Tool dialects (xml/caret): crates/code_assistant_core/src/tool_dialects/
  • Plugins/hooks: crates/code_assistant_core/src/plugins/
  • Session management: crates/code_assistant_core/src/session/
  • MCP client config/registration binding: crates/code_assistant_core/src/tools/mcp.rs

Read the full file on GitHub · 273 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. today Changed · +11 lines · +178 tokens per session bf6a699a3706
  2. 2d ago Changed · +2 lines · +33 tokens per session 324fc7df7324
  3. 3d ago Changed · +4 lines · +109 tokens per session 3fb80b015abe
  4. 6d ago Changed · +27 lines · +407 tokens per session 47315ac90521
  5. 7d ago Changed · +2 lines · +37 tokens per session 2d85d5ab4fb1
  6. 9d ago Changed · +4 lines · +59 tokens per session ec55db3ad21d
  7. 13d ago Changed · +11 lines · +152 tokens per session cefec6b42493
  8. 14d ago Changed · +1 lines · +33 tokens per session da68df1f011b
  9. 15d ago Changed · +19 lines · +284 tokens per session 92d52523fd82
  10. 17d ago First seen · 192 lines · 2,579 tokens per session scan A 3b3e7333208e

Subscribe to this mod's changes

code-assistant AGENTS.md is an instructions file published in the GitHub repository stippi/code-assistant (187 stars, last pushed yesterday), licensed MIT. It adds 3,871 tokens to every session, about $0.0155 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

code-assistant AGENTS.md compared with instructions from other repositories

code-assistant AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
code-assistant AGENTS.mdstippi/code-assistantInstructions file187yesterdayMITA3,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