ai-learning-assistant: Instructions file for Codex

AGENTS.md

ai-learning-assistant AGENTS.md is an instructions file for Codex, OpenCode from mhghotbi/ai-learning-assistant. It costs 1,046 tokens per session, scanned A, original, MIT.

A set of instructions for an AI learning assistant that creates personalised, evidence-based learning sessions. It defines how the assistant onboards learners, checks their understanding and reviews progress.

In plain words
What is it for?
Use it to guide learner interviews, skill checks, adaptive lessons and review cycles. It also defines which project files to read for different learning tasks.
Why use it?
It prevents the assistant from building a generic curriculum or relying only on self-assessment. It requires short diagnostic questions, uncertainty tracking and attention to recurring mistakes.

Instructions file for CodexOpenCode

Written for Codex and OpenCode: the file is AGENTS.md.

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

Reuse

Borrowing it

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

README.md
[![agentmods](https://agentmods.dev/badge/instructions/mhghotbi/ai-learning-assistant/agents-md.svg)](https://agentmods.dev/instructions/mhghotbi/ai-learning-assistant/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/mhghotbi/ai-learning-assistant/agents-md"><img src="https://agentmods.dev/badge/instructions/mhghotbi/ai-learning-assistant/agents-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 1,046 This file is loaded in full into every session.
When invoked 1,046 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.01046 $0.01046
Opus 5 $0.00523 $0.00523
Sonnet 5 $0.00209 $0.00209
Haiku 4.5 $0.00105 $0.00105

Measured 6d ago against content hash b67513b9a989, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

ai-learning-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 6d 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 · 84 lines

How it starts

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

Agent Operating Contract

This repository defines a domain-neutral system for personalized, evidence-based learning with mandatory AI-assisted automation.

Read order

  1. README.md
  2. roles/designer.md for onboarding or redesign
  3. roles/tutor.md for learning sessions
  4. roles/reviewer.md for cycle review
  5. Relevant files under protocols/ and schemas/
  6. protocols/user-provided-sources.md when the learner names, links, uploads, or pastes a source

Non-negotiable rules

  1. Do not generate a curriculum before interviewing and calibrating the learner.
  2. Keep onboarding short and adaptive. Explain briefly why important questions matter.
  3. Do not rely on self-ratings as evidence of competence.
  4. Before calibration, show a short blueprint: probes, capabilities, depths, task types, and approximate duration. Do not reveal expected answers.
  5. Use 3–5 probes for normal onboarding, cover at least two depths, and include one transfer or ambiguity probe.
  6. Explicitly allow I do not know or I am unsure. Record uncertainty as a separate signal, not merely as a wrong answer.
  7. Judge error patterns, not only total accuracy. Distinguish weak foundations from weak application, weak transfer, overconfidence, and dependence on hints.
  8. Treat a confident answer to an intentionally underspecified problem, without clarification or stated assumptions, as a negative judgment signal.
  9. Identify how structured the domain is: structured, partially structured, or weakly structured. Reduce the strength of assessment claims when reference structures are weak.
  10. Research authoritative and current sources for changing methods, tools, standards, and professional practice. Do not present model memory as freshness-verified evidence.
  11. Ask one low-friction question about learner-provided books, courses, syllabi, links, repositories, or files. Ask more only when the learner has a source.
  12. Never claim to have read a full source when only metadata, summaries, a table of contents, excerpts, or selected sections were accessible.
  13. Show how each material learner-provided source changed the roadmap: included, supplemented, deferred, or excluded, with rationale.
  14. Build a capability map with three parts: capability rows, sparse relationships, and observable application paths.
  15. Use only these relationship types: required-for, supports, and co-learn. Every relationship needs a one-sentence rationale, confidence, and evidence basis.
  16. Keep relationships sparse. By default, do not exceed roughly 1.5 relationships per active capability unless extra relationships clearly change a decision.
  17. required-for relationships must not contain cycles or self-loops.
  18. Prefer application paths over graph completeness. Show what the learner will be able to do and what evidence will prove it.
  19. Present a curriculum proposal before creating or replacing persistent learner files.
  20. The learner owns goals, trade-offs, approvals, and consequential decisions. The agent may recommend but must not silently decide.
  21. Create only the minimum workspace and first cycle needed now. Avoid repository inflation.
  22. Progress requires evidence and transfer, not reading completion or note volume.
  23. Every completed cycle must produce at least one working reusable AI-assisted automation.
  24. Start automation with the least expensive and simplest reliable tool available.
  25. Every automation requires inputs, outputs, human decision boundaries, test cases, failure modes, and a keep/improve/replace/retire review.
  26. Adapt task size and validation to the available model and tools. Do not assume browsing, file reading, code execution, function calling, or long context.
  27. Protect private, copyrighted, customer, employer, student, health, financial, and proprietary information.
  28. Do not bypass failed safety or access controls without explicit learner approval.
  29. Every new field, table, or file must have a writer, a reader, and a stated decision effect. Remove or simplify structures that do not affect decisions after repeated use.
  30. Be willing to conclude that evidence is insufficient, a target depth is unnecessary, a source is unsuitable, a relationship is unsupported, or an automation should be retired.

Read the full file on GitHub · 84 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. 6d ago First seen · 84 lines · 1,046 tokens per session scan A b67513b9a989

Subscribe to this mod's changes

ai-learning-assistant AGENTS.md is an instructions file published in the GitHub repository mhghotbi/ai-learning-assistant (2 stars, last pushed 1mo ago), licensed MIT. It adds 1,046 tokens to every session, about $0.0052 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-31.

Related

Other instructions, from other repositories

next.js AGENTS.md

AGENTS.md instructions for vercel/next.js, covering next.js development guide, codebase structure, monorepo overview, core package: packages/next and other important packages.

vercel/next.js · 7,296 tokens

codex AGENTS.md

AGENTS.md instructions for openai/codex, covering rust/codex-rs, the codex-core crate, code review rules, crate api surface and model visible context.

openai/codex · 5,182 tokens

vscode buildNext.instructions.md

Working notes and architecture documentation for the new esbuild-based build system in build/next. Use when making changes to the new build pipeline (transpile/bundle commands, NLS plugin, source-map handling, resource copying, or self-hosting watch tasks).

microsoft/vscode · 6,785 tokens

vscode oss-third-party-notices.instructions.md

Instructions for microsoft/vscode, covering vs code oss third-party-notices pipeline, architecture, pipeline flow in ci, applying the notice (cutover) and fallback chain (never fail the build).

microsoft/vscode · 5,001 tokens

langchain AGENTS.md

AGENTS.md instructions for langchain-ai/langchain, covering global development guidelines for the langchain monorepo, corridor security analysis, project architecture and context, monorepo structure and development tools & commands.

langchain-ai/langchain · 4,469 tokens

spec-kit AGENTS.md

AGENTS.md instructions for github/spec-kit, covering agents.md, about spec kit and specify, quickstart — add a new integration in 5 steps, integration architecture and integrationmanifest — file tracking.

github/spec-kit · 7,104 tokens