chain-insights 0.3.3 → 0.3.4
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 +5 -2
- package/docs/graph-tools.md +3 -2
- package/docs/investigation-workspaces.md +4 -1
- package/docs/knowledge-exports.md +200 -0
- package/docs/mcp-proxy.md +3 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -137,7 +137,7 @@ cia case show 1
|
|
|
137
137
|
find reports cases -maxdepth 3 -type f | sort
|
|
138
138
|
```
|
|
139
139
|
|
|
140
|
-
## Export To Obsidian,
|
|
140
|
+
## Export To Obsidian, LLM Wiki, And Agents
|
|
141
141
|
|
|
142
142
|
After a case has evidence, export a local knowledge bundle:
|
|
143
143
|
|
|
@@ -147,11 +147,13 @@ cia case export 1 --target obsidian-llmwiki --mode private
|
|
|
147
147
|
```
|
|
148
148
|
|
|
149
149
|
The export writes Markdown notes, `manifest.chain-insights.json`,
|
|
150
|
-
`graph.chain-insights.json`, `Graph.canvas`,
|
|
150
|
+
`graph.chain-insights.json`, `Graph.canvas`, LLM Wiki entrypoints, and prompts
|
|
151
151
|
for Codex, Claude Code, and ChatGPT under `published/<case-slug>/`.
|
|
152
152
|
|
|
153
153
|
Private exports may include full addresses. Use `--mode public` only for
|
|
154
154
|
shareable demos; public mode aliases addresses and removes secrets by default.
|
|
155
|
+
Install and opening steps live in
|
|
156
|
+
[Knowledge exports](docs/knowledge-exports.md).
|
|
155
157
|
|
|
156
158
|
## Demo
|
|
157
159
|
|
|
@@ -248,6 +250,7 @@ reports under the workspace instead of embedding large payloads in case notes.
|
|
|
248
250
|
| --- | --- |
|
|
249
251
|
| [Graph tools](docs/graph-tools.md) | GraphRAG MCP layers, `graph_query`, `graph_query_batch`, AML tool contracts, graph reports, evidence pointers |
|
|
250
252
|
| [Investigation workspaces](docs/investigation-workspaces.md) | `cia init`, case layout, evidence, dossiers, imports, templates, sessions, reports |
|
|
253
|
+
| [Knowledge exports](docs/knowledge-exports.md) | Install Obsidian and LLM Wiki, export verified cases, open vaults, ingest agent-ready Markdown and graph JSON |
|
|
251
254
|
| [MCP proxy](docs/mcp-proxy.md) | Stdio proxy behavior, endpoint configuration, agent installers, local tools, auth modes, Inspector validation |
|
|
252
255
|
| [Architecture](docs/architecture.md) | Product layers, data flow, local storage, security model, config keys |
|
|
253
256
|
| [Development](docs/development.md) | Build, test, and local install commands |
|
package/docs/graph-tools.md
CHANGED
|
@@ -321,10 +321,11 @@ Large JSON belongs under workspace report directories, not inline in evidence.
|
|
|
321
321
|
|
|
322
322
|
After a case has useful evidence, run `cia case evidence verify <case-id>` and
|
|
323
323
|
`cia case export <case-id> --target obsidian-llmwiki --mode private` to produce
|
|
324
|
-
an Obsidian,
|
|
324
|
+
an Obsidian, LLM Wiki, and agent-friendly bundle. The export uses
|
|
325
325
|
`manifest.chain-insights.json`, `graph.chain-insights.json`, `Graph.canvas`,
|
|
326
326
|
Markdown evidence/entity notes, and agent prompt files as views over the
|
|
327
|
-
canonical case evidence and report artifacts.
|
|
327
|
+
canonical case evidence and report artifacts. Install and ingestion steps live
|
|
328
|
+
in [Knowledge exports](knowledge-exports.md).
|
|
328
329
|
|
|
329
330
|
## Runtime Schema Capture
|
|
330
331
|
|
|
@@ -112,10 +112,13 @@ cia case evidence verify <case-id>
|
|
|
112
112
|
cia case export <case-id> --target obsidian-llmwiki --mode private
|
|
113
113
|
```
|
|
114
114
|
|
|
115
|
-
Open `published/<case-slug>/` as an Obsidian vault, or give it to
|
|
115
|
+
Open `published/<case-slug>/` as an Obsidian vault, or give it to LLM Wiki,
|
|
116
116
|
Codex, Claude Code, or ChatGPT as the case context. The case manifest remains
|
|
117
117
|
the source of truth.
|
|
118
118
|
|
|
119
|
+
For install commands, Obsidian opening steps, LLM Wiki ingestion, and agent
|
|
120
|
+
prompts, see [Knowledge exports](knowledge-exports.md).
|
|
121
|
+
|
|
119
122
|
## Dossiers
|
|
120
123
|
|
|
121
124
|
Maintain an entity dossier:
|
|
@@ -0,0 +1,200 @@
|
|
|
1
|
+
# Knowledge Exports
|
|
2
|
+
|
|
3
|
+
Chain Insights can export a verified case as a local knowledge bundle for
|
|
4
|
+
Obsidian, LLM Wiki, Codex, Claude Code, ChatGPT, and any agent that can read a
|
|
5
|
+
folder of Markdown and JSON files.
|
|
6
|
+
|
|
7
|
+
The export is local-first. Chain Insights writes files under your initialized
|
|
8
|
+
workspace and does not upload the case anywhere by itself.
|
|
9
|
+
|
|
10
|
+
## Install Viewers And Agent Tools
|
|
11
|
+
|
|
12
|
+
Install Chain Insights:
|
|
13
|
+
|
|
14
|
+
```bash
|
|
15
|
+
npm install -g chain-insights
|
|
16
|
+
cia --version
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
Install Obsidian when you want a human vault UI:
|
|
20
|
+
|
|
21
|
+
- Windows and macOS: download the installer from
|
|
22
|
+
<https://obsidian.md/download> and open it.
|
|
23
|
+
- Linux AppImage: download the AppImage from <https://obsidian.md/download>,
|
|
24
|
+
then run:
|
|
25
|
+
|
|
26
|
+
```bash
|
|
27
|
+
chmod u+x Obsidian-<version>.AppImage
|
|
28
|
+
./Obsidian-<version>.AppImage --no-sandbox
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
- Linux Flatpak:
|
|
32
|
+
|
|
33
|
+
```bash
|
|
34
|
+
flatpak install flathub md.obsidian.Obsidian
|
|
35
|
+
flatpak run md.obsidian.Obsidian
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
Install LLM Wiki when you want an agent-native research wiki on top of the
|
|
39
|
+
exported case:
|
|
40
|
+
|
|
41
|
+
```bash
|
|
42
|
+
# Claude Code
|
|
43
|
+
claude plugin install wiki@llm-wiki
|
|
44
|
+
|
|
45
|
+
# OpenAI Codex
|
|
46
|
+
codex plugin marketplace add nvk/llm-wiki
|
|
47
|
+
# Then open /plugins, enable "LLM Wiki", and use @wiki.
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
For any other LLM agent, install the portable LLM Wiki instructions in the
|
|
51
|
+
project where the agent runs:
|
|
52
|
+
|
|
53
|
+
```bash
|
|
54
|
+
curl -sL https://raw.githubusercontent.com/nvk/llm-wiki/master/AGENTS.md \
|
|
55
|
+
> AGENTS.md
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
You do not need Obsidian or LLM Wiki to read an export. The bundle is plain
|
|
59
|
+
Markdown plus JSON, so editors and agents can consume it directly.
|
|
60
|
+
|
|
61
|
+
## Create A Case Export
|
|
62
|
+
|
|
63
|
+
Start from a Chain Insights workspace:
|
|
64
|
+
|
|
65
|
+
```bash
|
|
66
|
+
mkdir -p ~/work/chain-insights-investigations
|
|
67
|
+
cd ~/work/chain-insights-investigations
|
|
68
|
+
cia init .
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
Open a case and run investigation tools with `--case` so evidence, reports, and
|
|
72
|
+
graph artifacts stay attached to the case:
|
|
73
|
+
|
|
74
|
+
```bash
|
|
75
|
+
cia case open "Exchange deposit clustering" \
|
|
76
|
+
--tags aml,bittensor \
|
|
77
|
+
--description "Trace source funds into exchange entities"
|
|
78
|
+
```
|
|
79
|
+
|
|
80
|
+
After evidence exists, verify and export:
|
|
81
|
+
|
|
82
|
+
```bash
|
|
83
|
+
cia case evidence verify <case-id>
|
|
84
|
+
cia case export <case-id> --target obsidian-llmwiki --mode private
|
|
85
|
+
```
|
|
86
|
+
|
|
87
|
+
The default output path is:
|
|
88
|
+
|
|
89
|
+
```text
|
|
90
|
+
published/<case-slug>/
|
|
91
|
+
```
|
|
92
|
+
|
|
93
|
+
Inspect the bundle:
|
|
94
|
+
|
|
95
|
+
```bash
|
|
96
|
+
find published/<case-slug> -maxdepth 3 -type f | sort
|
|
97
|
+
```
|
|
98
|
+
|
|
99
|
+
## Output Files
|
|
100
|
+
|
|
101
|
+
The export writes:
|
|
102
|
+
|
|
103
|
+
```text
|
|
104
|
+
README.md
|
|
105
|
+
Case.md
|
|
106
|
+
Agent Console.md
|
|
107
|
+
LLMWIKI.md
|
|
108
|
+
llms.txt
|
|
109
|
+
manifest.chain-insights.json
|
|
110
|
+
graph.chain-insights.json
|
|
111
|
+
Graph.canvas
|
|
112
|
+
Entities/
|
|
113
|
+
Evidence/
|
|
114
|
+
Prompts/Codex.md
|
|
115
|
+
Prompts/Claude-Code.md
|
|
116
|
+
Prompts/ChatGPT.md
|
|
117
|
+
Sources/evidence-manifest.md
|
|
118
|
+
Sources/reports-index.md
|
|
119
|
+
```
|
|
120
|
+
|
|
121
|
+
Use `manifest.chain-insights.json` as the machine-readable source of truth for
|
|
122
|
+
case ID, export mode, verification status, file hashes, and redaction warnings.
|
|
123
|
+
Use `graph.chain-insights.json` for node/edge import, and `Graph.canvas` for an
|
|
124
|
+
Obsidian Canvas view of the same graph.
|
|
125
|
+
|
|
126
|
+
## Open In Obsidian
|
|
127
|
+
|
|
128
|
+
1. Open Obsidian.
|
|
129
|
+
2. Open the vault switcher.
|
|
130
|
+
3. Select **Open folder as vault**.
|
|
131
|
+
4. Choose `published/<case-slug>/`.
|
|
132
|
+
5. Start with `Case.md`, `Agent Console.md`, and `Graph.canvas`.
|
|
133
|
+
|
|
134
|
+
Obsidian treats the export directory as a normal vault. It may create a local
|
|
135
|
+
`.obsidian/` settings folder inside the export; that file is viewer state, not
|
|
136
|
+
Chain Insights evidence.
|
|
137
|
+
|
|
138
|
+
## Load Into LLM Wiki
|
|
139
|
+
|
|
140
|
+
LLM Wiki stores topic wikis under `~/wiki/` by default and can ingest local
|
|
141
|
+
files. A simple Chain Insights flow is:
|
|
142
|
+
|
|
143
|
+
```text
|
|
144
|
+
/wiki init chain-insights-cases
|
|
145
|
+
/wiki:ingest /absolute/path/to/published/<case-slug>/LLMWIKI.md --wiki chain-insights-cases
|
|
146
|
+
/wiki:ingest /absolute/path/to/published/<case-slug>/Case.md --wiki chain-insights-cases
|
|
147
|
+
/wiki:ingest /absolute/path/to/published/<case-slug>/Agent\ Console.md --wiki chain-insights-cases
|
|
148
|
+
/wiki:ingest /absolute/path/to/published/<case-slug>/manifest.chain-insights.json --wiki chain-insights-cases
|
|
149
|
+
/wiki:ingest /absolute/path/to/published/<case-slug>/graph.chain-insights.json --wiki chain-insights-cases
|
|
150
|
+
/wiki:compile --wiki chain-insights-cases
|
|
151
|
+
```
|
|
152
|
+
|
|
153
|
+
For larger cases, drop selected exported files into the topic wiki inbox and run
|
|
154
|
+
LLM Wiki ingestion from there. Keep the original `published/<case-slug>/`
|
|
155
|
+
directory unchanged so the Chain Insights manifest hashes remain auditable.
|
|
156
|
+
|
|
157
|
+
## Use With Codex, Claude Code, Or ChatGPT
|
|
158
|
+
|
|
159
|
+
For coding-agent sessions, open or attach `published/<case-slug>/` and start
|
|
160
|
+
with this instruction:
|
|
161
|
+
|
|
162
|
+
```text
|
|
163
|
+
Read Case.md, Agent Console.md, LLMWIKI.md, manifest.chain-insights.json, and
|
|
164
|
+
graph.chain-insights.json first. Treat manifest.chain-insights.json and
|
|
165
|
+
Sources/evidence-manifest.md as canonical. Preserve full blockchain addresses
|
|
166
|
+
exactly unless this is a public redacted export. Use Chain Insights MCP tools
|
|
167
|
+
for fresh graph facts when available.
|
|
168
|
+
```
|
|
169
|
+
|
|
170
|
+
For ChatGPT, upload the smallest useful subset first:
|
|
171
|
+
|
|
172
|
+
- `Case.md`
|
|
173
|
+
- `Agent Console.md`
|
|
174
|
+
- `manifest.chain-insights.json`
|
|
175
|
+
- `graph.chain-insights.json`
|
|
176
|
+
- selected files from `Evidence/` and `Entities/`
|
|
177
|
+
|
|
178
|
+
## Export Modes
|
|
179
|
+
|
|
180
|
+
Use the least-shareable mode that fits the audience:
|
|
181
|
+
|
|
182
|
+
| Mode | Use it for |
|
|
183
|
+
| --- | --- |
|
|
184
|
+
| `private` | Local analyst work. May include full addresses and sensitive notes. |
|
|
185
|
+
| `partner` | Controlled partner handoff. Review the bundle before sharing. |
|
|
186
|
+
| `public` | Demos and public writeups. Addresses are aliased and redaction metadata is written to the manifest. |
|
|
187
|
+
|
|
188
|
+
Do not share `private` exports outside the investigation team.
|
|
189
|
+
|
|
190
|
+
## MCP Tool Flow
|
|
191
|
+
|
|
192
|
+
Agents connected through the Chain Insights MCP proxy can create the same
|
|
193
|
+
bundle without shelling out:
|
|
194
|
+
|
|
195
|
+
1. Call `case_verify_evidence` for the case.
|
|
196
|
+
2. Call `case_export` with `case_id`, `target=obsidian-llmwiki`, and
|
|
197
|
+
`mode=private`.
|
|
198
|
+
3. Open the returned `outputDir`, then read `Agent Console.md` first.
|
|
199
|
+
|
|
200
|
+
The MCP tool and CLI command write the same file format.
|
package/docs/mcp-proxy.md
CHANGED
|
@@ -94,8 +94,9 @@ The proxy:
|
|
|
94
94
|
| `case_end_session` | End a session with findings and next steps |
|
|
95
95
|
|
|
96
96
|
`case_export` writes the same local bundle as `cia case export`. Use it after
|
|
97
|
-
`case_verify_evidence` when an agent needs Obsidian,
|
|
98
|
-
Code, or ChatGPT-ready files.
|
|
97
|
+
`case_verify_evidence` when an agent needs Obsidian, LLM Wiki, Codex, Claude
|
|
98
|
+
Code, or ChatGPT-ready files. See [Knowledge exports](knowledge-exports.md) for
|
|
99
|
+
viewer installation, vault opening, and LLM Wiki ingestion steps.
|
|
99
100
|
|
|
100
101
|
Remote graph tools are discovered from the configured GraphRAG MCP endpoint. The
|
|
101
102
|
expected primitive graph tools are `usage_status`, `graph_query`, and
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "chain-insights",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.4",
|
|
4
4
|
"description": "AML investigation CLI and MCP proxy for blockchain risk, fund-flow tracing, case reports, and GraphRAG MCP access",
|
|
5
5
|
"homepage": "https://chain-insights.ai",
|
|
6
6
|
"repository": {
|