MindTrain AGENTS.md

Repository instructions for MindTrain, a platform that helps people learn through questions, practice sessions, reviews, and scheduling. They define how its training system, plugins, data, and architecture should be maintained.

In plain words
What is it for?
Use them when changing MindTrain's code, training content, scheduler integrations, plugins, database structure, deployment setup, or release workflow.
Why use it?
They keep the training system as the authoritative source of learning data and prevent plugins or runtime data from taking over that role. They also set boundaries for architecture and release work.

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/shigella520/mindtrain/agents-md
Clone the repo
git clone --depth 1 https://github.com/shigella520/MindTrain

Made for: Codex, OpenCode.

Per session 559 This file is loaded in full into every session.
When invoked 559 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.00559 $0.00559
Opus 5 $0.00280 $0.00280
Sonnet 5 $0.00112 $0.00112
Haiku 4.5 $0.00056 $0.00056

Measured 2d ago against content hash 5176592ebeeb, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

MindTrain 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 2d 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 · 38 lines

How it starts

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

Repository Instructions

MindTrain target architecture

  • Treat MindTrain as a domain-independent knowledge-training platform, not as a Java-only Skill.
  • Use doc/目标需求.md as the product requirements source and doc/概要设计.md as the architecture source.
  • Keep Training Core as the source of truth for questions, candidates, prompts, sessions, attempts, review events, scheduler bindings, and plugin sync state.
  • Keep Codex Skills stateless: they orchestrate MCP/API tools and must not become the authoritative application database.
  • Keep scheduler behavior behind a provider contract. The initial providers are Core 加权调度 (stable ID: weighted) and the optional Anki scheduler plugin.
  • Treat Anki as a scheduling plugin and rebuildable local projection, not as the authoritative MindTrain question bank.
  • Keep production runtime data out of the repository; retain only migrations, contracts, deployment configuration, and minimal non-private test fixtures.
  • Do not introduce microservices prematurely. Build Training Core as a modular monolith first.

Training and content integrity

  • Use plugins/mindtrain/skills/mindtrain/SKILL.md as the only MindTrain Skill source.
  • Access questions, candidates, sessions, attempts, mastery and reports only through Trainer MCP or Training Core APIs.
  • Permit an unanswered generated candidate only in its owning session; answering activates it, while explicit rejection physically deletes it.
  • Grade single- and multiple-choice answers by exact option-set equality; scores are only 100 or 0.
  • Never show an example answer combination that could disclose the correct answer count or option set. Use neutral text such as 请回复选项字母,可用逗号分隔.
  • Record source URL, access date, version, and review state for generated questions.
  • Increment the version when published question content or scoring criteria change.
  • Use test-local fixtures rather than repository question banks or personal learning files.

Safety and integrity

  • Do not commit secrets, API keys, Anki credentials, access tokens, or private learning material.
  • Do not overwrite or delete existing user learning data while restructuring the platform.
  • Make external integrations idempotent and retain enough state to recover partial Core/plugin failures.
  • Keep third-party MCP and Anki Add-on APIs behind MindTrain-owned adapters.

Read the full file on GitHub · 38 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. 2d ago First seen · 38 lines · 559 tokens per session scan A 5176592ebeeb

Subscribe to this mod's changes

MindTrain AGENTS.md is an instructions file published in the GitHub repository shigella520/MindTrain (120 stars, last pushed 6d ago), licensed MIT. It adds 559 tokens to every session, about $0.0028 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.

Related

Other instructions, from other repositories