Engine and widget
What runs where when conciv is on, what a turn does, and where conciv keeps its state.
conciv is two programs that your dev server starts together. The engine runs in node and runs the agent. The widget runs on your page and is the chat you type into.
What runs where
import {} from 'vite'
import from '@conciv/it/plugin/vite'
export default ({
: [
(), // <- starts the engine and adds the widget, in development only
],
})Build plugin
The build plugin is @conciv/it in your bundler config. In development it starts the engine and adds the widget to
every page. A production build leaves both out. Learn more in Bundlers.
Engine
The engine is a node server inside your dev server's process. It listens on 127.0.0.1 only, on a port of its own. It
answers only browsers that logged in. Learn more in Logging in.
Widget
The widget is the conciv button, the panel and the quick terminal. It mounts in a shadow root, so your styles and its styles stay apart. It talks to the engine over one websocket.
Harness
A harness is the agent CLI the engine runs a turn with, such as Claude Code. It runs on your machine, with your own login. Learn more in Harnesses.
A turn
A turn is one message from you and everything the agent does to answer it:
- The widget sends your message to the engine over the websocket.
- The engine runs the harness in your project folder, with conciv's tools added.
- The agent calls tools. It reads the page, drives it, edits files and runs tests.
- A risky call waits on a permission card in the panel. It goes on once you answer.
- Text, tool calls and cards stream back into the panel.
If the socket drops, the widget dials again. A running turn picks up from its last event. Learn more in Tools and code mode.
A first session
A scripted session in the real panel. It plays in your browser, with no server.
A first session
You: What is on this page?
The agent calls
page_textThis is the Vite + React starter page. It has a Get started heading, a counter button at 0, and links to the Vite docs and community.
You: Start the counter at 5.
The agent calls
page_settextOn the page, the count is 5.
The button now reads Count is 5. To keep it, change useState(0) to useState(5) in src/App.tsx.
Outside agents
An agent CLI in your own terminal can reach the engine too, over MCP. It drives your open tabs with the same tools. Learn how in Outside agent.
Where state lives
The engine keeps its state in .conciv/ at your project root. The folder has its own .gitignore, which ignores
everything except settings/.
server.jsonholds the engine's port and token. The engine reuses the port on its next start.trusted-browsers.jsonlists the browsers that logged in.conciv.dbis a SQLite file. It holds sessions, chat history and saved permission answers.chat-system-prompt.txtis the prompt the engine gives the agent, written on every start.mcp-endpoint.jsonholds the engine's MCP address. The engine writes it on every start.claude-connect/holds the Claude Code plugin thatinitsets up. Its bridge readsmcp-endpoint.json.settings/holds project settings saved from the widget. Git does not ignore it, so you can commit it.bin/concivis the conciv command. It comes first on thePATHof the agents the engine starts.
Move the folder
Set stateRoot to keep .conciv/ somewhere else. Learn more in
Configuration.
Next steps
- Sessions: what a conversation holds, and where it is kept.
- Tools and code mode: how the agent calls conciv's tools.
- Agents and permissions: what decides when a card asks you.