Coding agents¶
tuvl works with the coding agent you already use. Everything that matters lives in tuvl itself, so every agent gets the same knowledge, the same tools and the same gates:
- Knowledge:
tuvl initandtuvl update skillswriteAGENTS.mdand the skills (.agents/skills/) into the project. Skilltuvl-agentroutes every request;tuvl-installinstalls and upgrades tuvl. - Tools: the CLI (
--jsonon every read command) and the development MCP server,tuvl serve mcp. - Gates:
tuvl approve spec,tuvl approve deployandtuvl upgrade selfrun only for a person at a terminal;tuvl deployfrom an agent's shell waits (exit 3) fortuvl approve deploy <digest>. - Models:
tuvl use agent <agent> --tier light=… --tier standard=… --tier deep=…sets the model per kind of task for the tasks tuvl runs (tuvl generate code --spec).
What each agent reads¶
| Agent | Instructions | Skills | How tuvl's gates recognise it |
|---|---|---|---|
| Claude Code | CLAUDE.md (written by tuvl, imports AGENTS.md) |
.claude/skills/ (a mirror tuvl writes) |
CLAUDECODE in its shell |
| Gemini CLI | GEMINI.md (written by tuvl, imports AGENTS.md) |
.agents/skills/ |
GEMINI_CLI in its shell |
| OpenAI Codex | AGENTS.md |
.agents/skills/ |
no terminal in its shell |
| Cursor | AGENTS.md |
.agents/skills/ |
no terminal in its shell |
| GitHub Copilot | AGENTS.md |
.agents/skills/ |
no terminal in its shell |
| Antigravity | AGENTS.md |
.agents/skills/ |
no terminal in its shell |
| any agent tuvl starts | the prompt tuvl gives it | as above | TUVL_AGENT_SESSION, set by tuvl |
tuvl upgrade self and tuvl approve deploy need a terminal, so every agent above is held at them. tuvl deploy is
held for every agent that sets one of the variables above, whether or not CI is set. An agent recognised only by
having no terminal is held unless CI=true (or GITHUB_ACTIONS=true) is set in its shell: it then counts as CI,
and the deploy goes through. Do not set CI in an agent's shell, and check that the agent does not set it itself.
These checks stop an agent acting on its own initiative. They are not a security boundary: an agent runs as your user
and can forge the signal. Put the stop that must hold on the remote side (a protected environment in CI, approval on
the deploy target). tuvl approve spec
checks only the shell variables: an agent that sets none of them and that a developer started themselves can approve a
spec. Keep spec approval in your own terminal, and keep your agent's own prompt for shell commands switched on.
Connecting tuvl serve mcp¶
The server is read-only unless started with --allow-write, and it refuses TUVL_ENV=production.
Claude Code — .mcp.json
{ "mcpServers": { "tuvl": { "command": "tuvl", "args": ["serve", "mcp"] } } }
Gemini CLI — .gemini/settings.json
{ "mcpServers": { "tuvl": { "command": "tuvl", "args": ["serve", "mcp"] } } }
Codex — .codex/config.toml (Codex reads a project's file once you trust the project)
[mcp_servers.tuvl]
command = "tuvl"
args = ["serve", "mcp"]
Cursor — .cursor/mcp.json
{ "mcpServers": { "tuvl": { "command": "tuvl", "args": ["serve", "mcp"] } } }
GitHub Copilot in VS Code — .vscode/mcp.json
{ "servers": { "tuvl": { "type": "stdio", "command": "tuvl", "args": ["serve", "mcp"] } } }
tuvl ship keeps all of these files, and the agents' folders, out of the production image.
The tuvl agent plugin¶
For the work before a project exists (installing tuvl, choosing a version), install the tuvl agent as a plugin. It is published at tuvl-io/tuvl-agents and tagged there with each stable tuvl release.
| Coding agent | Install |
|---|---|
| Claude Code | /plugin marketplace add tuvl-io/tuvl-agents, then /plugin install tuvl@tuvl, then claude --agent tuvl |
| OpenAI Codex | codex plugin marketplace add tuvl-io/tuvl-agents, then install tuvl from /plugins |
| GitHub Copilot CLI | copilot plugin install tuvl-io/tuvl-agents |
| Cursor | import https://github.com/tuvl-io/tuvl-agents as a team marketplace |
| Gemini CLI | gemini extensions install https://github.com/tuvl-io/tuvl-agents |
| Antigravity | agy plugin install https://github.com/tuvl-io/tuvl-agents |
Every agent gets the tuvl-agent and tuvl-install skills. Claude Code also gets the tuvl agent itself: a main agent
and three helpers on fixed models (haiku for look-ups, sonnet for building, opus for specs, reviews and plans), a
capability banner, and a guard that lets read-only checks through, asks before installs, deploys, pushes and
publishing, and blocks destructive commands.
The source is plugins/tuvl/ in this repository, and tuvl-agents is a one-way copy of it. Every merge to main
that touches the plugin is synced (.github/workflows/sync-agents.yml, scripts/publish_agents.sh); after a stable
release reaches PyPI, the release workflow tags tuvl-agents with the plugin as released. To get the plugin that
matches one release, install that tag. The plugin's two skills are copies of the shipped ones and its versions follow
make bump; tests/test_agent_plugin.py checks both.