← All essays· Design

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. Cram them into one system and both suffer.

The four parts of an agent system

A working agent system breaks into four pieces: the agent, its channels, a context store and a runtime. OpenViking is the third. SuperAgent bridges the first and the second. The fourth is up to the user.

raw · near-real-timeLaptopCodexCloud VMClaude CodeContainerPiShared OVuser Auser BOwn OVSuperAgentChannelsFeishu/LarkSlackEmailOrcaInternalraw · near-real-timeLaptopCodexCloud VMClaude CodeContainerPiShared OVuser Auser BOwn OVSuperAgentChannelsFeishu/LarkSlackEmailOrcaInternal
raw · near-real-timesummary · real-time
Each part has one job: raw channel content flows into each agent's own OpenViking in near real time (dashed); summaries reach the agent through SuperAgent in real time (solid). Tap a part for details.
Precise context stays with each agent; what crosses between agents is compressed.

Two jobs, side by side

OpenViking gives different agents a durable context layer that survives a switch of harness or model. SuperAgent is an event collector whose decisions belong to the present: reply or not, to whom, and is it still worth sending now.

OpenViking
SuperAgent
Role
Context store
Agent IM · event collector
Properties
persistentnear-real-timeexact
ephemeralreal-timelossy
What goes in
Raw channel data: every message with its sender into a session; full email body and attachments
Summaries and events: who said what, which chats have unread input
Who reads it
The same agent, across sessions, harnesses and models
The agent right now, deciding whether to speak and to whom
Kept for
The long term, distilled into people and events
One use, then dropped
The bar
Asked about a quote six months later, it returns the exact number
If someone already answered, it stays quiet
Same channels, two very different requirements.

If a new message lands in the thread while an agent is about to reply, SuperAgent's freshness check blocks the send and makes the agent read and decide again. If someone already answered, the agent stays quiet.

Why lossy is a feature, not a bug

All communication is lossy. The other side has a finite context window, and reading time and tokens cost real money; three clear sentences beat ten thousand words. What makes compression safe is a reliable home for the exact record.

Agent A
Its own OpenViking · verbatim source
What gets sent · three compressed lines
Migration done, three tables, no errors. Logs are in OpenViking.
← Need detail? Ask, or read the permitted source
Agent B
Its own OpenViking · verbatim source
The exact record stays in each agent's OpenViking; what crosses between agents is compressed.

The loss happens when something is said, never when it is stored.

One channel, two paths in

Raw content goes into OpenViking; a compact summary goes to SuperAgent so the agent can decide whether to interrupt the user. Email already works this way:

1 / 5

IM is not there yet. Today every IM message goes straight into the agent's context. We want an agent-managed inbox instead. The inbox scheduler already flags which chats have unread input; the full design is still open, for instance whether to keep a dedicated "unread" session in OpenViking.

Arriving on channels
  • Project groupLin anyone up for lunch
  • Project groupZhou release slips to Friday
  • DMAlice can you send me the quote? client is waiting
  • Project groupLin [sticker]
  • Alertsmonitor CPU 85% (recovered)
  • DMBob weekly sync moved to tomorrow pm
What the agent sees in context
  • Lin anyone up for lunch
  • Zhou release slips to Friday
  • Alice can you send me the quote? client is waiting
  • Lin [sticker]
  • monitor CPU 85% (recovered)
  • Bob weekly sync moved to tomorrow pm
Both modes use the same messages. The agent-managed inbox is the direction we want; its exact shape is not settled. Email already works this way.

Keep the internal channel simple

The simplest agent IM is a plain .txt file every agent on one machine reads and writes; in the middle sit agent coordination tools like Agent Teams, Herdr, Orca, or Multica; the most complete are full IM platforms like Feishu and Slack where humans also live. SuperAgent's internal channel sits close to the .txt file and only does router-to-worker dispatch.

People
⇅
router
Internal channel · lightweight IM-like pipe
worker
worker
worker (ephemeral)
  • Router reads, replies, splits tasks
  • Workers do heavy jobs and report back
  • Only the router talks to people
Too complex? Need multi-person visibility, searchable history or cross-org reach? Move to an external channel like Feishu or Orca instead of rebuilding a chat app inside.

The user owns the runtime

Where SuperAgent runs and what it can touch are both set by the user, outside SuperAgent. Each agent brings its own OpenViking, so agents in different runtimes join the same channels without sharing a machine.

Same channels, joined through SuperAgent
Laptop
Codex
its own OpenViking
Cloud VM
Claude Code
its own OpenViking
Container
Pi
its own OpenViking
Boundary set by the user, outside SuperAgent
Feishu app scopesAgent workspace directory

Two examples: when to use OpenViking vs. a channel

In real work, the split between the two paths is straightforward:

  • Store the result for later lookup — use OpenViking: A local Codex session finishes a data migration and writes the full report and logs to OpenViking. The next day, you ask SuperAgent in Feishu (or Claude Code on another machine) whether those three tables had any errors. It reads the exact record from OpenViking without anyone messaging anyone.
  • Trigger someone right now — use a channel: If Codex needs SuperAgent to notify the team immediately, you still do not build a custom bridge between them. Codex simply calls lark-cli (Feishu's CLI, or any IM CLI/webhook you use) to post one line in the shared Feishu group ("Migration finished, logs are in OpenViking, please notify the team"). SuperAgent is already watching that group, checks OpenViking for details if needed, and sends a concise update to the owner.
Owner's agent group · Feishu · schematic
16:02
Codex finishes the job and posts via lark-cli
Codex Bot
:
Migration script finished and the PR is merged. Full logs are in OpenViking: viking://~/resources/runs/migration-1202/
@SuperAgent please let the people involved know.
SuperAgent Bot
:
Got it. I checked the results in OpenViking: three tables migrated, no errors.
SuperAgent Bot
:
@Owner the migration is done and the PR is merged; nothing needs you. I will post a line in the project group too.
Owner
:
ok
A schematic conversation. Codex writes full logs to OpenViking and posts one line in the group; SuperAgent already listens there, checks the details, and summarizes for the owner.

Neither agent needs to know the other's internal API or open a custom endpoint. Durable, exact state goes through OpenViking; real-time handoffs go through a channel. Both already exist.

What you know, and what to say now

What do I know?
OpenViking · context store
persistentexact
What should I say right now?
SuperAgent · agent IM
real-timelossy

SuperAgent is currently in preview. Code and docs live on the feat/vika branch of the OpenViking repository.