agentleFS
mick-gskmick-gsk/drift/AGENTS.md

drift

AGENTS.md14 starsChanged 7 months agoMITView on GitHub

This file is the agent-neutral entry map for the Drift repository. It is a map, not a rulebook: follow the linked source files for the operative rules. The harness is distributed across MCP tools, session state, benchmarks, and agent-facing docs: Machine-near harness rules live in docs/agent-harness-golden-principles.md. Add or tighten a mechanical check whenever a rule can be verified by code, tests, or CI. The current harness audit deliverables are versioned under audit/: Use these commands for local agent-harness changes: For…

The file

We split this AGENTS.md into the rules it gives an agent

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

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈4

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Read the mandatory agent rules in .github/copilot-instructions.md.

    line 8
  2. Very specific:

    Run the policy gate from .github/instructions/drift-policy.instructions.md before file work.

    line 9
  3. Distinctive:

    Use DEVELOPER.md for setup, commands, architecture overview, and targeted tests.

    line 10
  4. Distinctive:

    Use .github/AGENTS.md for the prompt, skill, and evaluation-prompt catalogue.

    line 11
  5. Distinctive:

    Use these commands for local agent-harness changes:

    line 42

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

Keep what fits and drop the rest. Your version, ready for your agents.
Files
AGENTS.md

Drift Agent Root Map

This file is the agent-neutral entry map for the Drift repository. It is a map, not a rulebook: follow the linked source files for the operative rules.

Start Here

  1. Read the mandatory agent rules in .github/copilot-instructions.md.
  2. Run the policy gate from .github/instructions/drift-policy.instructions.md before file work.
  3. Use DEVELOPER.md for setup, commands, architecture overview, and targeted tests.
  4. Use .github/AGENTS.md for the prompt, skill, and evaluation-prompt catalogue.

Harness Engine Map

The harness is distributed across MCP tools, session state, benchmarks, and agent-facing docs:

AreaPrimary artifactsContract
MCP entrypointsrc/drift/mcp_server.py, .vscode/mcp.jsonRegister tools and delegate business logic to router modules.
Session loopsrc/drift/session.py, src/drift/mcp_orchestration.py, src/drift/mcp_router_session.pyPreserve state, trace, queue replay, guardrails, and handover gates across turns.
Agent taskssrc/drift/models/_agent.py, src/drift/output/agent_tasks.pyEmit machine-readable repair tasks with constraints and verification plans.
Evaluation harnessscripts/ab_harness.py, scripts/benchmark_agent_loop.py, scripts/run_agent_loop_benchmark.pyMeasure agent loop efficiency, severity-gate routing, and brief effectiveness.
Mechanical harness checkscripts/check_agent_harness_contract.py, tests/test_agent_harness_contract.pyVerify required docs, audit artifacts, root allowlist entries, Markdown links, and MCP boundaries.

Golden Principles

Machine-near harness rules live in docs/agent-harness-golden-principles.md. Add or tighten a mechanical check whenever a rule can be verified by code, tests, or CI.

Audit Trail

The current harness audit deliverables are versioned under audit/:

  • audit/harness-engine-audit.md - current-state map and risks
  • audit/improvement-plan.md - prioritized backlog and validation method
  • audit/change-log.md - implemented changes and checks
  • audit/follow-up.md - gaps that still need design or automation
  • audit/harness-tool-map.json - canonical MCP tool to router-owner map (HARNESS006/007)

Validation Commands

Use these commands for local agent-harness changes:

.venv\Scripts\python.exe scripts\check_agent_harness_contract.py --root .
.venv\Scripts\python.exe -m pytest tests/test_agent_harness_contract.py -q --tb=short
make agent-harness-check

For source-file-specific checks, use the map in DEVELOPER.md or run:

make test-for FILE=src/drift/session.py

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.