Awesome Cohub
中文
Cheatsheetscohub.cheat.config-layers2 min

Mounts (typical)

Sandbox pathSourceWritable?
/workspaceCurrent Space workspaceyes (project)
/configs/userOwner published personal config (Save from Home or name=config)read-only
/configs/platformPlatform config Space publishread-only
/mods/<slug>Mounted mod Space checkpoint/latestread-only
/publicSpace public share prefixspecial
/sessionsSession artifacts (ro)read-only

Env:

WORKSPACE_DIR=/workspace
USER_AGENTS_DIR=/configs/user/.agents
PLATFORM_AGENTS_DIR=/configs/platform/.agents

Skill merge order (same name → later wins)

platform → mods → user config → workspace (.agents/skills)

Rules / AGENTS merge (prompt)

  • User Context: published user AGENTS.md / CLAUDE.md from config
  • Project Context: current /workspace AGENTS/CLAUDE
  • Do not edit /configs/user to “fix” rules; edit the Home Space (or name=config) and Save

Publish trigger

SpaceOn Save publishes?
name === "config"Yes → {platformConfigRoot}/users/{userId}
Home Space (v2.66+)Yes → {platformConfigRoot}/users/{userId} (rules, skills, prompts, models, theme)
Platform space idYes → /configs/platform
Project SpaceCheckpoint only (no user-config publish)

.cohub vs .agents (catalog priority)

CatalogPathsMerge order (later wins)
Skills /skill:.agents/skills/platform → mods → user → project
Slash /name.agents/prompts/*.md (not .cohub/)platform → mods → user → project
Models.cohub/models.jsonplatform → user
Generations.cohub/generations/published from platform/user Save
Installed Apps.cohub/apps.jsoncurrent Space only; validated manifest
Space look.cohub/space.json, .cohub/theme.cssper Space only (not catalog merge)
Hooks.cohub/hooks/*current Space; FS ignores .cohub/**
Decisions.cohub/decisions.jsonplatform → user (name/hidden only); hidden from LLM pickers

Config/platform Save whitelist: AGENTS.md, CLAUDE.md, .agents/, .cohub/.

Deep card: dot-cohub-layers · playbook dot-cohub-layers

  • cohub.bp.user-config-and-rules
  • cohub.concept.user-config-space

Skill catalog cache

  • Redis TTL 24h (SKILLS_CACHE_TTL_SEC)
  • User/platform Save → immediate Redis SET via publishSkillsCacheFromDir
  • Project/mod keys include revision hash (checkpoint meta)
  • API: GET /api/skills?spaceId=
  • Slash: /skill:name expanded in session prompt pipeline

Prompt skill inclusion

includeUserSkills = (actorUserId === space.ownerUserId)

Members still get platform + mod + project skills.

Auth principal order (API bearer)

  1. Execution grant (COHUB_EXECUTION_TOKEN)
  2. Preview session (preview host)
  3. App session
  4. Logto user session

Execution grant TTL 24h; not refreshable like OIDC.