agentleFS
Jia-EthanJia-Ethan/grok-keysmith/AGENTS.md

grok-keysmith

AGENTS.md484 starsChanged 3 months agoMITView on GitHub

These rules apply to the complete grok-keysmith repository. The project is a zero-runtime-dependency Python CLI that manages global Grok Build instruction, compatibility, hook, manifest, and recovery state under ~/.grok. - Public repository history starts at v0.1.1; do not import refs, commit IDs, tags, or metadata from the earlier private-only predecessor. - Keep existing public version tags unchanged: do not move, recreate, or overwrite them. - Verify repository visibility, tags, Releases, assets, and settings live before documenting external state; a Git…

  • 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.

The file

Show its rules and text

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

13 rules. About 2 are common, 7 are distinctive, and 4 are very specific to this project.

  • ≈2

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈7

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

    Keep existing public version tags unchanged: do not move, recreate, or overwrite them.

    line 13
  2. Distinctive:

    Verify repository visibility, tags, Releases, assets, and settings live before documenting external state.

    line 15
  3. Very specific:

    Do not test write paths against the real ~/.grok.

    line 24
  4. Common:

    Do not patch Grok binaries, intercept network traffic, manage credentials, or alter running Grok processes.

    line 28
  5. Very specific:

    Treat examples/grok-unrestricted.md, BUNDLED_PROMPT_B64, and BUNDLED_PROMPT_SHA256 as one versioned unit.

    line 30
  6. Distinctive:

    Keep Python 3.8 compatibility and standard-library-only runtime behavior unless a versioned compatibility change is explicitly approved.

    line 33
  7. Very specific:

    Keep the desktop icon aligned with the canonical Keysmith series source (gui/src-tauri/icons/source.png, SHA-256 …

    line 35
  8. Distinctive:

    Keep the verified distribution boundary accurate.

    line 42
  9. Common:

    Do not put credentials, tokens, cookies, private configuration, or complete local user paths in tracked files or examples.

    line 50
  10. Distinctive:

    Before committing implementation or prompt changes:

    line 55
  11. Very specific:

    Run --version, then exercise --status and --dry-run under an isolated temporary HOME.

    line 63
  12. Distinctive:

    Run git diff --check and inspect the complete intended diff.

    line 65
  13. Distinctive:

    Do not claim a Windows candidate, signed package, or GitHub Release unless the repository actually contains that evidence.

    line 70

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

Scope

These rules apply to the complete grok-keysmith repository. The project is a zero-runtime-dependency Python CLI that manages global Grok Build instruction, compatibility, hook, manifest, and recovery state under ~/.grok.

Release and External State

  • Public repository history starts at v0.1.1; do not import refs, commit IDs, tags, or metadata from the earlier private-only predecessor.
  • Keep existing public version tags unchanged: do not move, recreate, or overwrite them.
  • Verify repository visibility, tags, Releases, assets, and settings live before documenting external state; a Git tag is not a GitHub Release.
  • Creating a Release, workflow, repository setting, or other external publication action requires task-specific user approval.

Change Boundaries

  • Preserve preview-first behavior. Deploy, uninstall, restore, and recovery writes require explicit --yes; --status remains read-only.
  • Do not test write paths against the real ~/.grok. Use an isolated temporary HOME and retain failure evidence until the test completes.
  • Preserve fail-closed ownership checks for manifests, backups, hooks, config markers, journals, and immutable intent data.
  • Do not patch Grok binaries, intercept network traffic, manage credentials, or alter running Grok processes.
  • Treat examples/grok-unrestricted.md, BUNDLED_PROMPT_B64, and BUNDLED_PROMPT_SHA256 as one versioned unit. Any prompt change must update all three byte-for-byte and update README, CHANGELOG, and SECURITY hashes.
  • Keep Python 3.8 compatibility and standard-library-only runtime behavior unless a versioned compatibility change is explicitly approved.
  • Keep the desktop icon aligned with the canonical Keysmith series source (gui/src-tauri/icons/source.png, SHA-256 d7f5d09142b9bab6cd326fc18869e51d7adcba6d4f0929c703677186b7f3b347). Regenerate the complete Tauri icon set and sync gui/public/favicon.ico; do not replace only one platform asset.

Documentation Rules

  • Keep the verified distribution boundary accurate. Do not describe a Git tag as a GitHub Release or claim downloadable assets without live evidence.
  • README is bilingual: Simplified Chinese is the complete primary guide and English is the concise equivalent. Keep commands, hashes, limitations, and file paths aligned across both sections.
  • CHANGELOG.md records versioned user-visible changes. SECURITY.md owns coordinated vulnerability reporting, rollback, prompt integrity, and sensitive-data guidance.
  • Do not put credentials, tokens, cookies, private configuration, or complete local user paths in tracked files or examples.

Verification

Before committing implementation or prompt changes:

  1. Parse grok-keysmith.py with Python 3.8-compatible syntax.
  2. Confirm VERSION, VERSION in Python, and documented version agree.
  3. Decode BUNDLED_PROMPT_B64 and compare it byte-for-byte with examples/grok-unrestricted.md.
  4. Confirm the decoded prompt SHA-256 equals BUNDLED_PROMPT_SHA256 and the hashes documented in README and SECURITY.
  5. Run --version, then exercise --status and --dry-run under an isolated temporary HOME.
  6. Run git diff --check and inspect the complete intended diff.

Automated tests live under tests/ and must use an isolated HOME plus --grok-dir. Do not call a real Grok model or read the operator ~/.grok.

Do not claim a Windows candidate, signed package, or GitHub Release unless the repository actually contains that evidence.

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.