MCPcopy
hub / github.com/BuilderIO/agent-native

github.com/BuilderIO/agent-native @v0.7.83 sqlite

repository ↗ · DeepWiki ↗ · release v0.7.83 ↗
11,885 symbols 40,783 edges 4,091 files 616 documented · 5%
README

Agent-Native

Agentic applications you own.

Don't choose between structured user flows and autonomous agents. Every Agent-Native app is both.

Agents and UIs — Fully Connected

The agent and the UI are equal citizens of the same system. Every action works both ways — click it or ask for it.

Agents and UIs fully connected

  • Everything syncs — Agent and UI share one database and one state. Changes from either side show up instantly on the other.
  • Context-aware — The agent knows what you're looking at. Select text, hit Cmd+I, and tell it what to do.
  • Per-user workspace — Skills, memory, instructions, sub-agents, and MCP servers — SQL-backed, customizable per user. Claude-Code-level flexibility, SaaS-grade economics.
  • Agents call agents — Tag another agent from any app. They discover each other over A2A and take action across your stack.
  • Apps that improve themselves — Your apps get better on their own. The agent can add features, fix bugs, and refine the UI over time.
  • Any database, any host — Any SQL database Drizzle supports. Any hosting target Nitro supports. No lock-in.
  • Any AI agent — Claude Code, Codex, Gemini CLI, OpenCode, or Builder.io. Use whichever agent you prefer.

Cloneable SaaS Templates

Start from a complete, production-grade SaaS app. Each one replaces tools you're paying for — except you own everything and can customize it however you want. Not demos; products.

**Mail** Mail template **Agent-Native Mail, Superhuman** Superhuman-style email client with keyboard shortcuts, AI triage, and a fully customizable inbox you own. **Calendar** Calendar template **Agent-Native Google Calendar, Calendly** Manage events, sync with Google Calendar, and share a public booking page with AI scheduling. **Content** Content template **Agent-Native Notion, Google Docs** Write and organize content with an agent that knows your brand and publishing workflow.
**Slides** Slides template **Agent-Native Google Slides, Pitch** Generate and edit React-based presentations via prompt or point-and-click. **Video** Video template **Agent-Native video editing** Create and edit Remotion video compositions with agent assistance. **Analytics** Analytics template **Agent-Native Amplitude, Mixpanel** Connect any data source, prompt for any chart. Build reusable dashboards, not throwaway Q&A.
**Clips** Clips template **Agent-Native Loom** Record your screen with auto-transcripts, shareable links, and an agent that summarizes, captions, and edits clips on demand. **Design** Design template **Agent-Native Figma, Canva** Create and edit visual designs by prompt or by hand, with the agent as your co-designer. **Dispatch** Dispatch template **Mission control for agent-native apps** Message, manage, and delegate to agents from Slack, Telegram, or the web, with routing, memory, and approvals built in.
**Forms** Forms template **Agent-Native Typeform** Generate forms from a prompt, branch logic with the agent, and own every response in your own database.

Every template is cloneable SaaS — fork it, customize it with the agent, own it. Try them with example data before connecting your own sources.

Quick Start

npx @agent-native/core create my-platform
cd my-platform
pnpm install
pnpm dev

The CLI shows a multi-select picker so you can include as many templates as you want in one workspace. Pick Mail + Calendar + Forms and you get all three apps wired up and sharing auth in one go. Or browse the template gallery for live demos.

Want a single app, no monorepo? Use --standalone:

npx @agent-native/core create my-app --standalone --template mail

Workspaces (Monorepo)

A workspace is the default shape of an agent-native project. Every app sits under apps/, and packages/shared/ is available for the small amount of code, instructions, skills, or branding that should truly apply to every app.

my-platform/
├── package.json                   # declares `agent-native.workspaceCore`
├── pnpm-workspace.yaml
├── .env                           # shared secrets: ANTHROPIC_API_KEY, BUILDER_PRIVATE_KEY, A2A_SECRET, ...
├── packages/
│   └── shared/                    # optional shared custom code
└── apps/
    ├── mail/
    ├── calendar/
    └── forms/

Add another app later:

agent-native add-app notes --template content

Deploy every app behind one origin:

agent-native deploy
# https://your-agents.com/mail/*       → mail
# https://your-agents.com/calendar/*   → calendar
# https://your-agents.com/forms/*      → forms

Same-origin deploy means a shared login session across every app and zero-config cross-app A2A — tag @mail from the calendar's agent chat and it just works (no JWT signing, no CORS). Full details at agent-native.com/docs/multi-app-workspace.

The Best of Both Worlds

SaaS Tools Raw AI Agents Internal Tools Agent-Native
UI Polished but rigid None Mixed quality Full UI, fork & go
AI Bolted on Powerful Shallowly connected Agent-first, integrated
Customization Can't Instructions and skills Full, but high maintenance Agent modifies the app
Ownership Rented Somewhat yours You own the code You own the code

Community

Join the Discord to ask questions, share what you're building, and get help.

Docs

Full documentation at agent-native.com.

License

MIT

Extension points exported contracts — how you extend this code

AgentEngine (Interface)
(no doc) [7 implementers]
packages/core/src/agent/engine/types.ts
PinStorage (Interface)
(no doc) [6 implementers]
packages/pinpoint/src/types/index.ts
ImageProvider (Interface)
(no doc) [3 implementers]
templates/slides/server/handlers/image-providers/types.ts
ElectronAPI (Interface)
Electron APIs exposed to the renderer via the preload contextBridge
packages/desktop-app/src/renderer/global.d.ts
BubbleWebrtcHandle (Interface)
(no doc) [2 implementers]
templates/clips/desktop/src/lib/bubble-webrtc.ts
SchedulingManifest (Interface)
(no doc)
packages/scheduling/src/manifest.ts
DispatchAuthConfig (Interface)
(no doc)
packages/dispatch/src/config.ts
AppFormProps (Interface)
(no doc)
packages/mobile-app/components/AppForm.tsx

Core symbols most depended-on inside this repo

cn
called by 2351
templates/macros/app/lib/utils.ts
defineAction
called by 624
packages/core/src/action.ts
get
called by 595
packages/core/src/adapters/cli/registry.ts
cn
called by 562
templates/scheduling/app/lib/utils.ts
getDb
called by 559
packages/core/src/db/create-get-db.ts
agentNativePath
called by 382
packages/core/src/client/api-path.ts
execute
called by 355
packages/core/src/db/client.ts
delete
called by 352
packages/pinpoint/src/types/index.ts

Shape

Function 9,690
Interface 1,783
Method 314
Class 98

Languages

TypeScript100%

Modules by API surface

templates/clips/desktop/src/app.tsx66 symbols
templates/mail/server/lib/google-auth.ts61 symbols
packages/core/src/client/AssistantChat.tsx60 symbols
packages/pinpoint/src/types/index.ts56 symbols
packages/core/src/server/auth.ts48 symbols
packages/core/src/server/agent-chat-plugin.ts47 symbols
packages/dispatch/src/server/lib/app-creation-store.ts46 symbols
packages/core/src/a2a/artifact-response.ts46 symbols
packages/core/src/cli/create.ts43 symbols
packages/dispatch/src/server/lib/dispatch-store.ts42 symbols
templates/mail/server/lib/google-api.ts41 symbols
packages/core/src/agent/production-agent.ts41 symbols

Dependencies from manifests, versioned

@agent-native/coreworkspace:* · 1×
@agent-native/dispatchworkspace:* · 1×
@agent-native/pinpointworkspace:* · 1×
@agent-native/schedulingworkspace:* · 1×
@agent-native/shared-app-configworkspace:* · 1×
@ai-sdk/anthropic3.0.71 · 1×
@ai-sdk/google3.0.64 · 1×
@ai-sdk/groq3.0.35 · 1×
@ai-sdk/openai3.0.53 · 1×
@amplitude/analytics-browser2.41.1 · 1×
@anthropic-ai/sdk0.90.0 · 1×
@assistant-ui/react0.12.19 · 1×

Datastores touched

dbDatabase · 1 repos
dbnameDatabase · 1 repos
mydbDatabase · 1 repos
postgresDatabase · 1 repos

For agents

$ claude mcp add agent-native \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact