CubeLoop — a Pythonic, async-native agent harness core designed for high performance, readability, and production-grade persistence.
Python agent-frameworkagent-harnessagent-runtimeagentic-aiai-agentsai-frameworkanthropicharnessharness-engineeringharness-frameworklanggraphlanggraph-alternativellmmcpopenaipi-agentpi-agent-corepythonpython-agent
feat(website): WhyTable comparison component
xf gong4bd4d8f28da3
diff --git a/website/src/components/Home/WhyTable.module.css b/website/src/components/Home/WhyTable.module.cssnew file mode 100644index 0000000..7d21172--- /dev/null+++ b/website/src/components/Home/WhyTable.module.css@@ -0,0 +1,9 @@+.section { max-width: 1080px; margin: 0 auto 64px; padding: 0 24px; }+.h2 { font-family: 'Inter Tight'; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 600; color: var(--ink-7); margin-bottom: 16px; }+.tableWrap { overflow-x: auto; border: 1px solid var(--ink-5); border-radius: 8px; background: var(--surface); }+.table { width: 100%; border-collapse: collapse; font-size: 13px; }+.table th, .table td { padding: 12px 16px; border-bottom: 1px solid var(--ink-5); text-align: left; vertical-align: top; line-height: 1.55; }+.table tr:last-child td { border-bottom: 0; }+.table th { font-weight: 500; font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-7); background: var(--ink-3); }+.label { font-weight: 500; color: var(--ink-12); width: 22%; }+.us { color: var(--ink-12); font-family: 'JetBrains Mono'; font-size: 12.5px; }diff --git a/website/src/components/Home/WhyTable.tsx b/website/src/components/Home/WhyTable.tsxnew file mode 100644index 0000000..8743a2a--- /dev/null+++ b/website/src/components/Home/WhyTable.tsx@@ -0,0 +1,41 @@+import React from 'react';+import styles from './WhyTable.module.css';++const ROWS: { label: string; langgraph: string; cubepi: string }[] = [+ { label: 'Abstraction', langgraph: 'Graph nodes + edges + channels', cubepi: 'Plain async functions — run_agent_loop is a while loop' },+ { label: 'Streaming', langgraph: 'Callback-based, multiple handler types', cubepi: 'async for event in stream — one pattern everywhere' },+ { label: 'Checkpointing', langgraph: 'Full snapshot per step; serializes entire message list', cubepi: 'Append-only — O(1) DB I/O regardless of conversation length' },+ { label: 'Dependencies', langgraph: 'langchain-core, langgraph-sdk, and transitive deps', cubepi: '3 core deps: pydantic, anthropic, openai' },+ { label: 'Tool execution', langgraph: 'Tools are graph nodes with manual wiring', cubepi: 'Declare tools as functions; framework routes and parallelizes' },+ { label: 'Multi-provider', langgraph: 'Via langchain chat model adapters', cubepi: 'Native Provider protocol — Anthropic, OpenAI built in' },+ { label: 'Middleware', langgraph: 'Graph-level middleware on node entry/exit', cubepi: '5 typed hooks with declarative composition rules' },+ { label: 'Observability', langgraph: 'LangSmith / Langfuse integration', cubepi: 'Events + middleware hooks — bring your own tracing' },+];++export default function WhyTable() {+ return (+ <section className={styles.section}>+ <h2 className={styles.h2}>Why CubePi</h2>+ <div className={styles.tableWrap}>+ <table className={styles.table}>+ <thead>+ <tr>+ <th></th>+ <th>langgraph</th>+ <th>CubePi</th>+ </tr>+ </thead>+ <tbody>+ {ROWS.map((r) => (+ <tr key={r.label}>+ <td className={styles.label}>{r.label}</td>+ <td>{r.langgraph}</td>+ <td className={styles.us}>{r.cubepi}</td>+ </tr>+ ))}+ </tbody>+ </table>+ </div>+ </section>+ );+}