When
You need models, slash / templates, Space theme/background, or hooks — and must know which Space and which folder actually win.
Outcome
- Models you expect appear in the picker (platform ← user)
/my-commandexpands from the right prompt layer- Space background/theme apply from this Space’s
.cohub - You stop putting prompts under
.cohub/by mistake
Rules of thumb
| Goal | Put it here | Activate |
|---|---|---|
| Account-wide models | Home or config Space → .cohub/models.json | Save that Space |
| Env-wide models | platform Space → .cohub/models.json | Save platform |
| Personal slash templates | Home or config → .agents/prompts/*.md | Save that Space |
| Project slash templates | project → .agents/prompts/*.md | live in workspace (cached by revision) |
| Skills | .agents/skills/<name>/ (same layering) | Save if Home/config/platform |
| New chat background | project → .cohub/space.json | files in that Space |
| Space theme CSS | project → .cohub/theme.css | files in that Space |
| Hooks | project → .cohub/hooks/* | files in that Space |
Priority (skills & slash prompts):
platform → mods → user (Home or config) → project workspaceSame name → later wins.
Models:
platform → userSteps
A. Personal models + default slash commands
- Open your Home Space, or a Space with
name === "config"(pick one; do not split config across both). - Add or edit: ``
text .cohub/models.json .agents/prompts/review.md # → type /review in composer .agents/skills/... AGENTS.md`` - Save.
- In another Space (as owner), confirm models /
/review/ skills. - Sandbox check: ``
bash ls /configs/user/.cohub ls /configs/user/.agents/prompts``
B. Project-only slash recipe
- In the project Space: ``
text .agents/prompts/ship.md`` - Composer:
/ship … - Optional: project skill under
.agents/skills/ - Do not expect this to appear for all your Spaces unless you also publish via config or a Mod.
C. Theme / new chat background (ordinary Space)
- In the Space you want styled: ``
text .cohub/space.json # background payloads (see product changelog) .cohub/theme.css # optional custom CSS`` - Reload Chat / new chat surface; confirm background.
- This is local to the Space, not published as personal config.
D. Hooks
.cohub/hooks/<name>.ymlin the project Space.- FS triggers ignore
.cohub/**(no self-loop). - Prefer disk state for loops — see anti-pattern
loop-without-disk-state.
Prompt file shape
---
description: Short help for the slash picker
argument-hint: optional hint
category: optional
---
Template body. Args: $1 $2 or $@ / $ARGUMENTSFilename without .md is the slash name (ship.md → /ship). /skill:name is a different pipeline (skills), not prompt-templates.
Done when
- [ ] You can name which layer provides a given model /
/command/ background - [ ] Config changes only stick after Save on config/platform
- [ ] Project presentation files live under that Space’s
.cohub/
Avoid
- Editing
/configs/userinside a project sandbox - Expecting project
.cohub/models.jsonto become global - Putting slash templates under
.cohub/instead of.agents/prompts/ - Mixing Home and
name=configas two config sources