agent-kernel: Instructions file for Codex

AGENTS.md

agent-kernel AGENTS.md is an instructions file for Codex, OpenCode from yaalalabs/agent-kernel. It costs 2,809 tokens per session, scanned A, original, Apache-2.0.

A contributor guide for the Agent Kernel repository, covering its layout, setup and quality commands, adapter architecture, and two different groups of development skills.

In plain words
What is it for?
It guides work on the Agent Kernel codebase and explains where to find instructions for adding adapters, integrations, guardrails, and other core components.
Why use it?
It helps coding agents avoid confusing tools for repository contributors with skills included for people who use the Agent Kernel Python package.

Instructions file for CodexOpenCode

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

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

Reuse

Borrowing it

Nothing to install: this file belongs to yaalalabs/agent-kernel. 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/yaalalabs/agent-kernel/develop/AGENTS.md
Clone the repo
git clone --depth 1 https://github.com/yaalalabs/agent-kernel

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 agent-kernel AGENTS.md

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/yaalalabs/agent-kernel/agents-md"><img src="https://agentmods.dev/badge/instructions/yaalalabs/agent-kernel/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 2,809 This file is loaded in full into every session.
When invoked 2,809 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.02809 $0.02809
Opus 5.5 $0.01124 $0.01124
Sonnet 5.5 $0.00562 $0.00562
Haiku 4.5 $0.00281 $0.00281

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

Security

Grade A, and why

agent-kernel 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 · 179 lines

How it starts

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

AGENTS.md

Guidance for AI coding agents (Claude Code, Cursor, Copilot, Codex, Windsurf, etc.) working on the Agent Kernel codebase itself. If you're building an agent with Agent Kernel, see the README and kernel.yaala.ai/docs instead — this file is for contributors to this repo.

Two skill sets — don't confuse them

This repo ships two unrelated sets of "skills," named similarly but serving opposite audiences:

Skill set Location Audience Purpose
Dev skills .agents/skills/ak-dev-* You, working on this repo Architecture, testing conventions, code quality, and step-by-step guides for adding a new framework adapter / guardrail / knowledge base / messaging integration / tracing provider / multimodal storage / sandbox provider / queue transport to Agent Kernel core
Bundled skills ak-py/src/agentkernel/skills/ (ak-init, ak-build, ak-add-capabilities, ak-add-integration, ak-cloud-deploy, ak-test) End users of the agentkernel PyPI package Shipped inside the package so a downstream developer's coding assistant can scaffold and extend agents built with Agent Kernel

If a task is about changing Agent Kernel's own source, use the dev skills under .agents/skills/. Never edit the bundled skills to document a dev-only workflow, and never edit the dev skills to change end-user-facing scaffolding behavior — read the description in each SKILL.md before editing either.

Before non-trivial changes to core, load .agents/skills/ak-dev-architecture — it covers Session, Agent, Runner, Module, Runtime, AgentService, ChatService (and which layer each surface calls), AKConfig, hooks, tools, multimodal, conversation threads, and the ECS containerized deployment classes in depth. Don't re-derive this from scratch by grepping; the skill is maintained precisely so agents don't have to.

Read the full file on GitHub · 179 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 · +2 lines · +52 tokens per session f92a498783b1
  2. 1mo ago Changed · +2 lines · +52 tokens per session f56298ece839
  3. 1mo ago Changed · -2 lines · -30 tokens per session 5217477c2aaa
  4. 1mo ago Changed · +8 tokens per session ba82c356f0d5
  5. 1mo ago Changed · +26 lines · +401 tokens per session 17f66b2829a0
  6. 2mo ago First seen · 151 lines · 2,326 tokens per session scan A f9ce35cec19b

Subscribe to this mod's changes

agent-kernel AGENTS.md is an instructions file published in the GitHub repository yaalalabs/agent-kernel (192 stars, last pushed yesterday), licensed Apache-2.0. It adds 2,809 tokens to every session, about $0.0112 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

agent-kernel AGENTS.md compared with instructions from other repositories

agent-kernel AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
agent-kernel AGENTS.mdyaalalabs/agent-kernelInstructions file192yesterdayApache-2.0A2,809Codex, 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