Skip to content

CubeLoop — a Pythonic, async-native agent harness core designed for high performance, readability, and production-grade persistence.

feat(website): snapshot 0.3 as default; next routed to /next/; fix homepage links

xf gonga92034dce191
diff --git a/website/docusaurus.config.ts b/website/docusaurus.config.ts
index 5670dec..430bbf6 100644
--- a/website/docusaurus.config.ts
+++ b/website/docusaurus.config.ts
@@ -10,9 +10,10 @@ const classicOptions: ClassicOptions = {
docs: {
sidebarPath: './sidebars.ts',
editUrl: 'https://github.com/cubeplexai/cubepi/edit/main/website/',
- lastVersion: 'current',
+ lastVersion: '0.3',
versions: {
current: { label: 'Next 🚧', path: 'next', banner: 'unreleased' },
+ '0.3': { label: '0.3 (latest)', path: '' },
},
},
blog: false,
@@ -59,7 +60,7 @@ const config: Config = {
{ type: 'doc', docId: 'getting-started/installation', label: 'Docs', position: 'left' },
{ type: 'doc', docId: 'api/index', label: 'API', position: 'left' },
{ type: 'doc', docId: 'recipes/weather-agent', label: 'Recipes', position: 'left' },
- // { type: 'docsVersionDropdown', position: 'right' }, // enabled in T21
+ { type: 'docsVersionDropdown', position: 'right' },
{ type: 'localeDropdown', position: 'right' },
{ href: 'https://github.com/cubeplexai/cubepi', label: 'GitHub', position: 'right' },
],
diff --git a/website/i18n/zh-Hans/docusaurus-plugin-content-docs/version-0.3.json b/website/i18n/zh-Hans/docusaurus-plugin-content-docs/version-0.3.json
new file mode 100644
index 0000000..c52f956
--- /dev/null
+++ b/website/i18n/zh-Hans/docusaurus-plugin-content-docs/version-0.3.json
@@ -0,0 +1,42 @@
+{
+ "version.label": {
+ "message": "Next 🚧",
+ "description": "The label for version current"
+ },
+ "sidebar.docs.category.Getting Started": {
+ "message": "快速入门",
+ "description": "The label for category 'Getting Started' in sidebar 'docs'"
+ },
+ "sidebar.docs.category.Guides": {
+ "message": "指南",
+ "description": "The label for category 'Guides' in sidebar 'docs'"
+ },
+ "sidebar.docs.category.Agents": {
+ "message": "Agent",
+ "description": "The label for category 'Agents' in sidebar 'docs'"
+ },
+ "sidebar.docs.category.Providers": {
+ "message": "Provider",
+ "description": "The label for category 'Providers' in sidebar 'docs'"
+ },
+ "sidebar.docs.category.Checkpointing": {
+ "message": "检查点",
+ "description": "The label for category 'Checkpointing' in sidebar 'docs'"
+ },
+ "sidebar.docs.category.Middleware": {
+ "message": "中间件",
+ "description": "The label for category 'Middleware' in sidebar 'docs'"
+ },
+ "sidebar.docs.category.MCP": {
+ "message": "MCP",
+ "description": "The label for category 'MCP' in sidebar 'docs'"
+ },
+ "sidebar.docs.category.Recipes": {
+ "message": "示例",
+ "description": "The label for category 'Recipes' in sidebar 'docs'"
+ },
+ "sidebar.docs.category.Migration": {
+ "message": "迁移指南",
+ "description": "The label for category 'Migration' in sidebar 'docs'"
+ }
+}
diff --git a/website/i18n/zh-Hans/docusaurus-plugin-content-docs/version-0.3/getting-started/core-concepts.md b/website/i18n/zh-Hans/docusaurus-plugin-content-docs/version-0.3/getting-started/core-concepts.md
new file mode 100644
index 0000000..660d64f
--- /dev/null
+++ b/website/i18n/zh-Hans/docusaurus-plugin-content-docs/version-0.3/getting-started/core-concepts.md
@@ -0,0 +1,7 @@
+---
+title: 核心概念
+---
+
+# 核心概念
+
+_占位。内容将在后续内容 PR 中补充。_
diff --git a/website/i18n/zh-Hans/docusaurus-plugin-content-docs/version-0.3/getting-started/installation.md b/website/i18n/zh-Hans/docusaurus-plugin-content-docs/version-0.3/getting-started/installation.md
new file mode 100644
index 0000000..f82b755
--- /dev/null
+++ b/website/i18n/zh-Hans/docusaurus-plugin-content-docs/version-0.3/getting-started/installation.md
@@ -0,0 +1,7 @@
+---
+title: 安装
+---
+
+# 安装
+
+_占位。内容将在后续内容 PR 中补充。_
diff --git a/website/i18n/zh-Hans/docusaurus-plugin-content-docs/version-0.3/getting-started/quick-start.md b/website/i18n/zh-Hans/docusaurus-plugin-content-docs/version-0.3/getting-started/quick-start.md
new file mode 100644
index 0000000..9e7bfd9
--- /dev/null
+++ b/website/i18n/zh-Hans/docusaurus-plugin-content-docs/version-0.3/getting-started/quick-start.md
@@ -0,0 +1,7 @@
+---
+title: 快速开始
+---
+
+# 快速开始
+
+_占位。内容将在后续内容 PR 中补充。_
diff --git a/website/i18n/zh-Hans/docusaurus-plugin-content-docs/version-0.3/guides/agents/first-agent.md b/website/i18n/zh-Hans/docusaurus-plugin-content-docs/version-0.3/guides/agents/first-agent.md
new file mode 100644
index 0000000..148fb0b
--- /dev/null
+++ b/website/i18n/zh-Hans/docusaurus-plugin-content-docs/version-0.3/guides/agents/first-agent.md
@@ -0,0 +1,7 @@
+---
+title: 第一个 Agent
+---
+
+# 第一个 Agent
+
+_占位。内容将在后续内容 PR 中补充。_
diff --git a/website/i18n/zh-Hans/docusaurus-plugin-content-docs/version-0.3/guides/agents/streaming.md b/website/i18n/zh-Hans/docusaurus-plugin-content-docs/version-0.3/guides/agents/streaming.md
new file mode 100644
index 0000000..77cc598
--- /dev/null
+++ b/website/i18n/zh-Hans/docusaurus-plugin-content-docs/version-0.3/guides/agents/streaming.md
@@ -0,0 +1,7 @@
+---
+title: 流式输出
+---
+
+# 流式输出
+
+_占位。内容将在后续内容 PR 中补充。_
diff --git a/website/i18n/zh-Hans/docusaurus-plugin-content-docs/version-0.3/guides/agents/tool-use.md b/website/i18n/zh-Hans/docusaurus-plugin-content-docs/version-0.3/guides/agents/tool-use.md
new file mode 100644
index 0000000..d862904
--- /dev/null
+++ b/website/i18n/zh-Hans/docusaurus-plugin-content-docs/version-0.3/guides/agents/tool-use.md
@@ -0,0 +1,7 @@
+---
+title: 工具调用
+---
+
+# 工具调用
+
+_占位。内容将在后续内容 PR 中补充。_
diff --git a/website/i18n/zh-Hans/docusaurus-plugin-content-docs/version-0.3/guides/checkpointing/sqlite.md b/website/i18n/zh-Hans/docusaurus-plugin-content-docs/version-0.3/guides/checkpointing/sqlite.md
new file mode 100644
index 0000000..f9835eb
--- /dev/null
+++ b/website/i18n/zh-Hans/docusaurus-plugin-content-docs/version-0.3/guides/checkpointing/sqlite.md
@@ -0,0 +1,7 @@
+---
+title: SQLite
+---
+
+# SQLite
+
+_占位。内容将在后续内容 PR 中补充。_
diff --git a/website/i18n/zh-Hans/docusaurus-plugin-content-docs/version-0.3/guides/providers/anthropic.md b/website/i18n/zh-Hans/docusaurus-plugin-content-docs/version-0.3/guides/providers/anthropic.md
new file mode 100644
index 0000000..d19499c
--- /dev/null
+++ b/website/i18n/zh-Hans/docusaurus-plugin-content-docs/version-0.3/guides/providers/anthropic.md
@@ -0,0 +1,7 @@
+---
+title: Anthropic
+---
+
+# Anthropic
+
+_占位。内容将在后续内容 PR 中补充。_
diff --git a/website/i18n/zh-Hans/docusaurus-plugin-content-docs/version-0.3/intro.md b/website/i18n/zh-Hans/docusaurus-plugin-content-docs/version-0.3/intro.md
new file mode 100644
index 0000000..a2042c3
--- /dev/null
+++ b/website/i18n/zh-Hans/docusaurus-plugin-content-docs/version-0.3/intro.md
@@ -0,0 +1,12 @@
+---
+id: intro
+title: CubePi
+slug: /
+sidebar_position: 0
+---
+
+# CubePi
+
+一个 Pythonic、原生异步的 Agent 框架。
+
+从 [快速开始](./getting-started/quick-start) 开始,或浏览 [API 参考](./api/) 。
diff --git a/website/src/components/Home/FeatureGrid.tsx b/website/src/components/Home/FeatureGrid.tsx
index 15ab059..0f3379c 100644
--- a/website/src/components/Home/FeatureGrid.tsx
+++ b/website/src/components/Home/FeatureGrid.tsx
@@ -38,12 +38,12 @@ const IconMcp: Icon = (p) => (
);
const CARDS = [
- { Icon: IconBox, title: 'Agents', body: 'One async loop, fully typed events.', href: '/docs/next/guides/agents/first-agent' },
- { Icon: IconStream, title: 'Streaming', body: 'async for event in stream.', href: '/docs/next/guides/agents/streaming' },
- { Icon: IconTool, title: 'Tools', body: 'Plain functions, parallel execution.', href: '/docs/next/guides/agents/tool-use' },
- { Icon: IconPlug, title: 'Providers', body: 'Anthropic, OpenAI, or write your own.', href: '/docs/next/guides/providers/anthropic' },
- { Icon: IconDisk, title: 'Checkpointing', body: 'Append-only, O(1) per turn.', href: '/docs/next/guides/checkpointing/sqlite' },
- { Icon: IconMcp, title: 'MCP', body: 'Load remote tools at startup.', href: '/docs/next/guides/mcp/loading' },
+ { Icon: IconBox, title: 'Agents', body: 'One async loop, fully typed events.', href: '/docs/guides/agents/first-agent' },
+ { Icon: IconStream, title: 'Streaming', body: 'async for event in stream.', href: '/docs/guides/agents/streaming' },
+ { Icon: IconTool, title: 'Tools', body: 'Plain functions, parallel execution.', href: '/docs/guides/agents/tool-use' },
+ { Icon: IconPlug, title: 'Providers', body: 'Anthropic, OpenAI, or write your own.', href: '/docs/guides/providers/anthropic' },
+ { Icon: IconDisk, title: 'Checkpointing', body: 'Append-only, O(1) per turn.', href: '/docs/guides/checkpointing/sqlite' },
+ { Icon: IconMcp, title: 'MCP', body: 'Load remote tools at startup.', href: '/docs/guides/mcp/loading' },
];
export default function FeatureGrid() {
diff --git a/website/src/components/Home/HelloAgent.tsx b/website/src/components/Home/HelloAgent.tsx
index 2f23412..432de32 100644
--- a/website/src/components/Home/HelloAgent.tsx
+++ b/website/src/components/Home/HelloAgent.tsx
@@ -45,7 +45,7 @@ export default function HelloAgent() {
<p className={styles.lede}>
A single async function loop. One <code>Provider</code>, one <code>AgentTool</code>, and you're streaming.
</p>
- <Link to="/docs/next/getting-started/quick-start" className={styles.link}>
+ <Link to="/docs/getting-started/quick-start" className={styles.link}>
Full quick-start →
</Link>
</div>
diff --git a/website/src/components/Home/Hero.tsx b/website/src/components/Home/Hero.tsx
index bc05e13..038404c 100644
--- a/website/src/components/Home/Hero.tsx
+++ b/website/src/components/Home/Hero.tsx
@@ -31,7 +31,7 @@ export default function Hero() {
<code>{installCmd}</code>
<kbd className={styles.kbd}>⌘C</kbd>
</button>
- <Link className={`${styles.cta} ${styles.ctaGhost}`} to="/docs/next/getting-started/quick-start">
+ <Link className={`${styles.cta} ${styles.ctaGhost}`} to="/docs/getting-started/quick-start">
Quick Start →
<kbd className={styles.kbd}>G Q</kbd>
</Link>
diff --git a/website/versioned_docs/version-0.3/api/cubepi-agent.mdx b/website/versioned_docs/version-0.3/api/cubepi-agent.mdx
new file mode 100644
index 0000000..b85d721
--- /dev/null
+++ b/website/versioned_docs/version-0.3/api/cubepi-agent.mdx
@@ -0,0 +1,263 @@
+---
+id: cubepi-agent
+title: cubepi.agent
+sidebar_position: 1
+hide_table_of_contents: false
+---
+
+# `cubepi.agent`
+
+### Agent
+
+_class_
+
+```python
+Agent(self, provider: Provider, model: Model, system_prompt: str = '', tools: list[AgentTool] | None = None, thinking: ThinkingLevel = 'off', convert_to_llm: Callable[[list[Message]], list[Message]] | None = None, transform_context: Callable | None = None, transform_system_prompt: Callable | None = None, after_model_response: Callable | None = None, before_tool_call: Callable | None = None, after_tool_call: Callable | None = None, should_stop_after_turn: Callable | None = None, on_payload: OnPayloadCallback | None = None, on_response: OnResponseCallback | None = None, steering_mode: str = 'one-at-a-time', follow_up_mode: str = 'one-at-a-time', tool_execution: str = 'parallel', checkpointer: Any = None, thread_id: str | None = None, middleware: list[Middleware] | None = None)
+```
+
+
+[source](https://github.com/cubeplexai/cubepi/blob/546375c8c986a00e2d3559a78f219fc426818c24/cubepi/agent/agent.py#L105)
+
+
+### AgentState
+
+_class_
+
+```python
+AgentState(self, system_prompt: str = '', model: Model = (lambda: Model(id='unknown', provider='unknown'))(), thinking: ThinkingLevel = 'off', is_streaming: bool = False, streaming_message: Message | None = None, error_message: str | None = None, _tools: list[AgentTool] = list(), _messages: list[Message] = list(), _pending_tool_calls: set[str] = set())
+```
+
+
+[source](https://github.com/cubeplexai/cubepi/blob/546375c8c986a00e2d3559a78f219fc426818c24/cubepi/agent/agent.py#L66)
+
+
+### run_agent_loop
+
+_function_
+
+```python
+run_agent_loop(prompts: list[Message], context: AgentContext, provider: Provider, model: Model, convert_to_llm: Callable, emit: Callable, transform_context: Callable | None = None, transform_system_prompt: Callable | None = None, after_model_response: Callable | None = None, before_tool_call: Callable | None = None, after_tool_call: Callable | None = None, should_stop_after_turn: Callable | None = None, get_steering_messages: Callable | None = None, get_follow_up_messages: Callable | None = None, stream_options: StreamOptions | None = None, tool_execution: str = 'parallel', system_prompt: str | None = None) -> list[Message]
+```
+
+
+[source](https://github.com/cubeplexai/cubepi/blob/546375c8c986a00e2d3559a78f219fc426818c24/cubepi/agent/loop.py#L30)
+
+
+### run_agent_loop_continue
+
+_function_
+
+```python
+run_agent_loop_continue(context: AgentContext, provider: Provider, model: Model, convert_to_llm: Callable, emit: Callable, transform_context: Callable | None = None, transform_system_prompt: Callable | None = None, after_model_response: Callable | None = None, before_tool_call: Callable | None = None, after_tool_call: Callable | None = None, should_stop_after_turn: Callable | None = None, get_steering_messages: Callable | None = None, get_follow_up_messages: Callable | None = None, stream_options: StreamOptions | None = None, tool_execution: str = 'parallel', system_prompt: str | None = None) -> list[Message]
+```
+
+
+[source](https://github.com/cubeplexai/cubepi/blob/546375c8c986a00e2d3559a78f219fc426818c24/cubepi/agent/loop.py#L87)
+
+
+### execute_tool_calls
+
+_function_
+
+```python
+execute_tool_calls(context: AgentContext, assistant_message: AssistantMessage, tool_execution: str = 'parallel', before_tool_call: Callable | None = None, after_tool_call: Callable | None = None, signal: asyncio.Event | None = None, emit: Callable) -> ToolCallBatch
+```
+
+
+[source](https://github.com/cubeplexai/cubepi/blob/546375c8c986a00e2d3559a78f219fc426818c24/cubepi/agent/tools.py#L200)
+
+
+### AfterToolCallContext
+
+_class_
+
+```python
+AfterToolCallContext(self, assistant_message: AssistantMessage, tool_call: ToolCall, args: Any, result: AgentToolResult, is_error: bool, context: AgentContext)
+```
+
+
+[source](https://github.com/cubeplexai/cubepi/blob/546375c8c986a00e2d3559a78f219fc426818c24/cubepi/agent/types.py#L79)
+
+
+### AfterToolCallResult
+
+_class_
+
+
+[source](https://github.com/cubeplexai/cubepi/blob/546375c8c986a00e2d3559a78f219fc426818c24/cubepi/agent/types.py#L64)
+
+
+### AgentContext
+
+_class_
+
+```python
+AgentContext(self, system_prompt: str, messages: list[Message], tools: list[AgentTool] | None = None, extra: dict[str, Any] = dict())
+```
+
+
+[source](https://github.com/cubeplexai/cubepi/blob/546375c8c986a00e2d3559a78f219fc426818c24/cubepi/agent/types.py#L48)
+
+
+### AgentEndEvent
+
+_class_
+
+
+[source](https://github.com/cubeplexai/cubepi/blob/546375c8c986a00e2d3559a78f219fc426818c24/cubepi/agent/types.py#L104)
+
+
+### AgentEvent
+
+_attribute_
+
+
+[source](https://github.com/cubeplexai/cubepi/blob/546375c8c986a00e2d3559a78f219fc426818c24/cubepi/agent/types.py#L158)
+
+
+### AgentListener
+
+_attribute_
+
+
+[source](https://github.com/cubeplexai/cubepi/blob/546375c8c986a00e2d3559a78f219fc426818c24/cubepi/agent/types.py#L173)
+
+
+### AgentStartEvent
+
+_class_
+
+
+[source](https://github.com/cubeplexai/cubepi/blob/546375c8c986a00e2d3559a78f219fc426818c24/cubepi/agent/types.py#L100)
+
+
+### AgentTool
+
+_class_
+
+```python
+AgentTool(self, name: str, description: str, parameters: type[TParams], execute: Callable[..., Awaitable[AgentToolResult]], label: str = '', execution_mode: Literal['sequential', 'parallel'] | None = None)
+```
+
+
+[source](https://github.com/cubeplexai/cubepi/blob/546375c8c986a00e2d3559a78f219fc426818c24/cubepi/agent/types.py#L30)
+
+
+### AgentToolResult
+
+_class_
+
+
+[source](https://github.com/cubeplexai/cubepi/blob/546375c8c986a00e2d3559a78f219fc426818c24/cubepi/agent/types.py#L23)
+
+
+### BeforeToolCallContext
+
+_class_
+
+```python
+BeforeToolCallContext(self, assistant_message: AssistantMessage, tool_call: ToolCall, args: Any, context: AgentContext)
+```
+
+
+[source](https://github.com/cubeplexai/cubepi/blob/546375c8c986a00e2d3559a78f219fc426818c24/cubepi/agent/types.py#L71)
+
+
+### BeforeToolCallResult
+
+_class_
+
+
+[source](https://github.com/cubeplexai/cubepi/blob/546375c8c986a00e2d3559a78f219fc426818c24/cubepi/agent/types.py#L59)
+
+
+### MessageEndEvent
+
+_class_
+
+
+[source](https://github.com/cubeplexai/cubepi/blob/546375c8c986a00e2d3559a78f219fc426818c24/cubepi/agent/types.py#L130)
+
+
+### MessageStartEvent
+
+_class_
+
+
+[source](https://github.com/cubeplexai/cubepi/blob/546375c8c986a00e2d3559a78f219fc426818c24/cubepi/agent/types.py#L119)
+
+
+### MessageUpdateEvent
+
+_class_
+
+
+[source](https://github.com/cubeplexai/cubepi/blob/546375c8c986a00e2d3559a78f219fc426818c24/cubepi/agent/types.py#L124)
+
+
+### ShouldStopAfterTurnContext
+
+_class_
+
+```python
+ShouldStopAfterTurnContext(self, message: AssistantMessage, tool_results: list[ToolResultMessage], context: AgentContext, new_messages: list[Message])
+```
+
+
+[source](https://github.com/cubeplexai/cubepi/blob/546375c8c986a00e2d3559a78f219fc426818c24/cubepi/agent/types.py#L89)
+
+
+### ToolExecutionEndEvent
+
+_class_
+
+
+[source](https://github.com/cubeplexai/cubepi/blob/546375c8c986a00e2d3559a78f219fc426818c24/cubepi/agent/types.py#L150)
+
+
+### ToolExecutionStartEvent
+
+_class_
+
+
+[source](https://github.com/cubeplexai/cubepi/blob/546375c8c986a00e2d3559a78f219fc426818c24/cubepi/agent/types.py#L135)
+
+
+### ToolExecutionUpdateEvent
+
+_class_
+
+
+[source](https://github.com/cubeplexai/cubepi/blob/546375c8c986a00e2d3559a78f219fc426818c24/cubepi/agent/types.py#L142)
+
+
+### TurnEndEvent
+
+_class_
+
+
+[source](https://github.com/cubeplexai/cubepi/blob/546375c8c986a00e2d3559a78f219fc426818c24/cubepi/agent/types.py#L113)
+
+
+### TurnStartEvent
+
+_class_
+
+
+[source](https://github.com/cubeplexai/cubepi/blob/546375c8c986a00e2d3559a78f219fc426818c24/cubepi/agent/types.py#L109)
+
+
+### emit_event
+
+_function_
+
+```python
+emit_event(emit_fn: Callable, event: object) -> None
+```
+
+
+[source](https://github.com/cubeplexai/cubepi/blob/546375c8c986a00e2d3559a78f219fc426818c24/cubepi/utils/emit.py#L7)
+
+
+
+<!-- GENERATED by build-api-reference.py — DO NOT EDIT -->
\ No newline at end of file
diff --git a/website/versioned_docs/version-0.3/api/cubepi-checkpointer.mdx b/website/versioned_docs/version-0.3/api/cubepi-checkpointer.mdx
new file mode 100644
index 0000000..8747427
--- /dev/null
+++ b/website/versioned_docs/version-0.3/api/cubepi-checkpointer.mdx
@@ -0,0 +1,43 @@
+---
+id: cubepi-checkpointer
+title: cubepi.checkpointer
+sidebar_position: 3
+hide_table_of_contents: false
+---
+
+# `cubepi.checkpointer`
+
+### Checkpointer
+
+_class_
+
+
+[source](https://github.com/cubeplexai/cubepi/blob/546375c8c986a00e2d3559a78f219fc426818c24/cubepi/checkpointer/base.py#L13)
+
+
+### CheckpointData
+
+_class_
+
+```python
+CheckpointData(self, messages: list[Any] = list(), extra: dict[str, Any] = dict())
+```
+
+
+[source](https://github.com/cubeplexai/cubepi/blob/546375c8c986a00e2d3559a78f219fc426818c24/cubepi/checkpointer/base.py#L7)
+
+
+### MemoryCheckpointer
+
+_class_
+
+```python
+MemoryCheckpointer(self)
+```
+
+
+[source](https://github.com/cubeplexai/cubepi/blob/546375c8c986a00e2d3559a78f219fc426818c24/cubepi/checkpointer/memory.py#L8)
+
+
+
+<!-- GENERATED by build-api-reference.py — DO NOT EDIT -->
\ No newline at end of file
diff --git a/website/versioned_docs/version-0.3/api/cubepi-mcp.mdx b/website/versioned_docs/version-0.3/api/cubepi-mcp.mdx
new file mode 100644
index 0000000..52fd5bb
--- /dev/null
+++ b/website/versioned_docs/version-0.3/api/cubepi-mcp.mdx
@@ -0,0 +1,57 @@
+---
+id: cubepi-mcp
+title: cubepi.mcp
+sidebar_position: 5
+hide_table_of_contents: false
+---
+
+# `cubepi.mcp`
+
+### load_mcp_tools_http
+
+_function_
+
+```python
+load_mcp_tools_http(server_url: str, headers: dict[str, str] | None = None, timeout: float = 30.0) -> list[AgentTool]
+```
+
+Connect to an HTTP/SSE MCP server, discover tools, return AgentTools.
+
+Uses the `mcp` SDK's HTTP client. Each returned tool's execute method
+invokes tools/call against a fresh session — v1 simplicity, no pooling.
+
+The transport's own timeout bounds the SSE connection; we additionally
+wrap initialize/list/call awaits in asyncio.wait_for so a server that
+accepts the connection but stalls on protocol messages still aborts.
+
+[source](https://github.com/cubeplexai/cubepi/blob/546375c8c986a00e2d3559a78f219fc426818c24/cubepi/mcp/http_loader.py#L12)
+
+
+### load_mcp_tools_stdio
+
+_function_
+
+```python
+load_mcp_tools_stdio(command: str, args: list[str], env: dict[str, str] | None = None, cwd: str | None = None, timeout: float = 30.0) -> list[AgentTool]
+```
+
+Spawn a stdio MCP server subprocess, discover tools, return AgentTools.
+
+Each returned tool's execute opens a fresh subprocess per call (v1
+simplicity, no process pooling).
+
+
+**Args**
+
+- `command` — executable to run (e.g. "npx" or sys.executable)
+- `args` — argv for the server process
+- `env` — environment variables (passed to subprocess)
+- `cwd` — working directory for the subprocess
+- `timeout` — per-call wall-clock timeout for initialize/list/call awaits.
+ A hung server raises asyncio.TimeoutError instead of blocking forever.
+
+[source](https://github.com/cubeplexai/cubepi/blob/546375c8c986a00e2d3559a78f219fc426818c24/cubepi/mcp/stdio_loader.py#L12)
+
+
+
+<!-- GENERATED by build-api-reference.py — DO NOT EDIT -->
\ No newline at end of file
diff --git a/website/versioned_docs/version-0.3/api/cubepi-middleware.mdx b/website/versioned_docs/version-0.3/api/cubepi-middleware.mdx
new file mode 100644
index 0000000..a62bd7b
--- /dev/null
+++ b/website/versioned_docs/version-0.3/api/cubepi-middleware.mdx
@@ -0,0 +1,48 @@
+---
+id: cubepi-middleware
+title: cubepi.middleware
+sidebar_position: 4
+hide_table_of_contents: false
+---
+
+# `cubepi.middleware`
+
+### Middleware
+
+_class_
+
+
+[source](https://github.com/cubeplexai/cubepi/blob/546375c8c986a00e2d3559a78f219fc426818c24/cubepi/middleware/base.py#L23)
+
+
+### TurnAction
+
+_class_
+
+```python
+TurnAction(self, response: AssistantMessage | None = None, inject_messages: list[Message] = list(), decision: Literal['natural', 'stop', 'loop_to_model'] = 'natural')
+```
+
+Directs the agent loop's next step after a model response.
+
+Composition (chain): each middleware sees previous middleware's
+TurnAction. Last middleware's value wins for response and decision.
+inject_messages concatenates across the chain.
+
+[source](https://github.com/cubeplexai/cubepi/blob/546375c8c986a00e2d3559a78f219fc426818c24/cubepi/middleware/base.py#L9)
+
+
+### compose_middleware
+
+_function_
+
+```python
+compose_middleware(middlewares: list[Middleware]) -> dict[str, Callable]
+```
+
+
+[source](https://github.com/cubeplexai/cubepi/blob/546375c8c986a00e2d3559a78f219fc426818c24/cubepi/middleware/base.py#L63)
+
+
+
+<!-- GENERATED by build-api-reference.py — DO NOT EDIT -->
\ No newline at end of file
diff --git a/website/versioned_docs/version-0.3/api/cubepi-providers.mdx b/website/versioned_docs/version-0.3/api/cubepi-providers.mdx
new file mode 100644
index 0000000..d974a6e
--- /dev/null
+++ b/website/versioned_docs/version-0.3/api/cubepi-providers.mdx
@@ -0,0 +1,344 @@
+---
+id: cubepi-providers
+title: cubepi.providers
+sidebar_position: 2
+hide_table_of_contents: false
+---
+
+# `cubepi.providers`
+
+### AssistantMessage
+
+_class_
+
+
+[source](https://github.com/cubeplexai/cubepi/blob/546375c8c986a00e2d3559a78f219fc426818c24/cubepi/providers/base.py#L123)
+
+
+### Content
+
+_attribute_
+
+
+[source](https://github.com/cubeplexai/cubepi/blob/546375c8c986a00e2d3559a78f219fc426818c24/cubepi/providers/base.py#L106)
+
+
+### ImageContent
+
+_class_
+
+
+[source](https://github.com/cubeplexai/cubepi/blob/546375c8c986a00e2d3559a78f219fc426818c24/cubepi/providers/base.py#L95)
+
+
+### Message
+
+_attribute_
+
+
+[source](https://github.com/cubeplexai/cubepi/blob/546375c8c986a00e2d3559a78f219fc426818c24/cubepi/providers/base.py#L147)
+
+
+### MessageStream
+
+_class_
+
+```python
+MessageStream(self)
+```
+
+
+[source](https://github.com/cubeplexai/cubepi/blob/546375c8c986a00e2d3559a78f219fc426818c24/cubepi/providers/base.py#L177)
+
+
+### Model
+
+_class_
+
+
+[source](https://github.com/cubeplexai/cubepi/blob/546375c8c986a00e2d3559a78f219fc426818c24/cubepi/providers/base.py#L78)
+
+
+### ModelCost
+
+_class_
+
+
+[source](https://github.com/cubeplexai/cubepi/blob/546375c8c986a00e2d3559a78f219fc426818c24/cubepi/providers/base.py#L64)
+
+
+### OnPayloadCallback
+
+_attribute_
+
+Optional callback for inspecting/replacing provider payloads before sending.
+Return a dict to replace the payload, or None to keep unchanged.
+
+[source](https://github.com/cubeplexai/cubepi/blob/546375c8c986a00e2d3559a78f219fc426818c24/cubepi/providers/base.py#L227)
+
+
+### OnResponseCallback
+
+_attribute_
+
+Optional callback invoked after an HTTP response is received.
+
+[source](https://github.com/cubeplexai/cubepi/blob/546375c8c986a00e2d3559a78f219fc426818c24/cubepi/providers/base.py#L231)
+
+
+### Provider
+
+_class_
+
+
+[source](https://github.com/cubeplexai/cubepi/blob/546375c8c986a00e2d3559a78f219fc426818c24/cubepi/providers/base.py#L274)
+
+
+### ProviderResponse
+
+_class_
+
+```python
+ProviderResponse(self, status: int, headers: dict[str, str] = dict())
+```
+
+HTTP response metadata exposed to on_response callbacks.
+
+[source](https://github.com/cubeplexai/cubepi/blob/546375c8c986a00e2d3559a78f219fc426818c24/cubepi/providers/base.py#L219)
+
+
+### StreamEvent
+
+_class_
+
+
+[source](https://github.com/cubeplexai/cubepi/blob/546375c8c986a00e2d3559a78f219fc426818c24/cubepi/providers/base.py#L156)
+
+
+### StreamOptions
+
+_class_
+
+Options bag for Provider.stream(), transparent to the agent loop.
+
+[source](https://github.com/cubeplexai/cubepi/blob/546375c8c986a00e2d3559a78f219fc426818c24/cubepi/providers/base.py#L235)
+
+
+### TextContent
+
+_class_
+
+
+[source](https://github.com/cubeplexai/cubepi/blob/546375c8c986a00e2d3559a78f219fc426818c24/cubepi/providers/base.py#L90)
+
+
+### ThinkingBudgets
+
+_class_
+
+Token budgets for each thinking level.
+
+[source](https://github.com/cubeplexai/cubepi/blob/546375c8c986a00e2d3559a78f219fc426818c24/cubepi/providers/base.py#L21)
+
+
+### ThinkingContent
+
+_class_
+
+
+[source](https://github.com/cubeplexai/cubepi/blob/546375c8c986a00e2d3559a78f219fc426818c24/cubepi/providers/base.py#L101)
+
+
+### ThinkingLevel
+
+_attribute_
+
+
+[source](https://github.com/cubeplexai/cubepi/blob/546375c8c986a00e2d3559a78f219fc426818c24/cubepi/providers/base.py#L18)
+
+
+### ToolCall
+
+_class_
+
+
+[source](https://github.com/cubeplexai/cubepi/blob/546375c8c986a00e2d3559a78f219fc426818c24/cubepi/providers/base.py#L109)
+
+
+### ToolDefinition
+
+_class_
+
+
+[source](https://github.com/cubeplexai/cubepi/blob/546375c8c986a00e2d3559a78f219fc426818c24/cubepi/providers/base.py#L150)
+
+
+### ToolResultMessage
+
+_class_
+
+
+[source](https://github.com/cubeplexai/cubepi/blob/546375c8c986a00e2d3559a78f219fc426818c24/cubepi/providers/base.py#L136)
+
+
+### Usage
+
+_class_
+
+
+[source](https://github.com/cubeplexai/cubepi/blob/546375c8c986a00e2d3559a78f219fc426818c24/cubepi/providers/base.py#L71)
+
+
+### UserMessage
+
+_class_
+
+
+[source](https://github.com/cubeplexai/cubepi/blob/546375c8c986a00e2d3559a78f219fc426818c24/cubepi/providers/base.py#L116)
+
+
+### adjust_max_tokens_for_thinking
+
+_function_
+
+```python
+adjust_max_tokens_for_thinking(base_max_tokens: int, model_max_tokens: int, reasoning_level: ThinkingLevel, custom_budgets: ThinkingBudgets | None = None) -> tuple[int, int]
+```
+
+Adjust max_tokens to reserve space for a thinking budget.
+
+Given a base max_tokens (the desired output capacity), increases it to
+accommodate the thinking budget while respecting the model's hard cap.
+If the model cap is too small to fit both, the thinking budget is reduced
+to leave at least ``min_output_tokens`` (1024) for output.
+
+
+**Returns**
+
+- A ``(max_tokens, thinking_budget)`` tuple.
+
+[source](https://github.com/cubeplexai/cubepi/blob/546375c8c986a00e2d3559a78f219fc426818c24/cubepi/providers/base.py#L30)
+
+
+### FauxProvider
+
+_class_
+
+```python
+FauxProvider(self, tokens_per_second: float | None = None, token_size_min: int = 3, token_size_max: int = 5)
+```
+
+
+[source](https://github.com/cubeplexai/cubepi/blob/546375c8c986a00e2d3559a78f219fc426818c24/cubepi/providers/faux.py#L151)
+
+
+### faux_assistant_message
+
+_function_
+
+```python
+faux_assistant_message(content: str | FauxContentBlock | list[FauxContentBlock], stop_reason: str = 'stop', error_message: str | None = None) -> AssistantMessage
+```
+
+
+[source](https://github.com/cubeplexai/cubepi/blob/546375c8c986a00e2d3559a78f219fc426818c24/cubepi/providers/faux.py#L59)
+
+
+### faux_text
+
+_function_
+
+```python
+faux_text(text: str) -> TextContent
+```
+
+
+[source](https://github.com/cubeplexai/cubepi/blob/546375c8c986a00e2d3559a78f219fc426818c24/cubepi/providers/faux.py#L42)
+
+
+### faux_thinking
+
+_function_
+
+```python
+faux_thinking(thinking: str) -> ThinkingContent
+```
+
+
+[source](https://github.com/cubeplexai/cubepi/blob/546375c8c986a00e2d3559a78f219fc426818c24/cubepi/providers/faux.py#L46)
+
+
+### faux_tool_call
+
+_function_
+
+```python
+faux_tool_call(name: str, arguments: dict[str, Any], id: str | None = None) -> ToolCall
+```
+
+
+[source](https://github.com/cubeplexai/cubepi/blob/546375c8c986a00e2d3559a78f219fc426818c24/cubepi/providers/faux.py#L50)
+
+
+### THINKING_LEVELS
+
+_attribute_
+
+
+[source](https://github.com/cubeplexai/cubepi/blob/546375c8c986a00e2d3559a78f219fc426818c24/cubepi/providers/models.py#L12)
+
+
+### clamp_thinking_level
+
+_function_
+
+```python
+clamp_thinking_level(model: Model, level: ThinkingLevel) -> ThinkingLevel
+```
+
+Clamp *level* to the nearest supported level for *model*.
+
+If *level* is already supported, return it unchanged. Otherwise search
+upward first (higher intensity), then downward, through the ordered level
+list to find the closest available level.
+
+[source](https://github.com/cubeplexai/cubepi/blob/546375c8c986a00e2d3559a78f219fc426818c24/cubepi/providers/models.py#L54)
+
+
+### get_supported_thinking_levels
+
+_function_
+
+```python
+get_supported_thinking_levels(model: Model) -> list[ThinkingLevel]
+```
+
+Return the thinking levels supported by *model*.
+
+* Non-reasoning models only support ``["off"]``.
+* For reasoning models, levels are filtered through the model's
+ ``thinking_level_map``. A level mapped to ``None`` is unsupported.
+ ``"xhigh"`` is only included when it has an explicit (non-None) mapping.
+ All other levels are included by default when the map omits them.
+
+[source](https://github.com/cubeplexai/cubepi/blob/546375c8c986a00e2d3559a78f219fc426818c24/cubepi/providers/models.py#L22)
+
+
+### models_are_equal
+
+_function_
+
+```python
+models_are_equal(a: Model | None, b: Model | None) -> bool
+```
+
+Return ``True`` if *a* and *b* refer to the same model.
+
+Comparison is by ``id`` and ``provider``. Returns ``False`` when either
+argument is ``None``.
+
+[source](https://github.com/cubeplexai/cubepi/blob/546375c8c986a00e2d3559a78f219fc426818c24/cubepi/providers/models.py#L87)
+
+
+
+<!-- GENERATED by build-api-reference.py — DO NOT EDIT -->
\ No newline at end of file
diff --git a/website/versioned_docs/version-0.3/api/cubepi-utils.mdx b/website/versioned_docs/version-0.3/api/cubepi-utils.mdx
new file mode 100644
index 0000000..be0e065
--- /dev/null
+++ b/website/versioned_docs/version-0.3/api/cubepi-utils.mdx
@@ -0,0 +1,67 @@
+---
+id: cubepi-utils
+title: cubepi.utils
+sidebar_position: 6
+hide_table_of_contents: false
+---
+
+# `cubepi.utils`
+
+### emit_event
+
+_function_
+
+```python
+emit_event(emit_fn: Callable, event: object) -> None
+```
+
+
+[source](https://github.com/cubeplexai/cubepi/blob/546375c8c986a00e2d3559a78f219fc426818c24/cubepi/utils/emit.py#L7)
+
+
+### parse_streaming_json
+
+_function_
+
+```python
+parse_streaming_json(text: str | None) -> dict
+```
+
+Parse potentially incomplete or malformed JSON from streaming.
+
+Uses a 3-tier fallback:
+ 1. ``json.loads(text)``
+ 2. ``json.loads(repair_json(text))``
+ 3. Partial-parse: repair + close open braces/brackets/strings
+ 4. ``{}`` as last resort
+
+Always returns a *dict* (or at minimum ``{}``) so callers never need
+to handle parse failures.
+
+[source](https://github.com/cubeplexai/cubepi/blob/546375c8c986a00e2d3559a78f219fc426818c24/cubepi/utils/json_parse.py#L169)
+
+
+### repair_json
+
+_function_
+
+```python
+repair_json(text: str) -> str
+```
+
+Repair malformed JSON string literals.
+
+Operates character-by-character, tracking whether the cursor is inside a
+JSON string value. Inside strings it:
+
+* Escapes raw control characters (0x00-0x1F) that are not already
+ escaped (``\t``, ``\n``, ``\r`` are kept when already escaped).
+* Doubles a backslash before an invalid escape character
+ (e.g. ``\x`` becomes ``\\x``), making the output parseable.
+* Handles truncated backslash at end-of-string.
+
+[source](https://github.com/cubeplexai/cubepi/blob/546375c8c986a00e2d3559a78f219fc426818c24/cubepi/utils/json_parse.py#L39)
+
+
+
+<!-- GENERATED by build-api-reference.py — DO NOT EDIT -->
\ No newline at end of file
diff --git a/website/versioned_docs/version-0.3/api/index.mdx b/website/versioned_docs/version-0.3/api/index.mdx
new file mode 100644
index 0000000..9a11fe5
--- /dev/null
+++ b/website/versioned_docs/version-0.3/api/index.mdx
@@ -0,0 +1,16 @@
+---
+title: API Reference
+---
+
+# API Reference
+
+Auto-generated from CubePi's public modules.
+
+- `cubepi.agent`
+- `cubepi.providers`
+- `cubepi.checkpointer`
+- `cubepi.middleware`
+- `cubepi.mcp`
+- `cubepi.utils`
+
+The module pages above are generated at build time from docstrings and are not editable by hand.
diff --git a/website/versioned_docs/version-0.3/getting-started/core-concepts.md b/website/versioned_docs/version-0.3/getting-started/core-concepts.md
new file mode 100644
index 0000000..fc28a3e
--- /dev/null
+++ b/website/versioned_docs/version-0.3/getting-started/core-concepts.md
@@ -0,0 +1,7 @@
+---
+title: Core Concepts
+---
+
+# Core Concepts
+
+_Placeholder. Content arrives in a follow-up content PR._
diff --git a/website/versioned_docs/version-0.3/getting-started/installation.md b/website/versioned_docs/version-0.3/getting-started/installation.md
new file mode 100644
index 0000000..27827b7
--- /dev/null
+++ b/website/versioned_docs/version-0.3/getting-started/installation.md
@@ -0,0 +1,7 @@
+---
+title: Installation
+---
+
+# Installation
+
+_Placeholder. Content arrives in a follow-up content PR._
diff --git a/website/versioned_docs/version-0.3/getting-started/quick-start.md b/website/versioned_docs/version-0.3/getting-started/quick-start.md
new file mode 100644
index 0000000..b1171f1
--- /dev/null
+++ b/website/versioned_docs/version-0.3/getting-started/quick-start.md
@@ -0,0 +1,7 @@
+---
+title: Quick Start
+---
+
+# Quick Start
+
+_Placeholder. Content arrives in a follow-up content PR._
diff --git a/website/versioned_docs/version-0.3/guides/agents/first-agent.md b/website/versioned_docs/version-0.3/guides/agents/first-agent.md
new file mode 100644
index 0000000..7982610
--- /dev/null
+++ b/website/versioned_docs/version-0.3/guides/agents/first-agent.md
@@ -0,0 +1,7 @@
+---
+title: First Agent
+---
+
+# First Agent
+
+_Placeholder. Content arrives in a follow-up content PR._
diff --git a/website/versioned_docs/version-0.3/guides/agents/multi-turn.md b/website/versioned_docs/version-0.3/guides/agents/multi-turn.md
new file mode 100644
index 0000000..85ff92b
--- /dev/null
+++ b/website/versioned_docs/version-0.3/guides/agents/multi-turn.md
@@ -0,0 +1,7 @@
+---
+title: Multi Turn
+---
+
+# Multi Turn
+
+_Placeholder. Content arrives in a follow-up content PR._
diff --git a/website/versioned_docs/version-0.3/guides/agents/streaming.md b/website/versioned_docs/version-0.3/guides/agents/streaming.md
new file mode 100644
index 0000000..a590c9c
--- /dev/null
+++ b/website/versioned_docs/version-0.3/guides/agents/streaming.md
@@ -0,0 +1,7 @@
+---
+title: Streaming
+---
+
+# Streaming
+
+_Placeholder. Content arrives in a follow-up content PR._
diff --git a/website/versioned_docs/version-0.3/guides/agents/tool-use.md b/website/versioned_docs/version-0.3/guides/agents/tool-use.md
new file mode 100644
index 0000000..013c139
--- /dev/null
+++ b/website/versioned_docs/version-0.3/guides/agents/tool-use.md
@@ -0,0 +1,7 @@
+---
+title: Tool Use
+---
+
+# Tool Use
+
+_Placeholder. Content arrives in a follow-up content PR._
diff --git a/website/versioned_docs/version-0.3/guides/checkpointing/custom.md b/website/versioned_docs/version-0.3/guides/checkpointing/custom.md
new file mode 100644
index 0000000..cae226e
--- /dev/null
+++ b/website/versioned_docs/version-0.3/guides/checkpointing/custom.md
@@ -0,0 +1,7 @@
+---
+title: Custom
+---
+
+# Custom
+
+_Placeholder. Content arrives in a follow-up content PR._
diff --git a/website/versioned_docs/version-0.3/guides/checkpointing/postgres.md b/website/versioned_docs/version-0.3/guides/checkpointing/postgres.md
new file mode 100644
index 0000000..3d0d01c
--- /dev/null
+++ b/website/versioned_docs/version-0.3/guides/checkpointing/postgres.md
@@ -0,0 +1,7 @@
+---
+title: Postgres
+---
+
+# Postgres
+
+_Placeholder. Content arrives in a follow-up content PR._
diff --git a/website/versioned_docs/version-0.3/guides/checkpointing/sqlite.md b/website/versioned_docs/version-0.3/guides/checkpointing/sqlite.md
new file mode 100644
index 0000000..354d68c
--- /dev/null
+++ b/website/versioned_docs/version-0.3/guides/checkpointing/sqlite.md
@@ -0,0 +1,7 @@
+---
+title: Sqlite
+---
+
+# Sqlite
+
+_Placeholder. Content arrives in a follow-up content PR._
diff --git a/website/versioned_docs/version-0.3/guides/mcp/auth.md b/website/versioned_docs/version-0.3/guides/mcp/auth.md
new file mode 100644
index 0000000..f1a1384
--- /dev/null
+++ b/website/versioned_docs/version-0.3/guides/mcp/auth.md
@@ -0,0 +1,7 @@
+---
+title: Auth
+---
+
+# Auth
+
+_Placeholder. Content arrives in a follow-up content PR._
diff --git a/website/versioned_docs/version-0.3/guides/mcp/loading.md b/website/versioned_docs/version-0.3/guides/mcp/loading.md
new file mode 100644
index 0000000..838b911
--- /dev/null
+++ b/website/versioned_docs/version-0.3/guides/mcp/loading.md
@@ -0,0 +1,7 @@
+---
+title: Loading
+---
+
+# Loading
+
+_Placeholder. Content arrives in a follow-up content PR._
diff --git a/website/versioned_docs/version-0.3/guides/middleware/composition.md b/website/versioned_docs/version-0.3/guides/middleware/composition.md
new file mode 100644
index 0000000..fd95377
--- /dev/null
+++ b/website/versioned_docs/version-0.3/guides/middleware/composition.md
@@ -0,0 +1,7 @@
+---
+title: Composition
+---
+
+# Composition
+
+_Placeholder. Content arrives in a follow-up content PR._
diff --git a/website/versioned_docs/version-0.3/guides/middleware/examples.md b/website/versioned_docs/version-0.3/guides/middleware/examples.md
new file mode 100644
index 0000000..5f00489
--- /dev/null
+++ b/website/versioned_docs/version-0.3/guides/middleware/examples.md
@@ -0,0 +1,7 @@
+---
+title: Examples
+---
+
+# Examples
+
+_Placeholder. Content arrives in a follow-up content PR._
diff --git a/website/versioned_docs/version-0.3/guides/middleware/hooks.md b/website/versioned_docs/version-0.3/guides/middleware/hooks.md
new file mode 100644
index 0000000..a16c78d
--- /dev/null
+++ b/website/versioned_docs/version-0.3/guides/middleware/hooks.md
@@ -0,0 +1,7 @@
+---
+title: Hooks
+---
+
+# Hooks
+
+_Placeholder. Content arrives in a follow-up content PR._
diff --git a/website/versioned_docs/version-0.3/guides/providers/anthropic.md b/website/versioned_docs/version-0.3/guides/providers/anthropic.md
new file mode 100644
index 0000000..3098230
--- /dev/null
+++ b/website/versioned_docs/version-0.3/guides/providers/anthropic.md
@@ -0,0 +1,7 @@
+---
+title: Anthropic
+---
+
+# Anthropic
+
+_Placeholder. Content arrives in a follow-up content PR._
diff --git a/website/versioned_docs/version-0.3/guides/providers/custom.md b/website/versioned_docs/version-0.3/guides/providers/custom.md
new file mode 100644
index 0000000..cae226e
--- /dev/null
+++ b/website/versioned_docs/version-0.3/guides/providers/custom.md
@@ -0,0 +1,7 @@
+---
+title: Custom
+---
+
+# Custom
+
+_Placeholder. Content arrives in a follow-up content PR._
diff --git a/website/versioned_docs/version-0.3/guides/providers/openai.md b/website/versioned_docs/version-0.3/guides/providers/openai.md
new file mode 100644
index 0000000..f572161
--- /dev/null
+++ b/website/versioned_docs/version-0.3/guides/providers/openai.md
@@ -0,0 +1,7 @@
+---
+title: Openai
+---
+
+# Openai
+
+_Placeholder. Content arrives in a follow-up content PR._
diff --git a/website/versioned_docs/version-0.3/intro.md b/website/versioned_docs/version-0.3/intro.md
new file mode 100644
index 0000000..3ad0a6d
--- /dev/null
+++ b/website/versioned_docs/version-0.3/intro.md
@@ -0,0 +1,12 @@
+---
+id: intro
+title: CubePi
+slug: /
+sidebar_position: 0
+---
+
+# CubePi
+
+A Pythonic, async-native agent framework.
+
+Start with the [Quick Start](./getting-started/quick-start) or browse the [API Reference](./api/).
diff --git a/website/versioned_docs/version-0.3/migration/from-langgraph.md b/website/versioned_docs/version-0.3/migration/from-langgraph.md
new file mode 100644
index 0000000..78be141
--- /dev/null
+++ b/website/versioned_docs/version-0.3/migration/from-langgraph.md
@@ -0,0 +1,7 @@
+---
+title: From Langgraph
+---
+
+# From Langgraph
+
+_Placeholder. Content arrives in a follow-up content PR._
diff --git a/website/versioned_docs/version-0.3/recipes/multi-provider-failover.md b/website/versioned_docs/version-0.3/recipes/multi-provider-failover.md
new file mode 100644
index 0000000..d254f8f
--- /dev/null
+++ b/website/versioned_docs/version-0.3/recipes/multi-provider-failover.md
@@ -0,0 +1,7 @@
+---
+title: Multi Provider Failover
+---
+
+# Multi Provider Failover
+
+_Placeholder. Content arrives in a follow-up content PR._
diff --git a/website/versioned_docs/version-0.3/recipes/persistent-chat.md b/website/versioned_docs/version-0.3/recipes/persistent-chat.md
new file mode 100644
index 0000000..6965c93
--- /dev/null
+++ b/website/versioned_docs/version-0.3/recipes/persistent-chat.md
@@ -0,0 +1,7 @@
+---
+title: Persistent Chat
+---
+
+# Persistent Chat
+
+_Placeholder. Content arrives in a follow-up content PR._
diff --git a/website/versioned_docs/version-0.3/recipes/postgres-fastapi.md b/website/versioned_docs/version-0.3/recipes/postgres-fastapi.md
new file mode 100644
index 0000000..4d63e59
--- /dev/null
+++ b/website/versioned_docs/version-0.3/recipes/postgres-fastapi.md
@@ -0,0 +1,7 @@
+---
+title: Postgres Fastapi
+---
+
+# Postgres Fastapi
+
+_Placeholder. Content arrives in a follow-up content PR._
diff --git a/website/versioned_docs/version-0.3/recipes/resumable-tasks.md b/website/versioned_docs/version-0.3/recipes/resumable-tasks.md
new file mode 100644
index 0000000..03d6901
--- /dev/null
+++ b/website/versioned_docs/version-0.3/recipes/resumable-tasks.md
@@ -0,0 +1,7 @@
+---
+title: Resumable Tasks
+---
+
+# Resumable Tasks
+
+_Placeholder. Content arrives in a follow-up content PR._
diff --git a/website/versioned_docs/version-0.3/recipes/weather-agent.md b/website/versioned_docs/version-0.3/recipes/weather-agent.md
new file mode 100644
index 0000000..8946608
--- /dev/null
+++ b/website/versioned_docs/version-0.3/recipes/weather-agent.md
@@ -0,0 +1,7 @@
+---
+title: Weather Agent
+---
+
+# Weather Agent
+
+_Placeholder. Content arrives in a follow-up content PR._
diff --git a/website/versioned_sidebars/version-0.3-sidebars.json b/website/versioned_sidebars/version-0.3-sidebars.json
new file mode 100644
index 0000000..2e8f594
--- /dev/null
+++ b/website/versioned_sidebars/version-0.3-sidebars.json
@@ -0,0 +1,93 @@
+{
+ "docs": [
+ "intro",
+ {
+ "type": "category",
+ "label": "Getting Started",
+ "collapsed": false,
+ "items": [
+ "getting-started/installation",
+ "getting-started/quick-start",
+ "getting-started/core-concepts"
+ ]
+ },
+ {
+ "type": "category",
+ "label": "Guides",
+ "items": [
+ {
+ "type": "category",
+ "label": "Agents",
+ "items": [
+ "guides/agents/first-agent",
+ "guides/agents/tool-use",
+ "guides/agents/multi-turn",
+ "guides/agents/streaming"
+ ]
+ },
+ {
+ "type": "category",
+ "label": "Providers",
+ "items": [
+ "guides/providers/anthropic",
+ "guides/providers/openai",
+ "guides/providers/custom"
+ ]
+ },
+ {
+ "type": "category",
+ "label": "Checkpointing",
+ "items": [
+ "guides/checkpointing/sqlite",
+ "guides/checkpointing/postgres",
+ "guides/checkpointing/custom"
+ ]
+ },
+ {
+ "type": "category",
+ "label": "Middleware",
+ "items": [
+ "guides/middleware/hooks",
+ "guides/middleware/composition",
+ "guides/middleware/examples"
+ ]
+ },
+ {
+ "type": "category",
+ "label": "MCP",
+ "items": [
+ "guides/mcp/loading",
+ "guides/mcp/auth"
+ ]
+ }
+ ]
+ },
+ {
+ "type": "category",
+ "label": "API Reference",
+ "link": {
+ "type": "doc",
+ "id": "api/index"
+ },
+ "items": []
+ },
+ {
+ "type": "category",
+ "label": "Recipes",
+ "items": [
+ "recipes/weather-agent",
+ "recipes/multi-provider-failover",
+ "recipes/persistent-chat",
+ "recipes/resumable-tasks",
+ "recipes/postgres-fastapi"
+ ]
+ },
+ {
+ "type": "category",
+ "label": "Migration",
+ "items": [
+ "migration/from-langgraph"
+ ]
+ }
+ ]
+}
diff --git a/website/versions.json b/website/versions.json
new file mode 100644
index 0000000..9fe10fd
--- /dev/null
+++ b/website/versions.json
@@ -0,0 +1,3 @@
+[
+ "0.3"
+]