@binarycheater/research-sidecar 0.1.0 → 0.1.1
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/package.json
CHANGED
|
@@ -1,40 +1,80 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: sidecar-thinking
|
|
3
|
-
description: Use when
|
|
3
|
+
description: Use when the user explicitly asks to use Research Sidecar, open/start/connect to the sidecar app, inspect or select a sidecar research graph, install sidecar workspace skills, or run an external/second-opinion sidecar thinking pass.
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
# Sidecar Thinking
|
|
7
7
|
|
|
8
|
-
|
|
8
|
+
Research Sidecar is an opt-in external tool. Do not invoke it just because the task involves research, reports, Markdown, YAML, or graph-like structure.
|
|
9
9
|
|
|
10
|
-
##
|
|
10
|
+
## Strict Trigger
|
|
11
11
|
|
|
12
|
-
|
|
12
|
+
Use this skill only when the user explicitly asks for at least one of these:
|
|
13
|
+
|
|
14
|
+
- Use, open, start, run, connect to, or inspect Research Sidecar.
|
|
15
|
+
- Use the sidecar graph view, select/save a graph, preview graph-linked documents, or inspect a sidecar research graph.
|
|
16
|
+
- Do an external, out-of-band, second-opinion, or sidecar thinking pass.
|
|
17
|
+
- Install the sidecar bundled skills into the current workspace.
|
|
18
|
+
|
|
19
|
+
Do not use this skill for ordinary research reasoning, report writing, code edits, Markdown/HTML generation, YAML editing, or generic graph work unless the user ties the request to Sidecar.
|
|
20
|
+
|
|
21
|
+
## Current CLI Shape
|
|
22
|
+
|
|
23
|
+
Start the app only when the user asked for Sidecar to be used or started:
|
|
13
24
|
|
|
14
25
|
```bash
|
|
15
26
|
research-sidecar
|
|
16
27
|
```
|
|
17
28
|
|
|
18
|
-
|
|
29
|
+
Useful variants:
|
|
30
|
+
|
|
31
|
+
```bash
|
|
32
|
+
research-sidecar --workspace /path/to/workspace
|
|
33
|
+
research-sidecar --graph dingyi/synthetic/graph.yaml
|
|
34
|
+
research-sidecar --port 4317
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
Initialize a workspace:
|
|
38
|
+
|
|
39
|
+
```bash
|
|
40
|
+
research-sidecar init --graph research/graph.yaml
|
|
41
|
+
research-sidecar init --graph research/graph.yaml --no-skills
|
|
42
|
+
```
|
|
19
43
|
|
|
20
|
-
|
|
44
|
+
Install bundled skills into the workspace:
|
|
21
45
|
|
|
22
|
-
|
|
46
|
+
```bash
|
|
47
|
+
research-sidecar install-skills
|
|
48
|
+
research-sidecar install-skills --force
|
|
49
|
+
```
|
|
23
50
|
|
|
24
|
-
|
|
51
|
+
If installed as a project dependency, use the same commands through `npx`:
|
|
25
52
|
|
|
26
53
|
```bash
|
|
27
|
-
|
|
28
|
-
|
|
54
|
+
npx research-sidecar
|
|
55
|
+
npx research-sidecar install-skills
|
|
29
56
|
```
|
|
30
57
|
|
|
31
|
-
|
|
58
|
+
For one-shot use without a local install:
|
|
32
59
|
|
|
33
60
|
```bash
|
|
34
|
-
|
|
35
|
-
npm run codex:ask -- --title "Review" --context "Codex summary..." --question "What should Codex do next?"
|
|
61
|
+
npx @binarycheater/research-sidecar
|
|
36
62
|
```
|
|
37
63
|
|
|
64
|
+
The directory where `research-sidecar` runs is the workspace root unless `--workspace` is supplied. Private state lives in `.side/config.json`. Default URL: `http://localhost:4317`.
|
|
65
|
+
|
|
66
|
+
## Sessions And API
|
|
67
|
+
|
|
68
|
+
Use the API only after the Sidecar server is running and the user asked for Sidecar involvement.
|
|
69
|
+
|
|
70
|
+
Common session sequence:
|
|
71
|
+
|
|
72
|
+
1. `POST /api/sessions`
|
|
73
|
+
2. `PATCH /api/sessions/:id` with manual context
|
|
74
|
+
3. `POST /api/sessions/:id/files` for workspace-relative files
|
|
75
|
+
4. `POST /api/sessions/:id/messages` to stage a user question
|
|
76
|
+
5. `POST /api/sessions/:id/stream` only if the user asked Codex to relay the sidecar answer
|
|
77
|
+
|
|
38
78
|
## Research Graph
|
|
39
79
|
|
|
40
80
|
The graph is manifest-first:
|
|
@@ -44,7 +84,7 @@ The graph is manifest-first:
|
|
|
44
84
|
- Markdown frontmatter can supply local metadata, but `graph.yaml` wins on conflicts.
|
|
45
85
|
- Graph file links are relative to the graph manifest directory by default. Use a leading `/` for an explicit workspace-root-relative link.
|
|
46
86
|
|
|
47
|
-
Default manifest path: `research/graph.yaml`. Override with
|
|
87
|
+
Default manifest path: `research/graph.yaml`. Override with `--graph`, or save the active graph in `.side/config.json` at `graph.manifestPath`. The UI can discover graph files across the workspace and save the selected graph to `.side/config.json`.
|
|
48
88
|
|
|
49
89
|
## API Quick Reference
|
|
50
90
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
interface:
|
|
2
2
|
display_name: "Sidecar Thinking"
|
|
3
|
-
short_description: "
|
|
4
|
-
default_prompt: "Use $sidecar-thinking to
|
|
3
|
+
short_description: "Use Research Sidecar only when explicitly requested"
|
|
4
|
+
default_prompt: "Use $sidecar-thinking only when I explicitly ask to use/open/start Research Sidecar, inspect a sidecar research graph, install sidecar workspace skills, or run an external sidecar thinking pass."
|