agentleFS
ivanrvpereiraivanrvpereira/.agents/AGENTS.md

.agents

AGENTS.md18 starsChanged 3 months agoApache-2.0View on GitHub

Centralized configuration repository for AI coding agents. Manages shared and agent-specific configs for Claude Code, Pi, and Codex via symlinks. bin/sync creates symlinks from this repo into each agent's config directory: Core links: - _claude.md → ~/.claude/CLAUDE.md - Each discovered skill directory under skills/ → ~/.claude/skills/ (flattened; Pi reads shared skills recursively from ~/.agents/skills) - Each discovered skill directory under skills/ → ~/.codex/skills/; conflicting non-symlink Codex skills are backed up first Claude Code (~/.claude/): - claude/settings.json → settings (permissions, hooks,…

The file

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

10 rules. About 1 is common, 1 is distinctive, and 8 are very specific to this project.

  • ≈1

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    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:

    Private/company commands: do not belong here — use a separate private repo

    line 72
  2. Very specific:

    After adding or moving files, run bin/sync to update symlinks

    line 73
  3. Very specific:

    GitHub content: Always use gh CLI for github.com — never crawl/scrape GitHub URLs.

    line 77
  4. Very specific:

    Verify sync state: ls -la ~/.claude/CLAUDE.md (should point to this repo)

    line 82
  5. Very specific:

    Run bin/sync --dry-run before bin/sync to preview changes

    line 87
  6. Very specific:

    Keep pi/APPEND_SYSTEM.md concise — every line is appended to every Pi session's system prompt

    line 88
  7. Common:

    Commit secrets or API keys

    line 96
  8. Very specific:

    Never add/remove package-provided skills by editing pi/settings.json skills arrays

    line 102
  9. Very specific:

    Add a skill: copy/author it into the right bucket, then run bin/add-skill <name> and bin/sync

    line 104
  10. Very specific:

    Update vendored skills: follow the update workflow in skills/VENDORED.md

    line 105

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

.agents — Project Knowledge Base

Centralized configuration repository for AI coding agents. Manages shared and agent-specific configs for Claude Code, Pi, and Codex via symlinks.

Structure

AGENTS.md        # Project knowledge base → ./CLAUDE.md context
_claude.md       # Claude Code instructions → ~/.claude/CLAUDE.md
bin/sync         # Symlink manager (creates all links below)
bin/add-skill    # Validate a local skill before syncing
bin/link-skill   # Link a scoped skill into one project
skills/          # Shared skills; auto/ (model-invocable) + on-demand/ (manual)
skills/VENDORED.md # Registry of copied upstream skills + their sources
claude/          # Claude Code: settings, commands, scripts
pi/              # Pi: settings, extensions, skills
codex/           # Codex: config.toml, hooks

Commands

ActionCommand
Sync configsbin/sync
Preview syncbin/sync --dry-run
Sync + install pluginsbin/sync --bootstrap
Remove stale linksbin/sync --prune
Validate local skillbin/add-skill skill-name
Enable scoped skill in a projectbin/link-skill skill-name [project-dir]
Disable scoped skill in a projectbin/link-skill --remove skill-name [project-dir]
Add vendored skillCopy upstream skill into skills/auto/ or skills/on-demand/, add a row to skills/VENDORED.md
Update vendored skillsAsk an AI agent to follow the update workflow in skills/VENDORED.md
Update vendored Pi extensionsAsk an AI agent to follow the update workflow in pi/extensions/VENDORED.md

How Syncing Works

bin/sync creates symlinks from this repo into each agent's config directory:

Core links:

  • _claude.md → ~/.claude/CLAUDE.md
  • Each discovered skill directory under skills/ → ~/.claude/skills/ (flattened; Pi reads shared skills recursively from ~/.agents/skills)
  • Each discovered skill directory under skills/ → ~/.codex/skills/; conflicting non-symlink Codex skills are backed up first

Claude Code (~/.claude/):

  • claude/settings.json → settings (permissions, hooks, plugins, model config)
  • claude/commands/ → slash commands (e.g. /day-summary)
  • claude/scripts/ → automation scripts (sleep management)
  • claude/statusline-command.sh → status bar display

Pi (~/.pi/agent/):

  • pi/APPEND_SYSTEM.md → behavioral instructions appended to Pi's system prompt (Pi only; not loaded by Claude/Codex)
  • pi/settings.json → model config, packages
  • pi/extensions/ → per-extension symlinks
  • pi/skills/ → Pi-only skills

Codex (~/.codex/):

  • codex/config.toml → model, approvals, permission profile, plugins
  • codex/hooks.json → Codex lifecycle hooks
  • skills/ → shared skills, backing up conflicting non-symlink Codex skills

The sync script backs up existing non-symlink files as .bak before replacing them. It's idempotent — safe to run repeatedly.

Conventions

  • Shared config goes at root or in skills/ — all agents get it
  • Agent-specific config goes in claude/, pi/, or codex/ — only that agent gets it
  • Skills are bucketed by invocation: skills/auto/<name>/ = model may auto-invoke (no disable-model-invocation); skills/on-demand/<name>/ = manual-only (disable-model-invocation: true). bin/sync flattens the bucket folders away, so skill folder names must be globally unique and the folder must match the flag.
  • Project-scoped skills live in ~/.agents-private/skills-scoped/<name>/ (outside skills/, so they are never synced globally). Enable per project with bin/link-skill <name> <project-dir>, which symlinks into the project's .claude/skills/ and .pi/skills/ and ignores the links via .git/info/exclude. They auto-invoke only where linked — zero context cost elsewhere. bin/link-skill also picks up a local skills-scoped/ in this repo if one exists.
  • Vendored skills are copied from upstream into a bucket and recorded in skills/VENDORED.md (source + pinned ref). We own the copies and may customize them; update them via the workflow in that file.
  • Vendored Pi extensions are copied from upstream repos into pi/extensions/ and recorded in pi/extensions/VENDORED.md (source + pinned ref + update workflow).
  • Private/company commands do not belong here — use a separate private repo
  • After adding or moving files, run bin/sync to update symlinks

Web Content & Research

  • GitHub content: Always use gh CLI for github.com — never crawl/scrape GitHub URLs. Use gh api, gh repo view, gh pr view, gh issue view, etc.

Validation

  • Preview symlink changes: bin/sync --dry-run
  • Verify sync state: ls -la ~/.claude/CLAUDE.md (should point to this repo)

Boundaries

Always

  • Run bin/sync --dry-run before bin/sync to preview changes
  • Keep pi/APPEND_SYSTEM.md concise — every line is appended to every Pi session's system prompt

Ask First

  • Running bin/sync --prune (deletes stale symlinks)
  • Modifying claude/settings.json (affects permissions across all projects)
  • Editing pi/APPEND_SYSTEM.md (appended to the system prompt of every Pi session)

Never

  • Commit secrets or API keys
  • Edit symlink targets directly — edit source files in this repo instead

Plugins & Skills

  • Some plugins are disabled globally — enable per-project in .claude/settings.json under enabledPlugins
  • Never add/remove package-provided skills by editing pi/settings.json skills arrays
  • Skills live in skills/auto/ or skills/on-demand/; vendored copies are tracked in skills/VENDORED.md
  • Add a skill: copy/author it into the right bucket, then run bin/add-skill <name> and bin/sync
  • Update vendored skills: follow the update workflow in skills/VENDORED.md

Key Files

  • claude/settings.json — permissions (allow/deny/ask), hooks, plugins, model defaults. This is the most complex file; changes affect what Claude Code can do across all projects.
  • claude/install-plugins.sh — declarative plugin installation from multiple marketplaces. Run via bin/sync --bootstrap.
  • codex/config.toml — Codex model, permission profile, network allowlist, plugins, and trusted projects.
  • codex/hooks.json — Codex lifecycle hooks.
  • pi/APPEND_SYSTEM.md — Pi-only behavioral instructions, appended to Pi's system prompt via ~/.pi/agent/APPEND_SYSTEM.md. Keep concise — every line applies to all Pi sessions.
  • AGENTS.md — repository knowledge for this config repo.

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.