Getting started
Paste one prompt into your agent and you are set up. Then ask about the page you are on.
conciv puts your coding agent inside the app you are running, where it reads the page you are on and edits the source that renders it.
New here? What is conciv shows how it works.
Quick start
Pick your framework, then copy this prompt into your agent.
Set up conciv in this project. conciv is a dev-only AI agent widget for my running app. 1. In my app folder, the one with package.json, run `npx @conciv/cli@latest init --yes`, with pnpm dlx, yarn dlx or bunx instead of npx if the project uses that package manager. Do any step it prints as a snippet yourself. If it stops on uncommitted changes or the install fails, stop and ask me; do not pass --force or change a release age policy yourself. 2. Check that init added conciv() to the plugins of my Vite config. 3. Check that the claude CLI is installed, logged in and on the PATH of the shell that starts the dev server. conciv does not install it or log in; if it is missing, tell me. 4. Start the dev server with my dev script and open the app. A conciv button shows in the corner. Log me in: run `npx @conciv/cli@latest auth link <the app URL>` in the app folder and give me the link it prints, or tell me to click the conciv button and type the 6-digit code the dev server prints.
Then open the conciv panel in your app and ask about the page you are on:
What is on this page, and which file renders it?
Use conciv
Features
Everything you do with the widget in your running app, one task per page.
Add plugins
Give the agent new tools, such as a test runner.
Engine and widget
What runs where when conciv is on, and where it keeps its state.
Sessions
One conversation with the agent: its messages, its queue and its transcript.
Build your own
Build your first plugin
From an empty folder to a tool the agent calls and a card in the chat.
Plugins
What a plugin adds, and the guides for every part of one.
Plugin API reference
Every field of Plugin.define, ctx, a tool and the browser registries.
Work with agents
Connect your agents
Let the agent in your terminal drive your open tabs.
Harnesses
Pick the agent CLI that answers in the chat.
Skills
Give the agent a written guide for one kind of work.
Manual setup
The prompt runs these steps for you. To do them by hand:
Installation
Install
Run init in your app folder. It adds one dev dependency and wires conciv into your build config. Nothing ships to production.
What init writes
Pick your build to see the config init writes, or add it by hand. Every entry is one import.
import {defineConfig} from 'vite'
import conciv from '@conciv/it/plugin/vite'
export default defineConfig({
plugins: [conciv()],
})
With pnpm, yarn or bun, run it with pnpm dlx, yarn dlx or bunx instead of npx.
init asks what to set up and shows the plan. It writes nothing until you say yes. What init changes:
- It adds
@conciv/itto your dev dependencies. - It wires conciv into your bundler config.
- It adds a conciv section to
AGENTS.md, so your agent knows the conciv commands. With Claude Code,CLAUDE.mdgets it too. - It installs the conciv plugin for Claude Code, when Claude Code is on your machine.
- It connects Claude Code, Codex, Gemini CLI and opencode, when it finds them, so the agent in your terminal can drive your open tabs.
- It adds the
@conciv/skillsdocs pack, only if you check that box.
Next.js with a src folder
init writes the two instrumentation files to the project root. Next.js reads them from the folder that holds your
routes. If your routes live in src/, move both files there.
Each bundler has its own page with the manual setup and its edge cases: Vite, Next.js, webpack, Rspack and TanStack Start.
Start your dev server
Start your dev server the way you always do. conciv starts with it. It adds a conciv button to the corner of every page.
npm run devA few things to notice:
- conciv runs in dev builds only. A production build leaves it out.
- The chat runs an agent CLI on your machine,
claudeby default. It must be on thePATHof the shell that starts your dev server, and logged in. See Connect your agents for the others.
Log in
The engine can read your project and run commands, so it answers only browsers you let in. Click the conciv button. Your dev server prints a box with a 6-digit code:
╭──────────────────────────────────────────────────────╮
│ conciv: a browser asks to connect to this engine │
│ From: Chrome 142 | macOS at http://localhost:5173 │
│ Code: 482913 │
│ Link: http://localhost:5173/#conciv_otp=482913 │
│ Expires: 10:42:07 │
╰──────────────────────────────────────────────────────╯Type the code in the panel, or open the link. You log in once per browser. Learn more in Logging in.
Ask about the page
Open the panel and ask about the page you have open. The agent reads the rendered page first, then finds the file that renders it.
What is on this page, and which file renders it?Ask about the page
A scripted session in the real panel. It plays in your browser, with no server.
Ask about the page
You: What does the button on this page do?
The agent calls
page_textThe agent calls
page_findIt is the counter from src/App.tsx. Each click calls setCount, so the label goes up by one: Count is 1, Count is 2, and so on.
A few things to notice:
- The crosshair beside the composer pins an element to your message, with its source file when conciv finds it.
- When the agent edits your source, your dev server reloads the page.
- A risky action shows a card first: Allow once, Allow always or Deny.