Skip to Content
DocsPluginsComparisonChangelog
0
DocsChangelog

More

Discussionsllms.txtllms-full.txt
Getting startedWhat is concivComparisonRequirementsPlaygroundExamplesAPI reference

Engine and widgetSessionsHarnessesTools and code modeAgents and permissionsSkills

Use conciv
Bundlers
Agents
ConfigurationCLITroubleshooting
Reference

Configuration

Set conciv's options where you add it to your bundler, one option at a time.

conciv takes one options object where you add it to your bundler. Every option is optional. Set only the ones you need.

vite.config.ts
import {} from 'vite'
import  from '@conciv/it/plugin/vite'

export default ({
  : [({: 'codex', : 4321})], // <- the options object
})
next.config.ts
import type {NextConfig} from 'next'
import {} from '@conciv/it/plugin/nextjs'

const : NextConfig = {}

export default (, {: 'codex'
webpack.config.js
const conciv = require('@conciv/it/plugin/webpack')

module.exports = {
  mode: 'development',
  plugins: [conciv.default({harness: 'codex', port: 4321})], // <- the plugin's argument
}
rspack.config.js
const conciv = require('@conciv/it/plugin/rspack')

module.exports = {
  mode: 'development',
  plugins: [conciv.default({harness: 'codex', port: 4321})], // <- the plugin's argument
}

The examples below use Vite. The object is the same on every bundler. The full list with types and defaults is at the end of the page.

Options

enabled

Turn conciv off without removing it. No engine starts and no widget is added.

vite.config.ts
({: false})

port

Ask the engine for a port.

vite.config.ts
({: 4321})

Without port, the engine takes the port it used last time in this project. With no port from last time, Vite takes a free one. Next.js, webpack and Rspack take one of 1000 ports from 24170 up, picked from the project folder, so two projects rarely ask for the same one. The engine listens on 127.0.0.1 only. It writes the port it took to .conciv/server.json.

When the port is taken, the engine takes a free one. On Vite it prints a warning. Next.js, webpack and Rspack switch with no message. They switch before they build the widget, so the widget and the engine still agree.

widget

Move or turn off the two layouts. modal is the corner panel. quickTerminal is the sheet that drops from the top.

vite.config.ts
({: {: {: 'top-left'}, : {: 'Alt+k'}}})
  • modal.position is a corner or a middle edge. The default is bottom-right.
  • quickTerminal.hotkey replaces the default Mod+` . Pass an array for more than one key.
  • false for a layout turns it off.

Set widget: false when you render the widget yourself with <ConcivWidget />. The engine still runs, and the page does not get two widgets. Learn more in Quick terminal.

plugins

Load plugins by package name or by path.

vite.config.ts
({: ['@conciv/plugin-test-runner', ['./my-plugin', {: 'core'}]]})
  • A string loads the plugin with no options.
  • [name, options] passes options to the plugin. Every option value must be JSON.
  • A path starts with ./ or ../ (from the project folder), or is absolute. Anything else is a package name.
  • A name with a leading - removes that plugin.

Learn more in Add plugins.

harness

Pick the agent CLI a new session starts with. The default is claude.

vite.config.ts
({: 'opencode'})

You can still switch harness from the model menu. Learn more in Harnesses.

systemPrompt

Replace the prompt conciv gives the agent, or give none.

vite.config.ts
({: 'Answer in one short paragraph.'})
  • A string replaces conciv's built-in prompt.
  • false gives no conciv prompt.
  • Left out, the agent gets conciv's built-in prompt.

The engine writes the prompt it used to .conciv/chat-system-prompt.txt. Claude gets it after Claude Code's own prompt.

permission

Answer permission cards ahead of time, when you already know the answer.

vite.config.ts

permission takes three short forms:

  • One effect for every action: 'allow'.
  • One effect per action: {page_eval: 'deny'}.
  • One effect per action and resource: {page_eval: {'document.title': 'allow'}}.

The effect is allow, deny or ask. Learn more in Agents and permissions.

permissions

Write permission rules in full, as a list.

vite.config.ts

These rules apply after the short forms in permission. A saved Allow always answer still beats an ask rule.

policies

Allow or deny a whole kind of use, such as one plugin.

vite.config.ts

The actions are:

  • provider.use
  • tool.use
  • integration.connect
  • integration.use
  • mcp.use
  • skill.use
  • plugin.use
  • websearch.use

The effect is allow or deny.

hubAccess

Decide whether an agent outside the tab needs your yes first. An outside agent runs in your own terminal, connected with npx @conciv/cli mcp connect.

vite.config.ts
  • open, the default, lets a connected agent into every open tab.
  • project shows a card in the tab the first time an outside agent calls it. You allow it once, always, or not at all.

Learn more in Agents.

stateRoot

Move the .conciv state folder out of the project root.

vite.config.ts

homeDir

Move the folder conciv shares across projects, such as the agents you connected.

vite.config.ts

The default is your platform's data folder.

devEndpointDir

Move dev-endpoint.json, the file the iOS SDK reads to find the engine. The default is ~/.conciv.

vite.config.ts

sessionId and claudeSessionId

Open the engine on a session you name.

vite.config.ts
  • sessionId is a conciv session id (ses_...). Any other value stops the engine with an error.
  • claudeSessionId is a harness session id: up to 128 letters, digits, _ and -.

The engine makes sure the session exists when it starts. Learn more in Sessions.

Set an option from the environment

Some options also read an environment variable. Use one to change an option for a single run:

Terminal
CONCIV_HARNESS=codex pnpm dev

An option set in the config wins over its variable.

Prop

Type

All options

conciv generates this table from the config schema it validates your options with.

Prop

Type

Next steps

  • Add plugins: load a plugin and pass it options.
  • Harnesses: the agent CLIs harness can name.
  • Agents and permissions: how permission, permissions and saved answers combine.

Share a plugin

Use one plugin in several projects, from a shared folder or from npm, instead of a copy in each.

CLI

Run the conciv commands the agent drives your app with, from your own terminal.

On this page

OptionsenabledportwidgetpluginsharnesssystemPromptpermissionpermissionspolicieshubAccessstateRoothomeDirdevEndpointDirsessionId and claudeSessionIdSet an option from the environmentAll optionsNext steps
Edit on GitHubView .mdOpen in ClaudeOpen in ChatGPT
({
: {
:
'allow'
}})
({
: [{
:
'page_eval'
,
:
'*'
,
:
'ask'
}]})
({
: [{
:
'plugin.use'
,
:
'*/greeter'
,
:
'deny'
}]})
({
:
'project'
})
({
:
'../shared-state'
})
({
:
'/tmp/conciv-home'
})
({
:
'/tmp/conciv-endpoint'
})
({
:
'release-notes'
})
,
:
4321
})
// <- the second argument