UniqueAI Conduct — Unique AI Documentation

UniqueAI Conduct

15 min read

UniqueAI Conduct is Unique's per-user, sandboxed code-execution platform that runs swappable AI coding agents (Claude Code, Cursor CLI, Codex, PI-Coder) behind a single chat-driven UX. It is designed to be runnable fully air-gapped, with no direct internet access from the sandbox, no secrets inside the sandbox, and every outbound interaction mediated by the Unique API.

This document captures the architecture, security model, and the capabilities shipped to date.


Why UniqueAI Conduct?

UniqueAI Conduct turns a swappable AI coding agent into something a regulated business can actually deploy. It runs anywhere you can run a Kubernetes pod — on-prem, in your own cloud, or fully air-gapped — with strict per-user isolation, no dependency on an external SaaS coding-agent provider, and no requirement that the work happens on a user’s machine.

The short version. A “co-work”, spun up per user, running the AI coding agent Harnesss of your choice, fully inside your environment — with the distribution, skill organisation, governance, and security that a regulated business needs.

What it gives you

The mental model: a private cloud co-worker

Think of UniqueAI Conduct as a personal computer that is spun up on demand for one user, with the AI coding agent of their choice already installed, running fully managed in your environment.

You keep the distribution, the skill organisation, the governance, and the security controls; the user keeps the experience of working with a capable co-worker who never sleeps.


1. Architecture diagram


2. High-level overview

The platform separates the conversational surface (chat) from the execution surface (sandbox pod), so that arbitrary, untrusted AI-generated code can run with full filesystem and tooling flexibility — without ever needing direct internet access, secrets, or shared state between users.

Isolation-Maxing: One pod per user, one workspace per chat. Sandboxes are never shared between users. A given user's pod is reused across their chats for speed, but each chat has its own workspace so different conversations cannot leak state into each other.


3. Swappable harness strategy

Inside the sandbox, the AI coding agent is a pluggable harness. The same product UX sits in front of any of four interchangeable backends:

Harness Notes
Claude Code Anthropic's coding agent.
Codex OpenAI Codex CLI.
Cursor CLI Cursor's headless coding agent.
PI-Coder Unique's internal coding agent.

All four are wired behind the same orchestration layer (skills, MCP connections, CLIs, streaming, checkpointing), so a space can be configured to use a different harness without changing the chat experience.

Inside the sandbox, the chosen harness has full read/write access on the sandbox filesystem: it can write files, run code, inspect downloaded data, run long jobs, run scheduled jobs, and move files around. It does not have ambient internet access — every outside interaction is mediated by the Unique CLIs described below.

Why integrate them all? The AI coding-agent market has not settled. Rather than betting on one provider, UniqueAI Conduct treats the harness as a configuration choice, integrates every harness with meaningful traction, and adds new ones as they emerge. Customers get choice and avoid lock-in; the product UX stays the same.


4. Sandbox pod — security model

The sandbox is the strong isolation boundary of the system.

Because the sandbox is per-user and stateless across users, “chaos” in one user's environment cannot affect another user's data, skills, or files.


5. Agent invocation flow

  1. The user sends a chat message in Next-Chat (or your own frontend).
  2. The platform invokes the agent. The invocation event carries the standard agent config plus the list of MCP servers configured for the space.
  3. The user's sandbox pod is started (or reused) behind the firewall.
  4. The pod's Python orchestrator assembles MCP connections from the provided MCP server list.
  5. The orchestrator downloads skills, in-chat uploaded files, and (if present) the previous checkpoint zip from the Knowledge Base into the sandbox filesystem.
  6. The selected harness (Claude Code / Codex / Cursor / PI-Coder) is started inside the sandbox with access to the assembled context.
  7. The harness executes the user instruction, streaming thinking, tool calls, and messages back to Node-Chat — and on to the chat UI — in real time.
  8. Produced files are uploaded back to the chat (and optionally to the Knowledge Base). The full working state is packaged into a new checkpoint zip and stored for the next turn.

6. Skills system

Skills are versioned instruction packages that guide the harness on how to perform specific tasks. They are loaded into the sandbox at startup from the Knowledge Base skills directory.

6.1 Cascading skill layers

Skills are organized in a cascade, from broadest to most specific:

| Layer | Owner | Who can write | | --- | --- | | Default | Platform | Unique platform team. | | Company | Tenant | Admins with the company-level skill write permission. | | Team | Team / space | Admins with the team-level skill write permission. | | Individual | End user | The user themself. Any skill a user creates lands here by default. |

More specific layers shadow more general ones at load time.

6.2 Promotion model

When a user saves a new skill, it is written to their individual folder. Admins (with the appropriate access control) can promote a skill into the team or company folder, given the correct access rights of course. This prevents accidental pollution of shared folders while still allowing a clean path from “works for me” to “works for the team” to “works for the company”.

6.3 Versioning & isolated discovery


7. CLI-first tooling

The orchestrator exposes platform capabilities to the harness as command-line tools, not as tools wired into the model's tool-calling schema:

CLI Purpose
Unique CLI Navigate the Knowledge Base like a filesystem (ls, cd), download files, manage skills, run keyword (grep-style) and vector search across the Knowledge Base.
Search-proxy CLI Web search and web crawl. Goes through the classical layers of web search + DLP + allow-list, supports multiple providers (Google, Brave, Vertex AI, …) and crawlers.
MCP Client CLI Call any of the configured MCP servers as a CLI command, instead of having those MCP tools listed in the model's tool schema.

Why CLIs instead of in-context MCP tools?


8. Knowledge base integration

The Knowledge Base is the durable, access-controlled side of every sandbox.

8.1 Inputs into the sandbox

8.2 Search style

The harness can navigate the Knowledge Base like a Linux filesystem (ls / cd) and search using both grep-style keyword search and vector search. LLMs are extremely strong at navigating shell-like file hierarchies, which is what makes this style of access more reliable than a single “search” tool call.

8.3 Outputs back to the Knowledge Base

Produced artefacts can be uploaded into any Knowledge Base location the user has access to:


9. Chat file handling

9.1 Inbound — chat uploads

Files uploaded in the chat are mirrored into the sandbox before the harness runs, with progressive ingestion polling and faster “ready” detection so the harness can start as soon as the files are available.

9.2 Outbound — produced files

When the harness produces a file, the orchestrator uploads it back into the chat. In the chat UI:

Supported preview formats in the side panel:


10. Web search (controlled egress)

Web search is the main controlled escape hatch from the sandbox to the public internet.


11. MCP integration


12. Execution streaming

All harness output is streamed in real time to the chat UI:

Stream What the user sees
Thinking Inline reasoning / planning steps from the harness.
Tool calls Each CLI invocation is rendered inline with its arguments and result.
Setup status Sandbox boot, skill download, checkpoint restore, MCP assembly progress.
To-do lists Rendered as interactive checklists that expand automatically as the harness ticks items off.
Message The final answer / commentary stream.
Elicitation Mid-run clarifying questions, e.g. “Can I send this to a public search engine?”. The user answers in chat and the reply is relayed back to the harness.

13. Checkpointing & resumption

After each run, the orchestrator checkpoints the sandbox state and ships it back to the Knowledge Base and the chat.


14. Spaces & configuration

Each space is a self-contained configuration of the harness:

Setting Description
Harness Which coding agent to run (Claude Code / Codex / Cursor / PI-Coder).
Skills Which skill cascade applies, including any space-/team-specific skills.
MCP servers The list of MCPs exposed to the harness via the MCP Client CLI.
Web search Whether the search-proxy CLI is enabled, and which providers are allowed.
Access settings Inherited from the invoking user / agent; controls which Knowledge Base content is reachable.
Checkpoint restore Whether to restore the prior checkpoint on the next invocation (overridable per turn, e.g. “start from scratch”).

Because every space carries its own combination of harness + skills + MCPs, a single tenant can run, for example, one space with Claude Code on a SharePoint MCP set, and another with Codex on a different set — without any interference between them.


15. Security & hardening


16. User memory

The platform now ships a per-user memory layer that lives alongside the sandbox runtime.


17. Scheduled / recurring tasks

Because the sandbox is decoupled from the chat session, the harness can run on a schedule rather than only when the user types.


18. Data flow summary

# Direction Content
1 Next-Chat → Sandbox Agent invocation event: agent config, MCP server list, user message.
2 Knowledge Base → Sandbox Skills (resolved cascade for this user).
3 Knowledge Base → Sandbox In-chat uploaded files.
4 Knowledge Base → Sandbox Previous checkpoint zip (if present and not skipped).
5 Sandbox → Unique API Knowledge Base navigation, keyword + vector search.
6 Unique API → Sandbox On-demand Knowledge Base file downloads.
7 Sandbox → Search proxy → Internet Web search and crawl via DLP + allow-list (optional, per-space, with user elicitation as needed).
8 Sandbox → MCP Client CLI → MCP servers Tool/file interactions (SharePoint, Outlook, …).
9 Sandbox → Node-Chat Thinking stream, tool calls, setup status, to-do lists, final message, elicitations.
10 Sandbox → Knowledge Base / Chat Produced files (rich preview / side panel in chat, optional upload to Knowledge Base results folder).
11 Sandbox → Knowledge Base New checkpoint zip (and any newly created skills, placed in the correct cascade folder).

20. Glossary

Term Meaning
UniqueAI Conduct The overall platform described on this page: swappable AI coding agents running in a per-user sandbox, fronted by chat. Installable as a single component, deployable on-prem or air-gapped, and connectable to your own frontend.
Harness The pluggable AI coding agent running inside the sandbox (Claude Code / Codex / Cursor / PI-Coder).
Sandbox pod The per-user Kubernetes pod that executes the harness with no direct internet access and no secrets.
Skill A versioned instruction package guiding the harness, resolved through the default / company / team / individual cascade.
Checkpoint A zip snapshot of the sandbox working tree, stored in the Knowledge Base and the chat, used to resume the next turn.
Unique CLI The CLI used by the harness to navigate / search / read / write the Knowledge Base and manage skills.
Search-proxy CLI The CLI used by the harness to run web search and web crawl through the DLP / allow-list pipeline.
MCP Client CLI The CLI used by the harness to invoke MCP servers as commands instead of as in-context tools.
Elicitation A mid-run question from the harness back to the user, typically to gate sensitive outbound actions.
Space A configuration unit binding a harness + skills + MCPs + web-search settings together.