@remnic/plugin-codex 1.0.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.
@@ -0,0 +1,51 @@
1
+ ---
2
+ name: remnic-recall
3
+ description: Search Remnic memories by natural-language query. Trigger phrases include "what do you remember about", "recall anything on", "have we discussed".
4
+ allowed-tools:
5
+ - remnic_recall
6
+ ---
7
+
8
+ ## When to use
9
+
10
+ Use when the user or the current task needs prior context from Remnic. This is the default first step for any non-trivial turn that could benefit from memory.
11
+
12
+ Triggers:
13
+
14
+ - "What do you remember about …"
15
+ - "Have we talked about …"
16
+ - "Recall anything on …"
17
+ - A new task begins and the agent wants background.
18
+
19
+ ## Inputs
20
+
21
+ - `query` (required) — natural-language question or topic string.
22
+ - Optional budget hint from the caller (e.g., "brief", "deep").
23
+
24
+ ## Procedure
25
+
26
+ 1. Build a concise natural-language query from the user's request. Prefer the user's own wording over paraphrase.
27
+ 2. Call `remnic_recall` with that query. Ask for 3–8 results unless the caller hinted otherwise.
28
+ 3. Skim the returned memories. Discard anything clearly off-topic.
29
+ 4. Present 1–5 relevant bullet points to the user, each attributed to its source memory when useful.
30
+ 5. If nothing relevant came back, say so plainly and suggest `remnic-remember` if there is something worth storing now.
31
+
32
+ ## Efficiency plan
33
+
34
+ - One broad recall beats several narrow ones.
35
+ - Reuse results within the same turn — do not re-query for the same topic.
36
+ - Skip recall entirely for trivially local requests (formatting, arithmetic, mechanical refactors).
37
+
38
+ ## Pitfalls and fixes
39
+
40
+ - **Pitfall:** Quoting irrelevant recalls just because they came back. **Fix:** Filter by topical relevance before surfacing.
41
+ - **Pitfall:** Over-narrowing the query and missing useful context. **Fix:** Start broad; refine only if the first pass was noisy.
42
+ - **Pitfall:** Presenting raw memory blobs. **Fix:** Summarize in the user's own terms.
43
+
44
+ ## Verification checklist
45
+
46
+ - [ ] `remnic_recall` was called with a natural-language query.
47
+ - [ ] Results were filtered for relevance before surfacing.
48
+ - [ ] User-facing summary is concise (≤ 5 bullets unless requested).
49
+ - [ ] Legacy `engram_recall` alias was not preferred over `remnic_recall`.
50
+
51
+ > Tool names: canonical name is `remnic_recall`. The legacy `engram_recall` alias remains accepted during v1.x.
@@ -0,0 +1,56 @@
1
+ ---
2
+ name: remnic-remember
3
+ description: Store a durable memory in Remnic so every connected agent can recall it. Trigger phrases include "remember this", "save this for later", "add a note that".
4
+ disable-model-invocation: true
5
+ allowed-tools:
6
+ - remnic_memory_store
7
+ ---
8
+
9
+ ## When to use
10
+
11
+ Use when the user explicitly asks the agent to remember something, or when a turn produces a durable decision, preference, or finding worth storing for later sessions.
12
+
13
+ Triggers:
14
+
15
+ - "Remember that …"
16
+ - "Save this for later."
17
+ - "Add a note that …"
18
+ - End-of-turn consolidation after a non-trivial conclusion.
19
+
20
+ ## Inputs
21
+
22
+ - `content` (required) — the statement to store, in the user's own words where possible.
23
+ - Optional: category hint (preference, decision, fact, procedure).
24
+ - Optional: related entity or project name.
25
+
26
+ ## Procedure
27
+
28
+ 1. Confirm the content is durable — it should still be useful days or weeks from now.
29
+ 2. Strip any secrets, credentials, or transient context (current PID, test run timestamps).
30
+ 3. Rephrase only if needed for clarity. Keep the user's voice.
31
+ 4. Call `remnic_memory_store` with the text as `content`. Include category/entity hints if the tool schema supports them.
32
+ 5. Confirm to the user what was stored, in one line.
33
+ 6. Mention that the memory is now available across connected agents (Claude Code, Codex, Hermes, OpenClaw).
34
+
35
+ ## Efficiency plan
36
+
37
+ - Batch closely related facts into a single memory rather than writing many tiny ones.
38
+ - If a prior memory on the same topic already exists, prefer an update-in-place phrasing over a fresh write.
39
+ - Do not store anything that can be re-derived trivially from source code or docs.
40
+
41
+ ## Pitfalls and fixes
42
+
43
+ - **Pitfall:** Storing transient state like "user is running tests now". **Fix:** Only commit facts that will still matter tomorrow.
44
+ - **Pitfall:** Accidentally including a secret or token. **Fix:** Redact before calling the tool; reject any content that matches known secret patterns.
45
+ - **Pitfall:** Duplicate memories on the same topic. **Fix:** Recall first; prefer update over re-store.
46
+ - **Pitfall:** Vague entries ("user likes clean code"). **Fix:** Be specific — who, what, when, why.
47
+
48
+ ## Verification checklist
49
+
50
+ - [ ] Content is durable and specific.
51
+ - [ ] No secrets, credentials, or PII were included.
52
+ - [ ] `remnic_memory_store` was called with the final content.
53
+ - [ ] User received a one-line confirmation.
54
+ - [ ] Legacy `engram_memory_store` alias was not preferred over `remnic_memory_store`.
55
+
56
+ > Tool names: canonical name is `remnic_memory_store`. The legacy `engram_memory_store` alias remains accepted during v1.x.
@@ -0,0 +1,51 @@
1
+ ---
2
+ name: remnic-search
3
+ description: Run a deep full-text search across every Remnic memory. Trigger phrases include "search memories for", "find anything about", "deep search".
4
+ allowed-tools:
5
+ - remnic_lcm_search
6
+ ---
7
+
8
+ ## When to use
9
+
10
+ Use when a natural-language `remnic-recall` did not surface something the user insists exists, or when the task genuinely needs exhaustive coverage rather than a ranked summary.
11
+
12
+ Triggers:
13
+
14
+ - "Search memories for …"
15
+ - "Deep search on …"
16
+ - "I know I told you about X, find it."
17
+ - Follow-up after `remnic-recall` returned nothing useful.
18
+
19
+ ## Inputs
20
+
21
+ - `query` (required) — literal phrase or keyword string; this is full-text, not semantic.
22
+ - Optional: date range, category filter, or entity constraint if the tool supports it.
23
+
24
+ ## Procedure
25
+
26
+ 1. Ask the user (or the calling skill) for the most literal phrase they expect to match.
27
+ 2. Call `remnic_lcm_search` with that phrase.
28
+ 3. Group results by date or category when the tool returns enough metadata.
29
+ 4. Present the top 5–10 matches with dates and short excerpts.
30
+ 5. If still nothing, say so plainly and suggest `remnic-remember` if the content should be captured going forward.
31
+
32
+ ## Efficiency plan
33
+
34
+ - Use the most specific phrase available; literal matches are cheaper than wildcarding.
35
+ - Prefer one targeted search over several broad ones.
36
+ - When recall already worked, do not re-run a deep search for the same topic in the same turn.
37
+
38
+ ## Pitfalls and fixes
39
+
40
+ - **Pitfall:** Using `remnic_lcm_search` as the default. **Fix:** Start with `remnic_recall`; escalate to search only when recall fails.
41
+ - **Pitfall:** Pasting huge result dumps. **Fix:** Show the top matches with excerpts, not the raw payloads.
42
+ - **Pitfall:** Over-broad queries like "notes". **Fix:** Require at least one distinctive keyword.
43
+
44
+ ## Verification checklist
45
+
46
+ - [ ] `remnic_lcm_search` was called only after recall fell short or the task required exhaustive matching.
47
+ - [ ] Results were grouped by relevance/date when possible.
48
+ - [ ] User-facing output shows excerpts, not raw blobs.
49
+ - [ ] Legacy `engram_lcm_search` alias was not preferred over `remnic_lcm_search`.
50
+
51
+ > Tool names: canonical name is `remnic_lcm_search`. The legacy `engram_lcm_search` alias remains accepted during v1.x.
@@ -0,0 +1,51 @@
1
+ ---
2
+ name: remnic-status
3
+ description: Check the health of the Remnic daemon, stores, and connected clients. Trigger phrases include "is remnic running", "check memory status", "daemon health".
4
+ ---
5
+
6
+ ## When to use
7
+
8
+ Use when the user asks whether Remnic is running, when recall or store calls start failing, or when diagnosing cross-agent memory issues.
9
+
10
+ Triggers:
11
+
12
+ - "Is Remnic running?"
13
+ - "Check memory status."
14
+ - "Is the daemon up?"
15
+ - Recall/store tools returned connection errors in this turn.
16
+
17
+ ## Inputs
18
+
19
+ - Optional: specific component to check (daemon, HTTP server, MCP server, store backend).
20
+
21
+ ## Procedure
22
+
23
+ 1. Check the Remnic health endpoint via the MCP bridge or by running `remnic daemon status` in a shell.
24
+ 2. Report, in a compact block:
25
+ - Daemon running state (PID if known).
26
+ - Listening port(s).
27
+ - Memory store path.
28
+ - Connected clients or plugins, if the health payload exposes them.
29
+ 3. If the daemon is not running, suggest `remnic daemon start`. Mention the log path for deeper debugging.
30
+ 4. If recall/store tools were erroring earlier in the turn, correlate the health state with those errors in one sentence.
31
+
32
+ ## Efficiency plan
33
+
34
+ - One health call per turn is enough; do not poll.
35
+ - Skip the check for trivially local tasks.
36
+ - Reuse the health payload for downstream troubleshooting within the same turn.
37
+
38
+ ## Pitfalls and fixes
39
+
40
+ - **Pitfall:** Running `remnic daemon status` on a host where the daemon lives in a container. **Fix:** Prefer the MCP health endpoint, or run the CLI inside the container.
41
+ - **Pitfall:** Reporting "down" based on a single failed tool call. **Fix:** Confirm with the health endpoint before claiming an outage.
42
+ - **Pitfall:** Forgetting the log path. **Fix:** Always include a pointer to logs when reporting a failure.
43
+
44
+ ## Verification checklist
45
+
46
+ - [ ] Health was checked via the endpoint or CLI, not guessed.
47
+ - [ ] Daemon state, port, store path, and clients were reported concisely.
48
+ - [ ] If unhealthy, the user was given a concrete next step.
49
+ - [ ] No legacy `engram daemon` wording was preferred over `remnic daemon` where the CLI has been renamed.
50
+
51
+ > CLI names: canonical CLI is `remnic daemon`. The legacy `engram daemon` invocation remains accepted during v1.x.