You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+5Lines changed: 5 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,10 @@
1
1
# Changelog
2
2
3
+
## 1.4.2 — 2026-03-06
4
+
5
+
-**README overhaul**: Document full API surface — agent runtime (`planLoad`, `recordLoad`, `manualLookup`), resolver, observability, merge, CLI commands
6
+
- Add claude-memories to consumers list
7
+
3
8
## 1.4.1 — 2026-03-06
4
9
5
10
-**Fix tokenizer**: hyphens now split into separate tokens (`claude-memories` → `claude` + `memories`), fixing keyword matching for hyphenated task descriptions
`ai-loadout` is the dispatch table format and matching engine that lets AI agents load the right knowledge for the task at hand. Instead of dumping everything into context, you keep a tiny index and load payloads on demand.
19
+
`ai-loadout` is the kernel of the Knowledge OS stack — dispatch table format, matching engine, hierarchical resolver, and agent runtime contract. Instead of dumping everything into context, you keep a tiny index and load payloads on demand.
20
20
21
21
Think of it like a game loadout — you equip the agent with exactly the knowledge it needs before each mission.
22
22
23
23
## Install
24
24
25
25
```bash
26
-
npm install @mcptoolshop/ai-loadout
26
+
npm install -g @mcptoolshop/ai-loadout # CLI
27
+
npm install @mcptoolshop/ai-loadout # library
27
28
```
28
29
29
30
## Core Concepts
@@ -88,76 +89,132 @@ CI minutes are finite...
88
89
89
90
Frontmatter is the source of truth. The index is derived from it.
90
91
91
-
## API
92
+
## Agent Runtime (Primary API)
93
+
94
+
The runtime is the canonical way agents consume a loadout. It wraps the full sequence: resolve layers → match task → decide what to load → record usage.
95
+
96
+
### `planLoad(task, opts?)`
97
+
98
+
Plan what to load for a given task. This is the primary agent-facing function.
Record that an agent loaded an entry. Enables observability (dead entries, budget drift, frequency tracking). Optional — only writes when `usagePath` is set in options.
119
+
120
+
### `manualLookup(id, opts?)`
121
+
122
+
Explicitly load a manual entry by ID from the resolved index.
123
+
124
+
## Resolver
125
+
126
+
Discovers and merges loadout indexes from a canonical layer stack:
All commands support `--json` for scripting. Resolver commands accept `--project`, `--global`, `--org`, `--session`.
161
218
162
219
## Types
163
220
@@ -170,13 +227,21 @@ import type {
170
227
ValidationIssue,
171
228
Priority, // "core" | "domain" | "manual"
172
229
Triggers, // { task, plan, edit }
230
+
LoadMode, // "eager" | "lazy" | "manual"
173
231
Budget,
232
+
UsageEvent,
233
+
MergeConflict,
234
+
MergedIndex,
235
+
LoadPlan,
236
+
ResolvedLoadout,
237
+
EntryExplanation,
174
238
} from"@mcptoolshop/ai-loadout";
175
239
```
176
240
177
241
## Consumers
178
242
179
243
-**[@mcptoolshop/claude-rules](https://github.com/mcp-tool-shop-org/claude-rules)** — CLAUDE.md optimizer for Claude Code. Uses ai-loadout for the dispatch table and matching.
244
+
-**[@mcptoolshop/claude-memories](https://github.com/mcp-tool-shop-org/claude-memories)** — MEMORY.md optimizer for Claude Code. Generates dispatch tables from memory topic files.
0 commit comments