@gamaze/hicortex 0.20.4 → 0.20.6
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 +4 -1
- package/dist/backup.d.ts +12 -8
- package/dist/backup.js +13 -9
- package/dist/claude-desktop.d.ts +138 -0
- package/dist/claude-desktop.js +251 -0
- package/dist/cli.d.ts +6 -2
- package/dist/cli.js +62 -3
- package/dist/consolidate.d.ts +8 -1
- package/dist/consolidate.js +84 -2
- package/dist/db.js +36 -0
- package/dist/dedup.d.ts +157 -25
- package/dist/dedup.js +376 -83
- package/dist/domain-classify.js +4 -2
- package/dist/index.js +7 -7
- package/dist/init.d.ts +4 -1
- package/dist/init.js +103 -1
- package/dist/llm.d.ts +19 -13
- package/dist/llm.js +25 -14
- package/dist/mcp-server.d.ts +6 -0
- package/dist/mcp-server.js +84 -13
- package/dist/mcp-stdio.js +6 -1
- package/dist/memory-instructions.d.ts +18 -0
- package/dist/memory-instructions.js +39 -2
- package/dist/nightly.js +20 -1
- package/dist/reconsolidation.d.ts +362 -0
- package/dist/reconsolidation.js +1349 -0
- package/dist/retrieval.d.ts +14 -0
- package/dist/retrieval.js +41 -3
- package/dist/state.d.ts +23 -1
- package/dist/storage.d.ts +25 -0
- package/dist/storage.js +49 -7
- package/dist/type-classify.js +4 -2
- package/dist/types.d.ts +198 -0
- package/hermes-plugin/hicortex/provider.py +29 -17
- package/opencode-plugin/hicortex/index.ts +7 -7
- package/package.json +1 -1
- package/pi-extension/hicortex/index.ts +7 -7
- package/server.json +2 -2
|
@@ -629,7 +629,7 @@ function registerTools(): Record<string, unknown> {
|
|
|
629
629
|
return {
|
|
630
630
|
hicortex_search: {
|
|
631
631
|
description:
|
|
632
|
-
"Search long-term memory
|
|
632
|
+
"Search shared long-term memory (all agents, all sessions). CALL THIS BEFORE assuming, guessing, or asking the user about anything that may have come up before: prior decisions, preferences, project facts, people, hardware, past incidents. If you are about to write 'I don't have information about…', search first.",
|
|
633
633
|
args: {
|
|
634
634
|
query: { type: "string", description: "Search query text (required)" },
|
|
635
635
|
limit: { type: "number", description: "Max results (default 5)" },
|
|
@@ -653,7 +653,7 @@ function registerTools(): Record<string, unknown> {
|
|
|
653
653
|
|
|
654
654
|
hicortex_get: {
|
|
655
655
|
description:
|
|
656
|
-
"Fetch ONE memory's full content by id — use this to lazy-load entries from the '## Memory recall (auto)' index or from search results whose snippet was not enough. Fetching a memory marks it as used (strengthens it), so fetch entries that could change your action — not every shown one. When the memory shapes your answer, cite it
|
|
656
|
+
"Fetch ONE memory's full content by id — use this to lazy-load entries from the '## Memory recall (auto)' index or from search results whose snippet was not enough. Fetching a memory marks it as used (strengthens it), so fetch entries that could change your action — not every shown one. When the memory shapes your answer, cite it to the user (id + date + origin agent) — mark a fetched memory `FETCHED` and a one-line entry cited unread `SNIPPET`; don't pass SNIPPET off as established.",
|
|
657
657
|
args: {
|
|
658
658
|
id: { type: "string", description: "Memory ID (required; as shown in the recall index or search results)" },
|
|
659
659
|
},
|
|
@@ -681,7 +681,7 @@ function registerTools(): Record<string, unknown> {
|
|
|
681
681
|
|
|
682
682
|
hicortex_recent: {
|
|
683
683
|
description:
|
|
684
|
-
"Get recent memories, optionally filtered by project.
|
|
684
|
+
"Get recent memories, optionally filtered by project. CALL THIS AT THE START of substantive work on a project to catch up on its latest state — cheaper than asking the user what happened.",
|
|
685
685
|
args: {
|
|
686
686
|
project: { type: "string", description: "Filter by project name" },
|
|
687
687
|
limit: { type: "number", description: "Max results (default 10)" },
|
|
@@ -705,7 +705,7 @@ function registerTools(): Record<string, unknown> {
|
|
|
705
705
|
|
|
706
706
|
hicortex_ingest: {
|
|
707
707
|
description:
|
|
708
|
-
"Store a new memory in long-term storage. Use for Knowledge, Decisions, or Learnings.",
|
|
708
|
+
"Store a new memory in long-term storage. Use for Knowledge, Decisions, or Learnings. Capture is automatic (nightly) — use this ONLY for explicitly requested learnings, never routine content.",
|
|
709
709
|
args: {
|
|
710
710
|
content: { type: "string", description: "Memory content to store (required)" },
|
|
711
711
|
project: { type: "string", description: "Project this memory belongs to" },
|
|
@@ -739,7 +739,7 @@ function registerTools(): Record<string, unknown> {
|
|
|
739
739
|
|
|
740
740
|
hicortex_lessons: {
|
|
741
741
|
description:
|
|
742
|
-
"Get actionable Learnings
|
|
742
|
+
"Get actionable Learnings — auto-generated insights about mistakes to avoid. CALL THIS before retrying an approach that failed before, or when picking up work where past problems may have been recorded.",
|
|
743
743
|
args: {
|
|
744
744
|
project: { type: "string", description: "Filter by project name (optional)" },
|
|
745
745
|
},
|
|
@@ -763,7 +763,7 @@ function registerTools(): Record<string, unknown> {
|
|
|
763
763
|
|
|
764
764
|
hicortex_index: {
|
|
765
765
|
description:
|
|
766
|
-
"Get the knowledge domain index — shows what topics and projects are stored in memory, grouped by domain.",
|
|
766
|
+
"Get the knowledge domain index — shows what topics and projects are stored in memory, grouped by domain. Call before a broad search to see which knowledge domains exist, or when unsure what the memory covers.",
|
|
767
767
|
args: {},
|
|
768
768
|
async execute(_args: any): Promise<string> {
|
|
769
769
|
try {
|
|
@@ -780,7 +780,7 @@ function registerTools(): Record<string, unknown> {
|
|
|
780
780
|
|
|
781
781
|
hicortex_graph: {
|
|
782
782
|
description:
|
|
783
|
-
"Query the memory knowledge graph — find connected memories, hub nodes, or paths between memories.",
|
|
783
|
+
"Query the memory knowledge graph — find connected memories, hub nodes, or paths between memories. Use it to explore memories connected to one you just fetched, or to find hub memories in a domain.",
|
|
784
784
|
args: {
|
|
785
785
|
operation: { type: "string", description: "Graph operation to perform: neighbors, hubs, or path (required)" },
|
|
786
786
|
id: { type: "string", description: "Memory ID (required for neighbors and path operations)" },
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gamaze/hicortex",
|
|
3
|
-
"version": "0.20.
|
|
3
|
+
"version": "0.20.6",
|
|
4
4
|
"description": "Persistent agent identity for AI agents \u2014 a hand-edited identity layer, nightly-distilled experience, and lessons injected every session, shared across your whole fleet. Works with Hermes, OpenClaw, Claude Code, Pi, and opencode.",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"bin": {
|
|
@@ -497,7 +497,7 @@ function registerTools(pi: any): void {
|
|
|
497
497
|
name: "hicortex_search",
|
|
498
498
|
label: "Hicortex: search memory",
|
|
499
499
|
description:
|
|
500
|
-
"Search long-term memory
|
|
500
|
+
"Search shared long-term memory (all agents, all sessions). CALL THIS BEFORE assuming, guessing, or asking the user about anything that may have come up before: prior decisions, preferences, project facts, people, hardware, past incidents. If you are about to write 'I don't have information about…', search first.",
|
|
501
501
|
parameters: {
|
|
502
502
|
type: "object",
|
|
503
503
|
properties: {
|
|
@@ -527,7 +527,7 @@ function registerTools(pi: any): void {
|
|
|
527
527
|
name: "hicortex_get",
|
|
528
528
|
label: "Hicortex: get memory",
|
|
529
529
|
description:
|
|
530
|
-
"Fetch ONE memory's full content by id — use this to lazy-load entries from the '## Memory recall (auto)' index or from search results whose snippet was not enough. Fetching a memory marks it as used (strengthens it), so fetch entries that could change your action — not every shown one. When the memory shapes your answer, cite it
|
|
530
|
+
"Fetch ONE memory's full content by id — use this to lazy-load entries from the '## Memory recall (auto)' index or from search results whose snippet was not enough. Fetching a memory marks it as used (strengthens it), so fetch entries that could change your action — not every shown one. When the memory shapes your answer, cite it to the user (id + date + origin agent) — mark a fetched memory `FETCHED` and a one-line entry cited unread `SNIPPET`; don't pass SNIPPET off as established.",
|
|
531
531
|
parameters: {
|
|
532
532
|
type: "object",
|
|
533
533
|
properties: {
|
|
@@ -562,7 +562,7 @@ function registerTools(pi: any): void {
|
|
|
562
562
|
name: "hicortex_recent",
|
|
563
563
|
label: "Hicortex: recent memories",
|
|
564
564
|
description:
|
|
565
|
-
"Get recent memories, optionally filtered by project.
|
|
565
|
+
"Get recent memories, optionally filtered by project. CALL THIS AT THE START of substantive work on a project to catch up on its latest state — cheaper than asking the user what happened.",
|
|
566
566
|
parameters: {
|
|
567
567
|
type: "object",
|
|
568
568
|
properties: {
|
|
@@ -591,7 +591,7 @@ function registerTools(pi: any): void {
|
|
|
591
591
|
name: "hicortex_ingest",
|
|
592
592
|
label: "Hicortex: save memory",
|
|
593
593
|
description:
|
|
594
|
-
"Store a new memory in long-term storage. Use for Knowledge, Decisions, or Learnings.",
|
|
594
|
+
"Store a new memory in long-term storage. Use for Knowledge, Decisions, or Learnings. Capture is automatic (nightly) — use this ONLY for explicitly requested learnings, never routine content.",
|
|
595
595
|
parameters: {
|
|
596
596
|
type: "object",
|
|
597
597
|
properties: {
|
|
@@ -631,7 +631,7 @@ function registerTools(pi: any): void {
|
|
|
631
631
|
name: "hicortex_lessons",
|
|
632
632
|
label: "Hicortex: learnings",
|
|
633
633
|
description:
|
|
634
|
-
"Get actionable Learnings
|
|
634
|
+
"Get actionable Learnings — auto-generated insights about mistakes to avoid. CALL THIS before retrying an approach that failed before, or when picking up work where past problems may have been recorded.",
|
|
635
635
|
parameters: {
|
|
636
636
|
type: "object",
|
|
637
637
|
properties: {
|
|
@@ -661,7 +661,7 @@ function registerTools(pi: any): void {
|
|
|
661
661
|
name: "hicortex_index",
|
|
662
662
|
label: "Hicortex: memory index",
|
|
663
663
|
description:
|
|
664
|
-
"Get the knowledge domain index — shows what topics and projects are stored in memory, grouped by domain.",
|
|
664
|
+
"Get the knowledge domain index — shows what topics and projects are stored in memory, grouped by domain. Call before a broad search to see which knowledge domains exist, or when unsure what the memory covers.",
|
|
665
665
|
parameters: {
|
|
666
666
|
type: "object",
|
|
667
667
|
properties: {},
|
|
@@ -683,7 +683,7 @@ function registerTools(pi: any): void {
|
|
|
683
683
|
name: "hicortex_graph",
|
|
684
684
|
label: "Hicortex: memory graph",
|
|
685
685
|
description:
|
|
686
|
-
"Query the memory knowledge graph — find connected memories, hub nodes, or paths between memories.",
|
|
686
|
+
"Query the memory knowledge graph — find connected memories, hub nodes, or paths between memories. Use it to explore memories connected to one you just fetched, or to find hub memories in a domain.",
|
|
687
687
|
parameters: {
|
|
688
688
|
type: "object",
|
|
689
689
|
properties: {
|
package/server.json
CHANGED
|
@@ -3,12 +3,12 @@
|
|
|
3
3
|
"name": "io.github.gamaze-labs/hicortex",
|
|
4
4
|
"title": "Hicortex",
|
|
5
5
|
"description": "Shared fleet memory for AI agents \u2014 what one agent learns, the whole fleet knows.",
|
|
6
|
-
"version": "0.20.
|
|
6
|
+
"version": "0.20.5",
|
|
7
7
|
"packages": [
|
|
8
8
|
{
|
|
9
9
|
"registryType": "npm",
|
|
10
10
|
"identifier": "@gamaze/hicortex",
|
|
11
|
-
"version": "0.20.
|
|
11
|
+
"version": "0.20.5",
|
|
12
12
|
"transport": {
|
|
13
13
|
"type": "stdio",
|
|
14
14
|
"command": "npx",
|