Skip to content
EclipterPublic

About

My ~/.agents directory for the common source of truth for agent instructions

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Latest commit

 

History

23 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

~/.agents

This repo is a directory for the common source of truth for agent instructions. Edit skills, hooks, and AGENTS.md here. Harnesses read those files through symlinks.

Setup

  • Clone the repo

  • Move the repo to ~/.agents directory (or merge with an existing one)

  • For every harness, symlink each path it reads to the matching path in this repo if that harness reads the same format. ln will not replace a path that already exists, so move (remove) a real directory aside first.

    The hook list is a separate format per harness, so hooks.json points at hooks/cursor.json or hooks/codex.json.

    Cursor:

    # ~/.cursor/skills -> ~/.agents/skills
    ln -s ~/.agents/skills ~/.cursor/skills
    
    # ~/.cursor/hooks -> ~/.agents/hooks
    ln -s ~/.agents/hooks ~/.cursor/hooks
    
    # ~/.cursor/hooks.json -> ~/.agents/hooks/cursor.json
    ln -s ~/.agents/hooks/cursor.json ~/.cursor/hooks.json

    Cursor changes the skills directory when "Sync Skills for Cloud Agents" is enabled:

    # ~/Library/Application Support/Cursor/AgentStores/cursor_agent_stores/u218146771/files/skills -> ~/.agents/skills
    ln -s ~/.agents/skills "$HOME/Library/Application Support/Cursor/AgentStores/cursor_agent_stores/u218146771/files/skills"

    Codex:

    # ~/.codex/AGENTS.md -> ~/.agents/AGENTS.md
    ln -s ~/.agents/AGENTS.md ~/.codex/AGENTS.md
    
    # ~/.codex/hooks -> ~/.agents/hooks
    ln -s ~/.agents/hooks ~/.codex/hooks
    
    # ~/.codex/hooks.json -> ~/.agents/hooks/codex.json
    ln -s ~/.agents/hooks/codex.json ~/.codex/hooks.json
  • Cursor rules use Cursor's own format in its customization settings. The user copies items from AGENTS.md into those settings by hand.

Working here

Agents work on main and commit on main.

When using the implement workflow, skip the tests.

About

My ~/.agents directory for the common source of truth for agent instructions

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Contributors

Languages