Awesome Cohub
中文

The whole map

Every playbook, concept, anti-pattern, cheatsheet, and cookbook. Search it, or jump to a section.

App lifecycle - publish, version, disable, visibility

You manage a published App beyond its first release: validate a target, publish from a local machine or the workspace, preview it, measure it, take it offline, or change who can open it.

Playbooksintermediate

App viewer authorization and account scopes

A published App must act as the viewer, access another Space, or perform an action that the publisher cannot grant directly to the App's home Space.

Playbooksadvanced

Author, export, replay, and play Boards

You want to arrange files, media, tasks, and embedded Apps on a Board, animate them, then export stills or video, replay edits, or present live.

Playbooksintermediate

Automate with Space Hooks and webhooks

A file change, Save, finalized turn, published App version, Task Run transition, or inbound HTTP request should trigger work inside the Space.

Playbooksadvanced

Build a compounding wiki in a Space

Multiple people/agents must share evolving understanding — not re-paste history every Chat.

Playbooksintermediate

Build an App product with Work Kit

The App must read Space context, request viewer consent, or act through Cohub APIs, rather than only show static HTML.

Playbooksintermediate

Configure `.cohub` and `.agents` with the right priority

You need models, slash / templates, Space theme/background, or hooks — and must know which Space and which folder actually win.

Playbooksintermediate

Debug skill slash catalog and cache

/skill:foo missing, stale, wrong body, or works in Agent disk read but not in slash menu (or the reverse).

Playbooksadvanced

Discover and invoke skills with /skill:

You need the Agent to load a named capability with its instructions/assets, not a vague “try to scrape/publish”.

Playbooksstarter

Equip an agent and do real work

The Agent needs reusable capabilities (fetch, proxy, publish kit), not a longer system essay.

Playbooksstarter

Execution token vs login identity

Debugging a CLI call that works interactively but fails in an Agent subprocess, a collaborator's skill set, or a request that sees the wrong resources.

Playbooksadvanced

Fork a Save and explore safely

You have a known-good Save and want a risky rewrite, alternate design, or collaborator experiment without destroying the mainline.

Playbooksintermediate

From blank Space to first Save

You need a durable place, not a one-off chat.

Playbooksstarter

Generate, inspect, and materialize multimodal assets

You need image, video, music, or other multimodal output as a durable Space asset rather than only a Chat attachment.

Playbooksstarter

Hide the Cohub bar on a public App

You want a published App page to feel like your product rather than a Cohub host frame, especially for polished demos and commercial shells.

Playbooksstarter

Home Space and Sessions inbox

You live across many Spaces and need a default landing place plus a cross-space Chat radar.

Playbooksstarter

Install and maintain Apps in a Space

A Space needs a reusable published App available from its Apps panel, with a controlled enable/disable/uninstall lifecycle.

Playbooksintermediate

Live port preview and port Apps

The artifact is a running app (development server) rather than static files, for demos, QA, or temporary sharing.

Playbooksintermediate

Measure App promotions without leaking visitor data

You need to attribute traffic and funnel activity to a published App without building a visitor-level tracking database.

Playbooksadvanced

Mount Mods for shared tooling

Several Spaces should share the same skills, prompts, templates, or base tooling without copy-paste drift.

Playbooksintermediate

Operate a Space from external channels

Humans already live in Discord / Feishu / WeChat / Telegram / QQ and should hit the same Space.

Playbooksintermediate

Operate the platform config Space

You run a Cohub deployment (or internal platform Space) and need environment-wide default skills, prompts, models, or agent rules.

Playbooksadvanced

Own your agent defaults in Home or a config Space

You want personal Agent defaults (rules, skills, prompts) to follow you across Spaces — without pasting them into every project.

Playbooksintermediate

Publish a static App

Others should open a page or site without entering your Sandbox.

Playbooksstarter

Pull context from another Space

This Chat needs facts, files, or prior work that already live in another Space you can access.

Playbooksintermediate

Read Space activity without leaking cost data

You need a bounded view of Space usage, contributors, model mix, and App views for a reporting window.

Playbooksintermediate

Recurring automation with scheduled prompts

Work must happen on a clock (daily report, weekly review), independent of someone opening Chat.

Playbooksadvanced

Run a Space on a local Runtime

You want a Space to run turns on a local Pi or Codex Harness against a folder on your machine, while keeping sessions, files, and history in Cohub.

Playbooksintermediate

Sandbox egress via WARP

Outbound requests from the Space sandbox need a Cloudflare WARP exit IP (or you must verify egress).

Playbooksstarter

Sell features and credits inside an App

A published App should gate a capability or meter usage with one-time products (feature unlock and/or credit packs).

Playbooksadvanced

Ship Apps with least privilege

The product now calls the published surface an App . client.apps and appScopes are canonical; client.works and workScopes remain compatibility aliases for older clients.

Playbooksintermediate

Social fetch into a Space knowledge base

You need public social signals as evidence, then durable wiki understanding.

Playbooksintermediate

Space env vars and sandbox settings

The agent needs API keys, model endpoints, or a different sandbox size/idle policy — without baking secrets into git.

Playbooksintermediate

Space members, roles, and access policy

More than one person (or anonymous viewers) should enter a Space without sharing your account.

Playbooksintermediate

Three search layers

Cohub is not “searchless”. It has different search layers . Mixing them causes bad Agent behavior.

Playbooksstarter

Username, Space slug, and App URLs

Publishing fails or a public App link cannot be formed.

Playbooksstarter

`.cohub` layers & priority

.cohub/ is platform-facing Space config (presentation, hooks, published models/generations, and installed-App state).

Concepts

App (formerly Work)

An App is a published, shareable surface from a Space target: file directory port. The product's older user-facing name was Work .

Concepts

App Actions

App Actions (v2.41) are server-side entrypoints that a published directory App exposes under .cohub/actions/. They run inside the App home Space Sandbox, so an App can do real work without…

Concepts

App Center and installed Apps

The App Center is the Space-level home for installed Apps. It appears alongside Files in the desktop sidebar and mobile drawer, and provides enable, disable, and uninstall controls. A first…

Concepts

App commerce

App commerce sells one-time products backed by Space-level billing. The SDK surface is client.app.commerce. ; older Work-era work.commerce spellings may remain as aliases.

Concepts

App presentation, surfaces, and runtime context

A published App can run as a public page, a workspace window, a New Chat background, an overlay, or an embedded frame. App is the canonical SDK/API term; this card keeps Work in the filenam…

Concepts

Board runtime and semantic canvas

The Board runtime is Cohub's infinite 2.5D visual surface for spatial collaboration, live file cards, media, task outputs, embedded Apps, scripts, animation, and headless exports. Board v3…

Concepts

Channel

External messaging surface connected to Cohub (Discord, Feishu/Lark, WeChat, etc.).

Concepts

Chat

A Chat is a conversation context inside a Space. CLI/API name: session .

Concepts

Decision models

Decision models (v2.66) answer structured questions about text, JSON, or images with calibrated probabilities. They are a separate model class: never shown in LLM pickers, configured in .co…

Concepts

Direct Generation turns

Direct Generation (v2.23) is the create path for multimodal work. It treats a generation as a first-class turn in a Chat timeline instead of hiding it behind an ordinary text prompt or an u…

Concepts

Execution token

An execution token is a short-lived, signed execution grant that authorizes tool and CLI calls as a specific actor in a specific Space, session, or turn without requiring a full interactive…

Concepts

Home Space

The default personal Space many accounts land in (slug=home when bootstrapped).

Concepts

Labels

Lightweight tags on Spaces (and related objects) for organization and filters.

Concepts

Local Runtime and native harnesses

A Local Runtime connects a folder on your machine to a Space and runs turns on a local Harness (Pi or Codex). Sessions, turns, streaming, and resumption stay on the normal Cohub pipeline; m…

Concepts

Per-prompt thinking level & live model status

Cohub provides fine-grained control over model reasoning (thinkingLevel) and real-time operational health probes (/api/models/status).

Concepts

Personal command palette and Recent

The command palette is a cross-Space navigation surface for Spaces, Chats, turns, labels, and commands. Recent releases make its default view personal and cache-first rather than a generic…

Concepts

Platform config

Platform config is the account-global operator configuration layer shared by all Spaces in an environment.

Concepts

Realtime rooms for Apps

Realtime rooms let a published App share state, presence, and JSON events between its viewers and anyone it invites - a person in a terminal, or an Agent. Rooms are runtime-native: no scope…

Concepts

Recoverable context compaction

Context compaction keeps long sessions working by summarizing earlier turns when the context window fills up.

Concepts

Sandbox

A Sandbox is the runtime where a Space Agent executes commands, skills, previews, and filesystem operations. Paths, network, and identity are Sandbox-shaped, not your laptop's.

Concepts

Save

A Save is an immutable workspace snapshot. CLI/API name: checkpoint .

Concepts

Search layers

Recommended web skill for config Space:

Concepts

Semantic Board authoring

Board editing is a JSON document protocol shared by the API, SDK, CLI, web editor, checkpoints, and published Apps. The document describes what a Board means; renderers derive geometry and…

Concepts

Sessions inbox

Cross-space Chat radar at /sessions.

Concepts

Skill & Mod

Reusable Agent capability, often invoked as /skill:name.

Concepts

Skill discovery & cache

GET /api/skills?spaceId=<optional

Concepts

Space

A Space is the main creative surface in Cohub: Chats, files, Saves, Apps, Tasks, members, channels, and settings in one isolated environment.

Concepts

Space activity overview

The Space Activity surface combines usage, contributors, model rankings, and App views for one Space and one time window. It is available in the Web dashboard, CLI, and SDK.

Concepts

Space Hooks

Space Hooks are file-declared asynchronous automation under .cohub/hooks/ (v1.103+). One file is one hook identity, with exactly one of run, prompt, or uses.

Concepts

Space invitations & join links

Friendly space invitations (v2.7) let members join a Space through a shareable invite link instead of manual member management.

Concepts

Space roles

Product roles for collaboration inside a Space:

Concepts

Space turn browsing

Space turn browsing (v2.6) exposes a permission-aware list of turns across all visible Sessions in a Space. v2.39 adds full per-session turn lists and persisted intermediate archives.

Concepts

Task & scheduled prompt

Tasks are runnable units. Scheduled prompts recur on a timetable and drive agent turns.

Concepts

Task Browser

The Task Browser is the dedicated multimodal task surface for finding and inspecting generation and other Task Runs. It is a repository-managed App and the primary place to follow asynchron…

Concepts

User config Space

A config Space is the owner’s personal agent-configuration Space.

Concepts

Assuming Home configures other Spaces

Before v2.66, a Home Save only created a Checkpoint: personal skills and rules stayed in Home's /workspace and never mounted as /configs/user. The original version of this card said Home co…

Anti-patterns

Auth on page load

Consent fatigue, over-permission, blocked first paint, scary demos.

Anti-patterns

Baking live data into dist

Stale snapshots, leaked secrets, impossible multi-viewer freshness.

Anti-patterns

BrowserRouter on static Apps

Deep links and refreshes can 404, and absolute /assets paths break directory App hosting.

Anti-patterns

Chat-only project

There is no durable truth. Restarts, new Chats, and collaborators cannot reconstruct the work.

Anti-patterns

Editing /configs/user inside a project sandbox

/configs/user is a read-only mount of published owner config. Edits don’t stick as the account source of truth; the next publish/remount overwrites mental models.

Anti-patterns

Home as dumping ground

Home becomes an unsearchable junk Space: half projects, half config, zero Saves worth restoring.

Anti-patterns

Loop without disk state

Scheduled prompts and hooks that only “remember” in chat lose progress, duplicate work, and cannot be audited.

Anti-patterns

Mega unused skill dump

Noise in /skill: menus, larger blast radius, slower agents, accidental tool use.

Anti-patterns

No Save before agent autonomy

Broad cleanups and refactors become unrecoverable archaeology.

Anti-patterns

Raw Sandbox URL as launch

Raw Sandbox endpoints are unstable across hibernation and restarts, have the wrong audience, and do not provide App version semantics.

Anti-patterns

Rebuilding Cohub auth inside an App

A second identity system breaks consent, duplicates security boundaries, and cannot share Cohub's billing and viewer-grant model correctly.

Anti-patterns

Skill assets at repo root

npx skills add copies skills/<name /. Scripts and templates at the repo root never arrive; agents call missing paths.

Anti-patterns

Static App as API backend

Directory/static Apps are files on a CDN-like surface. They do not host your Node API, WebSockets, or long-lived servers.

Anti-patterns

Testing App commerce on static preview

context() is null outside a published App; purchase and entitlement APIs fail, and the diagnosis becomes misleading.

Anti-patterns

App and viewer scopes cheatsheet

Publisher grants these at publish time; they apply only to the App's own Space:

Cheatsheets

CLI <-> UI map

When no Space is given, commands resolve -s, then COHUB SPACE ID, then the account's Home Space — so cohub prompt / cohub run work right after login without flags.

Cheatsheets

Config layers in a sandbox

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

Cheatsheets

FAQ and troubleshooting

cohub.cheat.faq

Cheatsheets

Paths & mounts

The same layout applies in a cloud Sandbox and in a Local Runtime (v2.51+). A Local Runtime binds /workspace to a folder on your machine; /configs/ and /mods/ are still mounted by the host.

Cheatsheets

Skill packaging

For repos installed with npx skills.

Cheatsheets

Config skills setup

Make your agent defaults follow you across Spaces.

Cookbooksstarter

Paid App minimum

The smallest honest path to a commerce-ready App, not a static mock.

Cookbooksadvanced

Research agent → wiki

Turn fetch sessions into compounding understanding.

Cookbooksintermediate

Weekend static App

Ship something people can open without a Sandbox invite.

Cookbooksstarter

Agent brief — Cohub in one page

Load this when operating inside a Cohub sandbox. Prefer files over chat memory.

Reference

Cohub Is All You Need

v0.21 · Best practices for people and agents building in Cohub

Reference

Cohub Is All You Need — changelog

This tracks the guide , not the Cohub product. Product changes: cohub.live/changelog.

Reference

Glossary

Bilingual terms. Deep dives link to concept cards.

Reference

Learning path

Pick a track. Each step links to an existing playbook or cookbook.

Reference

Samples & references

Concrete starting points. Prefer cloning patterns into your Space over treating demos as frozen truth.

Reference

Scenario Matrix

Use this table to jump from intent → Cohub surfaces → skills/docs .

Reference