arXiv:2608.28165cs.AIAug 2026

Manuscript Offprint

arXiv:2608.28165

CrabOS: An Operating System for Human-AI Co-inhabitation

Qi Yang, Yun Ma

ABSTRACT

AI agents are evolving into long-running computational entities that can invoke tools, maintain memory, and complete complex tasks across applications. In real-world settings, completing a task often requires humans and AI to take turns leading its execution. Such alternation depends on the seamless handoff of the work state of the task between humans and AI. Existing agent systems, however, provide humans and AI with separate work environments. AI agents must therefore rely on additional bridges to continue work: either developers build task-specific interfaces to access the work state, or users manually transfer relevant parts of it through screenshots or textual descriptions. Both approaches make handoffs costly and scale poorly.

We propose Human-AI Co-inhabitation, a type of work environment that enables humans and AI to seamlessly take turns continuing work on the same task, and design and implement CrabOS to realize this concept. CrabOS 1^{1} represents the work state as natural-language-readable text objects shared by humans and AI, allowing both to access and manipulate it directly through the same auditable interface without bridges. Case studies show that CrabOS elevates support for complex tasks with alternating human and AI leadership from bridge-dependent application-level solutions to native operating-system capabilities, which provide a new foundation for developing and running AI agents.

Keywords human-AI co-inhabitation · agent system · operating system

1 Introduction

As large language models advance, AI agents are evolving from conversational tools that respond passively into computational entities that can autonomously invoke tools, maintain memory, and work continuously on complex tasks. AI thus becomes, like a human, an executor able to independently move a task forward. Complex tasks, however, are rarely completed by the same executor from start to finish. Instead, humans and AI take turns moving the task forward through successive stages. After each stage, responsibility for the task passes to the next executor. Consider a user conducting research with an AI agent. After running an experiment, the agent leaves substantial temporary data and intermediate results that the user wants to visualize next. Even if the agent can directly operate visualization software, the state needed for visualization remains primarily in its current work environment. If the user, another agent, or a specialized visualization tool takes over, that state must first be organized, exported, or restated.

This handoff requires the work state produced during one stage to be directly usable in the next stage. By default, however, human and AI executors do not share a common work state. Regardless of who carries it out, task execution is always mediated by a work environment. A work environment maps the portion of the physical or virtual world relevant to a task into forms that an executor can perceive and manipulate. These representations constitute the work state. Through the interface provided by the work environment, an executor can read and write the work state and invoke the capabilities needed to carry the task forward. Traditional operating systems and existing agent systems serve as work environments for their respective executors. Whether a handoff between humans and AI can be seamless therefore depends on whether their work environments share the state required to continue the task.

1^{1}Project page: https://openbaylab.github.io/CrabOS/

Existing agent systems provide separate work environments for human and AI executors. These environments commonly maintain separate, unshared work states. Consequently, when an executor changes, the task cannot continue seamlessly without an additional bridge. This problem has two causes. First, humans primarily carry work forward through graphical interfaces, whereas AI relies on the conversational context and memory in its own work environment. Their work states are therefore retained in different forms, and the state created in one phase cannot ordinarily become the basis for work in the next. Second, the work state available to AI is often limited by the interface provided by its current work environment. Even when AI is embedded in an application used by a human, it receives only a narrow interface exposed by that application, not the work environment occupied by the human. Such bridging generally takes one of two forms: developers build specialized interfaces that expose selected parts of the state from another work environment to an agent, or users manually migrate context when switching. The former cannot cover new scenarios as they arise; the latter repeatedly imposes alignment costs on users. As a task acquires more stages, the bridging burden grows and scalability declines.

To address this problem, we propose Human-AI Co-inhabitation, a type of work environment that enables humans and AI to seamlessly take turns continuing work on the same task. This type of work environment requires humans and AI to share representations of the data and objects that constitute the work state, together with a unified, auditable interface. These conditions allow work to continue seamlessly when the executor changes, without scenario-specific bridges. To realize this goal, we derive three design principles. Work data should be represented as natural-language-readable text objects with stable structure that humans and AI can read and write directly, without customized access methods for each scenario. The work objects that a human is currently manipulating should have a unified, referable representation, so that AI can continue work without reidentifying them from screenshots or descriptions. System capabilities should be available to every executor through the same auditable entry point, eliminating private tool layers built specifically for AI.

Based on these principles, we design and implement CrabOS, an operating system for a work environment shared by humans and AI. At the system layer, CrabOS organizes the data and objects that constitute the work state, along with a unified interface. Our case studies show that its operating-system primitives can be composed into capabilities for memory management, cross-application context continuation, and multi-agent task orchestration. CrabOS supports multiple modes of seamless task continuation between humans and AI, as well as among AI agents. It shifts the basis for supporting complex tasks with alternating leadership from application-level bridges to the operating-system layer.