@bodhi-ventures/aiocs 0.3.1 → 0.5.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.
@@ -12,8 +12,6 @@ Use this skill when you need authoritative local documentation lookup through th
12
12
  - The user is asking about exchange or product docs that may already exist in the local `aiocs` catalog.
13
13
  - You need authoritative local docs for an exchange, SDK, or product without browsing the live site every time.
14
14
  - You need reusable reference search over a curated external git repository that already lives in `aiocs`.
15
- - You need to read from a compiled `aiocs` workspace wiki or inspect derived workspace artifacts.
16
- - You need to inspect workspace status, queued compile health, or raw ingested evidence before deciding whether curation is needed.
17
15
  - You want machine-readable search/show/diff/coverage results for an AI agent.
18
16
  - You need hybrid docs retrieval with lexical plus semantic/vector recall.
19
17
  - You need to validate runtime health before relying on the local docs catalog.
@@ -52,13 +50,13 @@ Use this skill when you need authoritative local documentation lookup through th
52
50
  Validate the local runtime:
53
51
 
54
52
  ```bash
55
- docs --json doctor
53
+ aiocs --json doctor
56
54
  ```
57
55
 
58
56
  Bootstrap managed sources from the repo bundle and `~/.aiocs/sources`:
59
57
 
60
58
  ```bash
61
- docs --json init --no-fetch
59
+ aiocs --json init --no-fetch
62
60
  ```
63
61
 
64
62
  ## Core commands
@@ -66,63 +64,51 @@ docs --json init --no-fetch
66
64
  Search the shared catalog:
67
65
 
68
66
  ```bash
69
- docs --json search "maker flow" --source hyperliquid
70
- docs --json search "maker flow" --all
71
- docs --json search "maker flow" --source hyperliquid --limit 5 --offset 0
72
- docs --json search "maker flow" --source hyperliquid --mode hybrid
73
- docs --json search "WebSocketTransport" --source nktkas-hyperliquid --path "src/**" --language typescript --mode lexical
67
+ aiocs --json search "maker flow" --source hyperliquid
68
+ aiocs --json search "maker flow" --all
69
+ aiocs --json search "maker flow" --source hyperliquid --limit 5 --offset 0
70
+ aiocs --json search "maker flow" --source hyperliquid --mode hybrid
71
+ aiocs --json search "WebSocketTransport" --source nktkas-hyperliquid --path "src/**" --language typescript --mode lexical
74
72
  ```
75
73
 
76
74
  Inspect a specific chunk:
77
75
 
78
76
  ```bash
79
- docs --json show 42
80
- ```
81
-
82
- Search or inspect a compiled workspace:
83
-
84
- ```bash
85
- docs --json workspace status market-structure
86
- docs --json workspace search market-structure "transport design" --scope mixed
87
- docs --json workspace ingest list market-structure
88
- docs --json workspace ingest search market-structure "fee tier"
89
- docs --json workspace artifact list market-structure
90
- docs --json workspace artifact show market-structure derived/index.md
91
- docs --json workspace lint market-structure
77
+ aiocs --json show 42
92
78
  ```
93
79
 
94
80
  Inspect source availability and health:
95
81
 
96
82
  ```bash
97
- docs --json source list
98
- docs --json canary hyperliquid
99
- docs --json embeddings status
83
+ aiocs --json source list
84
+ aiocs --json canary hyperliquid
85
+ aiocs --json embeddings status
100
86
  ```
101
87
 
102
88
  Inspect what changed between snapshots:
103
89
 
104
90
  ```bash
105
- docs --json diff hyperliquid
91
+ aiocs --json diff hyperliquid
106
92
  ```
107
93
 
108
94
  Back up or restore the shared catalog:
109
95
 
110
96
  ```bash
111
- docs --json backup export /absolute/path/to/backup
112
- docs --json backup import /absolute/path/to/backup --replace-existing
97
+ aiocs --json backup export /absolute/path/to/backup
98
+ aiocs --json backup import /absolute/path/to/backup --replace-existing
113
99
  ```
114
100
 
115
101
  Verify fetched coverage against reference markdown:
116
102
 
117
103
  ```bash
118
- docs --json verify coverage hyperliquid /absolute/path/to/reference.md
104
+ aiocs --json verify coverage hyperliquid /absolute/path/to/reference.md
119
105
  ```
120
106
 
121
107
  Scope docs to a project path:
122
108
 
123
109
  ```bash
124
- docs --json project link /absolute/path/to/project hyperliquid lighter
125
- docs --json project unlink /absolute/path/to/project lighter
110
+ aiocs --json project link /absolute/path/to/project hyperliquid lighter
111
+ aiocs --json project unlink /absolute/path/to/project lighter
126
112
  ```
127
113
 
128
114
  ## MCP tools
@@ -146,15 +132,6 @@ The `aiocs-mcp` server exposes the same core operations without shell parsing:
146
132
  - `backup_import`
147
133
  - `search`
148
134
  - `show`
149
- - `workspace_list`
150
- - `workspace_status`
151
- - `workspace_search`
152
- - `workspace_ingest_list`
153
- - `workspace_ingest_show`
154
- - `workspace_ingest_search`
155
- - `workspace_artifact_list`
156
- - `workspace_artifact_show`
157
- - `workspace_lint`
158
135
  - `verify_coverage`
159
136
  - `batch`
160
137
 
@@ -165,19 +142,17 @@ Mutation-capable MCP tools such as `source_upsert`, `refresh_due`, and `fetch` b
165
142
  1. If runtime health is in doubt, run `doctor`.
166
143
  2. Run `source_list` to see whether the source already exists.
167
144
  3. Use `search` in `auto` mode first, then `show` for the selected chunk.
168
- 4. If the user is asking against a compiled research wiki, prefer `workspace_search` and `workspace_artifact_show`.
169
- 5. Use `canary`, `diff_snapshots`, or `verify_coverage` when the question is about drift, changes, or completeness.
170
- 6. If the source is missing or stale and the next step is to mutate `aiocs`, load `aiocs-curation`.
171
- 7. Use `batch` when combining list/search/show or diff/coverage checks in one pass.
145
+ 4. Use `canary`, `diff_snapshots`, or `verify_coverage` when the question is about drift, changes, or completeness.
146
+ 5. If the source is missing or stale and the next step is to mutate `aiocs`, load `aiocs-curation`.
147
+ 6. Use `batch` when combining list/search/show or diff/coverage checks in one pass.
172
148
 
173
149
  ## Operational notes
174
150
 
175
151
  - The catalog is local-only and shared across projects on the same machine.
176
152
  - Default state root: `~/.aiocs/data`, `~/.aiocs/config`, and `~/.aiocs/sources`.
177
- - Use `docs daemon` or the Docker daemon service when the catalog should stay fresh automatically.
178
- - `docs search --mode auto` is the right default for agents; it uses hybrid retrieval only when embeddings are current and healthy for the requested scope.
153
+ - Use `aiocs daemon` or the Docker daemon service when the catalog should stay fresh automatically.
154
+ - `aiocs search --mode auto` is the right default for agents; it uses hybrid retrieval only when embeddings are current and healthy for the requested scope.
179
155
  - The Docker Compose stack includes a dedicated `aiocs-qdrant` container and expects Ollama to be reachable separately.
180
- - Compiled research workspaces use LM Studio as the v1 compiler backend and expect `google/gemma-4-26b-a4b` to be loaded unless the environment overrides it.
181
156
  - Canaries are the first place to look when a docs site changed and fetches started degrading.
182
157
  - Newly added or changed sources become due immediately, so `refresh due <source-id>` is the safe first refresh path after upsert.
183
158
  - CLI failures expose machine-readable `error.code` fields in `--json` mode.
@@ -9,13 +9,11 @@ Use this skill when you need to add, refresh, repair, or otherwise mutate `aiocs
9
9
 
10
10
  ## When to use it
11
11
 
12
- - The requested docs source is missing from the local `aiocs` catalog and is worth curating for reuse.
12
+ - The requested source is missing from the local `aiocs` catalog and is worth curating for reuse.
13
13
  - An existing source is stale and should be refreshed instead of bypassed.
14
14
  - A source spec needs to be created, updated, or upserted under `~/.aiocs/sources`.
15
15
  - A reusable external git repository should be added as a `kind: git` source under `~/.aiocs/sources`.
16
16
  - A canary is failing and the source needs remediation or targeted refetch.
17
- - A research workspace needs to be created, rebound, compiled, or asked to generate a report/slide artifact.
18
- - A workspace needs raw evidence ingest, auto-compile setup, queued compile processing, or Obsidian sync.
19
17
  - The user explicitly wants `aiocs` maintenance, source onboarding, or catalog repair.
20
18
 
21
19
  ## Trigger guidance for Codex
@@ -50,51 +48,33 @@ Create or update source specs there instead of editing the bundled repo sources.
50
48
  Validate the machine before curation:
51
49
 
52
50
  ```bash
53
- docs --json doctor
54
- docs --json source list
51
+ aiocs --json doctor
52
+ aiocs --json source list
55
53
  ```
56
54
 
57
55
  Add or update a machine-local source:
58
56
 
59
57
  ```bash
60
58
  mkdir -p ~/.aiocs/sources
61
- docs --json source upsert ~/.aiocs/sources/my-source.yaml
59
+ aiocs --json source upsert ~/.aiocs/sources/my-source.yaml
62
60
  ```
63
61
 
64
62
  Refresh only what is needed:
65
63
 
66
64
  ```bash
67
- docs --json refresh due my-source
68
- docs --json refresh due hyperliquid
69
- docs --json refresh due nktkas-hyperliquid
70
- docs --json fetch my-source
71
- docs --json canary my-source
72
- ```
73
-
74
- Compile or regenerate a workspace wiki:
75
-
76
- ```bash
77
- docs --json workspace create market-structure --label "Market Structure"
78
- docs --json workspace bind market-structure hyperliquid nktkas-hyperliquid
79
- docs --json workspace compile market-structure
80
- docs --json workspace configure market-structure --auto-compile true
81
- docs --json workspace queue-run
82
- docs --json workspace ingest add market-structure markdown-dir /absolute/path/to/notes --label "Research notes"
83
- docs --json workspace ingest add market-structure csv /absolute/path/to/fills.csv --label "Fills CSV"
84
- docs --json workspace ingest add market-structure json /absolute/path/to/manifest.json --label "Research manifest"
85
- docs --json workspace ingest add market-structure jsonl /absolute/path/to/events.jsonl --label "Events JSONL"
86
- docs --json workspace output market-structure report --name weekly-brief
87
- docs --json workspace output market-structure slides --name weekly-brief
88
- docs --json workspace answer market-structure note "What changed?" --name quick-note
89
- docs --json workspace sync obsidian market-structure /absolute/path/to/vault
65
+ aiocs --json refresh due my-source
66
+ aiocs --json refresh due hyperliquid
67
+ aiocs --json refresh due nktkas-hyperliquid
68
+ aiocs --json fetch my-source
69
+ aiocs --json canary my-source
90
70
  ```
91
71
 
92
72
  Heavy maintenance remains explicit:
93
73
 
94
74
  ```bash
95
- docs --json fetch all
96
- docs --json embeddings backfill all
97
- docs --json embeddings run
75
+ aiocs --json fetch all
76
+ aiocs --json embeddings backfill all
77
+ aiocs --json embeddings run
98
78
  ```
99
79
 
100
80
  ## MCP tools
@@ -111,17 +91,6 @@ The `aiocs-mcp` server exposes the same curation operations without shell parsin
111
91
  - `embeddings_backfill`
112
92
  - `embeddings_clear`
113
93
  - `embeddings_run`
114
- - `workspace_create`
115
- - `workspace_bind`
116
- - `workspace_unbind`
117
- - `workspace_update`
118
- - `workspace_compile`
119
- - `workspace_queue_run`
120
- - `workspace_ingest_add`
121
- - `workspace_ingest_remove`
122
- - `workspace_output`
123
- - `workspace_answer`
124
- - `workspace_sync_obsidian`
125
94
  - `batch`
126
95
 
127
96
  ## Recommended Codex workflow
@@ -131,10 +100,7 @@ The `aiocs-mcp` server exposes the same curation operations without shell parsin
131
100
  3. If the source is missing but worth curating, create a spec under `~/.aiocs/sources`, then `source_upsert` it.
132
101
  4. After upsert, use `refresh due <source-id>` as the safe first fetch path.
133
102
  5. Use `canary` when the site changed or extraction drift is suspected.
134
- 6. For research workspaces, bind curated sources and/or ingest raw evidence, then run `workspace compile`.
135
- 7. Use `workspace output` and `workspace answer` only after a successful compile so outputs have source-backed provenance.
136
- 8. Prefer `autoCompileEnabled` plus targeted queue processing over broad global rebuilds.
137
- 9. Escalate to `fetch <source-id>` or `fetch all` only for explicit maintenance or when due-based refresh is not enough.
103
+ 6. Escalate to `fetch <source-id>` or `fetch all` only for explicit maintenance or when due-based refresh is not enough.
138
104
 
139
105
  ## Operational notes
140
106
 
@@ -142,4 +108,3 @@ The `aiocs-mcp` server exposes the same curation operations without shell parsin
142
108
  - `~/.aiocs/sources` and bundled repo sources behave the same once bootstrapped into the catalog.
143
109
  - Targeted refresh is the default. Broad refresh is a maintenance task, not a normal answering step.
144
110
  - Use `aiocs` for read/search flows and this skill only for catalog mutation.
145
- - Workspace compilation uses LM Studio and expects the configured model to be loaded before `workspace compile`, `workspace output`, or `workspace answer`.