You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Make Goal Capsules discoverable as Edgebase-native commands
Add the branded /edgebase-goal surface across Claude Code, Codex, MCP prompts, setup diagnostics, and docs while preserving /goal as a compatibility alias. Also add an installed-version CLI check and make Codex setup skip user-owned unmarked skills instead of aborting.
Constraint: Public OSS setup needs pasteable agent onboarding, clear branded commands, and config preservation without committing project-local agent files.
Rejected: Keep only /goal as the explicit command | too generic for discovery and harder to associate with Edgebase after setup.
Confidence: high
Scope-risk: moderate
Directive: Keep /goal compatibility unless a future major release intentionally migrates existing users.
Tested: python3 -m compileall -q src tests; python3 -m unittest -v; git diff --check; static script scan for assets/docs; temporary venv install, setup, doctor, slash-skill file checks, hook preflight smoke, and edgebase --version.
Not-tested: Interactive slash-command rendering inside live Claude Code or Codex after client restart.
Co-authored-by: OmX <omx@oh-my-codex.dev>
Copy file name to clipboardExpand all lines: CHANGELOG.md
+13Lines changed: 13 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,6 +2,19 @@
2
2
3
3
## Unreleased
4
4
5
+
## 0.1.6 - 2026-05-26
6
+
7
+
### Added
8
+
9
+
- Branded `/edgebase-goal <goal>` project skills for Claude Code and Codex, plus an `edgebase-goal` MCP prompt for clients that expose prompt menus.
10
+
- Doctor checks and setup coverage for the new branded Goal Capsule command.
11
+
-`edgebase --version` for quick installed-version checks.
12
+
13
+
### Changed
14
+
15
+
-`/goal <goal>` remains installed as a compatibility alias, while docs now lead with `/edgebase-goal` to make the command easier to associate with Edgebase.
16
+
- Codex setup now skips unmarked existing project skills instead of aborting setup, matching the existing Claude Code preservation behavior.
Copy file name to clipboardExpand all lines: README.md
+30-23Lines changed: 30 additions & 23 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -28,8 +28,8 @@ Its flagship feature is **Goal Capsules**: short, executable briefs that tell Co
28
28
- Runs locally with no Docker, cloud service, graph database, or API key.
29
29
- Preserves provenance for every edge: path, line, extractor, confidence, commit, and freshness.
30
30
31
-
```bash
32
-
python3 -m edgebasegoal "Add passwordless login support without breaking existing OAuth"
31
+
```text
32
+
/edgebase-goal "Add passwordless login support without breaking existing OAuth"
33
33
```
34
34
35
35
```text
@@ -65,7 +65,7 @@ Patch contract:
65
65
The final PR must include changed files, rationale, tests run, regression evidence, and unresolved assumptions.
66
66
```
67
67
68
-
Goal Capsules are backed by the local graph index, git state, inferred tests, provenance, and working-tree freshness. They are recorded automatically by supported hooks, exposed as `/goal ...` when a manual command is useful, and called through CLI/MCP before write tools run. The same agent-facing paths also refresh optional local graph artifacts at `.edgebase/graphs/latest.html`, `.json`, and `.dot`; agents surface the paths without dumping raw graph data into context.
68
+
Goal Capsules are backed by the local graph index, git state, inferred tests, provenance, and working-tree freshness. They are recorded automatically by supported hooks, exposed as `/edgebase-goal ...` when a manual command is useful, and called through CLI/MCP before write tools run. `/goal ...` remains installed as a shorter compatibility alias. The same agent-facing paths also refresh optional local graph artifacts at `.edgebase/graphs/latest.html`, `.json`, and `.dot`; agents surface the paths without dumping raw graph data into context.
69
69
70
70
Edgebase also keeps `AGENTS.md` small, indexes the repository into a rebuildable SQLite graph, and exposes MCP tools that agents can use before editing:
71
71
@@ -130,7 +130,7 @@ Rules:
130
130
- Do not add generated architecture summaries to AGENTS.md.
131
131
- Do not remove existing agent config.
132
132
- Do not commit unless I explicitly ask.
133
-
- Explain that Edgebase is on by default after setup, can be disabled with `python3 -m edgebase disable --scope both`, and can be bypassed for one emergency session with `EDGEBASE_PREFLIGHT=off`.
133
+
- Explain that Edgebase is on by default after setup, can be disabled with `edgebase disable --scope both`, and can be bypassed for one emergency session with `EDGEBASE_PREFLIGHT=off`.
134
134
```
135
135
136
136
If you are setting up a remote repository, change the target line:
@@ -151,7 +151,7 @@ python3 -m edgebase setup --scope both
151
151
python3 -m edgebase doctor --scope both
152
152
```
153
153
154
-
Edgebase is enabled by default after setup. Turn it off with `python3 -m edgebase disable --scope both`.
154
+
Edgebase is enabled by default after setup. Turn it off with `edgebase disable --scope both`.
155
155
156
156
To bypass only the edit gate for one emergency session without removing MCP config:
157
157
@@ -168,8 +168,8 @@ EDGEBASE_PREFLIGHT=off
168
168
| Edgebase cache/artifacts |`.edgebase/index.sqlite3`, `.edgebase/graphs/latest.*`| none | Rebuildable local graph cache plus optional visual artifacts, ignored by git |
| Cursor |`.cursor/mcp.json`|`~/.cursor/mcp.json`| MCP server entry |
174
174
| Gemini CLI |`.gemini/settings.json`|`~/.gemini/settings.json`| MCP server entry |
175
175
| OpenCode |`.opencode.json`|`~/.opencode.json`| Enabled local MCP server |
@@ -184,24 +184,31 @@ Setup uses the Python interpreter that ran setup, with `-m edgebase`, instead of
184
184
185
185
Most users do not run Edgebase manually after setup.
186
186
187
-
- Claude Code: `UserPromptSubmit` records and injects a Goal Capsule before planning. `PreToolUse` blocks Write/Edit/MultiEdit if no fresh capsule exists. `PostToolUse` refreshes the graph after edits. `PreCompact` saves a checkpoint, and `SessionEnd` saves a Patch Passport. Project skills `/edgebase <task>` and `/goal <goal>` are installed as explicit commands.
188
-
- Codex: setup writes MCP config, project `.codex/hooks.json`, `[features] hooks = true`, `.agents/skills/edgebase`, `.agents/skills/goal`, and the `AGENTS.md` marker. Codex uses MCP plus project skills by default; when trusted hook support is active, the same preflight gate records capsules, blocks stale edits, refreshes after edits, checkpoints before compaction, and saves a Patch Passport on stop.
187
+
- Claude Code: `UserPromptSubmit` records and injects a Goal Capsule before planning. `PreToolUse` blocks Write/Edit/MultiEdit if no fresh capsule exists. `PostToolUse` refreshes the graph after edits. `PreCompact` saves a checkpoint, and `SessionEnd` saves a Patch Passport. Project skills `/edgebase <task>` and `/edgebase-goal <goal>` are installed as explicit commands; `/goal <goal>` remains as a compatibility alias.
188
+
- Codex: setup writes MCP config, project `.codex/hooks.json`, `[features] hooks = true`, `.agents/skills/edgebase`, `.agents/skills/edgebase-goal`, `.agents/skills/goal`, and the `AGENTS.md` marker. Codex uses MCP plus project skills by default; when trusted hook support is active, the same preflight gate records capsules, blocks stale edits, refreshes after edits, checkpoints before compaction, and saves a Patch Passport on stop.
189
189
- Cursor, Gemini CLI, OpenCode, and Windsurf: Edgebase installs MCP config and a marker-bounded `AGENTS.md` instruction telling agents to use `edgebase_context` or `edgebase_goal` automatically before broad code exploration or edits. Those MCP calls update `.edgebase/graphs/latest.*` and return the artifact paths.
190
-
- Any client: the MCP prompts named `edgebase` and `goal` are available for clients that expose MCP prompts or slash-command-style prompt menus.
190
+
- Any client: the MCP prompts named `edgebase`, `edgebase-goal`, and `goal` are available for clients that expose MCP prompts or slash-command-style prompt menus.
Copy file name to clipboardExpand all lines: docs/AGENT_CLIENTS.md
+30-19Lines changed: 30 additions & 19 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -39,12 +39,19 @@ Rules:
39
39
- Do not add generated architecture summaries to AGENTS.md.
40
40
- Do not remove existing agent config.
41
41
- Do not commit unless I explicitly ask.
42
-
- Explain that Edgebase is on by default after setup, can be disabled with `python3 -m edgebase disable --scope both`, and can be bypassed for one emergency session with `EDGEBASE_PREFLIGHT=off`.
42
+
- Explain that Edgebase is on by default after setup, can be disabled with `edgebase disable --scope both`, and can be bypassed for one emergency session with `EDGEBASE_PREFLIGHT=off`.
43
43
```
44
44
45
45
For a remote repository, replace the target line with `Repository target: https://github.com/OWNER/REPO`.
46
46
47
-
Default state after setup: **on** for selected agents. The manual fallback commands are:
47
+
Default state after setup: **on** for selected agents. In Claude Code, Codex, and clients that expose MCP prompts as slash commands, use:
48
+
49
+
```text
50
+
/edgebase "implement password reset"
51
+
/edgebase-goal "implement password reset without regressing login"
-`.opencode.json` and/or `~/.opencode.json`: OpenCode local MCP server.
@@ -109,14 +118,15 @@ It also writes `.claude/settings.json` hooks:
109
118
-`PreCompact`: saves `.edgebase/checkpoints/latest.md` before compaction.
110
119
-`SessionEnd`: saves `.edgebase/passports/latest.md` and `.json` at session end.
111
120
112
-
It also writes a project skill:
121
+
It also writes project skills:
113
122
114
123
```text
115
124
/edgebase <task>
125
+
/edgebase-goal <goal>
116
126
/goal <goal>
117
127
```
118
128
119
-
Use `/edgebase` when you want a compact read set. Use `/goal` when you want an executable Goal Capsule with blast radius, protected areas, required checks, and a patch contract. Normal coding prompts do not need the phrase "Use edgebase_context"; the prompt hook records and supplies the Goal Capsule automatically when the prompt looks like implementation, debugging, review, or investigation work.
129
+
Use `/edgebase` when you want a compact read set. Use `/edgebase-goal` when you want an executable Goal Capsule with blast radius, protected areas, required checks, and a patch contract. `/goal` is kept as a shorter compatibility alias. Normal coding prompts do not need the phrase "Use edgebase_context"; the prompt hook records and supplies the Goal Capsule automatically when the prompt looks like implementation, debugging, review, or investigation work.
120
130
121
131
Hook and MCP responses may include `.edgebase/graphs/latest.*` paths. Treat them as local visual aids for relationship inspection; do not paste raw graph JSON or DOT back into agent context.
122
132
@@ -162,6 +172,7 @@ And project skills:
162
172
163
173
```text
164
174
/edgebase <task>
175
+
/edgebase-goal <goal>
165
176
/goal <goal>
166
177
```
167
178
@@ -170,7 +181,7 @@ Useful check:
170
181
```bash
171
182
codex mcp list
172
183
codex mcp get edgebase
173
-
python3 -m edgebase doctor --agents codex --scope project
184
+
edgebase doctor --agents codex --scope project
174
185
```
175
186
176
187
The currently verified Codex CLI path reads `~/.codex/config.toml`, so the frictionless install command uses `--scope both`. Edgebase also writes `.codex/config.toml`, `.codex/hooks.json`, and `.agents/skills/*` for project-local workflows. When Codex trusts project hooks, the hook path gives the same preflight behavior as Claude Code: Goal Capsule before planning, edit block if stale, refresh after edit, checkpoint before compaction, and Patch Passport on stop.
@@ -239,35 +250,35 @@ Project scope is skipped for Windsurf because Windsurf's documented config path
edgebase preflight refresh "implement password reset without regressing login"
258
+
edgebase checkpoint "handoff after password reset"
259
+
edgebase resume
249
260
```
250
261
251
-
MCP clients that expose prompts can also use the MCP prompts named `edgebase` and `goal`, which return the same source-backed capsule surfaces in prompt form.
262
+
MCP clients that expose prompts can also use the MCP prompts named `edgebase`, `edgebase-goal`, and `goal`, which return the same source-backed capsule surfaces in prompt form.
252
263
253
264
MCP and hook paths refresh `.edgebase/graphs/latest.html`, `.json`, and `.dot` automatically. Open or inspect those local artifacts only when a visual file relationship view helps the task.
Copy file name to clipboardExpand all lines: docs/ARCHITECTURE.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -132,11 +132,11 @@ Claude Code has documented prompt and tool hooks, so Edgebase provides:
132
132
-`PreCompact`: context checkpoint before compaction.
133
133
-`SessionEnd`: Patch Passport at session end.
134
134
- project skill `/edgebase <task>` for explicit manual refresh.
135
-
- project skill `/goal <goal>` for explicit Goal Capsules.
135
+
- project skill `/edgebase-goal <goal>` for explicit Goal Capsules, with `/goal <goal>` as a compatibility alias.
136
136
137
-
Codex setup is MCP plus project-scoped hooks and skills. Edgebase writes `.codex/config.toml`, `[features] hooks = true`, `.codex/hooks.json`, `.agents/skills/edgebase`, and `.agents/skills/goal`. When project hooks are trusted, Codex receives the same preflight gate: prompt-time capsule, stale edit block, post-edit refresh, pre-compact checkpoint, and stop-time Patch Passport.
137
+
Codex setup is MCP plus project-scoped hooks and skills. Edgebase writes `.codex/config.toml`, `[features] hooks = true`, `.codex/hooks.json`, `.agents/skills/edgebase`, `.agents/skills/edgebase-goal`, and `.agents/skills/goal`. When project hooks are trusted, Codex receives the same preflight gate: prompt-time capsule, stale edit block, post-edit refresh, pre-compact checkpoint, and stop-time Patch Passport.
138
138
139
-
Cursor, Gemini CLI, OpenCode, and Windsurf are MCP-first. For those clients, setup writes MCP config and an `AGENTS.md` marker that instructs the agent to route broad structural context through Edgebase automatically. Edgebase also exposes MCP prompts named `edgebase` and `goal` for clients that surface prompt menus.
139
+
Cursor, Gemini CLI, OpenCode, and Windsurf are MCP-first. For those clients, setup writes MCP config and an `AGENTS.md` marker that instructs the agent to route broad structural context through Edgebase automatically. Edgebase also exposes MCP prompts named `edgebase`, `edgebase-goal`, and `goal` for clients that surface prompt menus.
140
140
141
141
MCP tool and prompt responses also refresh graph artifacts and return the local artifact paths when rendering succeeds. Rendering failures are non-fatal; Edgebase must still return the context or Goal Capsule.
0 commit comments