agentleFS
Strategic-AutomationStrategic-Automation/violin/AGENTS.md

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.

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
  1. Distinctive:

    Run before declaring completion:

    line 11
  2. Very specific:

    Typed Schemas: Use Pydantic v2 BaseModel models in plugins/violin_guard/core/schemas.py.

    line 24
  3. Very specific:

    Spelling & Naming: Use American English throughout codebase symbols and exports (normalize_target, serialize, initialize).

    line 27
  4. Very specific:

    Timestamp Standardization: Use ISO-8601 UTC formats (datetime.now(UTC).isoformat()) across all state, receipt, and evidence timestamps.

    line 28
  5. Very specific:

    Process & Concurrency Safety: Never mutate global process environment (os.environ) in request handlers or adapter logic.

    line 29
  6. Very specific:

    Recovery: If post-release sync fails, inspect the graph and merge master back into dev.

    line 39
  7. Very specific:

    Commit Conventions: Follow Conventional Commits (feat:, fix:, refactor:, chore:, docs:, test:).

    line 40
  8. Very specific:

    All agent-created or agent-edited issues MUST follow .github/ISSUE_STANDARDS.md.

    line 44
  9. Distinctive:

    Before creating an issue:

    line 47
  10. Distinctive:

    Search open and closed issues for duplicates and overlapping scope.

    line 49
  11. Distinctive:

    Search open pull requests for work that already implements the change.

    line 50
  12. Distinctive:

    Keep one independently reviewable concern per issue.

    line 51
  13. Distinctive:

    Prefer GitHub-native metadata over prose: issue type, project Priority/Status, dependencies, sub-issues, milestones, and area labels.

    line 52
  14. Very specific:

    Never encode priority/order/type/status in the title or a metadata block.

    line 54
  15. Distinctive:

    Use native blocked-by/blocking relationships for true dependencies and parent/sub-issues for larger outcomes.

    line 55
  16. Distinctive:

    Use the canonical body order: Summary.

    line 58
  17. Distinctive:

    NEVER Bypass Target Execution Guards: No raw shell execution for target commands.

    line 74
  18. Distinctive:

    NEVER Reinvent Existing Library Functionality: Always check for and use built-in standard library or installed project dependencies where …

    line 77
  19. Very specific:

    NEVER Declare Success Without Empirical Verification: Always run uv run pytest and uv run ruff check ..

    line 78

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

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: .venv via uv

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 check

3. Code Conventions & Architecture

  • Hermes Runtime Contract: Target-touching commands MUST use the registered plugins.violin_guard tools (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 in plugins/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 overwrite hypotheses.md with 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 BaseModel models in plugins/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.modules for test-specific package names or test-specific shims. Use clean dependency injection, fixtures, or unittest.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> or dev
  • Flow: codex/<topic> ──► dev ──► master.
  • Feature PRs: Squash-merge topic branches into dev, then delete the topic branch.
  • Release PRs: Merge dev into master with Create a merge commit. Never squash-merge or rebase-merge a release PR; dev must remain an ancestor of master.
  • Post-Release Sync: .github/workflows/sync-dev-after-release.yml fast-forwards dev to the new master commit 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 master back into dev; 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:

  1. Search open and closed issues for duplicates and overlapping scope.
  2. Search open pull requests for work that already implements the change.
  3. Keep one independently reviewable concern per issue.
  4. Prefer GitHub-native metadata over prose: issue type, project Priority/Status, dependencies, sub-issues, milestones, and area labels.
  5. Never encode priority/order/type/status in the title or a metadata block.
  6. 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.
  7. Use the canonical body order: Summary; Why this matters; Reproduction (bugs); Proposed implementation; Implementation area; Acceptance criteria; Dependencies / related work; References.
  8. Acceptance criteria MUST be observable and testable. Avoid vague criteria such as "improve quality" or "works better".
  9. Preserve existing reproduction evidence, decisions, research, and acceptance criteria when editing an issue. Do not restyle a well-formed issue just for consistency.
  10. Public issues MUST NOT contain credentials, target/customer data, engagement evidence, or undisclosed vulnerabilities in Violin itself; follow SECURITY.md for 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

  1. NEVER Bypass Target Execution Guards: No raw shell execution for target commands.
  2. NEVER Swallow Exceptions or Patch Tests Superficially: Fix root causes; never mask errors or alter assertions (no bare except Exception: pass).
  3. NEVER Hardcode Target IPs: Resolve via violin_target or scope.yaml.
  4. 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.
  5. NEVER Declare Success Without Empirical Verification: Always run uv run pytest and uv run ruff check ..

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.