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.

已驗證STDIO僅桌面開發者工具AI 與機器學習

概覽

AI 產生的概覽

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)用於生成應用程式中的網頁搜尋。應用程式透過本機網址檢視。
安裝前請注意
伺服器會要求 LLM 供應商的 API 金鑰(SAC_API_KEY),並可選要求 Tavily 搜尋金鑰(SAC_SEARCH_API_KEY),首次執行時儲存在本機。生成的應用程式透過本機網址提供,可能呼叫所設定的 LLM 與搜尋供應商,因而把請求內容傳送給這些第三方。專案處於 alpha 階段(v0.1.2),SDK 介面仍在調整中。

AI 概覽如何產生和驗證

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 SaC — Software as Content,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。

其他 MCP 客戶端

參照 儲存庫 中的啟動說明。

README

SaC SDK

Interaction layer between you and your agents.

[PyPI version] [Python] [License]


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:

"Help me understand this codebase using a visualized and interactive app using SaC MCP."

[Claude Code + SaC example]

Setup details →

Codex (Skill)

pip install sac-sdk
sac setup codex              # installs the SaC skill
sac serve                    # keep running in a terminal
[Codex + SaC example]

Setup details →

OpenClaw (Skill)

pip install sac-sdk
sac setup openclaw           # installs the SaC skill
sac serve                    # keep running in a terminal
[OpenClaw + SaC example]

Setup details →

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

Full architecture →

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:

For local dev: pip install -e .

License

Apache-2.0

來源:README.md,提交 03d4807

工具

0
SourceWeft 尚未在沙箱中啟動過該軟體包,因此其工具未知。

版本歷史

1
  1. v0.1.2最新Sep 16, 2026

評分

已滿足適用檢查項的 50%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通25 分

    請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。

  • 已宣告認證方式10 分

    請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。

  • 已列出工具15 分

    請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。

  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分

這個評分如何計算