
SaC — Software as Content
ai.dynsoft由 dynsoft.ai 发布v0.1.2更新于 Oct 25, 2026
Give your AI agent the ability to respond with live, interactive apps that evolve.
概览
SaC(Software as Content)让 AI 智能体以可实时交互、随对话持续演进的应用程序来回应,而不只是输出文字。
- 可以做什么
- 根据请求生成可实时交互的应用(例如 React 界面),通过一个网址供用户打开并点击操作,而不是返回文字或截图。在后续对话中就地演进同一个应用,保持同一网址和同一会话,使用户上下文与智能体状态得以延续。在同一循环中接收两种输入:用户在应用里点击按钮或在聊天中键入消息,二者都通过同一回调返回给智能体。可独立运行内置智能体循环,也可通过 MCP、Skill 或 Python 代码接入已有智能体。可自定义 LLM 提供方、搜索提供方、存储、提示词与设计系统。
- 适用场景
- 适合探索与交互比最终答案更重要的任务,例如行程规划、数据分析仪表板、比价购物、项目规划、研究、财务审阅、决策辅助和内部工具。不适合简单问答、一次性自动化或纯文字对话。
- 运行要求
- 以本地进程形式在用户机器上运行(仅限桌面),通过 PyPI 包 sac-sdk 安装(pip install sac-sdk),并用 sac serve 启动。需要 LLM 提供方的 API 密钥,通过 SAC_API_KEY 提供(首次运行会提示并保存);可选 SAC_API_BASE 指向 OpenAI 兼容端点,SAC_MODEL 覆盖生成模型,SAC_SEARCH_API_KEY(Tavily)用于生成应用中的网页搜索。应用通过本地网址查看。
安装
在 SourceWeft 中
- 打开 控制台中的 SaC — Software as Content,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
其他 MCP 客户端
参照 仓库 中的启动说明。
README
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.
Quickstart
1. Install
pip install sac-sdk
2. Run
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.
Connect to your agent
SaC plugs into the agent you already use — through MCP, Skill, or code.
Claude Code (MCP)
pip install sac-sdk
sac setup claude-code # registers SaC as an MCP server
Restart Claude Code. Then try:
[Claude Code + SaC example]"Help me understand this codebase using a visualized and interactive app using SaC MCP."
Codex (Skill)
pip install sac-sdk
sac setup codex # installs the SaC skill
sac serve # keep running in a terminal
[Codex + SaC example]
OpenClaw (Skill)
pip install sac-sdk
sac setup openclaw # installs the SaC skill
sac serve # keep running in a terminal
[OpenClaw + SaC example]
Python (build your own agent)
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
How it works
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.
When to use SaC
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
Customize
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/.
Architecture
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
Project status
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.
Contributing
Issues and PRs welcome. Highest-leverage contributions right now:
- Prompt improvements in
src/sac/runtime/prompts/ - Design system contributions in
src/sac/renderer/design-systems/
For local dev: pip install -e .
License
来源:README.md,提交 03d4807
工具
0版本历史
1- v0.1.2最新Sep 16, 2026
评分
已满足适用检查项的 50%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分