class-ai-agent 1.6.1 → 1.6.3
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/.agent/SESSION.md +1 -0
- package/.agent/rules/antigravity-overview.md +1 -1
- package/.agent/rules/codegraph.md +3 -1
- package/.agent/rules/ontosight.md +57 -14
- package/.agents/references/codegraph.md +3 -1
- package/.agents/references/ontosight.md +43 -17
- package/.agents/skills/ui-ux-pro-max/IMPACT-DEMO.md +7 -6
- package/.claude/CLAUDE.md +1 -1
- package/.claude/references/ontosight.md +43 -17
- package/.claude/rules/codegraph.md +3 -1
- package/.claude/rules/ontosight.md +57 -14
- package/.claude/skills/ui-ux-pro-max/IMPACT-DEMO.md +7 -6
- package/.cursor/CURSOR.md +1 -1
- package/.cursor/references/codegraph.md +3 -1
- package/.cursor/references/ontosight.md +43 -17
- package/.cursor/rules/codegraph.mdc +3 -1
- package/.cursor/rules/cursor-overview.mdc +1 -1
- package/.cursor/rules/ontosight.mdc +57 -14
- package/.cursor/skills/ui-ux-pro-max/IMPACT-DEMO.md +7 -6
- package/.kiro/KIRO.md +1 -1
- package/.kiro/references/codegraph.md +3 -1
- package/.kiro/references/ontosight.md +43 -17
- package/.kiro/skills/ui-ux-pro-max/IMPACT-DEMO.md +7 -6
- package/.kiro/steering/codegraph.md +3 -1
- package/.kiro/steering/kiro-overview.md +1 -1
- package/.kiro/steering/ontosight.md +57 -14
- package/AGENTS.md +1 -1
- package/GEMINI.md +1 -1
- package/README.md +27 -9
- package/bin/class-ai-agent.cjs +3 -1
- package/package.json +1 -1
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
[OntoSight](https://www.npmjs.com/package/@royalsolution/ontosight) visualizes [CodeGraph](https://github.com/colbymchenry/codegraph) call subgraphs in an interactive browser UI. **class-ai-agent** installs usage rules across all four agent trees; invocation is via `npx` (no npm dependency).
|
|
4
4
|
|
|
5
|
+
**Recommended version:** `@royalsolution/ontosight@0.2.0` (pins PyPI `ontosight-codegraph` 0.2.0). Use unpinned `npx @royalsolution/ontosight@0.2.0` only when the user explicitly wants latest.
|
|
6
|
+
|
|
5
7
|
OntoSight complements CodeGraph MCP — use `codegraph_*` for structural facts in chat; use OntoSight when the user wants visual exploration. See also [`.cursor/references/codegraph.md`](codegraph.md).
|
|
6
8
|
|
|
7
9
|
## Per-tool wiring
|
|
@@ -13,17 +15,32 @@ OntoSight complements CodeGraph MCP — use `codegraph_*` for structural facts i
|
|
|
13
15
|
| Kiro | `.kiro/steering/ontosight.md` | `.kiro/references/ontosight.md` |
|
|
14
16
|
| Antigravity | `.agent/rules/ontosight.md` | `.agents/references/ontosight.md` |
|
|
15
17
|
|
|
18
|
+
## Project graph fidelity
|
|
19
|
+
|
|
20
|
+
OntoSight loads nodes from `.codegraph/codegraph.db` under **`[project-path]`** (default: shell `cwd`). To ensure the browser shows **this workspace's** graph:
|
|
21
|
+
|
|
22
|
+
1. Resolve workspace root (absolute path).
|
|
23
|
+
2. Run `codegraph_status({ projectPath: "<workspace-root>" })` before OntoSight.
|
|
24
|
+
3. Pass **absolute workspace root** as `[project-path]` — never bare `.` when root is known.
|
|
25
|
+
4. Seed `--symbol` / `--task` from `codegraph_*` queries using the **same** `projectPath`.
|
|
26
|
+
5. After launch, verify terminal output: printed project path and topology symbols belong to this repo.
|
|
27
|
+
|
|
28
|
+
See **Project graph fidelity** in [`.cursor/rules/ontosight.mdc`](../rules/ontosight.mdc).
|
|
29
|
+
|
|
16
30
|
## Quick start
|
|
17
31
|
|
|
32
|
+
Replace `<workspace-root>` with the absolute path to the open workspace:
|
|
33
|
+
|
|
18
34
|
```bash
|
|
19
35
|
# Full project — seeds from highest fan-in symbols
|
|
20
|
-
npx @royalsolution/ontosight
|
|
36
|
+
npx @royalsolution/ontosight@0.2.0 "<workspace-root>"
|
|
21
37
|
|
|
22
38
|
# Seed around a symbol (optionally scoped to a path)
|
|
23
|
-
|
|
39
|
+
# --symbol must exist in this project (confirm via codegraph_search first)
|
|
40
|
+
npx @royalsolution/ontosight@0.2.0 "<workspace-root>" --symbol <name> --path src/auth/
|
|
24
41
|
|
|
25
42
|
# Task-scoped subgraph (keyword FTS seeding)
|
|
26
|
-
npx @royalsolution/ontosight
|
|
43
|
+
npx @royalsolution/ontosight@0.2.0 "<workspace-root>" --task "auth flow" --hops 2 --max-nodes 200
|
|
27
44
|
```
|
|
28
45
|
|
|
29
46
|
Auto-creates the CodeGraph index when `.codegraph/codegraph.db` is missing (unless `ONTOSIGHT_SKIP_AUTO_INIT=1`).
|
|
@@ -32,7 +49,7 @@ Auto-creates the CodeGraph index when `.codegraph/codegraph.db` is missing (unle
|
|
|
32
49
|
|
|
33
50
|
| Flag | Description | Default |
|
|
34
51
|
|------|-------------|---------|
|
|
35
|
-
| `[project-path]` | Project root containing `.codegraph/` | `.` (cwd) |
|
|
52
|
+
| `[project-path]` | Project root containing `.codegraph/` | `.` (cwd) — **prefer absolute workspace root** |
|
|
36
53
|
| `--path <dir>` | Limit symbols to files under this path | — |
|
|
37
54
|
| `--symbol <name>` | Seed symbol for BFS subgraph expansion | auto (fan-in) |
|
|
38
55
|
| `--task <text>` | Natural-language seed (keyword match) | — |
|
|
@@ -46,17 +63,19 @@ Auto-creates the CodeGraph index when `.codegraph/codegraph.db` is missing (unle
|
|
|
46
63
|
### Symbol the user named
|
|
47
64
|
|
|
48
65
|
```text
|
|
49
|
-
|
|
66
|
+
0. codegraph_status({ projectPath: "<workspace-root>" })
|
|
67
|
+
1. codegraph_search({ query: "<name>", projectPath: "<workspace-root>" }) → confirm file + kind
|
|
50
68
|
2. Tell user what you found
|
|
51
|
-
3. npx @royalsolution/ontosight
|
|
69
|
+
3. npx @royalsolution/ontosight@0.2.0 "<workspace-root>" --symbol <name> --path <dir-from-search>
|
|
52
70
|
```
|
|
53
71
|
|
|
54
72
|
### Feature area ("how does auth work?")
|
|
55
73
|
|
|
56
74
|
```text
|
|
57
|
-
|
|
75
|
+
0. codegraph_status({ projectPath: "<workspace-root>" })
|
|
76
|
+
1. codegraph_context({ task: "authentication flow", maxNodes: 20, projectPath: "<workspace-root>" })
|
|
58
77
|
2. Summarize key symbols in chat
|
|
59
|
-
3. npx @royalsolution/ontosight
|
|
78
|
+
3. npx @royalsolution/ontosight@0.2.0 "<workspace-root>" --task "authentication flow" --hops 2 --max-nodes 200
|
|
60
79
|
```
|
|
61
80
|
|
|
62
81
|
### Impact analysis demonstration
|
|
@@ -68,18 +87,19 @@ When the user wants to **know** or **see** impact (blast radius, what breaks, do
|
|
|
68
87
|
**Workflow:**
|
|
69
88
|
|
|
70
89
|
```text
|
|
71
|
-
|
|
72
|
-
|
|
90
|
+
0. codegraph_status({ projectPath: "<workspace-root>" })
|
|
91
|
+
1. codegraph_search({ query: "<symbol>", projectPath: "<workspace-root>" }) → confirm file + kind
|
|
92
|
+
2. codegraph_impact({ query: "<symbol>", projectPath: "<workspace-root>" }) → ranked blast radius
|
|
73
93
|
3. Read skills/ui-ux-pro-max/IMPACT-DEMO.md → UX presentation checklist
|
|
74
94
|
4. Optional: ui-ux-pro-max chart/ux searches (see playbook)
|
|
75
95
|
5. Summarize in chat (seed, ranked table, what graph shows)
|
|
76
|
-
6. npx @royalsolution/ontosight
|
|
96
|
+
6. npx @royalsolution/ontosight@0.2.0 "<workspace-root>" --symbol <name> --path <dir> --hops 3 --max-nodes 200
|
|
77
97
|
```
|
|
78
98
|
|
|
79
|
-
**Example
|
|
99
|
+
**Example** (replace paths and symbol with values from `codegraph_search` in **this** project):
|
|
80
100
|
|
|
81
101
|
```bash
|
|
82
|
-
npx @royalsolution/ontosight
|
|
102
|
+
npx @royalsolution/ontosight@0.2.0 "/path/to/workspace" --symbol deleteUser --path src/services/ --hops 3 --max-nodes 200
|
|
83
103
|
```
|
|
84
104
|
|
|
85
105
|
**UX:** Always text summary before opening the browser; include a ranked table of top impacted symbols (accessible alternative to graph-only). See [IMPACT-DEMO.md](../skills/ui-ux-pro-max/IMPACT-DEMO.md).
|
|
@@ -89,8 +109,9 @@ npx @royalsolution/ontosight . --symbol deleteUser --path src/services/ --hops 3
|
|
|
89
109
|
### Index missing
|
|
90
110
|
|
|
91
111
|
```bash
|
|
112
|
+
cd "<workspace-root>"
|
|
92
113
|
npx @colbymchenry/codegraph init -i
|
|
93
|
-
# or let the OntoSight wrapper auto-init (default)
|
|
114
|
+
# or let the OntoSight wrapper auto-init (default) — only when [project-path] is correct
|
|
94
115
|
```
|
|
95
116
|
|
|
96
117
|
## Environment variables
|
|
@@ -104,10 +125,10 @@ npx @colbymchenry/codegraph init -i
|
|
|
104
125
|
|
|
105
126
|
| Requirement | Notes |
|
|
106
127
|
|-------------|-------|
|
|
107
|
-
| Node 20+ | For `npx @royalsolution/ontosight` |
|
|
128
|
+
| Node 20+ | For `npx @royalsolution/ontosight@0.2.0` |
|
|
108
129
|
| Python 3.11+ | Used by `ontosight-codegraph` |
|
|
109
130
|
| uv (recommended) or pipx | Wrapper tries `uvx` first, then `pipx run` |
|
|
110
|
-
| CodeGraph index | `.codegraph/codegraph.db` in
|
|
131
|
+
| CodeGraph index | `.codegraph/codegraph.db` in workspace root |
|
|
111
132
|
|
|
112
133
|
## What the user sees
|
|
113
134
|
|
|
@@ -115,11 +136,16 @@ npx @colbymchenry/codegraph init -i
|
|
|
115
136
|
2. OntoSight opens in the browser with the call subgraph, critical-node highlights, and a CodeGraph query panel for live reloads.
|
|
116
137
|
3. Process stays running until the user closes the server (Ctrl+C in terminal).
|
|
117
138
|
|
|
139
|
+
**Verify fidelity:** confirm the printed **project path** matches workspace root and topology symbols are files under that project — not another repo. If mismatch, stop and re-run with the corrected absolute path.
|
|
140
|
+
|
|
118
141
|
## Troubleshooting
|
|
119
142
|
|
|
120
143
|
| Issue | Action |
|
|
121
144
|
|-------|--------|
|
|
122
|
-
|
|
|
145
|
+
| Browser shows symbols from another repo | Re-run with absolute workspace root as `[project-path]`; delete stray `.codegraph/` in wrong cwd if auto-init ran there |
|
|
146
|
+
| Empty or generic graph | Run `codegraph init -i` in workspace root; seed with `--symbol` from `codegraph_search` in this project |
|
|
147
|
+
| MCP and OntoSight disagree | Align paths: same root for MCP `projectPath` and OntoSight `[project-path]` |
|
|
148
|
+
| `CodeGraph index not found` | Run `npx @colbymchenry/codegraph init -i` in workspace root or remove `ONTOSIGHT_SKIP_AUTO_INIT` |
|
|
123
149
|
| `Neither uv nor pipx found` | Install uv: `curl -LsSf https://astral.sh/uv/install.sh \| sh` |
|
|
124
150
|
| Subgraph truncated warning | Add `--symbol`, `--task`, or `--path`; lower scope before raising `--max-nodes` |
|
|
125
151
|
| Stale symbols after edits | Wait ~2s for CodeGraph watcher sync, or re-run init |
|
|
@@ -46,7 +46,7 @@ Use for: summary-before-graph; tell the user what OntoSight is loading and what
|
|
|
46
46
|
|
|
47
47
|
## Chat summary template
|
|
48
48
|
|
|
49
|
-
Present this **before** running `npx @royalsolution/ontosight
|
|
49
|
+
Present this **before** running `npx @royalsolution/ontosight@0.2.0` (with absolute workspace root as `[project-path]`):
|
|
50
50
|
|
|
51
51
|
### 1. Seed
|
|
52
52
|
|
|
@@ -71,10 +71,10 @@ Group by risk: **direct callers** (highest) vs **transitive** (lower).
|
|
|
71
71
|
|
|
72
72
|
### 4. Action
|
|
73
73
|
|
|
74
|
-
Short line: *"Opening interactive impact graph…"* then run:
|
|
74
|
+
Short line: *"Opening interactive impact graph…"* then run (replace `<workspace-root>` with absolute workspace path):
|
|
75
75
|
|
|
76
76
|
```bash
|
|
77
|
-
npx @royalsolution/ontosight
|
|
77
|
+
npx @royalsolution/ontosight@0.2.0 "<workspace-root>" --symbol <name> --path <dir-from-search> --hops 3 --max-nodes 200
|
|
78
78
|
```
|
|
79
79
|
|
|
80
80
|
---
|
|
@@ -90,12 +90,13 @@ npx @royalsolution/ontosight . --symbol <name> --path <dir-from-search> --hops 3
|
|
|
90
90
|
## Full agent workflow
|
|
91
91
|
|
|
92
92
|
```text
|
|
93
|
-
|
|
94
|
-
|
|
93
|
+
0. codegraph_status({ projectPath: "<workspace-root>" }) → verify index at workspace root
|
|
94
|
+
1. codegraph_search({ query: "<symbol>", projectPath: "<workspace-root>" })
|
|
95
|
+
2. codegraph_impact({ query: "<symbol>", projectPath: "<workspace-root>" })
|
|
95
96
|
3. Read this file (IMPACT-DEMO.md)
|
|
96
97
|
4. Optional: ui-ux-pro-max chart/ux searches above
|
|
97
98
|
5. Chat summary (template sections 1–3)
|
|
98
|
-
6. npx @royalsolution/ontosight
|
|
99
|
+
6. npx @royalsolution/ontosight@0.2.0 "<workspace-root>" --symbol <name> --path <dir> --hops 3 --max-nodes 200
|
|
99
100
|
```
|
|
100
101
|
|
|
101
102
|
See **`.cursor/references/ontosight.md`** for flags and troubleshooting.
|
|
@@ -23,7 +23,7 @@ Use codegraph for **structural** questions — what calls what, what would break
|
|
|
23
23
|
| "See several related symbols' source at once" | `codegraph_explore` |
|
|
24
24
|
| "What files exist under path/" | `codegraph_files` |
|
|
25
25
|
| "Is the index healthy?" | `codegraph_status` |
|
|
26
|
-
| Visual exploration of a subgraph in browser | `npx @royalsolution/ontosight` (see **`.kiro/rules/ontosight.md`**) |
|
|
26
|
+
| Visual exploration of a subgraph in browser | `npx @royalsolution/ontosight@0.2.0` (see **`.kiro/rules/ontosight.md`**) |
|
|
27
27
|
| "Show/demonstrate impact of changing Z" | `codegraph_impact` → then OntoSight `--symbol Z` (see **`.kiro/rules/ontosight.md`**) |
|
|
28
28
|
|
|
29
29
|
### Visualization
|
|
@@ -32,6 +32,8 @@ For interactive call-graph UI (user asks to "show the graph" or explore architec
|
|
|
32
32
|
|
|
33
33
|
For **impact demonstration** requests ("show impact", "blast radius", "what breaks if I change X"), run `codegraph_impact` first, present a text summary, then open OntoSight — never stop at MCP text alone when the user wants to see or show impact.
|
|
34
34
|
|
|
35
|
+
**Project graph fidelity:** OntoSight is a separate CLI — MCP `${workspaceFolder}` binding does not apply automatically. Pass the **same workspace root** to OntoSight's `[project-path]` as you use for `projectPath` on `codegraph_*` calls when MCP cwd detection is wrong. Run `codegraph_status` before opening OntoSight; seeds (`--symbol`, `--task`) must come from queries against that same index. See **Project graph fidelity** in **`.kiro/rules/ontosight.md`**.
|
|
36
|
+
|
|
35
37
|
### Tool parameters (do not mix)
|
|
36
38
|
|
|
37
39
|
| Tool | Required arg | Optional cap | Wrong args → error |
|
|
@@ -28,7 +28,7 @@ Supporting prompts: `debug`, `simplify`, `fix-issue`, `handoff`, `resume` in `.k
|
|
|
28
28
|
- Prefer **tests first** and **small vertical slices** (see `.kiro/skills/incremental-implementation/`).
|
|
29
29
|
- Use **`.kiro/references/`** for checklists (security, testing, performance, accessibility).
|
|
30
30
|
- For **structural** code questions, prefer **CodeGraph** MCP tools per **`.kiro/steering/codegraph.md`**.
|
|
31
|
-
- When the user wants a **visual call graph**, use **OntoSight CLI** per **`.kiro/steering/ontosight.md`** (`npx @royalsolution/ontosight`).
|
|
31
|
+
- When the user wants a **visual call graph**, use **OntoSight CLI** per **`.kiro/steering/ontosight.md`** (`npx @royalsolution/ontosight@0.2.0`).
|
|
32
32
|
|
|
33
33
|
## Agents (personas)
|
|
34
34
|
|
|
@@ -14,12 +14,50 @@ See **`.kiro/rules/codegraph.md`** for MCP usage and **`.kiro/references/ontosig
|
|
|
14
14
|
| Goal | Use |
|
|
15
15
|
|------|-----|
|
|
16
16
|
| Find symbols, callers, traces, impact (text in chat) | `codegraph_*` MCP tools |
|
|
17
|
-
| Visual exploration of a subgraph | `npx @royalsolution/ontosight` |
|
|
17
|
+
| Visual exploration of a subgraph | `npx @royalsolution/ontosight@0.2.0` |
|
|
18
18
|
| User says "show me the graph" | OntoSight CLI |
|
|
19
19
|
| Impact / blast radius demonstration | `codegraph_impact` → summary → OntoSight CLI |
|
|
20
20
|
|
|
21
21
|
Rule of thumb: gather facts with CodeGraph MCP; open OntoSight when visualization helps the human explore complexity you already identified.
|
|
22
22
|
|
|
23
|
+
### Project graph fidelity
|
|
24
|
+
|
|
25
|
+
OntoSight reads nodes from `.codegraph/codegraph.db` under the **`[project-path]`** argument (default: shell `cwd`). The browser must show **this workspace's** project graph — never a foreign repo or auto-init index from the wrong directory.
|
|
26
|
+
|
|
27
|
+
**Mandatory preflight** (before any OntoSight run):
|
|
28
|
+
|
|
29
|
+
1. Resolve **workspace root** (Cursor `${workspaceFolder}` / absolute path from user context).
|
|
30
|
+
2. `codegraph_status({ projectPath: "<workspace-root>" })` when MCP may be on wrong cwd; otherwise default.
|
|
31
|
+
3. If index missing → `npx @colbymchenry/codegraph init -i` **in workspace root** (ask user on large repos).
|
|
32
|
+
4. If MCP returns "wrong project" / path mismatch → pass `projectPath` on all subsequent `codegraph_*` calls.
|
|
33
|
+
|
|
34
|
+
**Hard rule:** Do not open OntoSight until `.codegraph/codegraph.db` exists under the **target workspace root**.
|
|
35
|
+
|
|
36
|
+
**Absolute project path** — never rely on bare `.` when workspace root is known:
|
|
37
|
+
|
|
38
|
+
```bash
|
|
39
|
+
# Required when workspace root is known
|
|
40
|
+
npx @royalsolution/ontosight@0.2.0 "/absolute/path/to/workspace" \
|
|
41
|
+
--symbol <name> --path <dir>
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
Pass workspace root as the **first positional `[project-path]`** argument. Optionally set shell `cwd` to workspace root as well — but always pass the absolute path.
|
|
45
|
+
|
|
46
|
+
**Seed binding** — seeds must come from the same project's CodeGraph index:
|
|
47
|
+
|
|
48
|
+
| Seed mode | Requirement |
|
|
49
|
+
|-----------|-------------|
|
|
50
|
+
| `--symbol` | Name **must** come from `codegraph_search` / `codegraph_context` with the **same** `projectPath`; `--path` must match the directory prefix of the returned file path |
|
|
51
|
+
| `--task` | Only after `codegraph_context({ task, maxNodes })`; prefer `--symbol` when user named a symbol |
|
|
52
|
+
| Default (no seed) | Full-project exploration only; still require absolute workspace path |
|
|
53
|
+
|
|
54
|
+
**Anti-patterns (explicit ban):**
|
|
55
|
+
|
|
56
|
+
- Do not use README/doc example symbols (`view_graph`, `deleteUser`) unless `codegraph_search` confirms they exist in **this** project.
|
|
57
|
+
- Do not run OntoSight from a subdirectory with bare `.` — auto-init may index the wrong tree.
|
|
58
|
+
|
|
59
|
+
**After launch:** confirm OntoSight terminal output shows the correct **project path** and topology symbols under that project. If mismatch → stop and re-run with corrected absolute path.
|
|
60
|
+
|
|
23
61
|
### When to run OntoSight
|
|
24
62
|
|
|
25
63
|
Run (or suggest) OntoSight when the user:
|
|
@@ -41,12 +79,13 @@ Do **not** run OntoSight to collect agent context — that duplicates CodeGraph
|
|
|
41
79
|
|
|
42
80
|
**Workflow** (mandatory order):
|
|
43
81
|
|
|
44
|
-
|
|
45
|
-
|
|
82
|
+
0. `codegraph_status({ projectPath: "<workspace-root>" })` — verify index at workspace root
|
|
83
|
+
1. `codegraph_search({ query: "<symbol>", projectPath: "<workspace-root>" })` — confirm name, file, kind
|
|
84
|
+
2. `codegraph_impact({ query: "<symbol>", projectPath: "<workspace-root>" })` — ranked blast radius (chat facts)
|
|
46
85
|
3. Read **`.kiro/skills/ui-ux-pro-max/IMPACT-DEMO.md`** — presentation checklist (use your tool's skills path: `.claude/skills/`, `.kiro/skills/`, `.agents/skills/`)
|
|
47
86
|
4. Optional: run ui-ux-pro-max searches from the playbook for chart/UX framing
|
|
48
87
|
5. Summarize in chat: seed symbol, top impacted callers, risk tier, what the graph will highlight
|
|
49
|
-
6. `npx @royalsolution/ontosight
|
|
88
|
+
6. `npx @royalsolution/ontosight@0.2.0 "<workspace-root>" --symbol <name> --path <dir> --hops 3 --max-nodes 200`
|
|
50
89
|
|
|
51
90
|
**Hop guidance:** use `--hops 3` (or `4` for deep trees) for impact demos; prefer `--path` over raising `--max-nodes` when truncated.
|
|
52
91
|
|
|
@@ -56,25 +95,29 @@ Do **not** run OntoSight to collect agent context — that duplicates CodeGraph
|
|
|
56
95
|
|
|
57
96
|
**Symbol the user named:**
|
|
58
97
|
|
|
59
|
-
|
|
98
|
+
0. `codegraph_status({ projectPath: "<workspace-root>" })`
|
|
99
|
+
1. `codegraph_search({ query: "<name>", projectPath: "<workspace-root>" })` → confirm file + kind
|
|
60
100
|
2. Summarize in chat
|
|
61
|
-
3. `npx @royalsolution/ontosight
|
|
101
|
+
3. `npx @royalsolution/ontosight@0.2.0 "<workspace-root>" --symbol <name> --path <dir-from-search>`
|
|
62
102
|
|
|
63
103
|
**Feature area ("how does auth work?"):**
|
|
64
104
|
|
|
65
|
-
|
|
105
|
+
0. `codegraph_status({ projectPath: "<workspace-root>" })`
|
|
106
|
+
1. `codegraph_context({ task: "authentication flow", maxNodes: 20, projectPath: "<workspace-root>" })`
|
|
66
107
|
2. Summarize key symbols in chat
|
|
67
|
-
3. `npx @royalsolution/ontosight
|
|
108
|
+
3. `npx @royalsolution/ontosight@0.2.0 "<workspace-root>" --task "authentication flow" --hops 2 --max-nodes 200`
|
|
68
109
|
|
|
69
110
|
**Large repo:** prefer `--path` or `--symbol` before raising `--max-nodes`.
|
|
70
111
|
|
|
71
112
|
### Commands
|
|
72
113
|
|
|
114
|
+
Replace `<workspace-root>` with the absolute path to the open workspace (never bare `.` when root is known):
|
|
115
|
+
|
|
73
116
|
```bash
|
|
74
|
-
npx @royalsolution/ontosight
|
|
75
|
-
npx @royalsolution/ontosight
|
|
76
|
-
npx @royalsolution/ontosight
|
|
77
|
-
npx @royalsolution/ontosight
|
|
117
|
+
npx @royalsolution/ontosight@0.2.0 "<workspace-root>"
|
|
118
|
+
npx @royalsolution/ontosight@0.2.0 "<workspace-root>" --symbol <name> --path <dir>
|
|
119
|
+
npx @royalsolution/ontosight@0.2.0 "<workspace-root>" --task "auth flow" --hops 2 --max-nodes 200
|
|
120
|
+
npx @royalsolution/ontosight@0.2.0 "<workspace-root>" --symbol <name> --path <dir> --hops 3 --max-nodes 200
|
|
78
121
|
```
|
|
79
122
|
|
|
80
123
|
Auto-creates the CodeGraph index when `.codegraph/codegraph.db` is missing (unless `ONTOSIGHT_SKIP_AUTO_INIT=1`). Ask the user before auto-init on very large repos.
|
|
@@ -83,7 +126,7 @@ Auto-creates the CodeGraph index when `.codegraph/codegraph.db` is missing (unle
|
|
|
83
126
|
|
|
84
127
|
| Requirement | Notes |
|
|
85
128
|
|-------------|-------|
|
|
86
|
-
| Node 20+ | For `npx @royalsolution/ontosight` |
|
|
129
|
+
| Node 20+ | For `npx @royalsolution/ontosight@0.2.0` |
|
|
87
130
|
| Python 3.11+ | Used by `ontosight-codegraph` |
|
|
88
131
|
| uv (recommended) or pipx | Wrapper tries `uvx` first, then `pipx run` |
|
|
89
|
-
| CodeGraph index | `.codegraph/codegraph.db` in
|
|
132
|
+
| CodeGraph index | `.codegraph/codegraph.db` in workspace root |
|
package/AGENTS.md
CHANGED
|
@@ -37,7 +37,7 @@ Project guidance for AI coding agents:
|
|
|
37
37
|
## Code intelligence
|
|
38
38
|
|
|
39
39
|
- **CodeGraph MCP** (`codegraph_*`) — structural code search in chat; rules in each tool's `codegraph` rule file
|
|
40
|
-
- **OntoSight** (`npx @royalsolution/ontosight`) — interactive call-graph visualization in the browser; rules in each tool's `ontosight` rule file
|
|
40
|
+
- **OntoSight** (`npx @royalsolution/ontosight@0.2.0`) — interactive call-graph visualization in the browser; rules in each tool's `ontosight` rule file
|
|
41
41
|
|
|
42
42
|
## Maintainers
|
|
43
43
|
|
package/GEMINI.md
CHANGED
|
@@ -101,7 +101,7 @@ This project includes **[OntoSight](https://www.npmjs.com/package/@royalsolution
|
|
|
101
101
|
| Setup reference | `.agents/references/ontosight.md` |
|
|
102
102
|
| Shared index | `.codegraph/` (same as CodeGraph) |
|
|
103
103
|
|
|
104
|
-
Use `codegraph_*` MCP tools to gather structural facts in chat; run `npx @royalsolution/ontosight .` when the user wants a visual call graph. Requires Node 20+, Python 3.11+, and uv or pipx.
|
|
104
|
+
Use `codegraph_*` MCP tools to gather structural facts in chat; run `npx @royalsolution/ontosight@0.2.0 .` when the user wants a visual call graph. For **impact analysis demos**, follow `skills/ui-ux-pro-max/IMPACT-DEMO.md` (search → `codegraph_impact` → summary → graph). Requires Node 20+, Python 3.11+, and uv or pipx.
|
|
105
105
|
|
|
106
106
|
---
|
|
107
107
|
|
package/README.md
CHANGED
|
@@ -18,7 +18,7 @@ Open-source AI agent scaffolding by **Royal Solution** — use it in your own pr
|
|
|
18
18
|
<a href="https://www.npmjs.com/package/class-ai-agent"><img src="https://img.shields.io/npm/v/class-ai-agent?label=npm&logo=npm&style=flat-square" alt="npm version" /></a>
|
|
19
19
|
<img src="https://img.shields.io/badge/node-%3E%3D16.7-339933?logo=node.js&logoColor=white&style=flat-square" alt="Node.js 16.7+" />
|
|
20
20
|
<img src="https://img.shields.io/badge/license-MIT-blue?style=flat-square" alt="License MIT" />
|
|
21
|
-
<img src="https://img.shields.io/badge/version-1.6.
|
|
21
|
+
<img src="https://img.shields.io/badge/version-1.6.3-blue?style=flat-square" alt="Version" />
|
|
22
22
|
</p>
|
|
23
23
|
|
|
24
24
|
</div>
|
|
@@ -58,7 +58,7 @@ Open-source AI agent scaffolding by **Royal Solution** — use it in your own pr
|
|
|
58
58
|
| **13 topic rules** | Code style, security, API, DB, testing, git, and more (same ideas in both trees) |
|
|
59
59
|
| **`npx` installer** | Copies the folders into your project in one command |
|
|
60
60
|
| **CodeGraph** | MCP + usage rules for Cursor and Kiro; Antigravity via user `mcp_config.json`; local index via [CodeGraph](https://github.com/colbymchenry/codegraph) |
|
|
61
|
-
| **OntoSight** | Visual call-graph UI via `npx @royalsolution/ontosight`; usage rules synced to all four agent trees |
|
|
61
|
+
| **OntoSight** | Visual call-graph UI via `npx @royalsolution/ontosight@0.2.0`; usage rules synced to all four agent trees |
|
|
62
62
|
| **Agent continuity** | Committed **`.agent/SESSION.md`** — `/resume` and `/handoff` across Cursor, Claude Code, Kiro, and Antigravity |
|
|
63
63
|
|
|
64
64
|
Root **`AGENTS.md`** links hubs: **`.cursor/CURSOR.md`**, **`.kiro/KIRO.md`**, **`.claude/CLAUDE.md`**, **`GEMINI.md`**.
|
|
@@ -151,7 +151,9 @@ npm exec -- class-ai-agent --dir /path/to/your/project
|
|
|
151
151
|
| **Kiro** | `.kiro/steering/ontosight.md`, `.kiro/references/ontosight.md` |
|
|
152
152
|
| **Claude Code** | `.claude/rules/ontosight.md`, `.claude/references/ontosight.md` |
|
|
153
153
|
| **Antigravity** | `.agent/rules/ontosight.md`, `.agents/references/ontosight.md` |
|
|
154
|
-
| **Quick start** | `npx @royalsolution/ontosight
|
|
154
|
+
| **Quick start** | `npx @royalsolution/ontosight@0.2.0 "<workspace-root>"` — pass absolute workspace root (not bare `.`); auto-inits CodeGraph index if missing |
|
|
155
|
+
| **Project graph** | Preflight with `codegraph_status`; seeds from `codegraph_search` in same project — see `.cursor/rules/ontosight.mdc` |
|
|
156
|
+
| **Pinned version** | `@royalsolution/ontosight@0.2.0` (`ontosight-codegraph` 0.2.0 on PyPI) |
|
|
155
157
|
| **Requirements** | Node 20+, Python 3.11+, uv or pipx; shares `.codegraph/` with CodeGraph |
|
|
156
158
|
| **Troubleshooting** | `.cursor/references/ontosight.md` |
|
|
157
159
|
| **Impact demos** | `skills/ui-ux-pro-max/IMPACT-DEMO.md` — `codegraph_impact` → UX summary → graph |
|
|
@@ -159,19 +161,23 @@ npm exec -- class-ai-agent --dir /path/to/your/project
|
|
|
159
161
|
Example agent workflow (feature area):
|
|
160
162
|
|
|
161
163
|
```text
|
|
162
|
-
|
|
163
|
-
|
|
164
|
+
0. codegraph_status({ projectPath: "<workspace-root>" })
|
|
165
|
+
1. codegraph_context({ task: "auth flow", maxNodes: 20, projectPath: "<workspace-root>" }) → answer in chat
|
|
166
|
+
2. npx @royalsolution/ontosight@0.2.0 "<workspace-root>" --task "auth flow" --hops 2 → open graph for user
|
|
164
167
|
```
|
|
165
168
|
|
|
166
169
|
Example **impact analysis** demo:
|
|
167
170
|
|
|
168
171
|
```text
|
|
169
|
-
|
|
170
|
-
|
|
172
|
+
0. codegraph_status({ projectPath: "<workspace-root>" })
|
|
173
|
+
1. codegraph_search({ query: "<symbol>", projectPath: "<workspace-root>" })
|
|
174
|
+
2. codegraph_impact({ query: "<symbol>", projectPath: "<workspace-root>" }) → ranked blast radius in chat
|
|
171
175
|
3. Follow IMPACT-DEMO.md (ui-ux-pro-max presentation)
|
|
172
|
-
4. npx @royalsolution/ontosight
|
|
176
|
+
4. npx @royalsolution/ontosight@0.2.0 "<workspace-root>" --symbol <name> --path <dir> --hops 3
|
|
173
177
|
```
|
|
174
178
|
|
|
179
|
+
**Wrong graph in browser?** OntoSight defaults to shell `cwd` — always pass the absolute workspace root as `[project-path]`. See `.cursor/references/ontosight.md` troubleshooting.
|
|
180
|
+
|
|
175
181
|
---
|
|
176
182
|
|
|
177
183
|
## Overview
|
|
@@ -436,6 +442,18 @@ Ship thin end-to-end slices (DB + API + UI), not “all models first, then all r
|
|
|
436
442
|
|
|
437
443
|
|
|
438
444
|
|
|
445
|
+
|
|
446
|
+
|
|
447
|
+
### 1.6.3 — 2026-06-19
|
|
448
|
+
|
|
449
|
+
- Add **Project graph fidelity** rules for OntoSight — mandatory `codegraph_status` preflight, absolute workspace root as `[project-path]`, seed binding from CodeGraph MCP
|
|
450
|
+
- Replace fragile bare `.` OntoSight examples with `<workspace-root>` across rules, references, IMPACT-DEMO, README, and CLI help
|
|
451
|
+
- Add wrong-graph troubleshooting (foreign repo symbols, MCP/OntoSight path mismatch)
|
|
452
|
+
|
|
453
|
+
### 1.6.2 — 2026-06-19
|
|
454
|
+
|
|
455
|
+
- Pin agent OntoSight CLI invocations to **`@royalsolution/ontosight@0.2.0`** (latest; `ontosight-codegraph` 0.2.0)
|
|
456
|
+
|
|
439
457
|
### 1.6.1 — 2026-06-19
|
|
440
458
|
|
|
441
459
|
- Add **impact analysis demonstration** workflow: `codegraph_impact` → UX summary → OntoSight graph
|
|
@@ -444,7 +462,7 @@ Ship thin end-to-end slices (DB + API + UI), not “all models first, then all r
|
|
|
444
462
|
|
|
445
463
|
### 1.6.0 — 2026-06-19
|
|
446
464
|
|
|
447
|
-
- Integrate **[OntoSight](https://www.npmjs.com/package/@royalsolution/ontosight)** — visual CodeGraph call subgraphs via `npx @royalsolution/ontosight`
|
|
465
|
+
- Integrate **[OntoSight](https://www.npmjs.com/package/@royalsolution/ontosight)** — visual CodeGraph call subgraphs via `npx @royalsolution/ontosight@0.2.0`
|
|
448
466
|
- Add always-on `ontosight` rules and references synced to Cursor, Claude Code, Kiro, and Antigravity
|
|
449
467
|
- Cross-link CodeGraph rules with OntoSight visualization workflows
|
|
450
468
|
|
package/bin/class-ai-agent.cjs
CHANGED
|
@@ -40,7 +40,9 @@ CodeGraph:
|
|
|
40
40
|
(Node 20+ recommended). Set CODEGRAPH_SKIP_INIT=1 to skip indexing.
|
|
41
41
|
|
|
42
42
|
OntoSight:
|
|
43
|
-
Visual call graphs: npx @royalsolution/ontosight
|
|
43
|
+
Visual call graphs: npx @royalsolution/ontosight@0.2.0 "<workspace-root>"
|
|
44
|
+
Pass absolute workspace root as [project-path] (not bare .) so the browser loads this project's graph.
|
|
45
|
+
Preflight with codegraph_status; seed --symbol from codegraph_search in the same project.
|
|
44
46
|
Agent rules installed at .cursor/rules/ontosight.mdc (and synced trees).
|
|
45
47
|
Requires Node 20+, Python 3.11+, uv or pipx.
|
|
46
48
|
|