aictx
AGENTS.md59 starsChanged 6 months agoMITView on GitHub
This repository is initialized for aictx. Agent rules: - Enter the runtime middleware for every execution in initialized repos. - The AICTX lifecycle remains prepare/startup context → resume capsule → work → finalize → final AICTX summary/persistence. - MCP-first startup: 1. If AICTX MCP tools are already visible, use MCP tools for resume/finalize. 2. If AICTX MCP tools are not visible but .mcp.json or .vscode/mcp.json exists, first use runner tool discovery when available (for example search for aictx resume finalize…
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about checking a change actually works.
Of the AGENTS.md files we read, the 11,773 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.
In this repository3 other files it gives its agents.
- .github/copilot-instructions.mdCopilot instructions
- docs/llms-full.txtllms.txt
- docs/llms.txtllms.txt
The file
Show its rules and text
We split this AGENTS.md into the rules it gives an agent
14 rules. About 0 are common, 3 are distinctive, and 11 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈3
Distinctive · estimate
This author's own choices. Worth a look.
11
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 5
Prefer eager scaffold semantics: structure exists immediately after aictx init.
- Very specific: line 18
If AICTX MCP tools are already visible, use MCP tools for resume/finalize.
- Distinctive: line 20
If MCP tools still are not attached after discovery/attachment, state that MCP config exists but tools are unavailable in this runner and …
- Very specific: line 23
Run exactly one AICTX continuity command: MCP resume when available, otherwise aictx resume --repo .
- Distinctive: line 24
Do not pass the full user prompt to resume.
- Very specific: line 25
After task work, run exactly one AICTX finalization command: MCP finalize when available, otherwise aictx finalize --repo .
- Distinctive: line 26
Use the returned continuity capsule as the operational brief during normal agent startup.
- Very specific: line 29
Do not inspect .aictx/.
- Very specific: line 30
Do not run exploratory AICTX commands.
- Very specific: line 31
Do not run aictx internal, aictx -h, aictx reuse, aictx suggest, aictx next, aictx task, aictx messages, aictx reflect, or aictx report …
- Very specific: line 33
Use aictx finalize --repo .
- Very specific: line 35
If no finalize output exists, say AICTX summary unavailable.
- Very specific: line 36
Use the aictx resume capsule before deeper repo analysis.
- Very specific: line 38
Use resume.runtime_text_policy / resume.communication_policy, prepared.runtime_text_policy, prepared.startup_banner_policy, and …
≈ “Common” is an estimate: at least 1 in 5 of the 16,595 AGENTS.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
AGENTS Instructions for aictx
aictxis the distributable multi-LLM installer/runtime layer for.aictx_*.- Local filesystem artifacts are created by scripting/runtime, never by the LLM.
- Prefer eager scaffold semantics: structure exists immediately after
aictx init. - Cross-project behavior must come from workspace registry/config, never hardcoded machine paths.
- For subsystem changes, validate with
python3 -m aictx internal migrate,internal boot,internal query,internal packet,internal memory-graph --refresh, andreport real-usage --repo <repo>when relevant.
<!-- AICTX:START -->AI Context Engine
This repository is initialized for aictx.
Agent rules:
- Enter the runtime middleware for every execution in initialized repos.
- The AICTX lifecycle remains
prepare/startup context → resume capsule → work → finalize → final AICTX summary/persistence. - MCP-first startup:
- If AICTX MCP tools are already visible, use MCP tools for resume/finalize.
- If AICTX MCP tools are not visible but
.mcp.jsonor.vscode/mcp.jsonexists, first use runner tool discovery when available (for example search foraictx resume finalize lifecycle) so lazy-loaded MCP namespaces can attach, then have the runner attach/start the configured stdio MCP server before the first AICTX command of each new session. - If MCP tools still are not attached after discovery/attachment, state that MCP config exists but tools are unavailable in this runner and use the CLI fallback.
- At session start:
- Extract the task goal from the user prompt.
- Run exactly one AICTX continuity command: MCP resume when available, otherwise
aictx resume --repo . --task "<task goal>" --json. - Do not pass the full user prompt to resume; exclude reporting instructions, metrics schemas, output format rules, final answer format, benchmark/evaluation harness text, logging instructions, and meta-instructions about how to report the work.
- After task work, run exactly one AICTX finalization command: MCP finalize when available, otherwise
aictx finalize --repo . --status success|failure --summary "<what happened>" --json. - Use the returned continuity capsule as the operational brief during normal agent startup; follow
execution_contract.first_actionbefore repo-wide orientation, edit withinexecution_contract.edit_scope, runexecution_contract.test_command.command, then finalize. - Render exactly one startup banner source: normal agent startup uses
resume.startup_banner_textorresume.startup_banner_render_payload; wrapped execution usesprepare_execution().startup_banner_textorprepare_execution().startup_banner_render_payload. Do not render both. resumeis the canonical agent-facing continuity query; it does not replaceprepare_execution,aictx finalize, the startup banner, the final AICTX summary, or persistence.- Do not inspect
.aictx/. - Do not run exploratory AICTX commands.
- Do not run
aictx internal,aictx -h,aictx reuse,aictx suggest,aictx next,aictx task,aictx messages,aictx reflect, oraictx reportduring normal task startup unless the user asks for AICTX diagnostics, the task is about AICTX itself, resume is missing/corrupt/contradictory, or finalization/update lifecycle requires it. - On the first execution of each visible session, always show the startup banner at the start of the first substantive user-visible response; do not consume it with a transient progress/status message that will be omitted from the final task response. Render the selected resume/prepare startup banner in the current user language. When the selected startup banner policy points to a structured render payload, prefer that structured payload for localization and use compact text only as the fallback source. You may fully rephrase human-readable prose from structured factual fields while preserving exact facts, file paths, commands, flags, package names, test names, code identifiers, and other technical tokens; do not add, remove, reorder, reinterpret, or invent facts. If first-session text is missing, render
{agent_label} · session #{session_count} · awakefrom selected identity fields. Do not render it again afteralready_shownis true. - Use
aictx finalize --repo . --status success|failure --summary "<what happened>" --jsonfor normal agent finalization. finalize_execution is the middleware API behind that command; do not call it directly from the shell. Do not runaictx internal execution finalizeduring normal task flow. - After finalize, append the AICTX final summary to the final user response, using
agent_summary_textas the compact fallback user-facing source. Whenagent_summary_policy.render_payload_fieldpoints toagent_summary_render_payload, prefer that structured payload for localization while preserving exact facts, technical tokens, and the details/continuity link targets. Render every provided summary section, includingdetails,continuity_view_file, andcontinuity_view_online; do not replace Mermaid URLs with placeholders and do not manually reconstruct or retype pako URLs. - If no finalize output exists, say
AICTX summary unavailable. - Use the
aictx resumecapsule before deeper repo analysis. .aictx/memory/source/is editable source knowledge; do not hand-edit generated derived artifacts under.aictx/boot,.aictx/store,.aictx/indexes,.aictx/metrics, and similar runtime folders.- Use
resume.runtime_text_policy/resume.communication_policy,prepared.runtime_text_policy,prepared.startup_banner_policy, andfinalized.agent_summary_policywhen available. - You may enrich AICTX-originated user-visible texts if helpful, but you must preserve real facts and never invent missing data.
- Advanced/diagnostic/building-block commands remain available for humans and diagnostics, but normal agents should not use them during startup.
Detailed runtime instructions:
.aictx/agent_runtime.md
<!-- AICTX:END -->Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

