Imported from BaochaiXue/Rest_learning_self_learning (
AGENTS.md). Install upstream withnpx skills add BaochaiXue/Rest_learning_self_learning. Copyright stays with the author.
AGENTS.md — Root Research OS Contract
Repo Purpose
The repository root is a reusable research operating system for vibe-research work.
Treat docs/ as the root system of record for maps, policy, execution structure, handoffs, quality, reliability, and generated audits.
Treat research/ as the durable work state for active topics.
Treat nested_learning_textbook/ as a child project with its own canonical docs and manuscript rules.
Read Order
- Read this file.
- Read
docs/index.md. - Read
README.md. - Read
PLANS.md. - Read
research/README.md. - If the task uses any root docs artifact, read the relevant page under
docs/. - If the task touches
nested_learning_textbook/, also read:nested_learning_textbook/AGENTS.mdnested_learning_textbook/docs/index.mdnested_learning_textbook/docs/project_state/current_repo_audit.mdnested_learning_textbook/docs/handoffs/latest_handoff.mdnested_learning_textbook/docs/exec-plans/active/nested_learning_textbook/docs/quality/qa_rubric.md
Default Work Loop
Use this loop unless the user explicitly asks for something narrower:
plan -> gather evidence -> implement / run -> verify -> log -> synthesize
Do not jump from a vague idea straight into implementation.
Planning Rules
- For any non-trivial task, create or update a plan before substantial work.
- Use
PLANS.mdas the reusable template. - For an active research topic, instantiate
research/research_plan.mdfromresearch/research_plan.template.mdif it does not exist. - Plans must state objective, non-goals, dependencies, verification, rollback, and files to touch.
Durable State Rules
- Important work must land in repo files, not only in chat.
- After any substantive experiment, code change, config change, or evaluation, update
research/findings.md. - Record literature structure in
research/literature_map.md. - Record claim status in
research/claims_registry.md. - Record decisions and reversals in
research/decision_log.md. - Record unresolved blockers in
research/open_questions.md. - Use
docs/handoffs/latest_handoff.mdat phase boundaries for root-level work.
Claim Discipline
- Every research claim must point to a source, experiment artifact, or file path.
- Mark claims as
verifiedoruncertain. - Do not fabricate citations, baselines, datasets, benchmarks, settings, or results.
- Do not write conclusions that cannot be traced back to evidence.
- If the claim is part of root-level docs or research output, also follow
docs/quality/claim_honesty_policy.md. - If work touches the textbook subtree, also follow
nested_learning_textbook/docs/quality/claim_honesty_policy.md.
Subagent Rules
Spawn subagents explicitly when work can proceed independently and in parallel. Good cases:
- literature scouting across distinct source questions
- novelty audit separate from source gathering
- experiment design separate from implementation
- reproducibility review after implementation
- alternative plan decompositions for a fuzzy topic
Do not assume the surface auto-parallelizes. Wait for all critical subagents to return before writing the synthesis. Keep roles narrow; do not create a general-purpose "do everything" agent.
Path And Scope Rules
- Use repo-relative paths in files.
- Do not let important state hide in temporary notes or shell history.
- Do not overwrite
nested_learning_textbook/manuscript/*.md. - Root docs orchestrate work; they do not replace
nested_learning_textbook/docs/as the textbook source of truth.
Done-When
Work is done only when:
- the requested artifact or change exists in the right file
- verification has been run or an explicit blocker is recorded
research/findings.mdreflects substantive work- conclusions are traceable to evidence
- the relevant root docs page is updated if the task changed policy, map, or handoff state
- if
nested_learning_textbook/changed,nested_learning_textbook/docs/handoffs/latest_handoff.mdis updated - if
nested_learning_textbook/changed, runmake check - if LaTeX content changed, also run
make book
Operating Bias
- Prefer small, reversible diffs.
- Prefer primary sources over summaries.
- Prefer a minimal closed loop over a sprawling plan.
- Prefer explicit evidence gaps over confident guessing.