# Storing Context and Talking Are Different Jobs: How OpenViking and SuperAgent Split the Work A working agent system breaks into four parts: the agent, its channels, a context store, and a runtime. OpenViking handles persistent, near-real-time, exact context; SuperAgent handles ephemeral, real-time, lossy communication. Here is why we built them separately and how they work together. People ask us this all the time: OpenViking can already ingest Feishu and email, so why build SuperAgent too? And the flip side: SuperAgent is already wired into Feishu, so why not just save those messages and call it memory? Because they are two different jobs. OpenViking is a context store built to be persistent and exact. SuperAgent is an IM layer for agents built to be real-time and outward-facing. One must never drop a detail; the other is lossy by design. Cram them into a single system and both suffer. ## The four parts of an agent system Break a working agent system down and you get four pieces: - **The agent**: a harness like Codex, Claude Code, or Pi paired with a model. - **Channels**: Feishu/Lark, email, Slack, Orca, Multica, plus the internal channels agents use among themselves. - **A context store**: the shared record an agent can read across sessions and across harnesses. - **A runtime**: the machine where the agent actually runs commands and edits files. OpenViking is the third piece. SuperAgent bridges the first and the second. The fourth is entirely up to the user. Figure: three runtimes (Codex on a laptop, Claude Code on a cloud VM, Pi in a container), each with its own OpenViking, connect through SuperAgent to shared channels (Feishu/Lark, Slack, Email, Orca, an internal channel). Raw channel content flows into each OpenViking (near-real-time); summaries flow through SuperAgent to the agents (real-time). Precise context stays with each agent; what crosses between agents is compressed. ## OpenViking: persistent, near-real-time, exact OpenViking gives different agents a durable context layer. Switch harnesses or swap models, and your context stays in OpenViking instead of getting trapped in one tool's local folder. Channel data lands in OpenViking in near real time. That is how SuperAgent uses it: every message—whether the agent replies or stays silent—is written by the daemon into an OpenViking session with its sender, then distilled into long-term context like people and events. Every email has its full body and attachments saved under the instance's `viking://~/resources/emails/` before the agent ever sees it. Precision is the rule here. Six months later, if someone asks what price was quoted in that email, the answer has to be the exact wording from the source, not someone's paraphrase. ## SuperAgent: ephemeral, real-time, lossy SuperAgent is an event collector. It stays wired to channels in real time so agents can talk to the outside world—both to people and to other agents. Every decision it makes belongs to the present moment: should this message get a reply, who should receive it, and is it still worth sending right now? If a new message arrives in the same thread while an agent is about to send a reply, SuperAgent's freshness check blocks the send and makes the agent re-read and decide again. If someone in the group already answered the question, the agent stays quiet. Those judgments are one-off. There is no reason to archive them forever, and SuperAgent does not try to shove every word from every channel into the model's context window. ## Why lossy is a feature, not a bug "Lossy" sounds like a compromise, yet all communication is lossy. People do not dump their entire memory into a conversation. They pick what matters to the listener and compress it into something readable. Agents are no different: the other side has a finite context window, and reading time and tokens both cost real money. Three clear sentences beat ten thousand words. What makes compression safe is having a reliable place for the exact record. Every agent has its own OpenViking holding the verbatim source. When it speaks, the agent uses its OpenViking context and the model's judgment to decide what to leave out. If the other side wants the full details, it can ask—or read the original source if it has permission. The loss happens when something is said, never when it is stored. ## One channel, two paths in OpenViking and SuperAgent connect to the same channels, but they treat the data differently: raw content goes into OpenViking, while a compact summary goes to SuperAgent so the agent can decide whether to interrupt the user. Email already works this way. The full email is saved to OpenViking first. The agent only sees the addresses, storage path, attachment list, and the first 500 characters of the body, then decides whether the owner needs a ping on their primary IM. If it needs more, it pulls the full text with `read_email`. IM is not there yet. Today every IM message goes straight into the agent's context and the model decides whether to reply. Where we want to get is an agent-managed inbox and notification policy: when to check, how much to read, and what to quietly archive. SuperAgent's inbox scheduler already notifies the agent which chats have unread input so it can read them at a checkpoint, though the full design is still open—for instance, whether to keep a dedicated "unread" session in OpenViking. ## Keep the internal channel simple The simplest agent IM imaginable is a plain `.txt` file on one machine that every agent can read and write. The most complete one is Feishu. SuperAgent's own internal channel sits much closer to the `.txt` file. It is a lightweight, IM-like pipe for router-to-worker dispatch: the router reads messages, replies to people, and hands off heavy tasks to workers (which can be ephemeral); workers report results back to the router, which stays the sole voice talking to humans. We keep it simple on purpose. The moment collaboration needs multi-person visibility, searchable history, or cross-org reach, it belongs on an external channel like Orca or Feishu—not inside a rebuilt chat app tucked into SuperAgent. ## The user owns the runtime Where SuperAgent runs is the user's call: a laptop, a cloud VM, or a container. What it can touch is bounded by permissions the user sets outside SuperAgent—the Feishu app's scopes, the agent's workspace directory, and nothing beyond. That is also how agents in completely different runtimes work together. Each brings its own OpenViking, joins the same channels through SuperAgent, and collaborates in real time without ever needing to share a machine. ## An example: Codex wants Vika to notify someone We ran into this concrete case: a Codex session finishes a job and wants Vika (a SuperAgent instance) to notify the people involved. Should we build a new bridge between them? No new mechanism is needed. Codex already has two options: write the outcome to OpenViking, or use `lark-cli` to post a message in that person's agent group. SuperAgent is already watching that group, picks up the message, and lets the agent decide whether and how to alert the person. That is the split paying off. Codex does not need to know Vika's API, and Vika does not need to open a custom endpoint for Codex. Durable state goes through OpenViking; real-time triggers go through a channel. Both already exist. ## What you know, and what to say now A context store answers "what do I know?" An agent IM answers "what should I say right now?" OpenViking handles the first and stays persistent and exact. SuperAgent handles the second and embraces being real-time and lossy. Keeping them separate is how each one gets done right. SuperAgent is currently in preview. Code and docs live on the `feat/vika` branch of the OpenViking repository: https://github.com/volcengine/OpenViking/tree/feat/vika/superagent