violin
AGENTS.md145 starsChanged 2 months agoMITView on GitHub
Workspace developer guidance for AI coding agents (Antigravity, Hermes, Codex, Cursor) developing or maintaining violin.
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 repository7 other files it gives its agents.
- api-testingSkill
- business-logicSkill
- identity-authSkill
- llm-securitySkill
- misconfigSkill
- pentestSkill
- web-appSkill
The file
Show its rules and text
We split this AGENTS.md into the rules it gives an agent
19 rules. About 0 are common, 10 are distinctive, and 9 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈10
Distinctive · estimate
This author's own choices. Worth a look.
9
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 11
Run before declaring completion:
- Very specific: line 24
Typed Schemas: Use Pydantic v2 BaseModel models in plugins/violin_guard/core/schemas.py.
- Very specific: line 27
Spelling & Naming: Use American English throughout codebase symbols and exports (normalize_target, serialize, initialize).
- Very specific: line 28
Timestamp Standardization: Use ISO-8601 UTC formats (datetime.now(UTC).isoformat()) across all state, receipt, and evidence timestamps.
- Very specific: line 29
Process & Concurrency Safety: Never mutate global process environment (os.environ) in request handlers or adapter logic.
- Very specific: line 39
Recovery: If post-release sync fails, inspect the graph and merge master back into dev.
- Very specific: line 40
Commit Conventions: Follow Conventional Commits (feat:, fix:, refactor:, chore:, docs:, test:).
- Very specific: line 44
All agent-created or agent-edited issues MUST follow .github/ISSUE_STANDARDS.md.
- Distinctive: line 47
Before creating an issue:
- Distinctive: line 49
Search open and closed issues for duplicates and overlapping scope.
- Distinctive: line 50
Search open pull requests for work that already implements the change.
- Distinctive: line 51
Keep one independently reviewable concern per issue.
- Distinctive: line 52
Prefer GitHub-native metadata over prose: issue type, project Priority/Status, dependencies, sub-issues, milestones, and area labels.
- Very specific: line 54
Never encode priority/order/type/status in the title or a metadata block.
- Distinctive: line 55
Use native blocked-by/blocking relationships for true dependencies and parent/sub-issues for larger outcomes.
- Distinctive: line 58
Use the canonical body order: Summary.
- Distinctive: line 74
NEVER Bypass Target Execution Guards: No raw shell execution for target commands.
- Distinctive: line 77
NEVER Reinvent Existing Library Functionality: Always check for and use built-in standard library or installed project dependencies where …
- Very specific: line 78
NEVER Declare Success Without Empirical Verification: Always run uv run pytest and uv run ruff check ..
≈ “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
Strategic-Automation/violin — AI Developer Guidance
Workspace developer guidance for AI coding agents (Antigravity, Hermes, Codex, Cursor) developing or maintaining violin.
1. Stack & Setup
- Python: 3.11 (
.python-version,pyproject.toml) - Package Manager:
uv(uv sync --dev) - Venv:
.venvviauv
2. Mandatory Verification Commands
Run before declaring completion:
uv run pytest # Full test suite (100% pass)
uv run ruff check . # Linter check
uv run ruff format --check . # Format check (fix: uv run ruff format .)
uv run python scripts/violin_guard.py check-release # Release gate check3. Code Conventions & Architecture
- Hermes Runtime Contract: Target-touching commands MUST use the registered
plugins.violin_guardtools (violin_exec,violin_record_ptt,violin_review_batch,violin_record_hypothesis,violin_target,violin_status). The standalone CLI is for administration and diagnostics, not target execution. - Fail-Closed Validation: State parsers in
plugins/violin_guard/core/and command gates inplugins/violin_guard/gates/validate inputs fail-closed before mutating state. - Section Preservation: Rewriters (
_rewrite_hypotheses,update_task) MUST preserve template sections (## Observations,## Decoy Trail,## Research Log,## Resolved Theories, table columns). Never manually overwritehypotheses.mdwith unstructured narrative text; keep canonical### H-XXX:blocks and status fields intact. - Evidence Path Isolation: Save all raw evidence, dumps, tokens, and PoC outputs strictly under
$ENG_DIR/evidence/<phase>/. Never place evidence files inside$ENG_DIR/state/(reserved for runtime state tracking). - Typed Schemas: Use Pydantic v2
BaseModelmodels inplugins/violin_guard/core/schemas.py. - Encoding: Explicit
encoding="utf-8"required for all text file operations. - Library-First Development: Always use libraries—both Python standard library (e.g.,
functools.lru_cache,dataclasses,pathlib,contextlib,ipaddress,argparse,datetime.timedelta,shutil,re,shlex,hashlib) and declared external dependencies (pydantic,netaddr,yarl,filelock,pyyaml,bashlex,psutil)—instead of rolling custom code or manual parsing algorithms. Always check if existing built-in or project dependencies provide the required functionality before writing custom implementations. - Spelling & Naming: Use American English throughout codebase symbols and exports (
normalize_target,serialize,initialize). Avoid single-letter variable names (a,r) in public/internal handler signatures and function definitions. - Timestamp Standardization: Use ISO-8601 UTC formats (
datetime.now(UTC).isoformat()) across all state, receipt, and evidence timestamps. - Process & Concurrency Safety: Never mutate global process environment (
os.environ) in request handlers or adapter logic; pass parameters explicitly. Always acquire advisory locks (lock_file/workflow_lock) before writing to or appending to any state/feedback files. - No Test Artifact Leakage in Production: Production code must NEVER inspect
sys.modulesfor test-specific package names or test-specific shims. Use clean dependency injection, fixtures, orunittest.mock. - Domain-Driven Test Naming: Name test files and test functions descriptively after the capability, invariant, or subsystem under test (e.g.,
test_batch_integrity.py), never after transient ticket numbers (task1,a1-a15) or static version numbers (roadmap_1_1_1).
4. Git & Branching Strategy
- Branches:
codex/<topic>ordev - Flow:
codex/<topic>──►dev──►master. - Feature PRs: Squash-merge topic branches into
dev, then delete the topic branch. - Release PRs: Merge
devintomasterwith Create a merge commit. Never squash-merge or rebase-merge a release PR;devmust remain an ancestor ofmaster. - Post-Release Sync:
.github/workflows/sync-dev-after-release.ymlfast-forwardsdevto the newmastercommit after every release merge. It must fail instead of force-pushing when the branches have diverged. - Recovery: If post-release sync fails, inspect the graph and merge
masterback intodev; never rewrite a shared protected branch to hide divergence. - Commit Conventions: Follow Conventional Commits (
feat:,fix:,refactor:,chore:,docs:,test:). Use imperative mood, lowercase types, and no trailing periods. Ensure clean rebasing without duplicate dual-author cherry-picks.
5. Issue Creation & Triage
All agent-created or agent-edited issues MUST follow
.github/ISSUE_STANDARDS.md.
Before creating an issue:
- Search open and closed issues for duplicates and overlapping scope.
- Search open pull requests for work that already implements the change.
- Keep one independently reviewable concern per issue.
- Prefer GitHub-native metadata over prose: issue type, project Priority/Status, dependencies, sub-issues, milestones, and area labels.
- Never encode priority/order/type/status in the title or a metadata block.
- Use native blocked-by/blocking relationships for true dependencies and parent/sub-issues for larger outcomes. If the available API cannot set a native field, do not invent a duplicate text field; leave it for triage.
- Use the canonical body order: Summary; Why this matters; Reproduction (bugs); Proposed implementation; Implementation area; Acceptance criteria; Dependencies / related work; References.
- Acceptance criteria MUST be observable and testable. Avoid vague criteria such as "improve quality" or "works better".
- Preserve existing reproduction evidence, decisions, research, and acceptance criteria when editing an issue. Do not restyle a well-formed issue just for consistency.
- Public issues MUST NOT contain credentials, target/customer data, engagement evidence,
or undisclosed vulnerabilities in Violin itself; follow
SECURITY.mdfor private vulnerability reporting.
For human-created issues, use the repository Bug Report, Feature Request, or Engineering Task
form. Agents creating issues through an API must produce the same logical structure and use
native Bug, Feature, or Task issue types when supported.
6. Hard Boundaries
- NEVER Bypass Target Execution Guards: No raw shell execution for target commands.
- NEVER Swallow Exceptions or Patch Tests Superficially: Fix root causes; never mask errors or alter assertions (no bare
except Exception: pass). - NEVER Hardcode Target IPs: Resolve via
violin_targetorscope.yaml. - NEVER Reinvent Existing Library Functionality: Always check for and use built-in standard library or installed project dependencies where viable instead of hand-rolling custom code.
- NEVER Declare Success Without Empirical Verification: Always run
uv run pytestanduv run ruff check ..
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.

