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
Codex Workspace treats agent-facing context as normal workspace content rather than a hidden prompt blob.
140
+
141
+
The practical model is:
142
+
143
+
- tracked resources such as repo docs, READMEs, and manifests
144
+
- portable skills stored in workspace-wide or repo-local folders
145
+
- generated context summaries under `cache/context/`
146
+
- local-only memory and MCP config kept separate from tracked repo content
147
+
148
+
This keeps context easier to inspect, reason about, and adapt across tools while keeping each repo independently runnable.
149
+
150
+
Tracked repo knowledge belongs in public docs, manifests, and portable skills. Local operator memory belongs in ignored local files until it becomes stable enough to promote into tracked project guidance.
Copy file name to clipboardExpand all lines: docs/03-workspace-hub-build-spec.md
+45Lines changed: 45 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -53,6 +53,18 @@ Workspace Hub is:
53
53
- a local orchestration layer
54
54
- a visibility and convenience tool
55
55
56
+
## Challenges
57
+
58
+
In a mixed local workspace, the Hub needs to solve more than simple repo listing.
59
+
60
+
It also needs to make sense of:
61
+
62
+
- fragmented repo metadata
63
+
- conservative type detection
64
+
- multiple runtime models
65
+
- generated summaries versus source-of-truth files
66
+
- local-only operator knowledge that should not be mistaken for shared repo fact
67
+
56
68
## Recommended stack
57
69
58
70
### Current v1 stack
@@ -80,6 +92,7 @@ The Hub must be able to:
80
92
- read key files from each repo
81
93
- detect repo type
82
94
- read optional repo manifest files
95
+
- read cached repo context summaries when present
83
96
- launch local commands
84
97
- track running process state
85
98
- stop launched processes
@@ -151,6 +164,7 @@ Each repo card or row should show:
151
164
When a repo is selected, show:
152
165
- summary metadata
153
166
- detected files
167
+
- context sources where available
154
168
- commands
155
169
- notes
156
170
- current branch
@@ -189,6 +203,8 @@ Suggested detection signals:
189
203
- lockfiles
190
204
- known dependencies such as Three.js
191
205
206
+
The Hub should retain enough evidence to explain its classification to the user.
207
+
192
208
### Repo manifest reading
193
209
If `.workspace/project.json` exists in a repo, it should override or guide detected behaviour.
194
210
@@ -227,6 +243,33 @@ These are valuable and should be included if they do not slow down the first bui
227
243
- lockfile/package manager detection
228
244
- dependency missing warning
229
245
- quick copy URL action
246
+
- context cache freshness and provenance view
247
+
248
+
## Context model
249
+
250
+
Workspace Hub should treat repo context as a visible filesystem concern rather than an opaque internal prompt.
251
+
252
+
In practice that means:
253
+
254
+
- tracked docs and manifests are the source of truth
255
+
- generated `L0` and `L1` summaries may live under `cache/context/`
256
+
- raw repo files remain the `L2` detail layer
257
+
- the Hub should be able to show which files informed a summary when that metadata exists
258
+
259
+
This keeps classification and summary behaviour explainable and easier to debug.
260
+
261
+
## Retrieval observability
262
+
263
+
Workspace Hub should make retrieval and detection decisions visible where practical.
264
+
265
+
Useful examples:
266
+
267
+
- show which files drove repo classification
268
+
- show which files were used to generate the current summary
269
+
- show whether a summary is fresh or stale relative to its inputs
270
+
- distinguish between tracked repo context and local-only operator overrides
271
+
272
+
If the Hub says a repo is `vite`, the user should be able to see why.
230
273
231
274
## Data and persistence
232
275
@@ -248,6 +291,8 @@ Persist:
248
291
249
292
Do not persist sensitive secrets in custom metadata files.
250
293
294
+
Local-only operator notes may be persisted, but they should stay clearly separate from tracked repo metadata and should never silently overwrite published repo facts.
0 commit comments