agentleFS
BrunoPessoa22BrunoPessoa22/reelhawk/AGENTS.md

reelhawk

AGENTS.md1 starsChanged 16 days agoMITView on GitHub

Professional engineers will judge this project. Write code that a senior engineer would approve in code review. When you're not sure something meets that bar, say so instead of guessing. Scale the checks to the change. A copy or layout edit doesn't need a security review. A change to authentication, data, payments, infrastructure or agent tools does. For a full review, use the production-audit skill.

  • 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 35,040 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 repository3 other files it gives its agents.

The file

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

11 rules. About 2 are common, 5 are distinctive, and 4 are very specific to this project.

  • ≈2

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈5

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 4

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

    Read the relevant code first and follow the patterns already in the repo.

    line 8
  2. Distinctive:

    Don't add new infrastructure or services without a demonstrated need.

    line 9
  3. Common:

    Before running a script, check what it executes and which environment and credentials it uses.

    line 13
  4. Distinctive:

    Run tests, seeds, load tests and migration experiments only in isolated environments with disposable data.

    line 14
  5. Very specific:

    Commit secrets, API keys or .env files, or copy secret values into code, logs, docs or chat.

    line 18
  6. Common:

    Leave mock data, hardcoded credentials, debug endpoints or unimplemented stubs in code that runs in production.

    line 21
  7. Very specific:

    Run destructive commands against production data or infrastructure (drop, delete, force-push, terraform destroy) without explicit approval.

    line 22
  8. Distinctive:

    Add or update meaningful tests for changed behavior, especially authorization, money and data writes.

    line 36
  9. Distinctive:

    Run the checks relevant to the change, plus every check the project's CI or release process requires.

    line 37
  10. Very specific:

    Run locally: reelhawk run "<video URL or file>", reelhawk mine <file>, reelhawk daily "<channel URL>".

    line 45
  11. Very specific:

    Test: pytest (README; CI runs pytest -q)

    line 46

≈ “Common” is an estimate: at least 1 in 5 of the 45,344 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

Engineering standards

Professional engineers will judge this project. Write code that a senior engineer would approve in code review. When you're not sure something meets that bar, say so instead of guessing.

Scale the checks to the change. A copy or layout edit doesn't need a security review. A change to authentication, data, payments, infrastructure or agent tools does. For a full review, use the production-audit skill.

Before changing anything

  • Read the relevant code first and follow the patterns already in the repo. Don't add a library, framework or pattern when an existing one does the job.
  • Don't add new infrastructure or services without a demonstrated need. When you propose one, state the monthly cost and what it takes to operate.
  • For changes to authentication, payments, data deletion, the database schema or infrastructure: explain the plan, the risks and how to roll back. Within work the owner has already asked for, you may prepare and test these changes on a branch. Get explicit approval before anything reaches production or real data.

Running commands

  • Before running a script, check what it executes and which environment and credentials it uses.
  • Run tests, seeds, load tests and migration experiments only in isolated environments with disposable data.
  • Apply production migrations only through the project's release process, with a tested rollout and a rollback or forward-recovery plan. Any production smoke check must be explicitly scoped and non-destructive.

Never

  • Commit secrets, API keys or .env files, or copy secret values into code, logs, docs or chat. Secrets come from environment variables or a secret manager. If you find one in the repo, stop and flag its location without repeating its value.
  • Disable, skip or weaken a test or lint rule to make it pass. Fix the cause.
  • Swallow errors (empty catch, except: pass). Handle the error, or log it with context and re-raise.
  • Leave mock data, hardcoded credentials, debug endpoints or unimplemented stubs in code that runs in production.
  • Run destructive commands against production data or infrastructure (drop, delete, force-push, terraform destroy) without explicit approval.

When the change touches these areas

  • Endpoints: validate input at the boundary. Enforce permission on the server for the requested action on the requested resource, covering tenant boundaries, roles, ownership and sharing rules where they apply. Being logged in is not permission.
  • Network calls: set a timeout. Retry with backoff only when the operation is safe to repeat.
  • Reads: bound potentially large reads with pagination or a limit. For a new query pattern, check the existing indexes and the query plan, and add or change an index only when the expected workload or a measurement justifies it.
  • Slow work (LLM calls, emails, file processing): choose request-time, streaming or background processing deliberately, and don't block a request on work that can outlast its timeout.
  • State: keep durable user data in storage that survives the deployment's restarts and redeployments, with backup and recovery that fit the data. Never make process memory or temporary local files the only copy of important data. Persistent local storage (SQLite on a persistent volume, for example) is fine when it fits the deployment and recovery needs, and so are in-memory caches. If the app needs several instances, make sure sessions and shared state work across them. Record the setup under "Project commands".
  • Schema: change it only through versioned migrations with a data-safe rollout and a rollback or forward-fix plan.
  • Logging: log errors with enough context to debug, and never log secrets or personal data.
  • Agents and LLM features: give tools only the access they need, keep each user's data out of reach of agents acting for other users, cap iterations, time and spend, and make side effects (emails, payments, posts) safe to retry without happening twice.
  • Paid APIs: give every loop, cron or retry that calls one a hard limit.

Verifying changes

  • Add or update meaningful tests for changed behavior, especially authorization, money and data writes.
  • Run the checks relevant to the change, plus every check the project's CI or release process requires.
  • Flag anything that adds recurring cost, with a rough monthly estimate.

When you finish a task

Summarize what changed, which checks you ran and their results, and what you didn't run or couldn't verify. Say clearly whether the change is only written, tested locally or in staging, or deployed. Don't say something works unless you ran it.

Project commands

  • Install: pip install -e ".[dev,face]"; needs Python 3.11+ and ffmpeg/ffprobe on PATH; face models via python scripts/download_models.py (README)
  • Run locally: reelhawk run "<video URL or file>", reelhawk mine <file>, reelhawk daily "<channel URL>"; needs ANTHROPIC_API_KEY (README, cli.py)
  • Test: pytest (README; CI runs pytest -q)
  • Lint and type check: black --check src tests scripts && isort --check src tests scripts (README, ci.yml); type check: unknown (none configured)
  • Checks required by CI or release: .github/workflows/ci.yml job test (Python 3.11 and 3.12: install, black + isort check, pytest -q) runs on pull_request and on push to main. main is not protected (GitHub API 404 "Branch not protected"), so no check is required to merge.
  • Deploy: unknown (no deploy config, release workflow or GitHub deployment records; README describes running reelhawk daily from cron)
  • Storage, backups and number of instances: local files only: JSON ledger at <workdir>/ledger.json plus per-video cached artifacts and export/ under workdir (default reelhawk-data/, state.py, config.py); no database. Backups: unknown (none defined). Instances: unknown (no config sets it; the ledger has no locking)

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.