Load this when operating inside a Cohub sandbox. Prefer files over chat memory.
Core loop
Space (home) → Skills/tools (act) → Save (time) → App (share) → Fork (again)- Space = unit of work (files + chats + runtime). Runtime is a cloud Sandbox by default, or a Local Runtime on a folder you control.
- Checkpoint / Save = unit of time (restore, fork, publish config).
- App = unit of sharing (public URL; older docs call it Work; not a private Sandbox link).
Paths (do not invent)
| Path | Meaning | Writable? |
|---|---|---|
/workspace | Current Space project | yes |
/configs/user | Owner personal-config publish (Home or config Space) | no |
/configs/platform | Platform publish | no |
/mods/<slug> | Mounted mod | no |
/workspace/.agents/skills/ | Project skills | yes |
/workspace/.cohub/apps.json | Installed-App manifest for this Space | yes |
/configs/user/.agents/skills/ | Published user skills | no (edit Home / config Space + Save) |
Skill merge (same name → later wins):
platform → mods → user config → workspaceIdentity
- Sandbox execution token ≠ browser login cookie story.
- App runtime uses
appScopesplus per-Space viewer grants (legacy Work spellings remain as aliases) — request least privilege;app.homeSpaceand invocation identify context, not authorization. - Do not rebuild Cohub auth inside an App; use the platform session/SDK.
Knowledge habit
raw/ evidence (immutable dumps)
wiki/ compounding understanding + index.md
log.md append-only timelineUpdate existing wiki pages; do not only append raw forever.
Search layers
- Product
/api/search— Cohub resources - Workspace files / wiki — project truth
- Web SERP — install hyper-search in config Space (then Save)
Skill install truth
- Installable assets must live under
skills/<name>/in a skill repo. npx skills add … --copylands in.agents/skills/<name>/.- Config skills need Save on the
name=configSpace to publish.
Hard no
- Chat-only “projects” with no files
- Edit
/configs/userinside a random project sandbox - Treat Home as a junk drawer (it now publishes personal config)
- Ship raw sandbox URL as the product
BrowserRouter/ history routes on static directory Apps- Broad scopes “just in case”
- Scheduled loops with state only in chat
- Skill scripts/assets only at repo root (install drops them)
- Bake live API data into static
dist/ - Auth wall on first paint without a public shell
- Writing the removed Board Node/Sequence wire shape, the old
frameenvelope, or Sketch blocks instead of the v3 document model and Board scripts - Passing secrets as App Action input or baking them into published artifacts
Prefer
- Save before destructive autonomy; read diffs after
- Scannable Save notes (
v0-landing-working) - Minimal scopes + Work Kit patterns (App runtime)
- Semantic Board authoring with
boards applydry runs,baseVersion, andmutationIdreceipts - Task Browser for asynchronous generation history
- App Center for installed-App state; Space Activity for bounded usage summaries
- App Actions (
.cohub/actions/) for server-side work; keep action input free of secrets - Webhooks (
on.event: webhook) for external triggers;uses:runs an App Action from a hook - Let the repeated-tool-call guard trigger reassessment instead of forcing a loop
- Disk state for loops (
runtime/state.json, wiki log) - Cite playbooks by id (
cohub.bp.*) when teaching humans
App presentation
- Pro/Max: hide public footer bar via UI or
--hide-cohub-bar— hide-cohub-bar - Apps can run as windows, overlays, embeds, or New Chat backgrounds; declare the surface with
<meta name="cohub:surface">and claim hit regions withrequestConfigure()— work-presentation - App previews can receive invocation context and expose only explicitly registered callable methods
- Prompt templates can opt into quick-action buttons; keep them under
.agents/prompts/ - Apps published or installed in the Shell Space are trusted and skip consent; other Apps must call
client.auth.authorize()
Runtime choice
cohub runtime up -d --harness pi # Local Runtime on a folder
cohub runtime status --json
cohub runtime logs --followcohub sandbox upwas removed in v2.51; do not script it.- Harness (Pi / Codex) defines tool semantics; the machine is an implementation detail.
- Use
space.decision()for structured judgments (noul/choice/score) instead of parsing prose. - Run local-only when the work needs a private folder, local GPU, or hardware access; otherwise keep the cloud Sandbox.
.cohub vs .agents (priority)
skills & slash prompts: platform → mods → user → project (later wins)
models: platform → user
space look: .cohub/space.json + theme.css (this Space only)
slash templates: .agents/prompts/*.md (NOT .cohub/)Deep: dot-cohub-layers