dart_agent_core: Instructions file for Codex

AGENTS.md

dart_agent_core AGENTS.md is an instructions file for Codex, OpenCode from memex-lab/dart_agent_core. It costs 1,450 tokens per session, scanned A, original, MIT.

Repository guidance for dart_agent_core, a Dart library for building local-first agent applications, including tool use, streaming, saved state, planning, and evaluation. Dart is the programming language commonly used with Flutter.

In plain words
What is it for?
Use it when working on the dart_agent_core codebase, running its tests and analysis, building examples, or checking package and platform quality.
Why use it?
It collects the commands and project details needed to inspect, format, test, regenerate mocks, and review this repository correctly.

Instructions file for CodexOpenCode

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

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

Reuse

Borrowing it

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

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

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/memex-lab/dart_agent_core/agents-md"><img src="https://agentmods.dev/badge/instructions/memex-lab/dart_agent_core/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 1,450 This file is loaded in full into every session.
When invoked 1,450 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.01450 $0.01450
Opus 5.5 $0.00580 $0.00580
Sonnet 5.5 $0.00290 $0.00290
Haiku 4.5 $0.00145 $0.00145

Measured 2mo ago against content hash 8fbd13fefc46, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

dart_agent_core 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 2mo 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 · 82 lines

How it starts

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

AGENTS.md

This file provides guidance to Qoder (qoder.com) when working with code in this repository.

dart_agent_core is a mobile-first / local-first Dart library that implements a full agentic loop (tool use, streaming, state persistence, skills, sub-agents, planning, context compression, loop detection) plus an agent-evaluation subsystem. It targets Flutter/Dart apps with no Python or Node.js backend, and supports all 6 platforms including Web.

Common Commands

dart pub get                      # install dependencies

dart analyze .                    # static analysis (whole package, matches pana/CI)
dart format .                     # format; pana fails the score if anything is unformatted

dart test                         # run all tests
dart test test/planner_test.dart  # run a single test file
dart test -n "substring"          # run tests whose name matches

# Regenerate mockito mocks (*.mocks.dart) after changing mocked classes
dart run build_runner build --delete-conflicting-outputs

# Pub-score / platform-tag review (web support, lints, formatting)
pana --no-warning .

Running examples and the eval demo (require provider credentials via env vars):

export OPENAI_API_KEY=sk-...
dart run example/simple_agent_example.dart

# Eval harness demo: --suite calculator|card_agent|pkm_agent|all, --mode live|record|replay
export OPENAI_BASE_URL=https://...
dart run example/eval_demo/main.dart --suite all --concurrency 4 --mode live

# Transcript viewer CLI (reads eval traces)
dart run bin/transcripts.dart

Two Public Libraries

The package exposes two separate entry points — keep them decoupled:

  • lib/dart_agent_core.dart — the agent runtime (clients, agent, tools, skills, state).
  • lib/eval.dart — the evaluation subsystem (tasks, graders, suites, record/replay, metrics, reporting). It is intentionally a separate import so apps that don't run evals don't pay the import cost. Do not pull eval primitives into the main library.

Read the full file on GitHub · 82 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. 2mo ago First seen · 82 lines · 1,450 tokens per session scan A 8fbd13fefc46

Subscribe to this mod's changes

dart_agent_core AGENTS.md is an instructions file published in the GitHub repository memex-lab/dart_agent_core (46 stars, last pushed 9d ago), licensed MIT. It adds 1,450 tokens to every session, about $0.0058 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

dart_agent_core AGENTS.md compared with instructions from other repositories

dart_agent_core AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
dart_agent_core AGENTS.mdmemex-lab/dart_agent_coreInstructions file469d agoMITA1,450Codex, 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