agentleFS
MackDingMackDing/CodexClaw/AGENTS.md

CodexClaw

AGENTS.md34 starsChanged 6 months agoMITView on GitHub

  • Reads credentials
  • 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 repository2 other files 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
  • could be automatic: a setting could enforce it
  1. Very specific:

    Use CODEX_BACKEND=sdk for the preferred SDK-backed runner.

    line 17
  2. Distinctive:

    Do not submit formatting-only churn or rewrap unrelated files.

    line 33
  3. Very specific:

    Do not edit .git/ or node_modules/.

    line 37
  4. Very specific:

    Do not commit or rewrite .env, secrets, Telegram tokens, or local session artifacts.

    line 38
  5. Very specific:

    Do not manually edit .codex-telegram-claws-state.json.

    line 39
  6. Very specific:

    Avoid changing files outside this repository root, even when /repo or shell features reference other workspaces.

    line 40
  7. Distinctive:

    Use ES Modules and keep new files under the existing feature-oriented layout.

    line 44
  8. Very specific:

    Keep user-facing bot copy in English by default.

    line 45
  9. Distinctive:

    Prefer focused changes. Do not mix feature work with unrelated refactors.

    line 46
  10. Very specific:

    Add or update tests for behavior changes in tests/.

    line 47
  11. Very specific:

    Run npm run healthcheck:live before production-facing releases when real credentials are available.

    line 56
  12. Distinctive:

    If bot commands or behavior changed, update README.md and include a Telegram usage example in the PR or commit notes.

    line 58

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

Repository Guidelines

Repo Structure

  • src/index.ts: application entrypoint and subsystem wiring.
  • src/bot/: Telegram handlers, formatting, command parsing, i18n, middleware.
  • src/orchestrator/: routing, MCP client, skill registry, GitHub/MCP skills.
  • src/runner/: Codex SDK/CLI runner management, PTY fallback handling, and restricted shell execution.
  • src/cron/: scheduled proactive jobs.
  • tests/: Node built-in test suite, one *.test.js file per module area.

Start And Dev Commands

  • npm install: install dependencies.
  • npm run start: start the Telegram bot with the current .env.
  • npm run dev: run the bot in watch mode for local development.
  • Use CODEX_BACKEND=sdk for the preferred SDK-backed runner; keep CODEX_BACKEND=cli only when you specifically need the legacy PTY/CLI path.

Test Commands

  • npm test: run the full unit test suite with the Node test runner plus tsx.
  • npm run check: run the repository typecheck gate.
  • npm run typecheck: run tsc --noEmit directly.
  • npm run healthcheck: run the local runtime health check.
  • npm run healthcheck:live: run the live Codex + Telegram health probe when local credentials are configured.

Lint And Format

  • npm run lint: run ESLint over source, tests, scripts, and local JS/CJS config files.
  • npm run lint:fix: apply safe ESLint fixes.
  • npm run format: run Prettier across the repository.
  • npm run format:check: verify formatting without writing changes.
  • Do not submit formatting-only churn or rewrap unrelated files.

Files And Paths You Must Not Change

  • Do not edit .git/ or node_modules/.
  • Do not commit or rewrite .env, secrets, Telegram tokens, or local session artifacts.
  • Do not manually edit .codex-telegram-claws-state.json; it is runtime state.
  • Avoid changing files outside this repository root, even when /repo or shell features reference other workspaces.

Contribution Rules

  • Use ES Modules and keep new files under the existing feature-oriented layout.
  • Keep user-facing bot copy in English by default. Localized strings must go through src/bot/i18n.js.
  • Prefer focused changes. Do not mix feature work with unrelated refactors.
  • Add or update tests for behavior changes in tests/.

Required Verification Before Commit

  • Run npm run check.
  • Run npm run lint.
  • Run npm run format:check.
  • Run npm test.
  • Run npm run healthcheck.
  • Run npm run healthcheck:live before production-facing releases when real credentials are available.
  • Review git diff --stat and git status --short for accidental edits.
  • If bot commands or behavior changed, update README.md and include a Telegram usage example in the PR or commit notes.

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.