liteagents 2.14.1 → 2.15.0

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 CHANGED
@@ -17,6 +17,17 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
17
17
 
18
18
  ---
19
19
 
20
+ ## [2.15.0] - 2026-07-13
21
+
22
+ ### Changed
23
+ - `/stash` delegates the write-up to a mid-tier-model subagent, dispatched in the background
24
+ where the tool supports it, instead of writing inline on the top-tier session model —
25
+ drafting stays inline (only the running session has conversation context), but formatting
26
+ and file I/O move off the main turn. Falls back to inline writing if subagent/background
27
+ dispatch isn't available.
28
+
29
+ ---
30
+
20
31
  ## [2.14.1] - 2026-07-10
21
32
 
22
33
  ### Changed
package/README.md CHANGED
@@ -80,7 +80,7 @@ Liteagents ships a two-command pipeline that turns Claude Code's session logs in
80
80
  capture analyze + consolidate
81
81
  ```
82
82
 
83
- - **`/stash`** — snapshot the current session's context before compaction or handoff; nudges you to consolidate once a few stashes pile up
83
+ - **`/stash`** — snapshot the current session's context before compaction or handoff; nudges you to consolidate once a few stashes pile up. The write-up runs on a mid-tier model, dispatched as a background subagent where your tool supports it, so the session isn't blocked on formatting/file I/O
84
84
  - **`/remember`** — runs friction analysis automatically (mining JSONL session logs across *all* your projects for frustration signals, failed flows, and abandonment patterns, clustered into antigen candidates), then consolidates stashes + friction antigens into `.claude/remember/MEMORY.md`; auto-injected into `CLAUDE.md` via `@MEMORY.md` so every future session benefits. Per-stash extraction runs as concurrent subagent calls on a mid-tier model — no model name hardcoded, so it works with whatever your tool has configured
85
85
 
86
86
  `/remember` also bootstraps a one-time `AGENT_RULES.md` coding-standards template into `.claude/remember/` on first run (never overwritten again after that), referenced separately in `CLAUDE.md` for the assistant to consult when building something new — a static guide, not something the pipeline learns or extracts.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "liteagents",
3
- "version": "2.14.1",
3
+ "version": "2.15.0",
4
4
  "description": "AI development toolkit with 11 specialized agents and 17 commands including live-canvas UI design with click-to-annotate feedback. Simple one-question installer for Claude, Opencode, Ampcode, and Droid.",
5
5
  "main": "index.js",
6
6
  "bin": {
@@ -10,14 +10,25 @@ Save session context for compaction recovery or handoffs.
10
10
  **Guardrails**
11
11
  - Favor straightforward, minimal implementations first and add complexity only when requested or clearly required.
12
12
  - Keep changes tightly scoped to the requested outcome.
13
+ - **Mid-tier model, not hardcoded.** The write-up subagent (step 2) uses a mid-tier model —
14
+ capable of semantic judgment, cheaper/faster than your top reasoning tier (e.g. Claude's
15
+ Sonnet vs Opus). Use whatever your tool designates as that balanced default; never hardcode
16
+ a vendor-specific model name.
17
+ - **Background dispatch where supported.** Run the write-up subagent in the background
18
+ (non-blocking) so the session isn't held up waiting on formatting/file I/O. Fall back to
19
+ writing inline (today's behavior) if your tool has no subagent or background-dispatch
20
+ mechanism.
13
21
 
14
22
  **What it does**
15
- 1. Captures current conversation context and key decisions
16
- 2. Records active work in progress
17
- 3. Stores important findings and insights
18
- 4. Creates stash file in `.amp/stash/`
19
- 5. Enables context restoration after compaction
20
- 6. **Consolidation nudge** after saving, count the unprocessed backlog:
23
+ 1. Drafts a compact brief of current conversation context, key decisions, active work in
24
+ progress, and findings/insights done inline, since only the running session holds full
25
+ conversation context
26
+ 2. Hands the brief to a subagent on the mid-tier model (see Guardrails) to expand into the
27
+ full stash file at `.amp/stash/<name>.md`, dispatched in the background where the tool
28
+ supports it. Falls back to writing inline if subagent/background dispatch isn't available
29
+ 3. Enables context restoration after compaction
30
+ 4. **Consolidation nudge** — whichever actor wrote the file (the subagent, or the session
31
+ itself on the inline fallback) counts the unprocessed backlog after saving:
21
32
  `unprocessed = (files in .amp/stash/*.md) − (entries in .amp/remember/.processed)`
22
33
  (a missing `.processed` manifest means 0 processed). If `unprocessed >= 5`, end with one line:
23
34
  > 📝 N stashes since last consolidation — run `/remember` to fold them into memory.
@@ -50,3 +61,5 @@ cat .amp/stash/<name>.md
50
61
  - Stashes stored in `.amp/stash/` (project-local)
51
62
  - Automatically includes: timestamp, active plan, recent decisions
52
63
  - Maximum context retention with minimal token usage
64
+ - When dispatched in the background, the "Stashed to X" confirmation and consolidation nudge
65
+ arrive as the subagent's completion notification rather than inline in the same turn
@@ -10,14 +10,25 @@ Save session context for compaction recovery or handoffs.
10
10
  **Guardrails**
11
11
  - Favor straightforward, minimal implementations first and add complexity only when requested or clearly required.
12
12
  - Keep changes tightly scoped to the requested outcome.
13
+ - **Mid-tier model, not hardcoded.** The write-up subagent (step 2) uses a mid-tier model —
14
+ capable of semantic judgment, cheaper/faster than your top reasoning tier (e.g. Claude's
15
+ Sonnet vs Opus). Use whatever your tool designates as that balanced default; never hardcode
16
+ a vendor-specific model name.
17
+ - **Background dispatch where supported.** Run the write-up subagent in the background
18
+ (non-blocking) so the session isn't held up waiting on formatting/file I/O. Fall back to
19
+ writing inline (today's behavior) if your tool has no subagent or background-dispatch
20
+ mechanism.
13
21
 
14
22
  **What it does**
15
- 1. Captures current conversation context and key decisions
16
- 2. Records active work in progress
17
- 3. Stores important findings and insights
18
- 4. Creates stash file in `.claude/stash/`
19
- 5. Enables context restoration after compaction
20
- 6. **Consolidation nudge** after saving, count the unprocessed backlog:
23
+ 1. Drafts a compact brief of current conversation context, key decisions, active work in
24
+ progress, and findings/insights done inline, since only the running session holds full
25
+ conversation context
26
+ 2. Hands the brief to a subagent on the mid-tier model (see Guardrails) to expand into the
27
+ full stash file at `.claude/stash/<name>.md`, dispatched in the background where the tool
28
+ supports it. Falls back to writing inline if subagent/background dispatch isn't available
29
+ 3. Enables context restoration after compaction
30
+ 4. **Consolidation nudge** — whichever actor wrote the file (the subagent, or the session
31
+ itself on the inline fallback) counts the unprocessed backlog after saving:
21
32
  `unprocessed = (files in .claude/stash/*.md) − (entries in .claude/remember/.processed)`
22
33
  (a missing `.processed` manifest means 0 processed). If `unprocessed >= 5`, end with one line:
23
34
  > 📝 N stashes since last consolidation — run `/remember` to fold them into memory.
@@ -50,3 +61,5 @@ cat .claude/stash/<name>.md
50
61
  - Stashes stored in `.claude/stash/` (project-local)
51
62
  - Automatically includes: timestamp, active plan, recent decisions
52
63
  - Maximum context retention with minimal token usage
64
+ - When dispatched in the background, the "Stashed to X" confirmation and consolidation nudge
65
+ arrive as the subagent's completion notification rather than inline in the same turn
@@ -10,14 +10,25 @@ Save session context for compaction recovery or handoffs.
10
10
  **Guardrails**
11
11
  - Favor straightforward, minimal implementations first and add complexity only when requested or clearly required.
12
12
  - Keep changes tightly scoped to the requested outcome.
13
+ - **Mid-tier model, not hardcoded.** The write-up subagent (step 2) uses a mid-tier model —
14
+ capable of semantic judgment, cheaper/faster than your top reasoning tier (e.g. Claude's
15
+ Sonnet vs Opus). Use whatever your tool designates as that balanced default; never hardcode
16
+ a vendor-specific model name.
17
+ - **Background dispatch where supported.** Run the write-up subagent in the background
18
+ (non-blocking) so the session isn't held up waiting on formatting/file I/O. Fall back to
19
+ writing inline (today's behavior) if your tool has no subagent or background-dispatch
20
+ mechanism.
13
21
 
14
22
  **What it does**
15
- 1. Captures current conversation context and key decisions
16
- 2. Records active work in progress
17
- 3. Stores important findings and insights
18
- 4. Creates stash file in `.factory/stash/`
19
- 5. Enables context restoration after compaction
20
- 6. **Consolidation nudge** after saving, count the unprocessed backlog:
23
+ 1. Drafts a compact brief of current conversation context, key decisions, active work in
24
+ progress, and findings/insights done inline, since only the running session holds full
25
+ conversation context
26
+ 2. Hands the brief to a subagent on the mid-tier model (see Guardrails) to expand into the
27
+ full stash file at `.factory/stash/<name>.md`, dispatched in the background where the tool
28
+ supports it. Falls back to writing inline if subagent/background dispatch isn't available
29
+ 3. Enables context restoration after compaction
30
+ 4. **Consolidation nudge** — whichever actor wrote the file (the subagent, or the session
31
+ itself on the inline fallback) counts the unprocessed backlog after saving:
21
32
  `unprocessed = (files in .factory/stash/*.md) − (entries in .factory/remember/.processed)`
22
33
  (a missing `.processed` manifest means 0 processed). If `unprocessed >= 5`, end with one line:
23
34
  > 📝 N stashes since last consolidation — run `/remember` to fold them into memory.
@@ -50,3 +61,5 @@ cat .factory/stash/<name>.md
50
61
  - Stashes stored in `.factory/stash/` (project-local)
51
62
  - Automatically includes: timestamp, active plan, recent decisions
52
63
  - Maximum context retention with minimal token usage
64
+ - When dispatched in the background, the "Stashed to X" confirmation and consolidation nudge
65
+ arrive as the subagent's completion notification rather than inline in the same turn
@@ -10,14 +10,25 @@ Save session context for compaction recovery or handoffs.
10
10
  **Guardrails**
11
11
  - Favor straightforward, minimal implementations first and add complexity only when requested or clearly required.
12
12
  - Keep changes tightly scoped to the requested outcome.
13
+ - **Mid-tier model, not hardcoded.** The write-up subagent (step 2) uses a mid-tier model —
14
+ capable of semantic judgment, cheaper/faster than your top reasoning tier (e.g. Claude's
15
+ Sonnet vs Opus). Use whatever your tool designates as that balanced default; never hardcode
16
+ a vendor-specific model name.
17
+ - **Background dispatch where supported.** Run the write-up subagent in the background
18
+ (non-blocking) so the session isn't held up waiting on formatting/file I/O. Fall back to
19
+ writing inline (today's behavior) if your tool has no subagent or background-dispatch
20
+ mechanism.
13
21
 
14
22
  **What it does**
15
- 1. Captures current conversation context and key decisions
16
- 2. Records active work in progress
17
- 3. Stores important findings and insights
18
- 4. Creates stash file in `.opencode/stash/`
19
- 5. Enables context restoration after compaction
20
- 6. **Consolidation nudge** after saving, count the unprocessed backlog:
23
+ 1. Drafts a compact brief of current conversation context, key decisions, active work in
24
+ progress, and findings/insights done inline, since only the running session holds full
25
+ conversation context
26
+ 2. Hands the brief to a subagent on the mid-tier model (see Guardrails) to expand into the
27
+ full stash file at `.opencode/stash/<name>.md`, dispatched in the background where the tool
28
+ supports it. Falls back to writing inline if subagent/background dispatch isn't available
29
+ 3. Enables context restoration after compaction
30
+ 4. **Consolidation nudge** — whichever actor wrote the file (the subagent, or the session
31
+ itself on the inline fallback) counts the unprocessed backlog after saving:
21
32
  `unprocessed = (files in .opencode/stash/*.md) − (entries in .opencode/remember/.processed)`
22
33
  (a missing `.processed` manifest means 0 processed). If `unprocessed >= 5`, end with one line:
23
34
  > 📝 N stashes since last consolidation — run `/remember` to fold them into memory.
@@ -50,3 +61,5 @@ cat .opencode/stash/<name>.md
50
61
  - Stashes stored in `.opencode/stash/` (project-local)
51
62
  - Automatically includes: timestamp, active plan, recent decisions
52
63
  - Maximum context retention with minimal token usage
64
+ - When dispatched in the background, the "Stashed to X" confirmation and consolidation nudge
65
+ arrive as the subagent's completion notification rather than inline in the same turn
@@ -156,7 +156,10 @@ and wiring the memory into your agent config file.
156
156
  ```
157
157
 
158
158
  1. **`/stash`** - Snapshot current session context to the tool's `…/stash/`. Use before
159
- compaction, handoffs, or ending complex work. After saving it counts the unprocessed backlog
159
+ compaction, handoffs, or ending complex work. The session drafts the raw content inline
160
+ (only it holds conversation context), then a mid-tier-model subagent expands and writes the
161
+ file — dispatched in the background where the tool supports it, falling back to writing
162
+ inline otherwise. Whichever actor wrote the file counts the unprocessed backlog
160
163
  (`stash files − .processed entries`) and, at 5+, nudges you to run `/remember`. No counter is
161
164
  stored; running `/remember` clears the backlog.
162
165
  2. **`/remember`** - Runs friction analysis first (best-effort — scores sessions across *all* your