将 Codex 线程转换为长寿命域代理的组织。
Loom your Codex.
A working environment for long-running Codex Agents.
English · 简体中文
Owner-facing product language is reviewed in Simplified Chinese first. The Chinese Owner Guide is canonical; this English README and Guide are translations and must not introduce independent product meaning.
Give each Agent a durable Domain responsibility, organize them into a governed Team, and deliver mature capabilities to customers, communities, and collaborators through Interface Agents.
Inside, continuously govern a long-running Agent Team. Outside, provide one clear service surface while the responsible Domain Agents complete professional work within explicit identity, Conversation, authorization, and information boundaries.
Website · 中文官网 · Owner guide(简体中文,canonical) · English guide · Get started · Community · Documentation
CodexLoom is built on Codex. It does not reimplement the agent runtime or duplicate thread history. Instead, it turns a Codex thread into the continuing workspace of a long-running Domain Agent, then adds durable identity, Profile, Team relationships, bounded coordination, human governance, and governed external delivery.
In CodexLoom, an Agent has a stable ID, name, Profile, and primary Thread. The same Agent can resume its current work through Codex Desktop, Mobile, or the CodexLoom WebUI. Other Agents collaborate through bounded Messages and Topics and consume explicit managed Artifact handoffs; they do not resume that Agent's primary Thread. External collaborators can work through governed Interface Agents from existing environments such as Feishu (Lark), Slack, and Parall.
Start with one long-lived Agent for a continuing responsibility. When repeated work reveals stable load, context, or professional judgment boundaries, the Owner can divide that responsibility among additional Agents and declare how they collaborate. When the team needs to participate in an external organization, the Owner can give an Agent a governed identity and a different role in each conversation. Lead, Internal Agent, and Interface Agent are useful organization patterns, not hard-coded Agent types.
Codex provides the threads; CodexLoom weaves them into an agent organization.
The name Loom describes this organizing process: every thread keeps its own history and direction while responsibilities and relationships weave it into a larger collaborative structure.
Lead, Internal Agent, and Interface Agent are currently expressed through Profiles, declared relationships, Messages, and Conversation Memberships. Dedicated hierarchical messaging policies and organization templates are still being modeled.
CodexLoom currently serves one advanced individual Owner first. External collaborators can work with governed Agents through existing conversations, but enterprise multi-tenant administration and general company operations are not the primary product direction.
CodexLoom is currently local-first and self-hosted. To start it from source,
install the codex CLI, sign in with a ChatGPT account, and run:
make release
./bin/codex-loomOpen . If you are still deciding what deserves a long-lived Agent, start with the canonical Chinese Owner Guide or its English translation.
For a simple first Agent:
The same initial setup can be performed from the local CLI:
./bin/loom agent create research --cwd /path/to/repo
./bin/loom profile set research \
--identity "Long-term researcher for this domain" \
--domain "Continuously research the relevant products, protocols, and implementations" \
--scope "Answer domain questions, preserve conclusions, and advise related agents"
./bin/loom thread send research "Establish a baseline for the current state of this domain"Join the CodexLoom Feishu community to discuss the product and share experience with long-running Agent Teams.
Open the community directly in Feishu
Scan the QR code with Feishu, or use the direct link on mobile.
Code agents are usually organized around tasks: create a thread, provide the objective and background, deliver the result, and end the collaboration. That thread may already contain project context, constraints, tool usage, and prior decisions that would be valuable to the next piece of work. Yet the next related task often starts in a new thread, forcing the user to restate the background, recover earlier decisions, and rebuild the working context. Every task pays the cold-start cost again.
CodexLoom makes a different bet: a thread should continue to carry work after one task ends. Later tasks in the same domain return to that thread and reuse what it has accumulated. A Profile gives the agent a durable domain, responsibility, and boundary. The thread stops being a record of one task and becomes the continuing workspace of a Domain Agent.
| Task Agent | Domain Agent | |
|---|---|---|
| Created around | One task | A long-lived domain |
| Thread lifecycle | Abandoned or replaced after delivery | Continues to receive work in the same domain |
| Next task | Reintroduces background and rebuilds context | Continues from existing context and trajectory |
| Responsibility | Complete the current task | Remain responsible for the domain |
A common concern about long-lived threads is that context windows are finite and longer histories may make each task slower or more expensive. That concern is real, but it counts only the cost of retaining context, not the cost of reconstructing it. A new thread still needs the relevant background, constraints, and previous decisions to reach the same working state. Reusing a thread also allows its stable history prefix to benefit from prompt caching instead of repeatedly processing the same context from scratch.
Compaction does not reset the context to zero. After older history is compressed, its summary and the recent trajectory still preserve substantial working information. A long-lived thread does not require every raw message to grow without bound; its context can evolve through caching and compaction. Compaction is a mechanism for maintaining continuity, not a reason to abandon the thread.
CodexLoom does not treat the summary as the sole guarantee for durable
declarations. On the next Turn after compaction, a new context epoch re-covers
the current Loom Agent Prompt, complete Agent Profile, and direct relationship
snapshot. A revision is marked covered only after both replayable rollout
evidence and a model event from the same Turn exist. See
Epoch Context Coverage.
A long-lived thread also accumulates tacit context that is difficult to reconstruct in a single prompt. Corrections, preferences, terminology, judgment, and collaboration habits enter the thread through repeated work and are refined across successive compactions. They may not belong as individual rules in a Profile, but together they create a working understanding unique to that agent. Starting a new thread loses precisely this knowledge that is hardest to migrate explicitly.
A Task Agent starts with a task; a Domain Agent continues from prior work.
Tasks still exist in the Domain Agent model, but they become units of work rather than definitions of identity or lifecycle. An agent can remain idle between tasks and still continue later from what it has already learned.
CodexLoom treats an agent as a durable, long-lived subject. Its Profile defines who the agent is, what it remains responsible for, and where its boundaries lie. A domain can be a project, subsystem, professional capability, customer, or business area.
The thread carries interactions, decisions, tool calls, artifacts, and feedback as they happen, forming the agent's work trajectory over time. The Profile supplies stable direction; the thread preserves accumulated work so that future tasks can continue from existing context.
A Profile also exposes collaboration information to other agents. It states what the agent owns, which questions should be directed to it, and which work lies outside its boundary. It is both durable context for the agent and a discoverability and collaboration contract for the organization.
A workflow describes how work moves; CodexLoom organizes who remains responsible.
When agents remain responsible for different domains, their relationships stop being one-off invocation chains and become ongoing collaboration. Work that crosses a domain boundary needs to find the responsible agent, ask for its judgment, request help, and report problems discovered while using what it owns.
The Organization Map presents durable parent/child responsibility boundaries. The Collaboration Map records declared cross-domain working relationships without pretending they are hierarchy. The Activity
暂无开放 Issues,或尚未同步最近议题。