Skip to content
opentideaiPublic

About

The agent-native web framework. Your coding agent builds on a live, running app, and every change is planned, tested and proven before it lands. Works with Claude Code, Codex, Cursor and any MCP client.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Repository files navigation

OpenTide: make your agent ship production-ready apps. Fewer bugs, fewer review rounds, fewer tokens.

CI Latest release MCP: 122 tools Apache-2.0

The agent-native web framework

opentide.ai · Quick start · Connect your agent · What you get · How it works · Ship it · Docs


You asked your agent for a feature. It said "done". Now you're reading 900 lines of diff, running the tests it didn't run, and finding the bug it didn't mention.

OpenTide is the agent-native web framework that fixes that. Connect any coding agent that speaks MCP (Claude Code, Codex, Cursor, Windsurf and the rest) and it builds inside a running app that keeps it honest. Apps are TypeScript today; Python support is coming next.

  • Fewer bugs. A change can't be marked done until tests the server ran itself cover every point in the plan.
  • Fewer review rounds. Every change comes with its plan, its acceptance criteria and its evidence. Check the proof instead of reverse-engineering the diff.
  • Spend fewer tokens. The agent asks the app what exists instead of rereading your codebase, edits one function at a time, and gets errors that say exactly what to fix.
  • Own the result. One command exports a plain Node app. No platform fee, no lock-in, no API key. Bring the agent you already pay for.

Fewer bugs, fewer review rounds, fewer tokens

Quick start

The installer brings everything it needs and puts opentide on your PATH. You only need curl. Open a new terminal after installing.

curl -fsSL https://github.com/opentideai/opentide/releases/latest/download/install.sh | sh
opentide scaffold ~/apps "Todo App" && cd ~/apps/todo-app
claude mcp add opentide -- opentide mcp
claude

Ask for something real:

Add a todos API with create, list and complete, backed by a table, with tests.

A Claude Code session: plan, build, test, attest, complete

What you get back isn't a summary to take on faith. It's a finished change with a plan, passing tests the server witnessed, and the evidence linked to each acceptance criterion, already saved to files you commit.

Connect your agent

OpenTide works with any coding agent that speaks MCP. Each config below starts a small stdio bridge, which attaches to the project's server or starts one if none is running.

Claude Code (registers it for that project's directory)

cd ~/apps/todo-app && claude mcp add opentide -- opentide mcp

Claude Code plugin (the server in every OpenTide project, plus /opentide:start, /opentide:change, /opentide:land and /opentide:recover)

claude plugin install opentide --marketplace opentideai/opentide

Needs Claude Code 2.1.275 or later. Older versions take two steps inside a session: /plugin marketplace add opentideai/opentide, then /plugin install opentide@opentide. Outside an OpenTide project the server still connects, with no tools.

Codex (the CLI and the IDE extension share ~/.codex/config.toml)

codex mcp add opentide -- opentide mcp --project ~/apps/todo-app

Claude Desktop: download opentide.mcpb, double-click it, and pick a folder for your apps when Desktop asks (say ~/apps); Claude creates and opens apps there. It runs the OpenTide you installed above; if that's missing, ask Claude to use OpenTide and it tells you how to install it.

Cursor (paste into .cursor/mcp.json)

opentide mcp --print-config cursor --project ~/apps/todo-app

Any other MCP client (Windsurf, VS Code, Zed, Cline, your own): add a stdio server with

  • command: opentide, or the full path ~/.opentide/bin/opentide if the client doesn't inherit your shell's PATH
  • args: mcp --project /absolute/path/to/your/app

Clients that only speak HTTP can connect to opentide serve directly; see docs/mcp-connect.md for the HTTP transport, tokens, and what the agent is told on connect.

What you get

Fewer bugs

The agent can't call a change finished on its own say-so.

  • complete_changeset refuses until every acceptance criterion is backed by evidence.
  • Evidence must cite attestations that the server mints when it runs run_tests, check_export_types or verify_formal_specs. Edit the code afterwards and the attestation goes stale.
  • Before an agent edits something, search_changes tells it why the code is the way it is, so it doesn't undo a fix.
  • opentide build boots the build and smoke-tests its routes before you ship.

Fewer review rounds

Every change is a changeset: a title, a plan with steps, acceptance criteria, a verification plan, and the evidence that it was met.

  • Read what was intended and what was proven, not a wall of diff.
  • Every edit records its rationale, searchable later with search_changes and get_change.
  • project_status gives one verdict on the project's health, and get_changeset_context shows a change's plan and progress.
  • The gate runs advisory, graduated or strict. You decide how hard it bites.

Spend fewer tokens

Most agent tokens go on rediscovering your code. Here the agent asks.

  • list_routes, list_handlers and list_schemas return the app's structure directly, with no file crawling or grep loops.
  • Edits are per entity: one handler, one route, one schema. The agent doesn't rewrite whole files to change one function.
  • Errors are structured and specific. A mistyped argument comes back as INVALID_ARGUMENTS naming the right key, so it's fixed on the first retry.
  • The agent's prompt carries the tools it uses. 58 core tools are listed by default; git, docs, tasks and the rest are one set_toolset call away.

See it working right away

No build-and-restart loop between "written" and "running".

  • A handler is serving the moment it's defined. A route is on the preview port the moment it's registered. A schema change has run the moment it lands.
  • The agent checks its own UI work with browser screenshots and scripted UI tests (screenshot_app, test_app) against the running app.
  • Open localhost and click around while it's still working.

Never lose work

Agents go off the rails. Getting back is one call.

  • undo_change and undo_turn step back one change or a whole agent turn.
  • Abandoning a changeset rewinds the code, schema and files to where they started, and your app's data stays.
  • Agent crashed, restarted, or you ran /clear mid-change? The next session calls adopt_changeset and carries on with the plan and progress intact.
  • take_snapshot and restore_snapshot for anything bigger.

Go faster in parallel

Two agents, one project, no merge hell.

  • start_task forks the project for a second agent, with its own server and preview.
  • merge_task replays the fork onto main and completes it only if main's own tests pass.
  • If two forks change the same thing, the second merge is refused with the conflicts named. No silent overwrites.
  • One writer at a time on main, enforced, so agents can't trample each other.

Own the result

  • opentide export writes a standalone Node app, and opentide build makes a deployable one.
  • Apache-2.0, runs on your machine, uses your Postgres (PGlite locally, or any Postgres via OPENTIDE_DB_URL).
  • No model inside and no API key. It works with the agent subscription you already have.

Safe by default

  • The server listens on loopback only and needs a per-project bearer token.
  • The code your agent writes runs in a Deno process of its own, one per project. It can't read your API keys or the project's files, start programs, or reach OpenTide's servers or anything else on 127.0.0.1. It reaches the internet as usual.
    • "runner": { "net": ["api.stripe.com", "localhost:5432"] } in opentide.json limits it to the hosts listed.
    • "runner": { "ffi": true } lets native npm addons load, and gives up the boundary.
    • OPENTIDE_USER_CODE_RUNNER=0 runs it inside the server instead.
    • Its SQL still reaches OpenTide's own tables in the project database. With OPENTIDE_DB_URL on a Postgres superuser role, such as postgres, that SQL can run programs on the database host, so connect as an ordinary role.
  • Secrets go through define_secret, never into code.
  • check_package_security checks installed packages for known vulnerabilities and deprecations, with upgrade advice.
  • Projects live in Git, and machine-local state stays out of commits. See docs/project-storage.md.

How it works

Agents connect over MCP to opentide serve, which runs the live preview and exports your app

One opentide serve per project holds the app. Its routes, handlers, schemas, templates, migrations and tests live in a project database the server owns, and they hot-swap the moment they're defined. Agents drive it through 109 MCP tools. Any number can connect; one at a time holds the pen.

See it running

opentide serve --project ~/apps/todo-app --app-port 3001
open http://localhost:3001

To pin the port for every start, including the ones the bridge makes, set "previewPort": 3001 in the project's opentide.json.

Ship it

opentide export --project ~/apps/todo-app --out ./todo-export
cd todo-export && npm install && npm start

You get a standalone Node app (Node 24+): an entry point, a router, the handlers with their request validation, a schema seed and generated API docs. opentide build writes the same into the project's dist/. Deploy it anywhere Node runs.

Good to know

  • Work lives in memory until it's flushed. complete_changeset flushes it to .opentide/state/, which you commit. If it reports stateFlushed: false, the work exists only in the running server.
  • Platforms. macOS and Linux run the full test suite and the install smoke in CI on every push. On Windows, use WSL; native Windows hasn't been run.
  • It's 0.1. Expect rough edges, and please file them.

Docs

Doc What's in it
opentide CLI Install, every command and flag, releases, CI
Connecting agents over MCP Claude Code, Codex, Cursor, HTTP, tokens, changesets, tasks
LSP for editors Neovim, Zed, capabilities, writing through LSP
Project storage What's in a project, what to commit, what stays local

Tide

Tide, the IDE reinvented for AI, is built on OpenTide and coming soon: chat with an agent on one side and your running app on the other, with every change verified before it counts as done. Follow it at opentide.ai.

License

Apache-2.0. See NOTICE.

About

The agent-native web framework. Your coding agent builds on a live, running app, and every change is planned, tested and proven before it lands. Works with Claude Code, Codex, Cursor and any MCP client.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages