akm-cli 0.9.29 → 0.9.31
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +41 -0
- package/README.md +10 -10
- package/ROADMAP.md +112 -0
- package/dist/commands/improve/improve-cli.js +33 -12
- package/dist/commands/sources/plugin-upgrade.js +46 -23
- package/dist/core/file-lock.js +10 -1
- package/dist/llm/client.js +33 -3
- package/dist/scripts/akm-migrate-node.js +5 -1
- package/dist/scripts/akm-migrate.js +5 -1
- package/docs/README.md +42 -41
- package/docs/agents/README.md +15 -0
- package/docs/agents/agent-install.md +14 -0
- package/docs/architecture/README.md +67 -0
- package/docs/architecture/adapters.md +272 -0
- package/docs/architecture/akm-architecture-decision-history.md +2055 -0
- package/docs/architecture/akm-core-principles.md +126 -0
- package/docs/architecture/architecture.md +579 -0
- package/docs/architecture/comparisons/claude-code-vs-akm-workflows-full.md +550 -0
- package/docs/architecture/decisions/0001-no-interpolation-attached-structured-context.md +72 -0
- package/docs/architecture/decisions/0002-unit-reuse-and-input-hash-scope.md +142 -0
- package/docs/architecture/decisions/0003-child-env-allowlist-and-provenance.md +189 -0
- package/docs/architecture/decisions/0004-task-input-contract-and-flag-coercion.md +97 -0
- package/docs/architecture/decisions/0005-task-result-vocabulary-and-legacy-read-mapping.md +108 -0
- package/docs/architecture/decisions/0006-task-source-version-routing.md +124 -0
- package/docs/architecture/decisions/0007-workflow-composition-bounds.md +83 -0
- package/docs/architecture/decisions/0008-task-binding-normalization.md +88 -0
- package/docs/architecture/decisions/0009-child-run-publication-column-parity.md +80 -0
- package/docs/architecture/decisions/0010-driver-protocol-cut.md +36 -0
- package/docs/architecture/decisions/0011-engine-run-loop-invariants.md +125 -0
- package/docs/architecture/decisions/README.md +62 -0
- package/docs/architecture/improvement.md +440 -0
- package/docs/architecture/internals/classification.md +154 -0
- package/docs/architecture/internals/fresh-host-rebuild-runbook.md +40 -0
- package/docs/architecture/internals/functional-contract-patterns.md +340 -0
- package/docs/architecture/internals/health-advisories.md +110 -0
- package/docs/architecture/internals/improve-workflow.md +713 -0
- package/docs/architecture/internals/indexing.md +498 -0
- package/docs/architecture/internals/registry-network-boundary.md +57 -0
- package/docs/architecture/internals/search.md +249 -0
- package/docs/architecture/internals/storage-locations.md +943 -0
- package/docs/architecture/persisted-data-compat.md +59 -0
- package/docs/architecture/reviews/env-secret-access.md +319 -0
- package/docs/architecture/runtime-boundary-design.md +153 -0
- package/docs/architecture/specs/0.9.0-close-out-plan.md +361 -0
- package/docs/architecture/specs/0.9.0-decisions.md +528 -0
- package/docs/architecture/specs/0.9.0-docs-code-drift-register.md +745 -0
- package/docs/architecture/specs/0.9.0-open-items-register.md +135 -0
- package/docs/architecture/specs/0.9.0-public-api-issue-backlog.md +740 -0
- package/docs/architecture/specs/0.9.0-release-surface-review.md +636 -0
- package/docs/architecture/specs/agent-command-engine-model-design.md +513 -0
- package/docs/architecture/specs/akm-0.9.0-bundle-adapter-spec.md +501 -0
- package/docs/architecture/specs/akm-0.9.0-ref-grammar-decision.md +291 -0
- package/docs/architecture/specs/akm-format-neutral-bundle-workspace-spec.md +2059 -0
- package/docs/architecture/specs/di-seams-plan.md +539 -0
- package/docs/architecture/specs/driver-protocol-keep-or-cut.md +275 -0
- package/docs/architecture/specs/fact-asset-type.md +142 -0
- package/docs/architecture/specs/improve-collapse-churn-detector-design.md +634 -0
- package/docs/architecture/specs/okf-support.md +148 -0
- package/docs/architecture/specs/ref.md +329 -0
- package/docs/architecture/specs/reviews/task-workflow-unification/README.md +72 -0
- package/docs/architecture/specs/reviews/task-workflow-unification/findings-consolidated.md +152 -0
- package/docs/architecture/specs/reviews/task-workflow-unification/library-eval-alternatives.md +352 -0
- package/docs/architecture/specs/reviews/task-workflow-unification/library-eval-bunqueue.md +300 -0
- package/docs/architecture/specs/reviews/task-workflow-unification/library-eval-openworkflow.md +402 -0
- package/docs/architecture/specs/reviews/task-workflow-unification/opus-review-1.md +758 -0
- package/docs/architecture/specs/reviews/task-workflow-unification/opus-review-2.md +645 -0
- package/docs/architecture/specs/reviews/task-workflow-unification/opus-review-3.md +602 -0
- package/docs/architecture/specs/reviews/task-workflow-unification/panel-r1-adversarial.md +27 -0
- package/docs/architecture/specs/reviews/task-workflow-unification/panel-r1-architecture.md +27 -0
- package/docs/architecture/specs/reviews/task-workflow-unification/panel-r1-coverage.md +74 -0
- package/docs/architecture/specs/reviews/task-workflow-unification/panel-r1-security.md +15 -0
- package/docs/architecture/specs/reviews/task-workflow-unification/panel-r2-adversarial.md +132 -0
- package/docs/architecture/specs/reviews/task-workflow-unification/panel-r2-verification.md +147 -0
- package/docs/architecture/specs/stash-conventions-code-spec.md +275 -0
- package/docs/architecture/specs/stash-organization-conventions.md +377 -0
- package/docs/architecture/specs/task-workflow-format-unification.md +721 -0
- package/docs/architecture/specs/workflow-engine-buy-vs-build.md +231 -0
- package/docs/architecture/specs/workflow-format-unification.md +437 -0
- package/docs/architecture/testing/manual-testing-checklist.md +3420 -0
- package/docs/architecture/testing/okf-v0.2-conformance-runbook.md +924 -0
- package/docs/architecture/testing/task-workflow-manual-tests.md +1817 -0
- package/docs/architecture/testing/testing-workflow.md +446 -0
- package/docs/architecture/workflow-engine.md +274 -0
- package/docs/guides/README.md +33 -0
- package/docs/guides/author-bundles.md +310 -0
- package/docs/guides/author-workflows.md +520 -0
- package/docs/guides/bundles.md +321 -0
- package/docs/guides/capture-knowledge.md +136 -0
- package/docs/guides/claude-code-vs-akm-workflows.md +30 -0
- package/docs/guides/concepts.md +93 -0
- package/docs/guides/discover-and-load.md +158 -0
- package/docs/guides/getting-started.md +240 -0
- package/docs/guides/improve-the-library.md +246 -0
- package/docs/guides/knowledge-management.md +18 -0
- package/docs/guides/recipes/headless-install.md +97 -0
- package/docs/guides/recipes/website-source.md +28 -0
- package/docs/guides/run-workflows.md +279 -0
- package/docs/guides/scheduling.md +123 -0
- package/docs/guides/use-with-any-agent.md +129 -0
- package/docs/guides/wikis.md +81 -0
- package/docs/maintainers/README.md +19 -0
- package/docs/maintainers/curate-workmap.md +336 -0
- package/docs/maintainers/eval.md +3 -0
- package/docs/maintainers/local-development.md +108 -0
- package/docs/maintainers/release-checklist.md +103 -0
- package/docs/migration/README.md +2 -2
- package/docs/migration/release-notes/0.0.13.md +1 -1
- package/docs/migration/release-notes/0.1.0.md +1 -1
- package/docs/migration/release-notes/0.2.0.md +1 -1
- package/docs/migration/release-notes/0.3.0.md +1 -1
- package/docs/migration/release-notes/0.5.0.md +1 -1
- package/docs/migration/release-notes/0.6.0.md +1 -1
- package/docs/migration/release-notes/0.7.0.md +1 -1
- package/docs/migration/release-notes/0.7.3.md +2 -2
- package/docs/migration/release-notes/0.7.4.md +1 -1
- package/docs/migration/release-notes/0.7.5.md +1 -1
- package/docs/migration/release-notes/0.8.0.md +1 -1
- package/docs/migration/release-notes/0.9.0.md +1 -1
- package/docs/migration/release-notes/0.9.14.md +1 -1
- package/docs/migration/release-notes/0.9.15.md +1 -1
- package/docs/migration/release-notes/0.9.16.md +1 -1
- package/docs/migration/release-notes/0.9.17.md +1 -1
- package/docs/migration/release-notes/0.9.19.md +1 -1
- package/docs/migration/release-notes/0.9.2.md +1 -1
- package/docs/migration/release-notes/README.md +27 -31
- package/docs/migration/v0.5-to-v0.6.md +759 -0
- package/docs/migration/v0.8-to-v0.9.md +1 -1
- package/docs/plans/0.9.2-agent-command-workflow-plan.md +423 -0
- package/docs/posts/README.md +30 -0
- package/docs/posts/akm-command-tour.md +495 -0
- package/docs/posts/akm-logo-sized.webp +0 -0
- package/docs/posts/belief-aware-memory-12.md +139 -0
- package/docs/posts/config-v2-lessons-16.md +191 -0
- package/docs/posts/improve-loop-autonomous-10.md +225 -0
- package/docs/posts/improve-pipeline-debugging-0803.md +179 -0
- package/docs/posts/intro-part-01.md +76 -0
- package/docs/posts/intro-part-02.md +221 -0
- package/docs/posts/intro-part-03.md +190 -0
- package/docs/posts/intro-part-04.md +221 -0
- package/docs/posts/llm-mode-reflect-13.md +166 -0
- package/docs/posts/openpalm-built-on-akm.md +86 -0
- package/docs/posts/progressive-disclosure-06.md +129 -0
- package/docs/posts/proposal-safety-net-15.md +112 -0
- package/docs/posts/release-0.5.0.md +247 -0
- package/docs/posts/release-0.6.0.md +117 -0
- package/docs/posts/release-0.7.0.md +159 -0
- package/docs/posts/release-0.8.0.md +332 -0
- package/docs/posts/scattered-skills-05.md +100 -0
- package/docs/posts/task-assets-persistent-workflows-11.md +222 -0
- package/docs/posts/team-skills-07.md +198 -0
- package/docs/posts/wiki-agent-knowledge-08.md +223 -0
- package/docs/posts/workflows-vaults-09.md +321 -0
- package/docs/product-surface.md +54 -0
- package/docs/reference/README.md +1 -2
- package/docs/reference/asset-types.md +168 -0
- package/docs/reference/cli.md +5 -6
- package/docs/reference/env-and-secrets.md +126 -0
- package/docs/reference/memory.md +124 -0
- package/docs/reference/refs.md +156 -0
- package/docs/reference/registry.md +489 -0
- package/docs/reference/website-sources.md +141 -0
- package/package.json +12 -15
|
@@ -0,0 +1,198 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: Your Team's Agent Skills Are a Mess. Here's How to Fix It.
|
|
3
|
+
cover_image: 'https://raw.githubusercontent.com/itlackey/akm/main/docs/posts/akm-logo-sized.webp'
|
|
4
|
+
series: akm-skills
|
|
5
|
+
description: Every agent skills article is about individual developers. But teams are where skills become valuable and messy simultaneously.
|
|
6
|
+
tags:
|
|
7
|
+
- ai
|
|
8
|
+
- agents
|
|
9
|
+
- cli
|
|
10
|
+
- skills
|
|
11
|
+
published: true
|
|
12
|
+
id: 3426246
|
|
13
|
+
---
|
|
14
|
+
|
|
15
|
+
> This is a dated article from AKM's publishing archive. For current product behavior, see the
|
|
16
|
+
> [documentation index](https://github.com/itlackey/akm/blob/main/docs/README.md).
|
|
17
|
+
|
|
18
|
+
This is part seven in a series about managing the growing pile of skills, scripts, and context that AI coding agents depend on. [Part one](https://dev.to/itlackey/your-ai-agents-skill-list-is-getting-out-of-hand-32ck) introduced progressive disclosure. [Part two](https://dev.to/itlackey/you-already-have-dozens-of-agent-skills-you-just-cant-find-them-bpo) unified your local assets across platforms. [Part three](https://dev.to/itlackey/your-agents-memory-shouldnt-disappear-when-the-session-ends) added remote context via OpenViking. *(note: OpenViking is not supported in akm v1 — see Part three's deprecation notice for details)* [Part four](https://dev.to/itlackey/your-agent-doesnt-know-what-the-community-already-figured-out) connected community knowledge through Context Hub.
|
|
19
|
+
|
|
20
|
+
Everything up to now has been about *you*. Your skills. Your stash. Your agent. That's fine when you're working solo, but most of us aren't.
|
|
21
|
+
|
|
22
|
+
You've got a deploy skill. Your teammate has one too. They do slightly different things — yours includes the canary step, theirs adds a Slack notification you didn't know about. A third person on the team wrote theirs for Codex and it skips the canary entirely.
|
|
23
|
+
|
|
24
|
+
Now the deploy process changes. Say the team adds a new staging environment. You update your skill. You mention it in standup. Your teammate says they'll update theirs later. The third person was out that day and doesn't hear about it. Two weeks later, someone deploys to the wrong environment because their skill still has the old configuration.
|
|
25
|
+
|
|
26
|
+
This isn't hypothetical. If your team uses AI coding assistants, this is happening right now. Every developer building up their own skill collection, no shared source of truth, no way to know when someone else has a better version of the same thing.
|
|
27
|
+
|
|
28
|
+
Every agent skills article on the internet is written for individual developers. But teams are where skills become both most valuable and most chaotic. Here's how to fix it.
|
|
29
|
+
|
|
30
|
+
## The Simplest Thing: A Shared Directory
|
|
31
|
+
|
|
32
|
+
Your team already has a shared drive or mounted directory? Use it.
|
|
33
|
+
|
|
34
|
+
```sh
|
|
35
|
+
# Team lead creates the shared source
|
|
36
|
+
mkdir -p /mnt/shared/team-skills/skills/deploy
|
|
37
|
+
cat > /mnt/shared/team-skills/skills/deploy/SKILL.md << 'EOF'
|
|
38
|
+
# Deploy to Production
|
|
39
|
+
|
|
40
|
+
Standard deployment workflow for all services.
|
|
41
|
+
|
|
42
|
+
## Steps
|
|
43
|
+
1. Run test suite: `bun test`
|
|
44
|
+
2. Build: `bun run build`
|
|
45
|
+
3. Deploy to staging: `./scripts/deploy.sh staging`
|
|
46
|
+
4. Run smoke tests: `./scripts/smoke.sh staging`
|
|
47
|
+
5. Deploy to production: `./scripts/deploy.sh production`
|
|
48
|
+
6. Notify #deploys channel in Slack
|
|
49
|
+
|
|
50
|
+
## Rollback
|
|
51
|
+
If smoke tests fail: `./scripts/rollback.sh staging`
|
|
52
|
+
EOF
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
Each developer adds it as a source:
|
|
56
|
+
|
|
57
|
+
```sh
|
|
58
|
+
akm add /mnt/shared/team-skills # doclint:ignore (historical — pre-0.9.0 command spelling)
|
|
59
|
+
akm search "deploy"
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
That's it. The shared skill shows up in everyone's search results alongside their personal skills. When the team lead updates the deploy skill, everyone sees the update on the next index refresh. No copying. No syncing. No "hey, I updated the deploy skill" messages in Slack.
|
|
63
|
+
|
|
64
|
+
This works best for co-located teams or teams that already share infrastructure. Zero overhead to set up.
|
|
65
|
+
|
|
66
|
+
## Git for Distributed Teams
|
|
67
|
+
|
|
68
|
+
If your team is distributed, a Git repo is the natural choice. You already use Git for everything else — why not for skills?
|
|
69
|
+
|
|
70
|
+
```sh
|
|
71
|
+
# Team lead creates the repo
|
|
72
|
+
# github.com/your-org/team-agent-skills
|
|
73
|
+
# Standard stash structure: skills/, commands/, knowledge/
|
|
74
|
+
|
|
75
|
+
# Each developer adds it
|
|
76
|
+
akm add github:your-org/team-agent-skills # doclint:ignore (historical — pre-0.9.0 command spelling)
|
|
77
|
+
|
|
78
|
+
# Pull latest when needed
|
|
79
|
+
akm update --all # doclint:ignore (historical — pre-0.9.0 command spelling)
|
|
80
|
+
```
|
|
81
|
+
|
|
82
|
+
This buys you everything Git already provides:
|
|
83
|
+
|
|
84
|
+
- **Version history.** See when the deploy skill changed and why.
|
|
85
|
+
- **Pull request review.** New skills and updates go through the same review process as code.
|
|
86
|
+
- **Branch-based testing.** Try a new version of a skill on a branch before merging.
|
|
87
|
+
- **CI integration.** Lint your skill files, validate structure, run tests.
|
|
88
|
+
|
|
89
|
+
A new developer runs `akm add`, and they've got the entire team's skill library indexed and searchable immediately. No onboarding doc that says "copy these files to these directories."
|
|
90
|
+
|
|
91
|
+
## Private Registry for Larger Orgs
|
|
92
|
+
|
|
93
|
+
For larger teams or organizations that want discoverability without mandating specific skills, `akm` supports private registries. Think npm for agent skills, but hosted internally.
|
|
94
|
+
|
|
95
|
+
```sh
|
|
96
|
+
# Configure the team registry once (applies to all subsequent searches)
|
|
97
|
+
akm registry add https://registry.internal.company.com --name team
|
|
98
|
+
|
|
99
|
+
# Search — registries you've added are searched automatically
|
|
100
|
+
akm search "deploy" --from registry
|
|
101
|
+
|
|
102
|
+
# Install a specific skill from the registry (each hit's `action` field
|
|
103
|
+
# prints the exact `akm add <installRef>` to run)
|
|
104
|
+
akm add https://registry.internal.company.com/skills/deploy-to-k8s # doclint:ignore (historical — pre-0.9.0 command spelling)
|
|
105
|
+
```
|
|
106
|
+
|
|
107
|
+
This makes more sense when your organization has dozens of teams, each with their own skills, and you want cross-team discovery without requiring everyone to index everything. Also handy when you need access control — some skills are sensitive.
|
|
108
|
+
|
|
109
|
+
## When the Team Skill Doesn't Quite Fit
|
|
110
|
+
|
|
111
|
+
Here's the scenario every team hits: the standard deploy skill works for 90% of cases. But your project has a specific environment variable, an extra pre-deploy step, or a different notification channel.
|
|
112
|
+
|
|
113
|
+
You don't want to modify the team skill — that breaks it for everyone else. You don't want to write your own from scratch — that's the duplication problem we started with.
|
|
114
|
+
|
|
115
|
+
`akm clone` solves this:
|
|
116
|
+
|
|
117
|
+
```sh
|
|
118
|
+
# Fork the team skill into your personal source
|
|
119
|
+
akm clone skill:deploy
|
|
120
|
+
|
|
121
|
+
# Now you have a local copy to customize
|
|
122
|
+
# Edit ~/.akm/sources/default/skills/deploy/SKILL.md
|
|
123
|
+
# Add your project-specific steps
|
|
124
|
+
```
|
|
125
|
+
|
|
126
|
+
The team version stays clean. Your fork is yours to customize. Both appear in your search results — the team version and your customized version — with the local fork ranked higher since it's in your personal source.
|
|
127
|
+
|
|
128
|
+
When the team updates their version, you can re-clone to get the update and reapply your customizations. Or diff the two versions to see what changed.
|
|
129
|
+
|
|
130
|
+
## Putting It Together
|
|
131
|
+
|
|
132
|
+
Here's what the full workflow looks like for a team of five:
|
|
133
|
+
|
|
134
|
+
**Team lead (one-time setup):**
|
|
135
|
+
```sh
|
|
136
|
+
# Create the team skills repo
|
|
137
|
+
mkdir team-agent-skills
|
|
138
|
+
cd team-agent-skills
|
|
139
|
+
akm setup
|
|
140
|
+
# Add skills, commands, knowledge
|
|
141
|
+
# Push to github.com/your-org/team-agent-skills
|
|
142
|
+
```
|
|
143
|
+
|
|
144
|
+
**Each developer (one-time setup):**
|
|
145
|
+
```sh
|
|
146
|
+
# Add team source alongside personal sources
|
|
147
|
+
akm add github:your-org/team-agent-skills # doclint:ignore (historical — pre-0.9.0 command spelling)
|
|
148
|
+
akm add ~/.claude/skills # doclint:ignore (historical — pre-0.9.0 command spelling)
|
|
149
|
+
akm add ~/.codex/skills # doclint:ignore (historical — pre-0.9.0 command spelling)
|
|
150
|
+
```
|
|
151
|
+
|
|
152
|
+
**Daily workflow:**
|
|
153
|
+
```sh
|
|
154
|
+
# Search finds results from all sources
|
|
155
|
+
akm search "deploy"
|
|
156
|
+
|
|
157
|
+
# Team skill and personal skills appear together
|
|
158
|
+
# Best match wins, regardless of source
|
|
159
|
+
|
|
160
|
+
# Pull team updates
|
|
161
|
+
akm update --all # doclint:ignore (historical — pre-0.9.0 command spelling)
|
|
162
|
+
```
|
|
163
|
+
|
|
164
|
+
**When customization is needed:**
|
|
165
|
+
```sh
|
|
166
|
+
akm clone skill:deploy
|
|
167
|
+
# Edit local copy
|
|
168
|
+
# Both versions stay searchable
|
|
169
|
+
```
|
|
170
|
+
|
|
171
|
+
No file copying. No sync scripts. No "which version is correct?" conversations. The team source is the source of truth. Personal forks are explicitly personal. Search finds everything.
|
|
172
|
+
|
|
173
|
+
## Why This Scales
|
|
174
|
+
|
|
175
|
+
This whole workflow is built on the progressive disclosure pattern from the [previous post](https://dev.to/itlackey). At team scale, it's not just an optimization — it's a necessity.
|
|
176
|
+
|
|
177
|
+
A team of five, each with 30 personal skills plus 50 shared team skills, has 200 total skills in play. Front-loading all of them into every agent session would cost 200,000+ tokens. With `akm`'s search-then-load pattern, each session uses only the 2-5 skills it actually needs.
|
|
178
|
+
|
|
179
|
+
The agent doesn't know or care whether a skill came from the team source, a personal directory, or a Git repository. It searches, it finds, it loads. The source management is your concern as a developer. The skill content is the agent's concern. Clean separation.
|
|
180
|
+
|
|
181
|
+
## Getting Started
|
|
182
|
+
|
|
183
|
+
If you're a team lead looking to set up shared skills:
|
|
184
|
+
|
|
185
|
+
1. Pick your approach — shared filesystem for co-located teams, Git repo for distributed teams, registry for large organizations
|
|
186
|
+
2. Create the shared source — see the [Getting Started guide](../guides/getting-started.md) for the standard stash structure
|
|
187
|
+
3. Have each developer run `akm add` to register the source
|
|
188
|
+
4. Start with 3-5 high-value skills that everyone uses (deploy, test, review, etc.)
|
|
189
|
+
5. Iterate from there
|
|
190
|
+
|
|
191
|
+
The infrastructure is minimal. The payoff is immediate.
|
|
192
|
+
|
|
193
|
+
Give it a shot and let me know how it holds up. The repo's at [github.com/itlackey/akm](https://github.com/itlackey/akm), and the [Getting Started guide](../guides/getting-started.md) will get you wired up in a few minutes.
|
|
194
|
+
|
|
195
|
+
|
|
196
|
+
---
|
|
197
|
+
|
|
198
|
+
> **Note (2026-04-23):** This post has been updated to align with akm 0.6.0 terminology. Earlier wording referred to a *kit* and the *Kit Maker's Guide*; those terms have been renamed to *stash* and *Stash Maker's Guide* throughout. The pre-rename text is preserved in this repository's git history.
|
|
@@ -0,0 +1,223 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: Building Agent Knowledge Bases That Actually Scale
|
|
3
|
+
cover_image: 'https://raw.githubusercontent.com/itlackey/akm/main/docs/posts/akm-logo-sized.webp'
|
|
4
|
+
series: akm-knowledge
|
|
5
|
+
description: 'akm multi-wiki support gives agents a searchable, maintainable knowledge base.'
|
|
6
|
+
tags:
|
|
7
|
+
- ai
|
|
8
|
+
- agents
|
|
9
|
+
- cli
|
|
10
|
+
- knowledge
|
|
11
|
+
published: true
|
|
12
|
+
id: 3538936
|
|
13
|
+
date: '2026-05-05T02:19:53Z'
|
|
14
|
+
---
|
|
15
|
+
|
|
16
|
+
> This is a dated article from AKM's publishing archive. For current product behavior, see the
|
|
17
|
+
> [documentation index](https://github.com/itlackey/akm/blob/main/docs/README.md).
|
|
18
|
+
|
|
19
|
+
This is part eight in a series about managing the growing pile of skills, scripts, and context that AI coding agents depend on. [Part one](https://dev.to/itlackey/your-ai-agents-skill-list-is-getting-out-of-hand-32ck) introduced progressive disclosure. [Part two](https://dev.to/itlackey/you-already-have-dozens-of-agent-skills-you-just-cant-find-them-bpo) unified your local assets across platforms. [Part three](https://dev.to/itlackey/your-agents-memory-shouldnt-disappear-when-the-session-ends) added persistent memory. Previous parts addressed teams, distributed stashes, and community knowledge.
|
|
20
|
+
|
|
21
|
+
This one is about a different problem: knowledge accumulation.
|
|
22
|
+
|
|
23
|
+
You start a new research area — say, LLM inference optimization. You read papers. You take notes. You save PDFs. Your agent writes summaries, discovers connections, asks follow-up questions that lead to more notes. Six weeks later you have a pile of markdown files, half-digested papers in a downloads folder, and a memory that says "we covered KV cache quantization somewhere." You search for it. You get three files with different partial takes on the same topic. None of them have the answer you need.
|
|
24
|
+
|
|
25
|
+
This isn't a storage problem. You have all the information. It's a structural problem — and that's what akm's multi-wiki support is built to fix.
|
|
26
|
+
|
|
27
|
+
## Karpathy's LLM Wiki Pattern
|
|
28
|
+
|
|
29
|
+
In a GitHub gist, Andrej Karpathy described a pattern for maintaining a markdown knowledge base that a human and LLM build and maintain together. The core idea is deceptively simple: a structured directory of markdown pages, with an agent responsible for synthesizing incoming information into those pages over time.
|
|
30
|
+
|
|
31
|
+
The insight is that agents are genuinely good at certain things that humans find tedious. Summarizing a 40-page paper into a two-paragraph page entry. Finding the connection between a new paper and something already in the knowledge base. Keeping a log of what was added and why. Updating an existing page when new information contradicts or extends it.
|
|
32
|
+
|
|
33
|
+
What agents are not good at: maintaining invariants. An agent won't reliably enforce slug uniqueness. It won't regenerate an index consistently. It will sometimes overwrite a source file you meant to keep immutable. It loses track of what's been ingested when sessions end.
|
|
34
|
+
|
|
35
|
+
So you need a division of labor. The agent does the synthesis. The tooling enforces the invariants. That's the gap akm's wiki support fills.
|
|
36
|
+
|
|
37
|
+
## The Problem: Knowledge That Accumulates and Gets Lost
|
|
38
|
+
|
|
39
|
+
Most developers hit this in one of two ways.
|
|
40
|
+
|
|
41
|
+
The first way: you import a file as a knowledge asset (`akm import ./paper.md`) and your agent reads it directly. That works fine for one or two documents. At ten documents, the agent is loading full text into every relevant session. At thirty documents, you're spending tokens on context you don't need, and the agent is trying to mentally synthesize relationships across thirty separate files per session. Nothing is connected. Nothing is indexed.
|
|
42
|
+
|
|
43
|
+
The second way: you ask your agent to "take notes" in a notes.md file. The file grows. It becomes a wall of text with no structure. Searching it is grep. Updating it means the agent has to read the whole thing before writing anything. After a few sessions the agent starts ignoring sections it wrote two weeks ago because they're below the fold.
|
|
44
|
+
|
|
45
|
+
Both patterns fail in the same way: there's no structural home for the knowledge. No schema that says what a page is. No index that makes things findable. No log that tracks what happened. No separation between raw sources and synthesized pages.
|
|
46
|
+
|
|
47
|
+
## How akm's Multi-Wiki Works
|
|
48
|
+
|
|
49
|
+
A wiki in akm is a named subdirectory under `~/akm/wikis/`. Each wiki has a fixed structure:
|
|
50
|
+
|
|
51
|
+
```
|
|
52
|
+
~/akm/wikis/
|
|
53
|
+
research/
|
|
54
|
+
schema.md # per-wiki rulebook: page kinds, voice, contradiction policy
|
|
55
|
+
index.md # catalog of all pages — regenerated by akm index
|
|
56
|
+
log.md # append-only activity log
|
|
57
|
+
raw/ # immutable ingested sources (never edit these)
|
|
58
|
+
attention.md # a synthesized page
|
|
59
|
+
transformers/
|
|
60
|
+
architecture.md
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
You create a wiki with one command:
|
|
64
|
+
|
|
65
|
+
```sh
|
|
66
|
+
akm wiki create research # doclint:ignore (historical — akm multi-wiki era post; `wiki` family removed in 0.9.0)
|
|
67
|
+
```
|
|
68
|
+
|
|
69
|
+
That scaffolds the directory, stubs out `schema.md` with sensible defaults, creates empty `index.md` and `log.md`, and makes the `raw/` directory. You're not starting from a blank directory — you're starting from a structural contract.
|
|
70
|
+
|
|
71
|
+
The `schema.md` file is important. It's where you define the rules for this particular wiki: what page kinds are allowed, what the voice should be, how contradictions are handled, what the minimum viable page looks like. You edit it once when you create the wiki, and the agent reads it at the start of every ingest session. It's the wiki's constitution.
|
|
72
|
+
|
|
73
|
+
## Walking Through a Real Workflow
|
|
74
|
+
|
|
75
|
+
Say you're building a research wiki on transformer architectures. You have a paper PDF, some notes from a talk, and a few bookmarked articles.
|
|
76
|
+
|
|
77
|
+
Start by bringing in the raw sources:
|
|
78
|
+
|
|
79
|
+
```sh
|
|
80
|
+
akm wiki stash research ./attention-paper.pdf --as attention # doclint:ignore (historical — akm multi-wiki era post; `wiki` family removed in 0.9.0)
|
|
81
|
+
akm wiki stash research ./transformer-scaling-notes.md --as scaling-notes # doclint:ignore (historical — akm multi-wiki era post; `wiki` family removed in 0.9.0)
|
|
82
|
+
echo "# Key quote from Sutton talk" | akm wiki stash research - # doclint:ignore (historical — akm multi-wiki era post; `wiki` family removed in 0.9.0)
|
|
83
|
+
```
|
|
84
|
+
|
|
85
|
+
The `stash` command copies each source into `raw/` with a unique slug. If you try to stash the same slug twice, it errors rather than overwriting. That's one of those invariants the agent can't reliably maintain — akm handles it.
|
|
86
|
+
|
|
87
|
+
Now ask your agent to start the ingest workflow:
|
|
88
|
+
|
|
89
|
+
```sh
|
|
90
|
+
akm wiki ingest research # doclint:ignore (historical — akm multi-wiki era post; `wiki` family removed in 0.9.0)
|
|
91
|
+
```
|
|
92
|
+
|
|
93
|
+
This dispatches the configured agent (from `config.defaults.agent` or `--profile`) with the wiki's ingest workflow as its prompt. The workflow tells the agent to: read `schema.md` to understand the page structure, check `index.md` to see what pages already exist, read each unprocessed file in `raw/`, synthesize content into pages using Write or Edit, update `index.md`, append a summary to `log.md`. `akm` owns the schema-aware commands (stash, search, lint, index, show); the agent owns the reasoning.
|
|
94
|
+
|
|
95
|
+
After the agent runs the ingest workflow:
|
|
96
|
+
|
|
97
|
+
```sh
|
|
98
|
+
akm wiki pages research # doclint:ignore (historical — akm multi-wiki era post; `wiki` family removed in 0.9.0)
|
|
99
|
+
# → research/attention.md "Self-attention mechanism and complexity analysis"
|
|
100
|
+
# → research/transformers/architecture.md "Encoder-decoder structure, residual connections"
|
|
101
|
+
```
|
|
102
|
+
|
|
103
|
+
Later, when you want to check the health of the wiki:
|
|
104
|
+
|
|
105
|
+
```sh
|
|
106
|
+
akm wiki lint research # doclint:ignore (historical — akm multi-wiki era post; `wiki` family removed in 0.9.0)
|
|
107
|
+
```
|
|
108
|
+
|
|
109
|
+
Lint runs deterministic structural checks: orphan pages (not in index.md), broken xrefs in frontmatter, missing descriptions, raw files that appear uncited in any page, and whether the index is stale relative to the directory contents. These are checks that require counting and comparing file state — exactly the kind of thing agents do inconsistently.
|
|
110
|
+
|
|
111
|
+
## The "akm Surfaces, the Agent Writes" Principle
|
|
112
|
+
|
|
113
|
+
This division of labor is worth making explicit, because it determines what belongs in akm and what doesn't.
|
|
114
|
+
|
|
115
|
+
akm handles operations that require invariants an agent can't reliably enforce across sessions:
|
|
116
|
+
|
|
117
|
+
- Scaffolding (ensures required files exist with the right names)
|
|
118
|
+
- Source import (unique slugs, never overwrites, immutable raw/)
|
|
119
|
+
- Lint (deterministic structural checks against file system state)
|
|
120
|
+
- Index regeneration (consistent format, triggered by normal indexing)
|
|
121
|
+
- Workflow printing (a recipe the agent can follow without reinventing it)
|
|
122
|
+
|
|
123
|
+
The agent handles everything that requires judgment:
|
|
124
|
+
|
|
125
|
+
- Writing and updating pages
|
|
126
|
+
- Synthesizing connections between sources
|
|
127
|
+
- Deciding what a page should say and how to structure it
|
|
128
|
+
- Appending meaningful log entries
|
|
129
|
+
- Adding xrefs in frontmatter
|
|
130
|
+
|
|
131
|
+
The reason this split matters: agents are good at synthesis and bad at reliability. If you ask an agent to "update the index," it will sometimes do it correctly, sometimes produce a subtly wrong format, and sometimes forget. If you ask it to write a page on attention mechanisms from three source documents, it will do that well every time. The tool enforces the boring, brittle parts so the agent can focus on what it's actually good at.
|
|
132
|
+
|
|
133
|
+
There are no unconditional LLM calls inside akm for wiki operations. The wiki commands are pure file operations, SQLite, and structural analysis — fast, deterministic, and usable offline. (akm does ship bounded opt-in LLM calls for other workflows, like `akm improve` and `akm curate`, gated behind per-process toggles under `profiles.improve.<name>.processes.*` and the first-class `index.*` / `search.*` feature sections — all off by default. But the wiki tooling itself never touches an LLM.)
|
|
134
|
+
|
|
135
|
+
## akm wiki search vs akm search --type wiki
|
|
136
|
+
|
|
137
|
+
Once you have a few wikis, you'll use two different search paths depending on what you need.
|
|
138
|
+
|
|
139
|
+
`akm wiki search research "attention mechanism"` runs a scoped search within the `research` wiki only. Use this when you know which wiki holds the answer and you want precision — no noise from other wikis or other asset types. The results are page refs with descriptions, scoped to `research/`. Raw sources under `raw/` plus the wiki root infrastructure files `schema.md`, `index.md`, and `log.md` are excluded from the search index and never appear as search hits.
|
|
140
|
+
|
|
141
|
+
`akm search --type wiki "attention mechanism"` runs the full stash-wide search across all wiki pages. Use this when you're not sure which wiki something lives in, or when you want to see if anything from multiple wikis is relevant to a task before loading anything.
|
|
142
|
+
|
|
143
|
+
In practice: scoped search during active work in a specific domain, wide search when starting a new session or doing cross-domain research. Wiki pages participate in the same FTS5 scoring pipeline as every other asset type, so `--type wiki` is not a second-class citizen — a highly relevant wiki page will outrank a mediocre skill in a general search.
|
|
144
|
+
|
|
145
|
+
## Practical Example: Building a Research Wiki
|
|
146
|
+
|
|
147
|
+
Here's the complete workflow for setting up and using a research wiki from scratch.
|
|
148
|
+
|
|
149
|
+
**Initial setup:**
|
|
150
|
+
|
|
151
|
+
```sh
|
|
152
|
+
akm wiki create research # doclint:ignore (historical — akm multi-wiki era post; `wiki` family removed in 0.9.0)
|
|
153
|
+
# Edit wikis/research/schema.md to define your page kinds
|
|
154
|
+
# (technical-summary, comparison, open-question, etc.)
|
|
155
|
+
```
|
|
156
|
+
|
|
157
|
+
**Bring in sources as you find them:**
|
|
158
|
+
|
|
159
|
+
```sh
|
|
160
|
+
akm wiki stash research ./papers/attention-is-all-you-need.pdf --as attention-2017 # doclint:ignore (historical — akm multi-wiki era post; `wiki` family removed in 0.9.0)
|
|
161
|
+
akm wiki stash research ./papers/flash-attention-v2.pdf --as flash-attention-v2 # doclint:ignore (historical — akm multi-wiki era post; `wiki` family removed in 0.9.0)
|
|
162
|
+
akm wiki stash research ./notes/scaling-laws-talk.md --as scaling-laws-notes # doclint:ignore (historical — akm multi-wiki era post; `wiki` family removed in 0.9.0)
|
|
163
|
+
```
|
|
164
|
+
|
|
165
|
+
**Run ingest when you're ready to synthesize:**
|
|
166
|
+
|
|
167
|
+
```sh
|
|
168
|
+
akm wiki ingest research # doclint:ignore (historical — akm multi-wiki era post; `wiki` family removed in 0.9.0)
|
|
169
|
+
# Agent reads the recipe, reads raw/ files, writes pages, updates index, logs activity
|
|
170
|
+
```
|
|
171
|
+
|
|
172
|
+
**Check what exists:**
|
|
173
|
+
|
|
174
|
+
```sh
|
|
175
|
+
akm wiki pages research # doclint:ignore (historical — akm multi-wiki era post; `wiki` family removed in 0.9.0)
|
|
176
|
+
akm wiki show research # doclint:ignore (historical — akm multi-wiki era post; `wiki` family removed in 0.9.0)
|
|
177
|
+
```
|
|
178
|
+
|
|
179
|
+
**Search when working on a related task:**
|
|
180
|
+
|
|
181
|
+
```sh
|
|
182
|
+
akm wiki search research "KV cache memory" # doclint:ignore (historical — akm multi-wiki era post; `wiki` family removed in 0.9.0)
|
|
183
|
+
# Returns: research/attention.md, research/flash-attention/optimization.md
|
|
184
|
+
```
|
|
185
|
+
|
|
186
|
+
**Lint before a long agent session to catch structural drift:**
|
|
187
|
+
|
|
188
|
+
```sh
|
|
189
|
+
akm wiki lint research # doclint:ignore (historical — akm multi-wiki era post; `wiki` family removed in 0.9.0)
|
|
190
|
+
# Orphans: none
|
|
191
|
+
# Broken xrefs: research/flash-attention/optimization.md → research/kv-cache.md (missing)
|
|
192
|
+
# Stale index: yes (run akm index)
|
|
193
|
+
```
|
|
194
|
+
|
|
195
|
+
**Fix the stale index:**
|
|
196
|
+
|
|
197
|
+
```sh
|
|
198
|
+
akm index
|
|
199
|
+
# Rebuilds SQLite search index, regenerates wikis/research/index.md as a side effect
|
|
200
|
+
```
|
|
201
|
+
|
|
202
|
+
At the end of a few weeks, you have a structured, searchable knowledge base. Your agent can load specific pages by ref instead of reading all thirty raw sources every session. You can run lint any time to catch drift. The log tells you what was synthesized and when. The raw sources are still there if you ever need to re-derive something from primary material.
|
|
203
|
+
|
|
204
|
+
## What This Isn't
|
|
205
|
+
|
|
206
|
+
Multi-wiki is not a document management system. If you want to store and retrieve original documents, `akm import` and the `knowledge` type already do that.
|
|
207
|
+
|
|
208
|
+
It's not a notes app. Single notes go in memories. Reference material goes in knowledge. Wikis are specifically for synthesized, structured knowledge that grows over time through an active ingest process.
|
|
209
|
+
|
|
210
|
+
As of 0.8.0, `akm wiki ingest <name>` dispatches the configured agent (`defaults.agent` or `--profile`) to execute the ingest workflow end-to-end. The agent reads the schema, finds related pages, creates new pages, updates xrefs, appends to `log.md`, and reindexes — all through `akm`'s schema-aware commands. The wiki tooling owns the invariants; the agent owns the reasoning.
|
|
211
|
+
|
|
212
|
+
## Getting Started
|
|
213
|
+
|
|
214
|
+
Multi-wiki has been available since akm 0.5.0. If you're already using akm, upgrade and try:
|
|
215
|
+
|
|
216
|
+
```sh
|
|
217
|
+
akm wiki create research # doclint:ignore (historical — akm multi-wiki era post; `wiki` family removed in 0.9.0)
|
|
218
|
+
akm wiki list # doclint:ignore (historical — akm multi-wiki era post; `wiki` family removed in 0.9.0)
|
|
219
|
+
```
|
|
220
|
+
|
|
221
|
+
The [Getting Started guide](../guides/getting-started.md) covers initial setup if you're new to akm. The wiki commands are available immediately once you have a stash configured.
|
|
222
|
+
|
|
223
|
+
If you're working in a domain where knowledge accumulates — research, security analysis, architecture decisions, competitive analysis — give it a run and see if the structure helps. The repo is at [github.com/itlackey/akm](https://github.com/itlackey/akm). Questions and feedback in the issues.
|