jorgex-stack 1.9.59 → 1.9.60
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 +7 -7
- package/dist/chunk-2CBCBOP7.js +245 -0
- package/dist/{chunk-NNPFC6QV.js → chunk-4USZMJ3I.js} +6 -15
- package/dist/chunk-66WVKOU4.js +693 -0
- package/dist/chunk-B76ZJXXD.js +989 -0
- package/dist/{chunk-M6QX2F3A.js → chunk-BSHTDTJL.js} +5 -6
- package/dist/{chunk-GOLJ5PA3.js → chunk-KKN4OYHD.js} +5 -12
- package/dist/{claude-code-WY4JJAXP.js → claude-code-BBHLN5TD.js} +3 -2
- package/dist/cli.js +232 -217
- package/dist/{codex-WSWHXYJ3.js → codex-ALGP2YBC.js} +3 -2
- package/dist/official-engram-setup-4WIXM4EF.js +34 -0
- package/dist/{opencode-NUDGK6J7.js → opencode-VG2IZRRF.js} +3 -2
- package/dist/pi-CKFSPGJU.js +13 -0
- package/package.json +1 -1
- package/dist/chunk-KB5IQEKL.js +0 -1400
- package/stack/system-prompt/engram-protocol.md +0 -55
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
<!-- Sección inyectable única (PRD §7.2): el instalador la inserta con marcadores en el system prompt de cada runtime, eliminando este comentario. Es LA fuente del protocolo — no duplicar en AGENTS.md ni en plugins. -->
|
|
2
|
-
|
|
3
|
-
# Engram Memory Protocol
|
|
4
|
-
|
|
5
|
-
Engram persistent memory is ALWAYS ACTIVE. This protocol is mandatory.
|
|
6
|
-
|
|
7
|
-
## Save immediately after (do NOT wait to be asked)
|
|
8
|
-
|
|
9
|
-
Call `mem_save` right after any of these:
|
|
10
|
-
|
|
11
|
-
- bug fix completed (include root cause)
|
|
12
|
-
- architecture or design decision made
|
|
13
|
-
- non-obvious discovery, gotcha or edge case found
|
|
14
|
-
- config or environment change
|
|
15
|
-
- new pattern or convention established
|
|
16
|
-
- user preference or constraint learned
|
|
17
|
-
|
|
18
|
-
Format for `mem_save`:
|
|
19
|
-
|
|
20
|
-
- **title**: short and searchable (e.g. "Fixed N+1 in user list", "Chose Zustand over Redux")
|
|
21
|
-
- **type**: bugfix | decision | architecture | discovery | pattern | config | preference
|
|
22
|
-
- **scope**: `project` (default) | `personal`
|
|
23
|
-
- **topic_key**: stable key for evolving topics (e.g. `architecture/auth-model`, `work/{name}/{phase}`)
|
|
24
|
-
- **content**: **What** / **Why** / **Where** / **Learned** (omit Learned if none)
|
|
25
|
-
|
|
26
|
-
Topic rules:
|
|
27
|
-
|
|
28
|
-
- Same evolving topic → same `topic_key` (upsert). Different topics must NOT overwrite each other.
|
|
29
|
-
- Unsure about the key → `mem_suggest_topic_key` first, then reuse it consistently.
|
|
30
|
-
- If `mem_save` returns `judgment_required`, resolve each candidate with `mem_judge` (ask the user conversationally when confidence < 0.7 or the relation is supersedes/conflicts_with on architecture/policy/decision types).
|
|
31
|
-
|
|
32
|
-
## Search memory when
|
|
33
|
-
|
|
34
|
-
- the user asks to recall past work ("remember", "what did we do", "recordar", "qué hicimos")
|
|
35
|
-
- you are starting work that may have been done before
|
|
36
|
-
- the first user message references a project area, feature, or problem you lack context on
|
|
37
|
-
|
|
38
|
-
Order: `mem_context` (recent, cheap) → `mem_search` (FTS) → `mem_get_observation` (full content).
|
|
39
|
-
Use the `engram` subagent for non-trivial memory reads — it filters and returns only what matters, saving your context.
|
|
40
|
-
|
|
41
|
-
## Work state
|
|
42
|
-
|
|
43
|
-
Work tracking follows the `work-lifecycle` skill: `work/{name}/plan.md` (file) is the only status board. Every formal task declares one recoverable `Spec` source in that plan: an Engram observation identified by project + topic_key `work/{name}/task/{NN}` with verified identity/access (optional local ID bound in the current store; resolve per the lifecycle handoff before get), or canonical Markdown at `work/{name}/tasks/{NN}.md`; never maintain both as active copies. Memory continues to hold Engram-backed task specs, phase outcomes (`work/{name}/{phase}`), PR checkpoints (`work/{name}/pr/{NN}`), and the final outcome in `work/{name}/done` only after the last PR; the project backlog stays under the single key `work/backlog`. A direct message is only an auxiliary microassignment of its parent task; if it becomes independent, persist its spec before continuing. Subagents assigned a formal task resolve its declared Spec as read-only; an assigned phase outcome is saved before the final report under a separate outcome topic_key. Never use `mem_save` or `mem_update` of a result on the Spec observation or its topic_key; if no separate outcome destination was assigned, return the result to the coordinator. A microassignment returns evidence to its parent without a separate spec or phase outcome. Mandatory immediate saves for decisions and findings still apply.
|
|
44
|
-
|
|
45
|
-
`work/backlog` has a stricter mutation rule because Engram replaces complete content rather than applying a patch. The coordinator/orchestrator is the **single writer**; subagents only return candidates. Before every add, edit or removal, locate the exact observation and call `mem_get_observation`; preserve all unrelated entries, pass the complete content to `mem_update`, then read it again to verify. Never write it concurrently and never use a blind `mem_save` upsert. Separate `work/backlog/{slug}` memories are not safe yet because Engram lacks complete paginated topic-prefix listing; use tracker issues instead when available.
|
|
46
|
-
|
|
47
|
-
## Before ending a session
|
|
48
|
-
|
|
49
|
-
Call `mem_session_summary` with: Goal, Instructions, Discoveries, Accomplished, Next Steps, Relevant Files. This is NOT optional — without it the next session starts blind.
|
|
50
|
-
|
|
51
|
-
## After compaction or context reset
|
|
52
|
-
|
|
53
|
-
1. FIRST: `mem_session_summary` with the pre-compaction summary content.
|
|
54
|
-
2. Then `mem_context` to recover prior context.
|
|
55
|
-
3. Only then continue working.
|