This turns agent responses into live, persistent React apps instead of static text. Your agent generates a UI once, then evolves it in place as the conversation continues. Users click buttons or type messages, both feed back to the agent through the same callback loop. It exposes generate and evolve operations over MCP stdio, handling the full render pipeline from TSX generation to sandboxed iframe execution. The SDK includes prompt templates, a built-in design system, and pluggable LLM/search providers. Reach for this when you need interactive exploration tools like trip planners, data dashboards, or comparison interfaces where clicking through options matters more than getting a final text answer. Already integrates with Claude Code, Codex, and OpenClaw as a skill.
AI agents can reason, code, and call APIs — but when they need to communicate back to you, all they have is text. SaC (Software as Content) is the missing interaction layer: your agent responds with a live, persistent, interactive app that evolves as the conversation continues. Not a screenshot, not a markdown wall — a real UI you click, explore, and shape together with your agent.
pip install sac-sdk
sac serve
First time? It'll ask for your API key and save it. Then open http://localhost:18420, type "3-day Tokyo trip planner with budget", and watch a live React app stream in. Click buttons. Ask it to evolve. This is SaC running a built-in agent loop — no external agent needed.
SaC plugs into the agent you already use — through MCP, Skill, or code.
pip install sac-sdk
sac setup claude-code # registers SaC as an MCP server
Restart Claude Code. Then try:
"Help me understand this codebase using a visualized and interactive app using SaC MCP."
pip install sac-sdk
sac setup codex # installs the SaC skill
sac serve # keep running in a terminal
pip install sac-sdk
sac setup openclaw # installs the SaC skill
sac serve # keep running in a terminal
from sac import SaC
sac = SaC()
conv = sac.conversation()
app = await conv.generate("3-day Tokyo itinerary")
print(app.url) # user opens this
# app.code contains the generated TSX
Your agent ──▶ SaC ──▶ User sees a live app at a URL
◀── User clicks a button / types a message
Your agent ──▶ SaC ──▶ Same URL, app evolves in place
◀── ...
One URL, one conversation. The agent doesn't generate a new page every turn — it evolves the existing app. Users keep their context; the agent keeps its state.
Two channels, one loop: every response is either a UI update (the app evolves) or a chat reply (a text bubble). Users can click buttons in the app OR type in the chat — both go back to the agent through the same callback.
SaC is for tasks where exploration and interaction matter more than a final answer.
Good fit: trip planning, data analysis dashboards, comparison shopping, project planning, research, financial reviews, decision aids, internal tools
Not the right tool for: simple Q&A, one-shot automations ("set an alarm"), conversations that are purely text
Every layer is pluggable:
from sac import SaC, FileStore
sac = SaC(
llm=YourLLMProvider(...), # any class implementing LLMProvider
search=YourSearchProvider(...), # any class implementing SearchProvider
store=FileStore(".sac"),
)
Prompts live in src/sac/runtime/prompts/ and
the default design system is in src/sac/renderer/design-systems/default/.
src/sac/
├── sac.py / conversation.py Entry + Conversation primitive
├── runtime/ Generate + Evolve pipeline, prompts, providers
├── server/
│ ├── http/ FastAPI + SSE streaming + viewer
│ └── mcp/ MCP stdio server (Claude Code integration)
└── renderer/ iframe sandbox + design system
v0.1.2 — alpha. The core protocol (generate → evolve → callback loop) is stable and runs in production at sac.dynsoft.ai. The SDK surface is being polished toward v1.0.
Issues and PRs welcome. Highest-leverage contributions right now:
src/sac/runtime/prompts/src/sac/renderer/design-systems/For local dev: pip install -e .
@article{xie2026sac,
title = {Software as Content: Dynamic Applications as the Human-Agent Interaction Layer},
author = {Xie, Mulong},
year = {2026},
url = {https://arxiv.org/abs/2603.21334}
}
Apache-2.0 · © 2026 Mulong Xie / Dynsoft Lab
Built by Dynsoft Lab. Questions: mulong@mulongxie.me
SAC_API_KEY*secretAPI key for the LLM provider (OpenRouter, Anthropic, OpenAI, etc.)
SAC_API_BASECustom API endpoint for OpenAI-compatible providers
SAC_MODELOverride the default generation model
SAC_SEARCH_API_KEYsecretTavily API key for web search in generated apps
io.github.ericm1018/skillfm-llm-cost-optimizer-openai-anthropic-usage
io.github.mikerawsonnz/llm-orchestration-agent
io.github.mikerawsonnz/authenticated-llm-agent
labforgedev/copilot-memory-mcp
csoai-org/agent-prompt-injection-firewall-mcp
io.github.mikerawsonnz/authenticated-multi-llm-agent