agentleFS
oldskultxooldskultxo/aictx/.github/copilot-instructions.md

aictx

Copilot instructions59 starsChanged 6 months agoMITView on GitHub

These are repository custom instructions for GitHub Copilot. AICTX cannot force Copilot to run commands, but Copilot should follow this lifecycle whenever command execution is available. Critical lifecycle: - Prefer AICTX MCP tools when available; fall back to AICTX CLI commands otherwise. - MCP-first startup: if AICTX MCP tools are already visible, use those tools for resume/finalize. If they are not visible but .mcp.json or .vscode/mcp.json exists, first use the runner tool-discovery mechanism when available (for example search for aictx…

The file

We split this copilot-instructions.md into the rules it gives an agent

5 rules. About 0 are common, 1 is distinctive, and 4 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 4

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Prefer AICTX MCP tools when available.

    line 7
  2. Distinctive:

    Use the returned resume capsule as the operational brief before broad repo scanning.

    line 10
  3. Very specific:

    Before the final response, run exactly once: aictx finalize --repo .

    line 11
  4. Very specific:

    Do not inspect .aictx/ directly during normal startup.

    line 13
  5. Very specific:

    Do not run exploratory AICTX commands during normal startup.

    line 14

≈ “Common” is an estimate: at least 1 in 5 of the 1,644 Copilot instructions 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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
copilot-instructions.md
<!-- AICTX:START -->

AICTX GitHub Copilot integration

These are repository custom instructions for GitHub Copilot. AICTX cannot force Copilot to run commands, but Copilot should follow this lifecycle whenever command execution is available.

Critical lifecycle:

  • Prefer AICTX MCP tools when available; fall back to AICTX CLI commands otherwise.
  • MCP-first startup: if AICTX MCP tools are already visible, use those tools for resume/finalize. If they are not visible but .mcp.json or .vscode/mcp.json exists, first use the runner tool-discovery mechanism when available (for example search for aictx 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.
  • For non-trivial repository tasks, first run exactly once: aictx resume --repo . --task "<task goal>" --agent-id copilot --adapter-id copilot-vscode --json.
  • Use the returned resume capsule as the operational brief before broad repo scanning.
  • Before the final response, run exactly once: aictx finalize --repo . --status success|failure --summary "<what happened>" --agent-id copilot --adapter-id copilot-vscode --json.
  • Append the AICTX final summary from finalize when available. Render every provided summary section, including details, continuity_view_file, and continuity_view_online; preserve Continuity View file links and Mermaid online view links; do not replace URLs with placeholders and do not manually reconstruct or retype pako URLs. If command execution is unavailable, say that the AICTX lifecycle could not be executed.
  • Do not inspect .aictx/ directly during normal startup; use aictx resume.
  • Do not run exploratory AICTX commands during normal startup.

Verification tip: in Copilot Chat, expand response References and confirm .github/copilot-instructions.md is listed.

<!-- AICTX:END -->

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.