.cohub/ is platform-facing Space config (presentation, hooks, published models/generations, and installed-App state). Slash prompt templates live under .agents/prompts/, not under .cohub/. Both participate in layered merge — and priority is intentional.
Two trees (do not confuse)
| Tree | Typical job | Publish on config/platform Save? |
|---|---|---|
.cohub/ | Space presentation, hooks, models/generations catalogs, installed Apps | Yes (whitelist with AGENTS.md, .agents/) |
.agents/ | Skills, prompt templates (slash /name), agent extras | Yes |
Config / platform Save whitelist:
AGENTS.md
CLAUDE.md
.agents/
.cohub/Where each capability lives
Platform layer (PLATFORM_SPACE_ID Save → /configs/platform)
| Path | Effect |
|---|---|
.cohub/models.json | Environment model catalog (Redis cache) |
.cohub/generations/ | Generation declarations |
.cohub/model-tasks.json | Auxiliary task models such as session titles and image-to-text |
.cohub/decisions.json | Decision models and providers (space.decision()) |
.cohub/explore.json (etc.) | Other platform readers |
.agents/skills/ | Platform skills |
.agents/prompts/*.md | Platform slash templates |
User layer (Home Space or name === "config" Save → /configs/user)
| Path | Effect |
|---|---|
.cohub/models.json | Owner model overrides / catalog merge |
.cohub/generations/ | User generation declarations |
.cohub/model-tasks.json | User overrides for auxiliary task models |
.cohub/decisions.json | User view of decision models (name/hidden only) |
.cohub/theme.css | Personal theme applied across the app |
.agents/skills/ | Personal skills (owner path) |
.agents/prompts/*.md | Personal slash templates |
AGENTS.md | User Rules |
Project / ordinary Space (/workspace — no user-config publish)
| Path | Effect |
|---|---|
.cohub/space.json | Space presentation, e.g. new chat background payloads |
.cohub/theme.css | Space custom theme CSS |
.cohub/apps.json | Validated installed-App manifest for this Space |
.cohub/hooks/* | Space Hooks automation |
.cohub/system/… | Platform bookkeeping (e.g. checkpoint meta) — not for hand-editing |
.agents/skills/ | Project skills |
.agents/prompts/*.md | Project slash templates |
Putting models.json only in a random project Space does not publish account-wide models. Models that follow you require a Home Space or name=config Save (or platform Save).
Since v2.66 the Home Space publishes the same personal config through the normal Save pipeline. An existing name === "config" Space keeps working as an ordinary Space; there is no automatic migration or fallback.
Priority (merge order)
Shared pattern for catalogs that merge by name: later wins.
Skills (/skill:)
platform → mods → user config → project workspaceSlash prompt templates (/name, not /skill:)
Same order (worker fetchPromptTemplates):
platform → mods → user → project- Files:
.agents/prompts/<name>.md - Expansion: leading
/foo(not/skill:…) loads templatefoo - Body supports
$1,$@/$ARGUMENTSstyle arg substitution quick-action: truecan expose a template as a button above the Chat composer;button-label,argument-hint, andordercontrol its presentation
Prompt context variables and auxiliary model tasks
Prompt templates can use the system variables {{cohub.session.id}}, {{cohub.space.id}}, and {{cohub.user.uuid}}. They are rendered by the shared prompt-template path across API and worker.
Auxiliary model tasks are declared in .cohub/model-tasks.json. Platform and user definitions merge in the same config flow; user settings can disable a task or override its model. The built-in imageToText task must use a vision-capable model.
Models
platform (.cohub/models.json) → user (.cohub/models.json)mergeModelsConfigs(platform, user) — user layer overrides / extends platform. No project-workspace models path in this catalog loader.
Presentation (theme / new chat background)
Per Space, from that Space’s workspace (not the merge stack above):
.cohub/space.json— backgrounds and related presentation payloads.cohub/theme.css— custom theme CSS
These do not replace the account appearance theme picker; they style this Space.
Hooks
.cohub/hooks/*on the current Space- FS match ignores
.cohub/**to avoid self-trigger loops
Mental model
┌─ platform ── .cohub/models.json + .agents/*
merge catalogs ───┼─ mods ── mounted .agents/* (skills/prompts)
├─ user ── Home (or config) Space Save → /configs/user
└─ project ── /workspace .agents/* (+ .cohub presentation)
ordinary Space only (no global publish):
.cohub/space.json → new chat background, etc.
.cohub/theme.css → space theme
.cohub/hooks/* → automationPractice
- Personal models / default prompts / skills / theme → Home Space (or a
name=configSpace) → edit → Save. - This product’s slash recipes → project
.agents/prompts/*.md. - This product’s look → project
.cohub/space.json/theme.css. - Team shared tooling → Mod mount, not copy-paste into every config.
- For prompt templates that need request identity, use the
{{cohub.*}}variables instead of copying IDs into files. - Treat
.cohub/apps.jsonas current-Space installed state, not a published App registry. - Never “fix” live mounts under
/configs/useror/configs/platform; edit source Space + Save.