The library layer every coding agent installs.
Register anything as a Volume — Skills, capabilities, context, playbooks.
A session-start hook loads each Volume's compact index into every session, so the
agent starts already knowing what it has and where to find it.

The idea
Programs don't re-derive the standard library — they import it. Your agent should too.
AutoLibrary turns anything you keep on disk — a folder of Skills, your API playbooks,
device setup, project context, whatever — into an installable Volume. At the start
of every session, a hook loads a compact index of each enabled Volume into the
agent's context. The agent sees the map up front; it opens the full material only when a
task actually needs it.
Skills is just one Volume of it. So is everything else you want every session to
start with. AutoLibrary doesn't care what's inside a Volume — it's the layer that loads
your Volumes into any agent, the same way every session.
Not a plugin for one tool — a primitive for every agent
-
Every agent installs it. Claude Code and Codex CLI ship today; the loader is
host-agnostic, so anything with a session-start hook can load the same Library.
-
Register anything. A Volume is just a folder with an index named after it. Skills,
capabilities, context, references — AutoLibrary stays agnostic about the contents.
-
A Volume is a contract, not a listing. Each index opens with a charter: what the
Volume holds, where its items live, how they're named. The loader tags every Volume with
its path straight from your config and tells the agent the charter is binding — so the
next thing the agent creates lands inside the Volume, named its way, instead of
scattered next to it. An index that only says what exists gets read and then ignored.
-
Grow without limit. Add a Volume by adding one line; it costs nothing until enabled.
-
Shape per machine. Your laptop and your server load different Volumes from the
same Library.
-
Stay cheap. The hook fires once per session and the index is prompt-cached; caps
bound its size.
-
Visible when it loads. Injected context is invisible by design, which makes a broken
Volume look exactly like a working one. Every session start prints what actually loaded —
and names anything degraded on its own line:
AutoLibrary — 4 volume(s), 7,482 chars (~1,870 tokens)
workspace 38 entries /root/Desktop/projects
devices 16 entries /root/devices
capabilities 27 entries /root/capabilities
ideas 7 entries /root/ideas ⚠ index missing: /root/ideas/ideas.md
-
Time-aware. A static index goes stale silently, and agents are time-blind. The
loader stamps every injection with today's date and reminds the agent that entries are
time-sensitive — so record created / expires / last-verified, and a machine past
its expiry or an aged "LIVE" date gets caught instead of trusted.
Install
Claude Code
This repo is a plugin and its own marketplace:
/plugin marketplace add nmhjklnm/auto-library
/plugin install auto-library@auto-library
The bundled SessionStart hook self-registers — you never touch settings.json.
Try it first, no install: claude --plugin-dir /path/to/auto-library.
Codex CLI
Add a SessionStart hook to ~/.codex/config.toml — see
codex/README.md. Same loader, same config, same behavior.
Configure
Point AutoLibrary at your Volumes with a JSON config, at any of (first found wins):
$AUTOLIBRARY_CONFIG, $CLAUDE_CONFIG_DIR/autolibrary.json,
$CODEX_HOME/autolibrary.json, or ~/.claude/autolibrary.json. See
autolibrary.example.json:
{
"per_volume_char_cap": 1500,
"total_char_cap": 8000,
"volumes": [
{ "name": "capabilities", "path": "/absolute/path/to/capabilities", "enabled": true },
{ "name": "skills", "path": "/absolute/path/to/skills", "enabled": true },
{ "name": "devices", "path": "/absolute/path/to/devices", "enabled": false }
]
}