agentpack-cli 0.1.3 → 0.1.5
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/README.md +27 -3
- package/dist/src/core/doctor.js +134 -7
- package/dist/src/core/doctor.js.map +1 -1
- package/dist/src/integrations/install.js +34 -12
- package/dist/src/integrations/install.js.map +1 -1
- package/docs/DEMOS.md +79 -0
- package/docs/INTEGRATIONS.md +27 -8
- package/docs/MVP.md +3 -0
- package/docs/ROADMAP.md +4 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -8,7 +8,7 @@ Agentpack helps coding agents continue long-running repo work without rediscover
|
|
|
8
8
|
|
|
9
9
|
## Product Contract
|
|
10
10
|
|
|
11
|
-
Agentpack is a local-first open-source tool for repo-scoped coding work. It is not a general AI memory, a knowledge graph, or a chat archive. Instead, it keeps a compact task ledger in `.agentpack/` and exposes that state through simple surfaces:
|
|
11
|
+
Agentpack is a local-first open-source tool for repo-scoped coding work. It is not a general AI memory, a knowledge graph, an automatic activity logger, or a chat archive. Instead, it keeps a compact task ledger in `.agentpack/` and exposes that state through simple surfaces:
|
|
12
12
|
|
|
13
13
|
- files in `.agentpack/`
|
|
14
14
|
- CLI commands
|
|
@@ -17,6 +17,21 @@ Agentpack is a local-first open-source tool for repo-scoped coding work. It is n
|
|
|
17
17
|
|
|
18
18
|
`.agentpack/` is local task state and is ignored by git by default. Agentpack is designed first for coding agents such as Codex, Claude Code, Cursor, and other MCP clients. Markdown export exists as a fallback for manual handoff, not as the primary workflow.
|
|
19
19
|
|
|
20
|
+
The core contract is simple: Git stores code state; Agentpack stores reviewed task state. It captures the decisions, source conclusions, evidence, and checkpoints that help the next agent continue correctly.
|
|
21
|
+
|
|
22
|
+
## When Agentpack Helps
|
|
23
|
+
|
|
24
|
+
Agentpack is for durable task continuity. It helps when:
|
|
25
|
+
|
|
26
|
+
- Claude compacts context and the next agent needs the useful state back
|
|
27
|
+
- you start a new chat or coding-agent session
|
|
28
|
+
- you move or copy a project folder and want the repo's task state to move with it
|
|
29
|
+
- you switch between Claude Code, Cursor, Codex, or another MCP client
|
|
30
|
+
- you return to a refactor or bugfix later
|
|
31
|
+
- another agent needs to continue from your checkpoint
|
|
32
|
+
|
|
33
|
+
The cost benefit is a side effect: agents spend less time re-reading unchanged files and re-explaining decisions because the repo keeps the task state locally.
|
|
34
|
+
|
|
20
35
|
## v0 Scope
|
|
21
36
|
|
|
22
37
|
The first version is intentionally small:
|
|
@@ -56,15 +71,18 @@ agentpack init
|
|
|
56
71
|
agentpack install codex --write
|
|
57
72
|
# or: agentpack install claude --write
|
|
58
73
|
# or: agentpack install cursor --write
|
|
59
|
-
# or: agentpack install claude-desktop (
|
|
74
|
+
# or: agentpack install claude-desktop --write (writes a snippet to merge manually)
|
|
60
75
|
```
|
|
61
76
|
|
|
77
|
+
Run `agentpack init` once per repo. Then run `agentpack install <client> --write` for each coding-agent client you want to use in that repo.
|
|
78
|
+
|
|
62
79
|
Restart or reconnect the coding-agent client. The generated project instructions tell the agent to load Agentpack context at the start, record durable decisions/sources/evidence while working, and checkpoint meaningful progress.
|
|
63
80
|
|
|
64
81
|
Use `agentpack doctor` to verify the local setup. Use `agentpack resume --preset agent --query "<topic>"` when you want to inspect the task state yourself.
|
|
65
82
|
|
|
66
83
|
See [docs/INTEGRATIONS.md](docs/INTEGRATIONS.md) for safe Codex, Claude Code, Cursor, and Claude Desktop setup.
|
|
67
84
|
See [docs/agentpack-flow.md](docs/agentpack-flow.md) for a visual execution flow.
|
|
85
|
+
See [docs/DEMOS.md](docs/DEMOS.md) for compact continuity demo outlines.
|
|
68
86
|
|
|
69
87
|
## Verify a workflow-published release
|
|
70
88
|
|
|
@@ -100,14 +118,20 @@ The smoke runner creates a temporary Agentpack workspace, starts `agentpack mcp`
|
|
|
100
118
|
|
|
101
119
|
## Coding-Agent Loop
|
|
102
120
|
|
|
103
|
-
Agentpack
|
|
121
|
+
Agentpack works as a hybrid loop. Humans can save and export state manually through the CLI, while MCP-connected coding agents can follow the generated project instructions and call Agentpack tools during the task.
|
|
122
|
+
|
|
123
|
+
For a manual CLI flow:
|
|
104
124
|
|
|
105
125
|
```bash
|
|
106
126
|
agentpack resume --preset agent --query "MCP install"
|
|
107
127
|
agentpack source status
|
|
128
|
+
agentpack record decision "Use project-local MCP config instead of editing global config automatically"
|
|
108
129
|
agentpack checkpoint -m "MCP install tested" --status "Ready for docs polish" --next "Update integration docs"
|
|
130
|
+
agentpack export --to markdown --preset chat --query "MCP install"
|
|
109
131
|
```
|
|
110
132
|
|
|
133
|
+
For a large refactor, you can also tell the agent directly: "Before you start, load Agentpack context; while you work, record durable decisions, source conclusions, dead ends, and test evidence; checkpoint when the step is coherent." The generated `AGENTS.md`, `CLAUDE.md`, and Cursor rules say the same thing, so connected agents can do this without turning every action into a log entry.
|
|
134
|
+
|
|
111
135
|
`resume --preset agent` gives the next coding agent the current goal, status, next actions, git state, durable decisions, dead ends, evidence, and source-cache guidance under a rough context budget. `source status` tells the agent which recorded source conclusions are still valid and which files need to be reopened. It compares the current file content to the hash recorded with the source conclusion; it is not a replacement for `git status`. Each recorded source shows hash status and git status separately, and git changes that were never recorded as sources are listed separately.
|
|
112
136
|
|
|
113
137
|
For manual web-chat fallback, `export --to markdown --preset chat` writes a handoff file under `.agentpack/exports/`. For the normal coding-agent workflow, `resume --preset agent` prints a larger task state directly in the terminal or MCP response. Add `--query` when you want Source Cache to include full summaries for sources relevant to the next task, always include changed/missing source records in full, and keep compact path/status/topic stubs for the rest.
|
package/dist/src/core/doctor.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { existsSync, readFileSync } from "node:fs";
|
|
1
|
+
import { existsSync, readFileSync, realpathSync } from "node:fs";
|
|
2
2
|
import { homedir } from "node:os";
|
|
3
3
|
import path from "node:path";
|
|
4
4
|
import { getGitInfo } from "./git.js";
|
|
@@ -31,6 +31,7 @@ export function buildDoctorReport(startDir) {
|
|
|
31
31
|
checks.push(checkLocalIgnores(root));
|
|
32
32
|
checks.push(checkProjectMcpConfig(root));
|
|
33
33
|
checks.push(checkCodexConfig(root));
|
|
34
|
+
checks.push(checkCursorConfig(root));
|
|
34
35
|
checks.push(checkClaudeDesktopConfig(root));
|
|
35
36
|
const git = getGitInfo(root);
|
|
36
37
|
checks.push({
|
|
@@ -174,6 +175,79 @@ function checkCodexConfig(root) {
|
|
|
174
175
|
detail: issues.length ? issues.join("; ") : `server key "${expectedName}" is scoped to this repo`
|
|
175
176
|
};
|
|
176
177
|
}
|
|
178
|
+
function checkCursorConfig(root) {
|
|
179
|
+
const configPath = path.join(root, ".cursor", "mcp.json");
|
|
180
|
+
if (!existsSync(configPath)) {
|
|
181
|
+
return {
|
|
182
|
+
status: "ok",
|
|
183
|
+
name: "Cursor MCP",
|
|
184
|
+
detail: "not installed"
|
|
185
|
+
};
|
|
186
|
+
}
|
|
187
|
+
const parsed = readJson(configPath);
|
|
188
|
+
if (!parsed.ok) {
|
|
189
|
+
return {
|
|
190
|
+
status: "fail",
|
|
191
|
+
name: "Cursor MCP",
|
|
192
|
+
detail: `.cursor/mcp.json is not valid JSON: ${parsed.error}`
|
|
193
|
+
};
|
|
194
|
+
}
|
|
195
|
+
const mcpServers = getRecord(parsed.value, "mcpServers");
|
|
196
|
+
if (!mcpServers) {
|
|
197
|
+
return {
|
|
198
|
+
status: "warn",
|
|
199
|
+
name: "Cursor MCP",
|
|
200
|
+
detail: ".cursor/mcp.json has no mcpServers object"
|
|
201
|
+
};
|
|
202
|
+
}
|
|
203
|
+
const expectedName = getAgentpackServerName(root);
|
|
204
|
+
const server = mcpServers[expectedName];
|
|
205
|
+
const issues = [];
|
|
206
|
+
if (expectedName !== "agentpack" && isRecord(mcpServers.agentpack)) {
|
|
207
|
+
issues.push(`generic server key "agentpack" can collide across repos; use "${expectedName}"`);
|
|
208
|
+
}
|
|
209
|
+
if (!isRecord(server)) {
|
|
210
|
+
issues.push(`expected server key "${expectedName}" is missing`);
|
|
211
|
+
}
|
|
212
|
+
else {
|
|
213
|
+
const type = typeof server.type === "string" ? server.type : undefined;
|
|
214
|
+
const command = typeof server.command === "string" ? server.command : undefined;
|
|
215
|
+
const args = Array.isArray(server.args) ? server.args.filter((arg) => typeof arg === "string") : [];
|
|
216
|
+
if (type && type !== "stdio") {
|
|
217
|
+
issues.push(`${expectedName} should use type "stdio"`);
|
|
218
|
+
}
|
|
219
|
+
if (!command) {
|
|
220
|
+
issues.push(`${expectedName} is missing command`);
|
|
221
|
+
}
|
|
222
|
+
else if (command === "agentpack") {
|
|
223
|
+
issues.push(`${expectedName} uses command "agentpack"; Cursor GUI may not inherit your shell PATH, rerun \`agentpack install cursor --write\``);
|
|
224
|
+
}
|
|
225
|
+
else if (path.isAbsolute(command) && !existsSync(command)) {
|
|
226
|
+
issues.push(`${expectedName} command does not exist: ${command}`);
|
|
227
|
+
}
|
|
228
|
+
if (!args.includes("mcp")) {
|
|
229
|
+
issues.push(`${expectedName} args should include "mcp"`);
|
|
230
|
+
}
|
|
231
|
+
const entrypoint = args[0];
|
|
232
|
+
if (entrypoint && path.isAbsolute(entrypoint) && !existsSync(entrypoint)) {
|
|
233
|
+
issues.push(`${expectedName} Agentpack entrypoint does not exist: ${entrypoint}; rerun \`agentpack install cursor --write\``);
|
|
234
|
+
}
|
|
235
|
+
const rootArg = readRootArg(args);
|
|
236
|
+
if (!rootArg) {
|
|
237
|
+
issues.push(`${expectedName} should pass --root "\${workspaceFolder}"`);
|
|
238
|
+
}
|
|
239
|
+
else if (rootArg !== "${workspaceFolder}" && !samePath(rootArg, root)) {
|
|
240
|
+
issues.push(`${expectedName} has stale --root ${rootArg}`);
|
|
241
|
+
}
|
|
242
|
+
}
|
|
243
|
+
return {
|
|
244
|
+
status: issues.length ? "warn" : "ok",
|
|
245
|
+
name: "Cursor MCP",
|
|
246
|
+
detail: issues.length
|
|
247
|
+
? issues.join("; ")
|
|
248
|
+
: `server key "${expectedName}" configured; open this folder as the Cursor workspace and reload MCP tools`
|
|
249
|
+
};
|
|
250
|
+
}
|
|
177
251
|
function checkClaudeDesktopConfig(root) {
|
|
178
252
|
const configPath = path.join(process.env.HOME || homedir(), "Library", "Application Support", "Claude", "claude_desktop_config.json");
|
|
179
253
|
if (!existsSync(configPath)) {
|
|
@@ -210,15 +284,60 @@ function checkClaudeDesktopConfig(root) {
|
|
|
210
284
|
const roots = agentpackServers
|
|
211
285
|
.map(([name, server]) => [name, readConfiguredRoot(server)])
|
|
212
286
|
.filter((entry) => typeof entry[1] === "string");
|
|
213
|
-
const
|
|
287
|
+
const currentRootServers = roots.filter(([, configuredRoot]) => samePath(configuredRoot, root));
|
|
288
|
+
const hasCurrentRoot = currentRootServers.length > 0;
|
|
289
|
+
const issues = agentpackServers.flatMap(([name, server]) => claudeDesktopServerIssues(name, server));
|
|
290
|
+
if (!hasCurrentRoot) {
|
|
291
|
+
issues.push(`Agentpack Desktop servers point elsewhere: ${roots.map(([name, configuredRoot]) => `${name}=${configuredRoot}`).join(", ") || "no root configured"}`);
|
|
292
|
+
}
|
|
214
293
|
return {
|
|
215
|
-
status:
|
|
294
|
+
status: issues.length ? "warn" : "ok",
|
|
216
295
|
name: "Claude Desktop",
|
|
217
|
-
detail:
|
|
218
|
-
? "has an Agentpack server for this pack root"
|
|
219
|
-
: `Agentpack Desktop servers point elsewhere: ${roots.map(([name, configuredRoot]) => `${name}=${configuredRoot}`).join(", ") || "no root configured"}`
|
|
296
|
+
detail: issues.length ? issues.join("; ") : claudeDesktopOkDetail(currentRootServers, agentpackServers.length)
|
|
220
297
|
};
|
|
221
298
|
}
|
|
299
|
+
function claudeDesktopOkDetail(currentRootServers, serverCount) {
|
|
300
|
+
const serverNames = currentRootServers.map(([name]) => `"${name}"`).join(", ");
|
|
301
|
+
const base = currentRootServers.length === 1
|
|
302
|
+
? `server key ${serverNames} points at this pack root`
|
|
303
|
+
: `server keys ${serverNames} point at this pack root`;
|
|
304
|
+
return serverCount > currentRootServers.length
|
|
305
|
+
? `${base}; Claude Desktop also has other Agentpack servers, so use the repo-specific server/tool group for this repo`
|
|
306
|
+
: base;
|
|
307
|
+
}
|
|
308
|
+
function claudeDesktopServerIssues(name, server) {
|
|
309
|
+
if (!isRecord(server)) {
|
|
310
|
+
return [`${name} server config is not an object`];
|
|
311
|
+
}
|
|
312
|
+
const issues = [];
|
|
313
|
+
const command = typeof server.command === "string" ? server.command : undefined;
|
|
314
|
+
const args = Array.isArray(server.args) ? server.args.filter((arg) => typeof arg === "string") : [];
|
|
315
|
+
if (!command) {
|
|
316
|
+
issues.push(`${name} is missing command`);
|
|
317
|
+
}
|
|
318
|
+
else if (command === "agentpack") {
|
|
319
|
+
issues.push(`${name} uses command "agentpack"; Claude Desktop may not inherit your shell PATH, rerun \`agentpack install claude-desktop --write\``);
|
|
320
|
+
}
|
|
321
|
+
else if (path.isAbsolute(command) && !existsSync(command)) {
|
|
322
|
+
issues.push(`${name} command does not exist: ${command}`);
|
|
323
|
+
}
|
|
324
|
+
if (!args.includes("mcp")) {
|
|
325
|
+
issues.push(`${name} args should include "mcp"`);
|
|
326
|
+
}
|
|
327
|
+
if (command && command !== "agentpack") {
|
|
328
|
+
const entrypoint = args[0];
|
|
329
|
+
if (!entrypoint || entrypoint === "mcp") {
|
|
330
|
+
issues.push(`${name} should pass an absolute Agentpack entrypoint before "mcp"; rerun \`agentpack install claude-desktop --write\``);
|
|
331
|
+
}
|
|
332
|
+
else if (!path.isAbsolute(entrypoint)) {
|
|
333
|
+
issues.push(`${name} Agentpack entrypoint should be absolute: ${entrypoint}; rerun \`agentpack install claude-desktop --write\``);
|
|
334
|
+
}
|
|
335
|
+
else if (!existsSync(entrypoint)) {
|
|
336
|
+
issues.push(`${name} Agentpack entrypoint does not exist: ${entrypoint}; rerun \`agentpack install claude-desktop --write\``);
|
|
337
|
+
}
|
|
338
|
+
}
|
|
339
|
+
return issues;
|
|
340
|
+
}
|
|
222
341
|
function readGitignoreLines(gitignorePath) {
|
|
223
342
|
return readFileSync(gitignorePath, "utf8")
|
|
224
343
|
.split(/\r?\n/)
|
|
@@ -290,7 +409,15 @@ function readRootArg(args) {
|
|
|
290
409
|
return undefined;
|
|
291
410
|
}
|
|
292
411
|
function samePath(left, right) {
|
|
293
|
-
return
|
|
412
|
+
return canonicalPath(left) === canonicalPath(right);
|
|
413
|
+
}
|
|
414
|
+
function canonicalPath(value) {
|
|
415
|
+
try {
|
|
416
|
+
return realpathSync(value);
|
|
417
|
+
}
|
|
418
|
+
catch {
|
|
419
|
+
return path.resolve(value);
|
|
420
|
+
}
|
|
294
421
|
}
|
|
295
422
|
function renderDoctor(checks) {
|
|
296
423
|
const ok = checks.every((check) => check.status !== "fail");
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"doctor.js","sourceRoot":"","sources":["../../../src/core/doctor.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AACnD,OAAO,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAClC,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AACtC,OAAO,EAAE,yBAAyB,EAAE,YAAY,EAAE,WAAW,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAC5F,OAAO,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AAUrD,MAAM,UAAU,iBAAiB,CAAC,QAAgB;IAChD,MAAM,MAAM,GAAkB,EAAE,CAAC;IACjC,MAAM,IAAI,GAAG,YAAY,CAAC,QAAQ,CAAC,CAAC;IAEpC,IAAI,CAAC,IAAI,EAAE,CAAC;QACV,MAAM,CAAC,IAAI,CAAC;YACV,MAAM,EAAE,MAAM;YACd,IAAI,EAAE,MAAM;YACZ,MAAM,EAAE,sDAAsD;SAC/D,CAAC,CAAC;QACH,OAAO,YAAY,CAAC,MAAM,CAAC,CAAC;IAC9B,CAAC;IAED,MAAM,CAAC,IAAI,CAAC;QACV,MAAM,EAAE,IAAI;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,CAAC;QACP,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;IAC7B,CAAC;AACH,CAAC;AAED,SAAS,YAAY,CAAC,MAAqB;IACzC,MAAM,EAAE,GAAG,MAAM,CAAC,KAAK,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,MAAM,KAAK,MAAM,CAAC,CAAC;IAC5D,MAAM,IAAI,GAAG;QACX,kBAAkB;QAClB,EAAE;QACF,GAAG,MAAM,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,IAAI,KAAK,CAAC,MAAM,KAAK,KAAK,CAAC,IAAI,KAAK,KAAK,CAAC,MAAM,EAAE,CAAC;KAC7E,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IAEb,OAAO,EAAE,EAAE,EAAE,IAAI,EAAE,CAAC;AACtB,CAAC"}
|
|
@@ -84,12 +84,13 @@ function buildInstallPlan(root, target) {
|
|
|
84
84
|
return {
|
|
85
85
|
target,
|
|
86
86
|
files: [
|
|
87
|
-
writeFilePlan(root, ".agentpack/instructions/claude-desktop.md", "Write Claude Desktop-specific Agentpack setup notes.", claudeDesktopInstructions(root, desktopSnippetPath)),
|
|
87
|
+
writeFilePlan(root, ".agentpack/instructions/claude-desktop.md", "Write Claude Desktop-specific Agentpack setup notes.", claudeDesktopInstructions(root, desktopSnippetPath, serverName)),
|
|
88
88
|
writeFilePlan(root, ".agentpack/instructions/claude-desktop-mcp.example.json", "Write a Claude Desktop MCP config snippet for manual review.", claudeDesktopJsonSnippet(root, serverName))
|
|
89
89
|
],
|
|
90
90
|
notes: [
|
|
91
91
|
"No Claude Desktop global config is modified.",
|
|
92
92
|
"Claude Desktop does not read project .mcp.json or CLAUDE.md.",
|
|
93
|
+
`The generated Claude Desktop server key for this repo is ${serverName}.`,
|
|
93
94
|
`To enable local MCP in Claude Desktop manually, review ${relativePath(root, desktopSnippetPath)} and merge it into ~/Library/Application Support/Claude/claude_desktop_config.json on macOS.`
|
|
94
95
|
]
|
|
95
96
|
};
|
|
@@ -97,13 +98,15 @@ function buildInstallPlan(root, target) {
|
|
|
97
98
|
return {
|
|
98
99
|
target,
|
|
99
100
|
files: [
|
|
100
|
-
writeFilePlan(root, ".agentpack/instructions/cursor.md", "Write Cursor-specific Agentpack workflow instructions.",
|
|
101
|
-
writeFilePlan(root, ".cursor/rules/agentpack.mdc", "Write a Cursor project rule for Agentpack.",
|
|
101
|
+
writeFilePlan(root, ".agentpack/instructions/cursor.md", "Write Cursor-specific Agentpack workflow instructions.", cursorInstructions()),
|
|
102
|
+
writeFilePlan(root, ".cursor/rules/agentpack.mdc", "Write a Cursor project rule for Agentpack.", cursorInstructions()),
|
|
102
103
|
jsonMergePlan(root, ".cursor/mcp.json", "Add the Agentpack MCP server to Cursor project MCP config.", serverName, cursorMcpServer())
|
|
103
104
|
],
|
|
104
105
|
notes: [
|
|
105
106
|
"Only project-local files are modified.",
|
|
106
|
-
"Cursor reads project-specific MCP servers from .cursor/mcp.json."
|
|
107
|
+
"Cursor reads project-specific MCP servers from .cursor/mcp.json when this folder is opened as the workspace.",
|
|
108
|
+
"After writing the config, reload the Cursor window, open MCP Servers, and enable the Agentpack server if it is toggled off.",
|
|
109
|
+
"The Cursor MCP entry uses an absolute Node launcher so Cursor does not depend on your shell/fnm/nvm PATH."
|
|
107
110
|
]
|
|
108
111
|
};
|
|
109
112
|
}
|
|
@@ -259,8 +262,8 @@ function claudeMcpServer() {
|
|
|
259
262
|
}
|
|
260
263
|
function claudeDesktopMcpServer(root) {
|
|
261
264
|
return {
|
|
262
|
-
command:
|
|
263
|
-
args: ["mcp", "--root", root],
|
|
265
|
+
command: process.execPath,
|
|
266
|
+
args: [agentpackEntrypoint(), "mcp", "--root", root],
|
|
264
267
|
env: {
|
|
265
268
|
AGENTPACK_ROOT: root
|
|
266
269
|
}
|
|
@@ -273,13 +276,16 @@ function claudeDesktopJsonSnippet(root, serverName) {
|
|
|
273
276
|
}
|
|
274
277
|
}, null, 2);
|
|
275
278
|
}
|
|
276
|
-
function claudeDesktopInstructions(root, snippetPath) {
|
|
279
|
+
function claudeDesktopInstructions(root, snippetPath, serverName) {
|
|
277
280
|
return [
|
|
278
281
|
"# Agentpack for Claude Desktop",
|
|
279
282
|
"",
|
|
280
283
|
"Claude Desktop does not read project-local `.mcp.json` or `CLAUDE.md`.",
|
|
281
284
|
"Use Claude Code's `.mcp.json` for Claude Code only.",
|
|
282
285
|
"",
|
|
286
|
+
`Generated server key for this repo: \`${serverName}\`.`,
|
|
287
|
+
"If Claude Desktop has several Agentpack servers, use the server/tool group with this repo-specific key for this repo.",
|
|
288
|
+
"",
|
|
283
289
|
"For Claude Desktop local MCP, prefer Desktop Extensions/MCP bundles when Agentpack ships one.",
|
|
284
290
|
"Until then, review the generated JSON snippet and merge it into your Claude Desktop config manually.",
|
|
285
291
|
"Do not copy the generated snippet over the Desktop config file; that can delete existing MCP servers.",
|
|
@@ -306,22 +312,38 @@ function claudeDesktopInstructions(root, snippetPath) {
|
|
|
306
312
|
"```",
|
|
307
313
|
"",
|
|
308
314
|
"If the config file does not exist yet, create it with the generated snippet content.",
|
|
309
|
-
|
|
315
|
+
`If it already exists, merge only the generated \`mcpServers.${serverName}\` entry into the existing JSON.`,
|
|
310
316
|
"",
|
|
311
317
|
"After editing the Claude Desktop config, restart Claude Desktop.",
|
|
312
318
|
"",
|
|
313
|
-
"
|
|
319
|
+
"The generated snippet launches Agentpack through the current Node executable and Agentpack entrypoint, rather than relying on `agentpack` being available in Claude Desktop's GUI `PATH`.",
|
|
320
|
+
"If Claude Desktop reports that the MCP server disconnected or cannot start, rerun `agentpack install claude-desktop --write`, merge the refreshed snippet, then restart Claude Desktop.",
|
|
314
321
|
"Keep both the `--root` argument and `AGENTPACK_ROOT` env value pointed at the project whose `.agentpack/` state you want Claude Desktop to use.",
|
|
315
|
-
|
|
322
|
+
`When switching this Claude Desktop server to another repo, update both \`mcpServers.${serverName}.args\` \`--root\` and \`mcpServers.${serverName}.env.AGENTPACK_ROOT\`, then restart Claude Desktop.`
|
|
323
|
+
].join("\n");
|
|
324
|
+
}
|
|
325
|
+
function cursorInstructions() {
|
|
326
|
+
return [
|
|
327
|
+
INSTRUCTIONS.trimEnd(),
|
|
328
|
+
"",
|
|
329
|
+
"Cursor-specific notes:",
|
|
330
|
+
"- Project MCP only applies when Cursor opens this folder as the workspace root.",
|
|
331
|
+
"- After `agentpack install cursor --write`, reload the Cursor window so `.cursor/mcp.json` is re-read.",
|
|
332
|
+
"- In Cursor, open MCP Servers and enable the `agentpack` server if it appears toggled off.",
|
|
333
|
+
"- If Agentpack MCP tools are not visible in Cursor, run `agentpack doctor` and check Cursor's MCP/server logs.",
|
|
334
|
+
"- If MCP is unavailable, use the CLI equivalents: `agentpack resume --preset agent`, `agentpack source status`, and `agentpack checkpoint ...`."
|
|
316
335
|
].join("\n");
|
|
317
336
|
}
|
|
318
337
|
function cursorMcpServer() {
|
|
319
338
|
return {
|
|
320
339
|
type: "stdio",
|
|
321
|
-
command:
|
|
322
|
-
args: ["mcp", "--root", "${workspaceFolder}"]
|
|
340
|
+
command: process.execPath,
|
|
341
|
+
args: [agentpackEntrypoint(), "mcp", "--root", "${workspaceFolder}"]
|
|
323
342
|
};
|
|
324
343
|
}
|
|
344
|
+
function agentpackEntrypoint() {
|
|
345
|
+
return path.resolve(process.argv[1] || "agentpack");
|
|
346
|
+
}
|
|
325
347
|
function mcpServerName(root) {
|
|
326
348
|
const projectName = path.basename(root);
|
|
327
349
|
const slug = projectName
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"install.js","sourceRoot":"","sources":["../../../src/integrations/install.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAC7E,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,EAAE,WAAW,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAEzD,MAAM,e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ACrB,CAAC;IAED,OAAO,aAAa,IAAI,EAAE,CAAC;AAC7B,CAAC;AAED,SAAS,WAAW,CAAC,MAAc;IACjC,IAAI,eAAe,CAAC,QAAQ,CAAC,MAAuB,CAAC,EAAE,CAAC;QACtD,OAAO,MAAuB,CAAC;IACjC,CAAC;IACD,MAAM,IAAI,KAAK,CAAC,2BAA2B,MAAM,EAAE,CAAC,CAAC;AACvD,CAAC;AAED,SAAS,UAAU,CAAC,QAAgB,EAAE,OAAe;IACnD,IAAI,CAAC,UAAU,CAAC,QAAQ,CAAC,EAAE,CAAC;QAC1B,OAAO,QAAQ,CAAC;IAClB,CAAC;IACD,OAAO,YAAY,CAAC,QAAQ,EAAE,MAAM,CAAC,KAAK,OAAO,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,QAAQ,CAAC;AAC7E,CAAC;AAED,SAAS,YAAY,CAAC,IAAY,EAAE,QAAgB;IAClD,OAAO,IAAI,CAAC,QAAQ,CAAC,IAAI,EAAE,QAAQ,CAAC,IAAI,GAAG,CAAC;AAC9C,CAAC;AAED,SAAS,qBAAqB,CAAC,KAAa;IAC1C,OAAO,KAAK,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,GAAG,KAAK,IAAI,CAAC;AACrD,CAAC;AAED,SAAS,QAAQ,CAAC,KAAc;IAC9B,OAAO,KAAK,KAAK,IAAI,IAAI,OAAO,KAAK,KAAK,QAAQ,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;AAC9E,CAAC;AAED,SAAS,YAAY,CAAC,KAAa;IACjC,OAAO,KAAK,CAAC,OAAO,CAAC,qBAAqB,EAAE,MAAM,CAAC,CAAC;AACtD,CAAC"}
|
package/docs/DEMOS.md
ADDED
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
# Agentpack Demo Outlines
|
|
2
|
+
|
|
3
|
+
Use these as short demos for the durable task continuity story. The point is not that Agentpack saves chat history; the point is that the repo keeps enough task state for the next agent or session to continue without rediscovering everything.
|
|
4
|
+
|
|
5
|
+
In the normal MCP-connected workflow, this is hybrid: generated project instructions tell the agent when to load context, record durable state, and checkpoint progress. The CLI commands below are the manual equivalent, useful for demos, web-chat fallback, or telling an agent exactly what to do before a large refactor.
|
|
6
|
+
|
|
7
|
+
## New Workspace, Same Task State
|
|
8
|
+
|
|
9
|
+
Scenario: a developer continues the same task after opening the repo from a different workspace path, a copied sandbox, or a restored backup. The old chat or IDE context is gone, but the repo-local task state is still available.
|
|
10
|
+
|
|
11
|
+
1. In a sample repo, run these commands manually, or ask the connected agent to record this durable state:
|
|
12
|
+
|
|
13
|
+
```bash
|
|
14
|
+
agentpack init
|
|
15
|
+
agentpack record decision "Use the existing auth middleware instead of adding a second request guard."
|
|
16
|
+
agentpack source add src/auth.ts --summary "Auth middleware validates session cookies and attaches user context before route handlers."
|
|
17
|
+
agentpack checkpoint -m "Auth refactor context captured" --status "Ready to continue in a fresh workspace" --next "Update route tests"
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
2. Open the repo from a different workspace path or copied sandbox. For this local demo, copy the folder including `.agentpack/`; for a fresh git clone today, use `agentpack export` as a manual handoff instead.
|
|
21
|
+
3. Start a new Claude Code, Cursor, or Codex session in that workspace.
|
|
22
|
+
4. Start the new session with:
|
|
23
|
+
|
|
24
|
+
```bash
|
|
25
|
+
agentpack resume --preset agent --query "auth refactor"
|
|
26
|
+
agentpack source status
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
Expected takeaway: the new workspace/session can recover the task goal, source conclusions, and next action without reopening the old chat. Agentpack is preserving reviewed task state, not relying on the client remembering a folder name.
|
|
30
|
+
|
|
31
|
+
## Compact Or New Session Resume
|
|
32
|
+
|
|
33
|
+
Scenario: a long coding session gets compacted, disconnected, or restarted.
|
|
34
|
+
|
|
35
|
+
1. During the first session, record only durable state manually or let the connected agent do it through MCP:
|
|
36
|
+
|
|
37
|
+
```bash
|
|
38
|
+
agentpack record decision "Keep the installer local-only; do not edit global client config automatically."
|
|
39
|
+
agentpack record dead-end "Relying on GUI apps to inherit shell PATH is unreliable for MCP launchers."
|
|
40
|
+
agentpack checkpoint -m "Installer behavior decided" --status "Need Desktop docs and tests" --next "Update Claude Desktop snippet"
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
2. Start a new chat or agent session in the same repo.
|
|
44
|
+
3. Ask the agent to begin by loading Agentpack context, or run:
|
|
45
|
+
|
|
46
|
+
```bash
|
|
47
|
+
agentpack resume --preset agent --query "Desktop installer"
|
|
48
|
+
agentpack source status
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
Expected takeaway: the new session gets the goal, status, decisions, dead ends, source-cache guidance, and next action under a compact budget. Lower token usage is a side effect of less rediscovery; the main value is continuity.
|
|
52
|
+
|
|
53
|
+
## Multi-Client Repo Setup
|
|
54
|
+
|
|
55
|
+
Scenario: a developer wants the same repo task state available in more than one coding-agent client.
|
|
56
|
+
|
|
57
|
+
1. Initialize the repo once:
|
|
58
|
+
|
|
59
|
+
```bash
|
|
60
|
+
agentpack init
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
2. Install only the client surfaces needed for this repo. After this, MCP-connected agents can use Agentpack through their generated instructions:
|
|
64
|
+
|
|
65
|
+
```bash
|
|
66
|
+
agentpack install codex --write
|
|
67
|
+
agentpack install claude --write
|
|
68
|
+
agentpack install cursor --write
|
|
69
|
+
agentpack install claude-desktop --write
|
|
70
|
+
```
|
|
71
|
+
|
|
72
|
+
3. For Claude Desktop, merge only the generated `mcpServers.<server-name>` entry from `.agentpack/instructions/claude-desktop-mcp.example.json` into the user-local Claude Desktop config, then restart Claude Desktop.
|
|
73
|
+
4. Verify the setup:
|
|
74
|
+
|
|
75
|
+
```bash
|
|
76
|
+
agentpack doctor
|
|
77
|
+
```
|
|
78
|
+
|
|
79
|
+
Expected takeaway: `init` creates the repo ledger once, each `install` command configures one client, and `doctor` shows which repo-specific MCP server key points at the current pack root. If Claude Desktop lists several Agentpack servers, use the server/tool group whose key matches this repo.
|
package/docs/INTEGRATIONS.md
CHANGED
|
@@ -8,8 +8,8 @@ Agentpack integrates through local project files, CLI, and MCP. It does not writ
|
|
|
8
8
|
| --- | --- | --- | --- |
|
|
9
9
|
| Codex | `AGENTS.md` | Project-local `.codex/config.toml`, plus a generated `.agentpack/instructions/codex-mcp.example.toml` review snippet | Tested |
|
|
10
10
|
| Claude Code | `CLAUDE.md` | Project-local `.mcp.json` in the repo root | Tested |
|
|
11
|
-
| Claude Desktop | None automatically read from the repo | User-local Claude Desktop config, copied from generated `.agentpack/instructions/claude-desktop-mcp.example.json` |
|
|
12
|
-
| Cursor | `.cursor/rules/agentpack.mdc` | Project-local `.cursor/mcp.json` |
|
|
11
|
+
| Claude Desktop | None automatically read from the repo | User-local Claude Desktop config, copied from generated `.agentpack/instructions/claude-desktop-mcp.example.json` | Tested |
|
|
12
|
+
| Cursor | `.cursor/rules/agentpack.mdc` | Project-local `.cursor/mcp.json` | Tested |
|
|
13
13
|
| Web chats | Markdown handoff | No local stdio MCP support in v0; use `agentpack export` | Manual fallback |
|
|
14
14
|
|
|
15
15
|
Coding-agent clients use the same `agentpack mcp` server. The difference is where each client expects instructions and MCP configuration to live. Web chats are fallback targets for pasted markdown handoffs; they are not the primary v0 integration surface.
|
|
@@ -33,6 +33,8 @@ If a snippet is missing, run the matching `agentpack install <target> --write`.
|
|
|
33
33
|
|
|
34
34
|
## Safe Install Flow
|
|
35
35
|
|
|
36
|
+
Run `agentpack init` once per repo to create `.agentpack/` and local ignore rules. Then install the client integrations you actually want to use in that repo. Each `agentpack install <target> --write` command configures one client surface; it does not replace `init`, and installing one client does not create files for the others.
|
|
37
|
+
|
|
36
38
|
Preview first:
|
|
37
39
|
|
|
38
40
|
```bash
|
|
@@ -117,13 +119,13 @@ This writes:
|
|
|
117
119
|
- `.agentpack/instructions/claude-desktop.md`
|
|
118
120
|
- `.agentpack/instructions/claude-desktop-mcp.example.json`
|
|
119
121
|
|
|
120
|
-
Claude Desktop does not read this repo's `.mcp.json` or `CLAUDE.md`. To enable Agentpack manually in Claude Desktop on macOS, review `.agentpack/instructions/claude-desktop-mcp.example.json` and merge the
|
|
122
|
+
Claude Desktop does not read this repo's `.mcp.json` or `CLAUDE.md`. To enable Agentpack manually in Claude Desktop on macOS, review `.agentpack/instructions/claude-desktop-mcp.example.json` and merge the generated Agentpack server entry into:
|
|
121
123
|
|
|
122
124
|
```text
|
|
123
125
|
~/Library/Application Support/Claude/claude_desktop_config.json
|
|
124
126
|
```
|
|
125
127
|
|
|
126
|
-
Do not copy the generated snippet over the Desktop config file. That can delete existing Claude Desktop MCP servers. Merge only the `mcpServers
|
|
128
|
+
Do not copy the generated snippet over the Desktop config file. That can delete existing Claude Desktop MCP servers. Merge only the generated `mcpServers.<server-name>` entry.
|
|
127
129
|
|
|
128
130
|
Safe manual flow:
|
|
129
131
|
|
|
@@ -138,17 +140,17 @@ If the config file does not exist yet, create it with the generated snippet cont
|
|
|
138
140
|
|
|
139
141
|
```json
|
|
140
142
|
"agentpack-example-app": {
|
|
141
|
-
"command": "
|
|
142
|
-
"args": ["mcp", "--root", "/absolute/path/to/your/project"],
|
|
143
|
+
"command": "/absolute/path/to/node",
|
|
144
|
+
"args": ["/absolute/path/to/agentpack.js", "mcp", "--root", "/absolute/path/to/your/project"],
|
|
143
145
|
"env": {
|
|
144
146
|
"AGENTPACK_ROOT": "/absolute/path/to/your/project"
|
|
145
147
|
}
|
|
146
148
|
}
|
|
147
149
|
```
|
|
148
150
|
|
|
149
|
-
Then restart Claude Desktop.
|
|
151
|
+
Then restart Claude Desktop. The generated snippet launches Agentpack through the current Node executable and Agentpack entrypoint, rather than relying on `agentpack` being available in Claude Desktop's GUI `PATH`. If Claude Desktop reports that the MCP server disconnected or cannot start, rerun `agentpack install claude-desktop --write`, merge the refreshed snippet, then restart Claude Desktop. Keep both the `--root` argument and the `AGENTPACK_ROOT` env value pointed at the project whose `.agentpack/` state you want Claude Desktop to use.
|
|
150
152
|
|
|
151
|
-
Claude Desktop has no project-local repo config. If you switch Claude Desktop from one repo to another, update both
|
|
153
|
+
Claude Desktop has no project-local repo config. If it lists several Agentpack servers, use the repo-specific server key from the generated snippet for the repo you are working in. If you switch one Claude Desktop server from one repo to another, update both that server's `--root` value and `AGENTPACK_ROOT`, then restart Claude Desktop.
|
|
152
154
|
|
|
153
155
|
One Claude Desktop server entry points to one Agentpack repo at a time. To expose multiple repos at once, add multiple `mcpServers` entries with different names and different `AGENTPACK_ROOT` values, but expect duplicated Agentpack tool names in the client UI.
|
|
154
156
|
|
|
@@ -169,6 +171,23 @@ This writes:
|
|
|
169
171
|
- `.agentpack/instructions/cursor.md`
|
|
170
172
|
|
|
171
173
|
The Cursor MCP config uses `${workspaceFolder}` so it can point Agentpack at the current project root without hard-coding your local filesystem path.
|
|
174
|
+
The generated MCP entry launches Agentpack through the current Node executable and Agentpack entrypoint, rather than relying on `agentpack` being available in Cursor's GUI `PATH`.
|
|
175
|
+
|
|
176
|
+
After writing the config, open this folder as the Cursor workspace and reload the Cursor window so project MCP is re-read. Then open Cursor's MCP Servers menu and enable `agentpack` if it appears toggled off. Cursor empty-window sessions do not load project `.cursor/mcp.json`.
|
|
177
|
+
|
|
178
|
+
If Agentpack tools still do not appear in Cursor, run:
|
|
179
|
+
|
|
180
|
+
```bash
|
|
181
|
+
agentpack doctor
|
|
182
|
+
```
|
|
183
|
+
|
|
184
|
+
Look for the `Cursor MCP` check. If Cursor still does not expose Agentpack tools, use the CLI equivalents while debugging Cursor's MCP connection:
|
|
185
|
+
|
|
186
|
+
```bash
|
|
187
|
+
agentpack resume --preset agent
|
|
188
|
+
agentpack source status
|
|
189
|
+
agentpack checkpoint -m "<summary>" --status "<status>" --next "<next action>"
|
|
190
|
+
```
|
|
172
191
|
|
|
173
192
|
Official reference: [Cursor MCP docs](https://docs.cursor.com/context/model-context-protocol).
|
|
174
193
|
|
package/docs/MVP.md
CHANGED
|
@@ -6,10 +6,13 @@ Agentpack helps coding agents continue repo work without rediscovering context,
|
|
|
6
6
|
|
|
7
7
|
The project is local-first and open-source by default. Optional hosted sync can come later, but the core value must work fully on a developer machine.
|
|
8
8
|
|
|
9
|
+
Agentpack is a task-state ledger, not an automatic memory engine. Humans can record and export state manually through the CLI; MCP-connected coding agents can follow generated project instructions and call the same tools while they work.
|
|
10
|
+
|
|
9
11
|
## Non-goals
|
|
10
12
|
|
|
11
13
|
- Do not store full chat transcripts by default.
|
|
12
14
|
- Do not pretend to access hidden agent memory.
|
|
15
|
+
- Do not auto-capture every tool call or agent action in v0.
|
|
13
16
|
- Do not upload code or task state anywhere.
|
|
14
17
|
- Do not require embeddings or hosted LLM calls in v0.
|
|
15
18
|
- Do not implement deterministic environment replay in v0.
|
package/docs/ROADMAP.md
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
Agentpack is a local task-state layer for AI coding agents. It captures useful working context that usually gets lost in long sessions, restarts, and compaction: decisions, dead ends, inspected sources, evidence, checkpoints, and budgeted resumes.
|
|
6
6
|
|
|
7
|
-
Agentpack is not an orchestrator. It is the portable context ledger for humans, single agents, and agent teams working on a repo.
|
|
7
|
+
Agentpack is not an orchestrator or a broad automatic memory engine. It is the portable context ledger for humans, single agents, and agent teams working on a repo.
|
|
8
8
|
|
|
9
9
|
## Product Principles
|
|
10
10
|
|
|
@@ -18,6 +18,7 @@ Agentpack is not an orchestrator. It is the portable context ledger for humans,
|
|
|
18
18
|
- Prefer simple file formats over hidden databases until the need is obvious.
|
|
19
19
|
- Avoid framework lock-in; integrate through CLI, files, MCP, and project instructions.
|
|
20
20
|
- Install Agentpack once, initialize it per repo, and keep chats/sessions out of the core model.
|
|
21
|
+
- Prefer reviewed task state over automatic full-session capture.
|
|
21
22
|
|
|
22
23
|
## State Model
|
|
23
24
|
|
|
@@ -118,9 +119,11 @@ Demo story:
|
|
|
118
119
|
- Security model documented.
|
|
119
120
|
- npm publish as `agentpack-cli`.
|
|
120
121
|
- Good demo and examples.
|
|
122
|
+
- Public MCP-directory listing after the next polished release, for example FindMCP, mcp-list.com, MCPKit, MCP Server Directory, or similar current directories.
|
|
121
123
|
|
|
122
124
|
## Later
|
|
123
125
|
|
|
126
|
+
- Backup/export/import bundles for moving local task state between workspaces or fresh clones without committing live `.agentpack/` state.
|
|
124
127
|
- Shareable bundles.
|
|
125
128
|
- Optional imports from markdown handoffs.
|
|
126
129
|
- Orchestrator adapters.
|