agentleFS
MasashiFukuzawaMasashiFukuzawa/claude-discord-agent/AGENTS.md

claude-discord-agent

AGENTS.md0 starsChanged 5 months agoApache-2.0View on GitHub

What an agent session may decide and do without asking. It applies to every session in this repository, and goal-running workflows such as an autopilot skill read it. It widens nothing in the rules above, CONTRIBUTING.md, or SECURITY.md: where they differ, those rules win.

  • 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,117 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 repository2 other files it gives its agents.

The file

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

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

  • 0

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Keep all public documentation and comments free of organization-specific names, addresses, paths, IDs, and operational examples.

    line 3
  2. Distinctive:

    Run the checks in Delegated scope on the final revision before reporting completion.

    line 9
  3. Distinctive:

    Remove worktrees, branches, containers, and temporary files created for the current goal, except anything with uncommitted or unpushed work …

    line 19
  4. Distinctive:

    Every other change needs the checks only.

    line 33

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

Repository instructions

  • Keep all public documentation and comments free of organization-specific names, addresses, paths, IDs, and operational examples.
  • Preserve the existing CLI, SQLite schema, dispatch state machine, and clone-based DISCORD_AGENT_HOME workflow unless a migration is explicitly designed and tested.
  • Claude Code is the only supported agent host.
  • Secrets never enter Worker prompts, command arguments, logs, fallback previews, fixtures, or tracked files.
  • XDG-owned directories use mode 0700; credential and mutable state files use 0600 on POSIX.
  • Automatic tmux wake remains experimental, opt-in, positive-allowlist-only, and fail-closed.
  • Run the checks in Delegated scope on the final revision before reporting completion.

Delegated scope

What an agent session may decide and do without asking. It applies to every session in this repository, and goal-running workflows such as an autopilot skill read it. It widens nothing in the rules above, CONTRIBUTING.md, or SECURITY.md: where they differ, those rules win.

May do without asking

  • On a feature branch: edit code, tests, and documentation, run the checks, and open pull requests.
  • Choose implementation details where the choice can be undone.
  • Remove worktrees, branches, containers, and temporary files created for the current goal, except anything with uncommitted or unpushed work or with data.

Must ask

  • Operations on a live deployment: a running daemon or Controller session, its credentials, its state database, or the Discord channel it serves.
  • Deleting data, and any operation that cannot be undone.
  • Publishing or sending anything outside this repository other than the pull request itself, such as a release, a package upload, or a Discord message.
  • Anything that adds cost.
  • Facts only a person knows.

Checks and merge

  • Checks: the commands under "Before opening a pull request" in CONTRIBUTING.md, which are the CI gate. They must pass on the final revision before completion is reported; this also holds for a one-off change and for a change that is already committed on the branch. CI runs the same commands on every push, so a passing CI run on that revision counts.
  • Changes that need a deeper look are not complete until a second model has reviewed them (a second-opinion skill where installed; the session chooses the provider): a change that alters which component (Controller, Supervisor, or Worker) can read the Discord bot token, or that relaxes or removes the 0700/0600 permission enforcement for credential or state files described in SECURITY.md. A change that only touches nearby code is not one of them.
  • Every other change needs the checks only.
  • Always review: that the Discord token stays out of Worker reach and the Controller/Supervisor/Worker boundaries in SECURITY.md are preserved; the credential and state file permission checks (0700/0600) and the rejection of unsafe files; and the handling of untrusted input (Worker output, tmux pane state, and the redaction of the opt-in result preview).
  • Merge: a human approves merges.

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.