@fingerskier/augment 0.5.0 → 0.5.1
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/LICENSE +201 -201
- package/README.md +494 -467
- package/dist/cli.js +5 -4
- package/dist/cli.js.map +1 -1
- package/dist/daemon/lifetime-lock.js +12 -12
- package/dist/db.js +107 -107
- package/dist/hooks.d.ts +8 -5
- package/dist/hooks.js +49 -20
- package/dist/hooks.js.map +1 -1
- package/dist/install.d.ts +14 -2
- package/dist/install.js +189 -1
- package/dist/install.js.map +1 -1
- package/dist/mcp/apps.js +480 -480
- package/dist/pi/extension.js +20 -20
- package/docs/FEATURES.md +771 -758
- package/docs/verify-memory-flow.md +132 -132
- package/integrations/claude/skills/augment-context/SKILL.md +74 -74
- package/integrations/claude/skills/augment-decoction/SKILL.md +36 -36
- package/integrations/claude/skills/augment-dream/SKILL.md +34 -34
- package/integrations/claude/skills/augment-dream/agents/openai.yaml +4 -4
- package/integrations/claude/skills/augment-sleep/SKILL.md +26 -26
- package/integrations/codex/SKILL.md +107 -107
- package/integrations/examples/claude-mcp-config.json +17 -17
- package/integrations/examples/codex-mcp-config.json +17 -17
- package/integrations/examples/grok-mcp-config.toml +18 -0
- package/integrations/grok/AGENTS.md +61 -0
- package/integrations/pi/skills/augment-decoction/SKILL.md +37 -37
- package/integrations/pi/skills/augment-dream/SKILL.md +36 -36
- package/package.json +85 -85
|
@@ -1,107 +1,107 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: augment-context
|
|
3
|
-
description: Use Augment MCP memories to gather and persist project context during coding sessions.
|
|
4
|
-
---
|
|
5
|
-
|
|
6
|
-
# Augment Context
|
|
7
|
-
|
|
8
|
-
Use this skill when working in a repository with the Augment MCP server available.
|
|
9
|
-
|
|
10
|
-
## Session Start
|
|
11
|
-
|
|
12
|
-
1. Call `init_project`.
|
|
13
|
-
2. Call `search` with the user's task summary.
|
|
14
|
-
3. Read exact memories when search results identify likely governing context.
|
|
15
|
-
|
|
16
|
-
## Memory Insights
|
|
17
|
-
|
|
18
|
-
When the user asks for memory insights, stats, health, or an overview of what
|
|
19
|
-
Augment knows, call `memory_insights` (and `memory_graph` when they want to see
|
|
20
|
-
how memories connect). In hosts that support MCP Apps these render interactive
|
|
21
|
-
dashboard snippets; elsewhere they return a text summary — either way, relay the
|
|
22
|
-
findings rather than re-deriving them from raw memories.
|
|
23
|
-
|
|
24
|
-
## Before Code Changes
|
|
25
|
-
|
|
26
|
-
1. Search for the file, component, command, error, or behavior being touched.
|
|
27
|
-
2. If the work depends on a prior decision, read and follow the relevant `SPEC`
|
|
28
|
-
or `ARCH` memory.
|
|
29
|
-
3. If no relevant memory exists but the task creates a durable requirement or
|
|
30
|
-
decision, create one before implementation.
|
|
31
|
-
|
|
32
|
-
## Memory Triggers
|
|
33
|
-
|
|
34
|
-
Call `upsert` whenever one of these durable events happens:
|
|
35
|
-
|
|
36
|
-
- A requirement, API contract, data model, or tool contract is clarified:
|
|
37
|
-
use `SPEC`.
|
|
38
|
-
- An implementation approach, tradeoff, transport choice, persistence model, or
|
|
39
|
-
architecture decision is made: use `ARCH`.
|
|
40
|
-
- A bug, risk, failing behavior, or blocker is discovered: use `ISSUE`.
|
|
41
|
-
- Follow-up work is intentionally deferred: use `TODO`.
|
|
42
|
-
- A meaningful implementation milestone is completed: use `WORK`.
|
|
43
|
-
- A test scenario, regression case, or verification rule is learned: use `SPEC`
|
|
44
|
-
or `WORK`, whichever is more durable.
|
|
45
|
-
|
|
46
|
-
## Links
|
|
47
|
-
|
|
48
|
-
After creating or updating a memory:
|
|
49
|
-
|
|
50
|
-
1. Use `link` when a memory implements, depends on, blocks, parents, or relates
|
|
51
|
-
to another memory.
|
|
52
|
-
2. Prefer linking new `WORK` notes to the `SPEC`, `ARCH`, `ISSUE`, or `TODO`
|
|
53
|
-
they address.
|
|
54
|
-
|
|
55
|
-
## Decoction
|
|
56
|
-
|
|
57
|
-
When the user asks to decoct, glean, or generalize cross-project memory:
|
|
58
|
-
|
|
59
|
-
1. Call `decoction_glean` with `action: "discover"`, then read every source in
|
|
60
|
-
the selected cluster.
|
|
61
|
-
2. Draft one reusable SPEC or ARCH under `.generic/`, keeping only claims
|
|
62
|
-
supported across the projects and listing every source in `derived_from`.
|
|
63
|
-
3. Suggest removal only for originals whose entire durable content the generic
|
|
64
|
-
preserves. Call `decoction_glean` with `action: "write"`; report advisory
|
|
65
|
-
warnings without treating them as write failures. When updating an existing
|
|
66
|
-
generic, read it fresh and pass both expected hashes.
|
|
67
|
-
4. Show the exact suggested paths and reasons. Call `decoction_cleanup` only
|
|
68
|
-
after explicit approval of those paths; the hard deletes have no rollback.
|
|
69
|
-
|
|
70
|
-
Decoction is separate from sleep: sleep consolidates settled work inside one
|
|
71
|
-
project, while decoction extracts reusable knowledge across projects.
|
|
72
|
-
|
|
73
|
-
## Dreaming
|
|
74
|
-
|
|
75
|
-
When the user asks to dream over memory or surface speculative connections:
|
|
76
|
-
|
|
77
|
-
1. Search globally with the current project context, then read the relevant
|
|
78
|
-
current, generic, and foreign memories.
|
|
79
|
-
2. Call `dream_propose` for each candidate memory or link. Dream memories land
|
|
80
|
-
in the current real project (`.generic` is never active); dream links start
|
|
81
|
-
there but may target another project. State what evidence inspired the idea
|
|
82
|
-
and what remains unverified.
|
|
83
|
-
3. Present each editable proposal. Call `dream_apply` only after explicit user
|
|
84
|
-
approval; otherwise call `dream_reject`.
|
|
85
|
-
|
|
86
|
-
Never present a dream as established fact.
|
|
87
|
-
|
|
88
|
-
## Session Finish
|
|
89
|
-
|
|
90
|
-
For almost every session that did real work (skip only pure Q&A, read-only
|
|
91
|
-
inspection, or trivial mechanical ops like 'commit & push'):
|
|
92
|
-
|
|
93
|
-
1. Upsert a concise `WORK` memory with what changed, key files, and verification.
|
|
94
|
-
2. Upsert or update `TODO` memories for known remaining work.
|
|
95
|
-
3. Link the final `WORK` memory to the relevant planning/decision memories.
|
|
96
|
-
|
|
97
|
-
## Guardrails
|
|
98
|
-
|
|
99
|
-
- Do not store secrets, credentials, tokens, or private keys.
|
|
100
|
-
- Do not store huge logs, dependency dumps, generated files, or full source files.
|
|
101
|
-
- Keep each memory focused; split large notes before calling `upsert`.
|
|
102
|
-
- Treat numeric memory IDs as local handles. Relative paths are the durable identity.
|
|
103
|
-
- Use returned search text directly as context; do not ask Augment to summarize.
|
|
104
|
-
- Default to upserting when a turn did real work; only skip pure Q&A, read-only
|
|
105
|
-
inspection, or trivial mechanical ops. When unsure, upsert.
|
|
106
|
-
- Do not create memories for facts already obvious from the current diff, or that
|
|
107
|
-
duplicate an existing memory (update that one instead).
|
|
1
|
+
---
|
|
2
|
+
name: augment-context
|
|
3
|
+
description: Use Augment MCP memories to gather and persist project context during coding sessions.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Augment Context
|
|
7
|
+
|
|
8
|
+
Use this skill when working in a repository with the Augment MCP server available.
|
|
9
|
+
|
|
10
|
+
## Session Start
|
|
11
|
+
|
|
12
|
+
1. Call `init_project`.
|
|
13
|
+
2. Call `search` with the user's task summary.
|
|
14
|
+
3. Read exact memories when search results identify likely governing context.
|
|
15
|
+
|
|
16
|
+
## Memory Insights
|
|
17
|
+
|
|
18
|
+
When the user asks for memory insights, stats, health, or an overview of what
|
|
19
|
+
Augment knows, call `memory_insights` (and `memory_graph` when they want to see
|
|
20
|
+
how memories connect). In hosts that support MCP Apps these render interactive
|
|
21
|
+
dashboard snippets; elsewhere they return a text summary — either way, relay the
|
|
22
|
+
findings rather than re-deriving them from raw memories.
|
|
23
|
+
|
|
24
|
+
## Before Code Changes
|
|
25
|
+
|
|
26
|
+
1. Search for the file, component, command, error, or behavior being touched.
|
|
27
|
+
2. If the work depends on a prior decision, read and follow the relevant `SPEC`
|
|
28
|
+
or `ARCH` memory.
|
|
29
|
+
3. If no relevant memory exists but the task creates a durable requirement or
|
|
30
|
+
decision, create one before implementation.
|
|
31
|
+
|
|
32
|
+
## Memory Triggers
|
|
33
|
+
|
|
34
|
+
Call `upsert` whenever one of these durable events happens:
|
|
35
|
+
|
|
36
|
+
- A requirement, API contract, data model, or tool contract is clarified:
|
|
37
|
+
use `SPEC`.
|
|
38
|
+
- An implementation approach, tradeoff, transport choice, persistence model, or
|
|
39
|
+
architecture decision is made: use `ARCH`.
|
|
40
|
+
- A bug, risk, failing behavior, or blocker is discovered: use `ISSUE`.
|
|
41
|
+
- Follow-up work is intentionally deferred: use `TODO`.
|
|
42
|
+
- A meaningful implementation milestone is completed: use `WORK`.
|
|
43
|
+
- A test scenario, regression case, or verification rule is learned: use `SPEC`
|
|
44
|
+
or `WORK`, whichever is more durable.
|
|
45
|
+
|
|
46
|
+
## Links
|
|
47
|
+
|
|
48
|
+
After creating or updating a memory:
|
|
49
|
+
|
|
50
|
+
1. Use `link` when a memory implements, depends on, blocks, parents, or relates
|
|
51
|
+
to another memory.
|
|
52
|
+
2. Prefer linking new `WORK` notes to the `SPEC`, `ARCH`, `ISSUE`, or `TODO`
|
|
53
|
+
they address.
|
|
54
|
+
|
|
55
|
+
## Decoction
|
|
56
|
+
|
|
57
|
+
When the user asks to decoct, glean, or generalize cross-project memory:
|
|
58
|
+
|
|
59
|
+
1. Call `decoction_glean` with `action: "discover"`, then read every source in
|
|
60
|
+
the selected cluster.
|
|
61
|
+
2. Draft one reusable SPEC or ARCH under `.generic/`, keeping only claims
|
|
62
|
+
supported across the projects and listing every source in `derived_from`.
|
|
63
|
+
3. Suggest removal only for originals whose entire durable content the generic
|
|
64
|
+
preserves. Call `decoction_glean` with `action: "write"`; report advisory
|
|
65
|
+
warnings without treating them as write failures. When updating an existing
|
|
66
|
+
generic, read it fresh and pass both expected hashes.
|
|
67
|
+
4. Show the exact suggested paths and reasons. Call `decoction_cleanup` only
|
|
68
|
+
after explicit approval of those paths; the hard deletes have no rollback.
|
|
69
|
+
|
|
70
|
+
Decoction is separate from sleep: sleep consolidates settled work inside one
|
|
71
|
+
project, while decoction extracts reusable knowledge across projects.
|
|
72
|
+
|
|
73
|
+
## Dreaming
|
|
74
|
+
|
|
75
|
+
When the user asks to dream over memory or surface speculative connections:
|
|
76
|
+
|
|
77
|
+
1. Search globally with the current project context, then read the relevant
|
|
78
|
+
current, generic, and foreign memories.
|
|
79
|
+
2. Call `dream_propose` for each candidate memory or link. Dream memories land
|
|
80
|
+
in the current real project (`.generic` is never active); dream links start
|
|
81
|
+
there but may target another project. State what evidence inspired the idea
|
|
82
|
+
and what remains unverified.
|
|
83
|
+
3. Present each editable proposal. Call `dream_apply` only after explicit user
|
|
84
|
+
approval; otherwise call `dream_reject`.
|
|
85
|
+
|
|
86
|
+
Never present a dream as established fact.
|
|
87
|
+
|
|
88
|
+
## Session Finish
|
|
89
|
+
|
|
90
|
+
For almost every session that did real work (skip only pure Q&A, read-only
|
|
91
|
+
inspection, or trivial mechanical ops like 'commit & push'):
|
|
92
|
+
|
|
93
|
+
1. Upsert a concise `WORK` memory with what changed, key files, and verification.
|
|
94
|
+
2. Upsert or update `TODO` memories for known remaining work.
|
|
95
|
+
3. Link the final `WORK` memory to the relevant planning/decision memories.
|
|
96
|
+
|
|
97
|
+
## Guardrails
|
|
98
|
+
|
|
99
|
+
- Do not store secrets, credentials, tokens, or private keys.
|
|
100
|
+
- Do not store huge logs, dependency dumps, generated files, or full source files.
|
|
101
|
+
- Keep each memory focused; split large notes before calling `upsert`.
|
|
102
|
+
- Treat numeric memory IDs as local handles. Relative paths are the durable identity.
|
|
103
|
+
- Use returned search text directly as context; do not ask Augment to summarize.
|
|
104
|
+
- Default to upserting when a turn did real work; only skip pure Q&A, read-only
|
|
105
|
+
inspection, or trivial mechanical ops. When unsure, upsert.
|
|
106
|
+
- Do not create memories for facts already obvious from the current diff, or that
|
|
107
|
+
duplicate an existing memory (update that one instead).
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
{
|
|
2
|
-
"mcpServers": {
|
|
3
|
-
"augment": {
|
|
4
|
-
"command": "npm",
|
|
5
|
-
"args": [
|
|
6
|
-
"exec",
|
|
7
|
-
"--prefix",
|
|
8
|
-
"C:\\Users\\you\\.augment\\npm-exec",
|
|
9
|
-
"--",
|
|
10
|
-
"augment-mcp"
|
|
11
|
-
],
|
|
12
|
-
"env": {
|
|
13
|
-
"AUGMENT_MEMORY_ROOT": "C:\\Users\\you\\Dropbox\\augment-memories"
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"mcpServers": {
|
|
3
|
+
"augment": {
|
|
4
|
+
"command": "npm",
|
|
5
|
+
"args": [
|
|
6
|
+
"exec",
|
|
7
|
+
"--prefix",
|
|
8
|
+
"C:\\Users\\you\\.augment\\npm-exec",
|
|
9
|
+
"--",
|
|
10
|
+
"augment-mcp"
|
|
11
|
+
],
|
|
12
|
+
"env": {
|
|
13
|
+
"AUGMENT_MEMORY_ROOT": "C:\\Users\\you\\Dropbox\\augment-memories"
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
}
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
{
|
|
2
|
-
"mcpServers": {
|
|
3
|
-
"augment": {
|
|
4
|
-
"command": "npm",
|
|
5
|
-
"args": [
|
|
6
|
-
"exec",
|
|
7
|
-
"--prefix",
|
|
8
|
-
"C:\\Users\\you\\.augment\\npm-exec",
|
|
9
|
-
"--",
|
|
10
|
-
"augment-mcp"
|
|
11
|
-
],
|
|
12
|
-
"env": {
|
|
13
|
-
"AUGMENT_MEMORY_ROOT": "C:\\Users\\you\\Dropbox\\augment-memories"
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"mcpServers": {
|
|
3
|
+
"augment": {
|
|
4
|
+
"command": "npm",
|
|
5
|
+
"args": [
|
|
6
|
+
"exec",
|
|
7
|
+
"--prefix",
|
|
8
|
+
"C:\\Users\\you\\.augment\\npm-exec",
|
|
9
|
+
"--",
|
|
10
|
+
"augment-mcp"
|
|
11
|
+
],
|
|
12
|
+
"env": {
|
|
13
|
+
"AUGMENT_MEMORY_ROOT": "C:\\Users\\you\\Dropbox\\augment-memories"
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
# Example Grok Build MCP config fragment.
|
|
2
|
+
# Paste into ~/.grok/config.toml (user) or .grok/config.toml (project),
|
|
3
|
+
# or run: npx -y @fingerskier/augment install grok --scope user --memory-root "..."
|
|
4
|
+
|
|
5
|
+
[mcp_servers.augment]
|
|
6
|
+
command = "npm"
|
|
7
|
+
args = [
|
|
8
|
+
"exec",
|
|
9
|
+
"--prefix",
|
|
10
|
+
"C:\\Users\\you\\.augment\\npm-exec",
|
|
11
|
+
"--",
|
|
12
|
+
"augment-mcp",
|
|
13
|
+
]
|
|
14
|
+
enabled = true
|
|
15
|
+
startup_timeout_sec = 60
|
|
16
|
+
|
|
17
|
+
[mcp_servers.augment.env]
|
|
18
|
+
AUGMENT_MEMORY_ROOT = "C:\\Users\\you\\Dropbox\\augment-memories"
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
# Augment Memory Workflow
|
|
2
|
+
|
|
3
|
+
When the Augment MCP server is configured, use it as the local project memory.
|
|
4
|
+
|
|
5
|
+
## Session Start
|
|
6
|
+
|
|
7
|
+
1. Call `init_project` (via the `augment` MCP tools).
|
|
8
|
+
2. Call `search` with the user's task summary.
|
|
9
|
+
3. Read exact memories when search results identify likely governing context.
|
|
10
|
+
|
|
11
|
+
## Before Code Changes
|
|
12
|
+
|
|
13
|
+
1. Search for the file, component, command, error, or behavior being touched.
|
|
14
|
+
2. If the work depends on a prior decision, read and follow the relevant `SPEC`
|
|
15
|
+
or `ARCH` memory.
|
|
16
|
+
3. If no relevant memory exists but the task creates a durable requirement or
|
|
17
|
+
decision, create one before implementation.
|
|
18
|
+
|
|
19
|
+
## Memory Triggers
|
|
20
|
+
|
|
21
|
+
Call `upsert` whenever one of these durable events happens:
|
|
22
|
+
|
|
23
|
+
- A requirement, API contract, data model, or tool contract is clarified:
|
|
24
|
+
use `SPEC`.
|
|
25
|
+
- An implementation approach, tradeoff, transport choice, persistence model, or
|
|
26
|
+
architecture decision is made: use `ARCH`.
|
|
27
|
+
- A bug, risk, failing behavior, or blocker is discovered: use `ISSUE`.
|
|
28
|
+
- Follow-up work is intentionally deferred: use `TODO`.
|
|
29
|
+
- A meaningful implementation milestone is completed: use `WORK`.
|
|
30
|
+
- A test scenario, regression case, or verification rule is learned: use `SPEC`
|
|
31
|
+
or `WORK`, whichever is more durable.
|
|
32
|
+
|
|
33
|
+
## Links
|
|
34
|
+
|
|
35
|
+
After creating or updating a memory:
|
|
36
|
+
|
|
37
|
+
1. Use `link` when a memory implements, depends on, blocks, parents, or relates
|
|
38
|
+
to another memory.
|
|
39
|
+
2. Prefer linking new `WORK` notes to the `SPEC`, `ARCH`, `ISSUE`, or `TODO`
|
|
40
|
+
they address.
|
|
41
|
+
|
|
42
|
+
## Session Finish
|
|
43
|
+
|
|
44
|
+
For almost every session that did real work (skip only pure Q&A, read-only
|
|
45
|
+
inspection, or trivial mechanical ops like 'commit & push'):
|
|
46
|
+
|
|
47
|
+
1. Upsert a concise `WORK` memory with what changed, key files, and verification.
|
|
48
|
+
2. Upsert or update `TODO` memories for known remaining work.
|
|
49
|
+
3. Link the final `WORK` memory to the relevant planning/decision memories.
|
|
50
|
+
|
|
51
|
+
## Guardrails
|
|
52
|
+
|
|
53
|
+
- Do not store secrets, credentials, tokens, or private keys.
|
|
54
|
+
- Do not store huge logs, dependency dumps, generated files, or full source files.
|
|
55
|
+
- Keep each memory focused; split large notes before calling `upsert`.
|
|
56
|
+
- Treat numeric memory IDs as local handles. Relative paths are the durable identity.
|
|
57
|
+
- Use returned search text directly as context; do not ask Augment to summarize.
|
|
58
|
+
- Default to upserting when a turn did real work; only skip pure Q&A, read-only
|
|
59
|
+
inspection, or trivial mechanical ops. When unsure, upsert.
|
|
60
|
+
- Do not create memories for facts already obvious from the current diff, or that
|
|
61
|
+
duplicate an existing memory (update that one instead).
|
|
@@ -1,37 +1,37 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: augment-decoction
|
|
3
|
-
description: Distill recurring cross-project Augment memory into generic SPEC/ARCH records and optionally remove fully subsumed originals from Pi. Use when the user asks to "decoct", "glean", generalize, or clean up repeated memories across projects.
|
|
4
|
-
---
|
|
5
|
-
|
|
6
|
-
# Augment Decoction for Pi
|
|
7
|
-
|
|
8
|
-
Decoction extracts durable, project-independent knowledge from recurring
|
|
9
|
-
memories. It is separate from sleep: sleep consolidates settled work within one
|
|
10
|
-
project, while decoction finds patterns across projects and writes them under
|
|
11
|
-
`.generic/`.
|
|
12
|
-
|
|
13
|
-
1. Call `augment_decoction_glean` with `action: "discover"`. If no cluster
|
|
14
|
-
spans at least four distinct projects, report that and stop.
|
|
15
|
-
2. Pick a cluster and call `augment_read_memory` for every source. Synthesize
|
|
16
|
-
one generic record:
|
|
17
|
-
- use SPEC for a reusable contract or rule;
|
|
18
|
-
- use ARCH for a reusable decision or tradeoff;
|
|
19
|
-
- retain only claims supported across the projects;
|
|
20
|
-
- put every source used in `derived_from`.
|
|
21
|
-
3. Suggest source removal only when the generic preserves the original's entire
|
|
22
|
-
durable content. Do not suggest a source that also contains project-specific
|
|
23
|
-
facts, history, caveats, or unresolved work.
|
|
24
|
-
4. Call `augment_decoction_glean` with `action: "write"`, the complete draft,
|
|
25
|
-
and the reasoned `suggested_removals`. For an existing generic, read it fresh
|
|
26
|
-
and pass both of its expected hashes.
|
|
27
|
-
5. Report the generic path and any warnings. Warnings are advisory and do not
|
|
28
|
-
block the write.
|
|
29
|
-
6. Show each suggested cleanup path and reason verbatim. Ask for explicit user
|
|
30
|
-
approval of the exact paths; never infer approval from approval of the
|
|
31
|
-
generic itself.
|
|
32
|
-
7. Only after approval, call `augment_decoction_cleanup` with the generic path
|
|
33
|
-
and the approved source paths. Report every deletion and any failure.
|
|
34
|
-
|
|
35
|
-
Cleanup hard-deletes the selected originals after retargeting inbound links to
|
|
36
|
-
the generic. It has no journal or rollback. The user may approve a subset or
|
|
37
|
-
decline cleanup entirely.
|
|
1
|
+
---
|
|
2
|
+
name: augment-decoction
|
|
3
|
+
description: Distill recurring cross-project Augment memory into generic SPEC/ARCH records and optionally remove fully subsumed originals from Pi. Use when the user asks to "decoct", "glean", generalize, or clean up repeated memories across projects.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Augment Decoction for Pi
|
|
7
|
+
|
|
8
|
+
Decoction extracts durable, project-independent knowledge from recurring
|
|
9
|
+
memories. It is separate from sleep: sleep consolidates settled work within one
|
|
10
|
+
project, while decoction finds patterns across projects and writes them under
|
|
11
|
+
`.generic/`.
|
|
12
|
+
|
|
13
|
+
1. Call `augment_decoction_glean` with `action: "discover"`. If no cluster
|
|
14
|
+
spans at least four distinct projects, report that and stop.
|
|
15
|
+
2. Pick a cluster and call `augment_read_memory` for every source. Synthesize
|
|
16
|
+
one generic record:
|
|
17
|
+
- use SPEC for a reusable contract or rule;
|
|
18
|
+
- use ARCH for a reusable decision or tradeoff;
|
|
19
|
+
- retain only claims supported across the projects;
|
|
20
|
+
- put every source used in `derived_from`.
|
|
21
|
+
3. Suggest source removal only when the generic preserves the original's entire
|
|
22
|
+
durable content. Do not suggest a source that also contains project-specific
|
|
23
|
+
facts, history, caveats, or unresolved work.
|
|
24
|
+
4. Call `augment_decoction_glean` with `action: "write"`, the complete draft,
|
|
25
|
+
and the reasoned `suggested_removals`. For an existing generic, read it fresh
|
|
26
|
+
and pass both of its expected hashes.
|
|
27
|
+
5. Report the generic path and any warnings. Warnings are advisory and do not
|
|
28
|
+
block the write.
|
|
29
|
+
6. Show each suggested cleanup path and reason verbatim. Ask for explicit user
|
|
30
|
+
approval of the exact paths; never infer approval from approval of the
|
|
31
|
+
generic itself.
|
|
32
|
+
7. Only after approval, call `augment_decoction_cleanup` with the generic path
|
|
33
|
+
and the approved source paths. Report every deletion and any failure.
|
|
34
|
+
|
|
35
|
+
Cleanup hard-deletes the selected originals after retargeting inbound links to
|
|
36
|
+
the generic. It has no journal or rollback. The user may approve a subset or
|
|
37
|
+
decline cleanup entirely.
|
|
@@ -1,36 +1,36 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: augment-dream
|
|
3
|
-
description: Explore globally recalled Augment memories and propose speculative memories or links for explicit user approval. Use when the user asks to "dream" over memory, imagine hypotheses, or surface hidden connections across the current, generic, or foreign projects.
|
|
4
|
-
---
|
|
5
|
-
|
|
6
|
-
# Augment Dream
|
|
7
|
-
|
|
8
|
-
Dreams are hypotheses, not established facts. Discover and draft freely, but
|
|
9
|
-
never mutate the corpus before the user explicitly approves a named proposal.
|
|
10
|
-
Use a real project as the active project; `.generic` is inspiration or a link
|
|
11
|
-
target only.
|
|
12
|
-
|
|
13
|
-
1. Call `augment_search` separately for each exploratory query, always passing
|
|
14
|
-
the active `project_name` and singular `query` argument. Use normal global
|
|
15
|
-
results as ranked: the current project receives its normal priority, while
|
|
16
|
-
generic and foreign memories remain eligible. Do not reserve a generic
|
|
17
|
-
quota or add a generic fallback.
|
|
18
|
-
2. Call `augment_read_memory` with each useful result's numeric memory id, and
|
|
19
|
-
retain its returned relative path for provenance. Imagine 1-5 coherent
|
|
20
|
-
candidates:
|
|
21
|
-
- dream memory: a new record in the active project, with `derived_from`
|
|
22
|
-
equal to the exact inspiration paths;
|
|
23
|
-
- dream link: a link from an active-project memory to any current, generic,
|
|
24
|
-
or foreign memory.
|
|
25
|
-
Generic-only and foreign-only inspiration are valid.
|
|
26
|
-
3. Call `augment_dream_propose` for each worthwhile candidate. State the
|
|
27
|
-
speculation plainly in the content and rationale; do not present it as
|
|
28
|
-
settled truth.
|
|
29
|
-
4. Show each proposal to the user. Only after explicit approval call
|
|
30
|
-
`augment_dream_apply` with its filename. Call `augment_dream_reject` when
|
|
31
|
-
the user rejects it. If approval is unclear, leave the proposal pending.
|
|
32
|
-
5. Report the applied speculative memory or link and its `dream:` commit.
|
|
33
|
-
|
|
34
|
-
Keep evidence and conjecture distinguishable. Do not invent supporting source
|
|
35
|
-
paths, and do not rewrite a foreign memory: foreign projects are inspiration
|
|
36
|
-
and link targets only.
|
|
1
|
+
---
|
|
2
|
+
name: augment-dream
|
|
3
|
+
description: Explore globally recalled Augment memories and propose speculative memories or links for explicit user approval. Use when the user asks to "dream" over memory, imagine hypotheses, or surface hidden connections across the current, generic, or foreign projects.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Augment Dream
|
|
7
|
+
|
|
8
|
+
Dreams are hypotheses, not established facts. Discover and draft freely, but
|
|
9
|
+
never mutate the corpus before the user explicitly approves a named proposal.
|
|
10
|
+
Use a real project as the active project; `.generic` is inspiration or a link
|
|
11
|
+
target only.
|
|
12
|
+
|
|
13
|
+
1. Call `augment_search` separately for each exploratory query, always passing
|
|
14
|
+
the active `project_name` and singular `query` argument. Use normal global
|
|
15
|
+
results as ranked: the current project receives its normal priority, while
|
|
16
|
+
generic and foreign memories remain eligible. Do not reserve a generic
|
|
17
|
+
quota or add a generic fallback.
|
|
18
|
+
2. Call `augment_read_memory` with each useful result's numeric memory id, and
|
|
19
|
+
retain its returned relative path for provenance. Imagine 1-5 coherent
|
|
20
|
+
candidates:
|
|
21
|
+
- dream memory: a new record in the active project, with `derived_from`
|
|
22
|
+
equal to the exact inspiration paths;
|
|
23
|
+
- dream link: a link from an active-project memory to any current, generic,
|
|
24
|
+
or foreign memory.
|
|
25
|
+
Generic-only and foreign-only inspiration are valid.
|
|
26
|
+
3. Call `augment_dream_propose` for each worthwhile candidate. State the
|
|
27
|
+
speculation plainly in the content and rationale; do not present it as
|
|
28
|
+
settled truth.
|
|
29
|
+
4. Show each proposal to the user. Only after explicit approval call
|
|
30
|
+
`augment_dream_apply` with its filename. Call `augment_dream_reject` when
|
|
31
|
+
the user rejects it. If approval is unclear, leave the proposal pending.
|
|
32
|
+
5. Report the applied speculative memory or link and its `dream:` commit.
|
|
33
|
+
|
|
34
|
+
Keep evidence and conjecture distinguishable. Do not invent supporting source
|
|
35
|
+
paths, and do not rewrite a foreign memory: foreign projects are inspiration
|
|
36
|
+
and link targets only.
|