agentleFS
Atakan-EmreAtakan-Emre/agentic-workflow-lab/AGENTS.md

agentic-workflow-lab

AGENTS.md0 starsChanged 5 months agoMITView on GitHub

Shared operating contract for AI coding agents working in agentic-workflow-lab. This repository does not simulate an agent. It prepares the repository so real coding agents can work safely and consistently. This is a reference repository demonstrating repo-level agentic governance: instructions, manifests, policies, validation, and read-only tool layers. Do not add fake LLM providers, simulated agent runtimes, or external API integrations. This repository is a local governance template. Do not connect it to Cursor Cloud Agents environment setup, and do not…

  • Pipes a download into a shell
  • Reads credentials
  • Installs packages

The file

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

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

  • ≈1

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈4

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 3

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  • could be automatic: a setting could enforce it
  1. Very specific:

    Do not collapse these layers.

    line 43
  2. Very specific:

    Never commit secrets, tokens, keys, or .env files.

    line 47
  3. Common:

    Never print secrets in logs, diffs, or command output.

    line 48
  4. Distinctive:

    Read repository files and policies.

    line 55
  5. Distinctive:

    Run validation scripts and pytest.

    line 56
  6. Very specific:

    Use read-only MCP demo tools under mcp/.

    line 58
  7. Distinctive:

    Create or update agent manifests, skills, and instruction files following schemas.

    line 59
  8. Distinctive:

    Before opening or merging a PR:

    line 79

≈ “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.

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

AGENTS.md

Shared operating contract for AI coding agents working in agentic-workflow-lab.

This repository does not simulate an agent.
It prepares the repository so real coding agents can work safely and consistently.

Project purpose

This is a reference repository demonstrating repo-level agentic governance: instructions, manifests, policies, validation, and read-only tool layers. Do not add fake LLM providers, simulated agent runtimes, or external API integrations.

Cursor Cloud Agents

This repository is a local governance template. Do not connect it to Cursor Cloud Agents environment setup, and do not trigger @cursor on GitHub issues or PRs by default. Contributors should use their own local IDE agents; this repo only supplies instructions and policies.

Setup commands

python -m venv .venv
.\.venv\Scripts\Activate.ps1
pip install -e ".[dev]"

Test commands

python scripts/validate_agentic_repo.py
pytest -q
agentic-lab-validate

Architecture boundaries

LayerLocationResponsibility
InstructionAGENTS.md, CLAUDE.md, .github/, .cursor/rules/Agent behavior and standards
Capability.claude/agents/, .agents/skills/Subagents and skills
Contractagents/manifests/, schemas/Agent roles and schemas
Policypolicies/Tool, approval, and security rules
Validationscripts/, tests/Automated governance checks
Tool demomcp/Read-only local inspection (not production MCP)

Do not collapse these layers. Policies belong in policies/, not embedded ad hoc in scripts.

Security rules

  • Never commit secrets, tokens, keys, or .env files.
  • Never print secrets in logs, diffs, or command output.
  • Remote script execution (curl | bash, wget | sh, iex) is forbidden.
  • Destructive git operations (push --force, reset --hard) are forbidden.
  • External writes require explicit human approval per policies/approval-policy.yaml.

Allowed actions

  • Read repository files and policies.
  • Run validation scripts and pytest.
  • Edit source, docs, policies, manifests, and tests when tasked.
  • Use read-only MCP demo tools under mcp/.
  • Create or update agent manifests, skills, and instruction files following schemas.

Forbidden actions

  • Adding FakeLLMProvider or simulated agent runtime code.
  • Integrating real LLM APIs or requesting API keys in repo files.
  • Calling external APIs that mutate remote state without approval.
  • Disabling validation, hooks, or policy checks.
  • Force push, hard reset, or deleting unrelated user data.

External write policy

External writes are denied by default. Allowed only when:

  1. policies/approval-policy.yaml gate is satisfied, and
  2. policies/tool-policy.yaml explicitly permits the tool/action, and
  3. A human approver is recorded in the workflow log.

Validation requirements

Before opening or merging a PR:

  1. python scripts/validate_agentic_repo.py must pass.
  2. pytest -q must pass.
  3. CI workflow (.github/workflows/ci.yml) must pass on GitHub.
  4. Changed manifests must validate against schemas/agent-manifest.schema.json.
  5. Changed policies must validate against their schemas.
  6. Instruction files must retain required sections and frontmatter.

PR checklist

  • Scope matches request; no unrelated refactors.
  • Validation scripts pass locally.
  • Tests added or updated for behavioral changes.
  • Policies and manifests updated when agent capabilities change.
  • No secrets, tokens, or credentials in diff.
  • README or docs updated when structure or commands change.
  • Security-sensitive edits reviewed against policies/security-policy.yaml.

Agent routing hints

  • Planning and decomposition → planner-agent manifest / .claude/agents/planner.md
  • Security review → security-agent / .claude/agents/security-reviewer.md
  • Validation → verifier-agent / .claude/agents/validator.md
  • Docs → .claude/agents/docs-writer.md
  • Repo structure review → .claude/agents/repo-reviewer.md

Observability

Record handoffs, approvals, and validation results in PR descriptions or workflow notes. Prefer machine-checkable outputs aligned with schemas/validation-result.schema.json.

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.