agentleFS
pablof7zpablof7z/skills/agent-home/SKILL.md

agent-home

Skill1 starsChanged 5 months agoMITView on GitHub

Resolve and use a durable private home directory at ~/.agents/home/{identifier} for agent-only notes, scripts, caches, drafts, and other state that must persist across sessions.

The file

We split this skill into the rules it gives an agent

5 rules. About 0 are common, 3 are distinctive, and 2 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈3

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 2

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Use one durable directory for private state that belongs to this agent across sessions.

    line 8
  2. Very specific:

    Prefer the stable agent identity.

    line 20
  3. Distinctive:

    Do not use a session handle, codename, thread ID, or backend-qualified session reference when an agent identity is available.

    line 22
  4. Very specific:

    Use agent if normalization is empty.

    line 29
  5. Distinctive:

    Create the directory before using it and write private persistent files only inside it.

    line 31

≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill 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
SKILL.md

Agent Home

Use one durable directory for private state that belongs to this agent across sessions. Do not use it for project-shared files, team-owned state, or recreatable build output.

Core rule

Store agent-only persistent state under:

~/.agents/home/{identifier}/

Resolve {identifier} at agent scope:

  1. Prefer the stable agent identity. When context distinguishes Agent, Session, and Backend, use Agent.
  2. Do not use a session handle, codename, thread ID, or backend-qualified session reference when an agent identity is available.
  3. Otherwise use a stable local agent name such as codex, claude, or harry.
  4. Preserve an explicitly supplied opaque identity. Normalize a name by lower-casing it, replacing characters outside [a-z0-9._-] with -, collapsing repeated -, and trimming leading or trailing -.
  5. Use agent if normalization is empty.

Create the directory before using it and write private persistent files only inside it.

Resolver

Pass the resolved agent identity explicitly when it is known:

~/.agents/skills/agent-home/scripts/resolve-agent-home.sh codex

With no argument, the helper checks common runtime-provided agent identity and name values, then falls back to agent.

Suitable contents include private notes, helper scripts, lightweight caches, drafts, logs, and artifacts needed by later sessions of the same agent.

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.