Cohub
中文Start a Space

Context network: share context between AI workspaces

Cohub's context network is how you share context between AI workspaces: @mention a Space for one message, mount it as a read-only Mod, fork a Save into a new Space, or hand work to another Space.

Who
People with more than one Space who want each new piece of work to start from what they already have.
When
You are about to re-upload the same files, or re-explain the same background, to start a new project.
Why
In Cohub, Spaces can reference, mount and fork each other, so context builds up across projects.
Cohub home page: mention another Space with @ and it joins the conversation as context
Source: cohub.live
Terminal output of cohub spaces checkpoints --help and cohub spaces create --help, including --checkpoint to create a Space from a Save
Source: www.npmjs.com/package/@neta-art/cohub-cli
Cohub docs in Chinese, Chats page: slash commands, skills and mentions
Source: cohub.live/zh/docs/workspace/chats

Five ways Spaces connect

Need Use How
Another Space's context for one question @space mention Type @ in the composer; pasted Space or Chat URLs become mentions too
A published App as context App mention Paste its public URL; the agent can resolve or download it
Another Space's files and skills in every Chat Mod Mount it read-only under /mods/<slug> (cohub spaces mods add)
Start new work from a known state Fork a Save cohub spaces create --checkpoint <id> creates a Space with those files
Another Space to do part of the work Hand-off cohub -s <space> spaces prompt --reply "…"; the final reply returns to your Chat

A hand-off runs one Chat's task in another Space: the calling Chat sends spaces prompt --reply, and the other Space's final reply comes back as a message in that thread. The run and its output are in agent to agent communication.

Inside one Space

  • Fork a Chat from any message to explore a different path while keeping the original.
  • Continue someone else's Chat; Chats in a Space are shared by its members.
  • Copy files between Spaces server-side: cohub -s <space> spaces files cp -r <other>:assets assets.

Why it matters

  • No blank starts. A new Space can begin from a Save with the files loaded.
  • One source of truth. A Mod serves the source Space's latest Save, so updates spread when its owner saves.
  • Shared tooling. Skills and prompts in a mounted Mod show up in every Space that mounts it (skills). Step by step: write a SKILL.md file and share it.

What it does not do

  • Merge two Spaces. A mention, a Mod and a fork each keep the Spaces separate: the mention supplies context for one message, the Mod is read-only, and a fork is a new Space with the files as they were saved.
  • Carry a Chat across. A hand-off runs a task in the other Space and returns its final reply as a message. The other Space's Chats stay in that Space unless you open it.
  • Edit the source. Mounted content is read-only under /mods/<slug>. Copying files with spaces files cp makes a copy, not a link.
  • Keep following the source. A Mod reads the source Space's latest Save, so saved work travels and unsaved work does not. A mention belongs to the message it is in.

Limits worth knowing

  • A Mod serves the latest Save, not a version you pick. When the source moves, every Space that mounts it sees the new state; to pin a state, fork a Save instead.
  • Changing a Space's Mods may restart its Sandbox, so it is not a change to make in the middle of a long run (Spaces).
  • Nested hand-offs stop at depth four, so a chain of Spaces cannot run away.
  • Files copied between Spaces with spaces files cp are copies: a later change in the source does not reach them.
  • A Chat can carry its own access controls, separate from the Space default (Chats). Giving someone a Chat is not the same as giving them the Space.
  • Skills a Mod brings are available by Space, user, platform and mount, not everywhere at once (core concepts).

When one Space is enough

Most work does not need the network. The docs' habit is one Space per meaningful initiative, with Chats as the parallel threads inside it (Spaces); when goals diverge, a second Chat keeps them apart (Chats). Start with one Space, and add a second when the reason is real:

  • another team owns the context and should control it;
  • the work has its own files, members and published Apps;
  • a project has outgrown the Chat history and needs its own workspace.

When that happens, the network gives four ways to connect without merging: a mention for one question, a Mod for shared files and skills, a Save fork for a new project that starts from this one, and a hand-off for a task that belongs in the other Space.

See the network

cohub references query <resource> lists references touching a Chat, Space or file: forks, mentions, tool calls, Mods and file access. cohub references aggregate <spaceId> groups them for a Space.

Reference in the docs

This page: Which of five connections to use when one Space needs another's context.

  • Chats: how mentions and forks work in a Chat
  • Spaces: mounting Mods in a Space
  • Saves: what a Save holds and how to build from one

Sources

Published · Updated