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
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about code style.
Of the AGENTS.md files we read, the 33,398 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 repository11 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- docs/copilot-instructions.mdCopilot instructions
- .github/copilot-instructions.mdCopilot instructions
- .cursor/rules/agentic-architecture.mdcCursor rule
- .cursor/rules/python-quality.mdcCursor rule
- .cursor/rules/security.mdcCursor rule
- add-tool-policySkill
- add-validatorSkill
- create-agent-manifestSkill
- run-governance-checkSkill
- write-architecture-docSkill
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
- Very specific: line 43
Do not collapse these layers.
- Very specific: line 47
Never commit secrets, tokens, keys, or .env files.
- Common: line 48
Never print secrets in logs, diffs, or command output.
- Distinctive: line 55
Read repository files and policies.
- Distinctive: line 56
Run validation scripts and pytest.
- Very specific: line 58
Use read-only MCP demo tools under mcp/.
- Distinctive: line 59
Create or update agent manifests, skills, and instruction files following schemas.
- Distinctive: line 79
Before opening or merging a PR:
≈ “Common” is an estimate: at least 1 in 5 of the 43,423 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.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-validateArchitecture boundaries
| Layer | Location | Responsibility |
| Instruction | AGENTS.md, CLAUDE.md, .github/, .cursor/rules/ | Agent behavior and standards |
| Capability | .claude/agents/, .agents/skills/ | Subagents and skills |
| Contract | agents/manifests/, schemas/ | Agent roles and schemas |
| Policy | policies/ | Tool, approval, and security rules |
| Validation | scripts/, tests/ | Automated governance checks |
| Tool demo | mcp/ | 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
.envfiles. - 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:
policies/approval-policy.yamlgate is satisfied, andpolicies/tool-policy.yamlexplicitly permits the tool/action, and- A human approver is recorded in the workflow log.
Validation requirements
Before opening or merging a PR:
python scripts/validate_agentic_repo.pymust pass.pytest -qmust pass.- CI workflow (
.github/workflows/ci.yml) must pass on GitHub. - Changed manifests must validate against
schemas/agent-manifest.schema.json. - Changed policies must validate against their schemas.
- 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-agentmanifest /.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.
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.

