agentleFS
oxbshwoxbshw/watch-skill/AGENTS.md

watch-skill

AGENTS.md373 starsChanged 5 months agoMITView on GitHub

Read this before changing anything. It is the short version of CONTRIBUTING.md and the rules in docs/DECISIONS.md. A local-first video layer for AI agents. It turns video into a persistent, searchable index with timestamped evidence, and closes a capture → critique → fix → proof loop over an agent's own work. Python 3.11+, MIT. Tests marked network hit the real internet and are excluded from the merge gate. Do not add network calls to the offline suite. - The engine…

  • 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 repositoryOne other file it gives its agents.

The file

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

12 rules. About 0 are common, 4 are distinctive, and 8 are 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.

  • 8

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Read this before changing anything.

    line 3
  2. Very specific:

    The engine is agent-agnostic: No harness-specific branching in the engine.

    line 40
  3. Distinctive:

    Index changes are forward migrations: Never rewrite history in the schema.

    line 46
  4. Very specific:

    Every network or provider boundary asks the policy first: Call policy.guard_egress(...) before the request is built and before a key is …

    line 53
  5. Very specific:

    Identity is the bytes: Never key an artifact off a source string.

    line 58
  6. Very specific:

    Absent evidence is never a pass: No frames, no OCR, an unreachable model, a timed-out check — all inconclusive.

    line 62
  7. Very specific:

    Errors carry a fix: Every raised WatchSkillError needs a code and a sentence telling the reader what to do.

    line 69
  8. Very specific:

    If it speaks OpenAI's /chat/completions, use _openai_compatible(...) and write no request code.

    line 80
  9. Very specific:

    An agent: start from templates/agent-integration/.

    line 84
  10. Very specific:

    Keep the Co-Authored-By trailers of real human co-authors.

    line 98
  11. Distinctive:

    Do not add co-author trailers for anything that is not a person, and do not add generated-by notices.

    line 99
  12. Distinctive:

    Do not rewrite shared history unless the maintainer has asked you to.

    line 107

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

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

Working on Watch Skill

Read this before changing anything. It is the short version of CONTRIBUTING.md and the rules in docs/DECISIONS.md.

What this project is

A local-first video layer for AI agents. It turns video into a persistent, searchable index with timestamped evidence, and closes a capture → critique → fix → proof loop over an agent's own work. Python 3.11+, MIT.

Layout

PathWhat lives there
src/watch_skill/The engine. All logic.
src/watch_skill/surfaces/MCP, CLI, REST. Thin wrappers only.
skills/The ten agent skills. Canonical location — the skills CLI reads it.
commands/Slash commands for the Claude Code plugin.
src/watch_skill/integrations/Framework adapters. No engine logic.
templates/agent-integration/What a contributor copies to add an agent.
tests/Mirrors the src/ layout.
docs/agents/One page per supported agent, each with an honest status.

Commands

uv sync --extra all              # full dev environment
uv run pytest -m "not network"   # the offline suite — must be green
uv run ruff check .              # lint
uv run watch-skill doctor        # check the binaries the engine needs

Tests marked network hit the real internet and are excluded from the merge gate. Do not add network calls to the offline suite.

Rules that are not negotiable

  • The engine is agent-agnostic. No harness-specific branching in the engine. That belongs in src/watch_skill/integrations/ or a skill.
  • Surfaces stay thin. MCP, CLI, and REST wrap the same functions. A behaviour that exists in one and not the others is a bug.
  • Every bug fix ships a regression test, and the test must fail against the old code. Verify that; do not assume it.
  • Index changes are forward migrations. Never rewrite history in the schema; add a migration.
  • MCP tool names are a contract. Renaming one breaks every configured agent. Add, don't rename.
  • Privacy invariants are tested in tests/test_privacy.py and listed in SECURITY.md. The video never leaves the machine; no cookies or logins; cloud speech-to-text is opt-in. Breaking one is a security bug.
  • Every network or provider boundary asks the policy first. Call policy.guard_egress(...) before the request is built and before a key is read. Constructing a provider client and going around it is a security bug, not a shortcut. tests/test_policy.py runs the engine with every provider key set and asserts offline mode leaks nothing.
  • Identity is the bytes. Never key an artifact off a source string. New content is a new revision (watch_skill.identity); a source string resolves through the alias table. A read that presents stored artifacts as current evidence goes through store.require_current first.
  • Absent evidence is never a pass. No frames, no OCR, an unreachable model, a timed-out check — all inconclusive. If you add a code path that can end in a verdict, the failure branch is inconclusive or error, and it ships with a test that proves it.
  • Say "proof" only when required deterministic checks passed and the attestation verifies. Otherwise it is evidence, a before/after comparison, or an advisory visual verdict. Never describe a hash as a signature.
  • Errors carry a fix. Every raised WatchSkillError needs a code and a sentence telling the reader what to do. tests/test_error_fix_audit.py enforces it.
  • Claims are checked. Prices live in a dated prices.json; benchmark numbers come from a recorded run; an agent page says whether it was machine-tested or only doc-verified. Do not write a claim you have not verified, and do not upgrade a status you did not earn.

Adding things

  • A vision provider: an entry in src/watch_skill/vision/registry.py. If it speaks OpenAI's /chat/completions, use _openai_compatible(...) and write no request code. Add the model defaults to health/vision_setup.py and a price to vision/prices.json — moving that file's as_of date is part of the edit.
  • An agent: start from templates/agent-integration/. One config block, one page in docs/agents/, one validation run.
  • A skill: a directory under skills/ with a SKILL.md. The description is a trigger surface — write the phrasings a user would actually type, not a summary.

Commits

A conventional prefix, then a plain declarative subject saying what changed and why — not what you did to find out.

  • Author each commit with the human identity accountable for the change.
  • Describe the product change and the reason for it. Nothing else belongs in a commit message.
  • Keep the Co-Authored-By trailers of real human co-authors.
  • Do not add co-author trailers for anything that is not a person, and do not add generated-by notices.

npm run verify:commits (in workspace/) checks commit metadata on a branch and fails on any of the above. It reads authorship and trailers only — it does not police prose, and product documentation about supported integrations is unaffected by it.

Do not rewrite shared history unless the maintainer has asked you to.

Style

Match the file you are editing. Comments explain why, never what. If a line needs a comment to say what it does, rewrite the line.

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.