Install the Toolving agent harness (instructions for agents)

Install the agent harness with your coding agent
Install the Toolving agent harness for me. Follow the instructions at https://toolving.com/harness/agents.md

You are a coding agent setting up the Toolving agent harness for your user. Follow these steps in order. Do each one yourself, and stop to ask the user only where a step says so.

The harness connects Claude Code, Codex CLI and Pi to Toolving's hosted Conceiver. Conceiver learns the commands your user's agent runs. Once it is confident, it runs them itself and hands the agent one summary of their outcomes, so the agent spends fewer model turns. Commands run on this machine under the host's own permissions. Only bounded, redacted step descriptions go to Toolving, never transcripts or file contents.

If your user wants their own program to teach and query Conceiver, set up the Python SDK instead.

Every step has a section for each system. Use the one that matches where the user's agent host runs:

  • Linux and macOS: bash, zsh or fish.
  • Windows PowerShell: Claude Code, Codex or Pi installed on Windows itself.
  • WSL: Claude Code, Codex or Pi installed inside Windows Subsystem for Linux. Follow the Linux steps inside WSL. A host installed on Windows needs the Windows install, and one installed in WSL needs the WSL install; set up each place the user runs a host.

1. Check Node.js

You need Node.js 22.23.4, 24.22.1, 26.12.1, or a later patch of the same major version. Earlier patch builds still trust the compromised eMudhra intermediate certificates disclosed on 2026-10-19.

node --version

The same command works in PowerShell. If Node is missing or too old, tell the user which version to install and how for their system (for example their package manager, Homebrew on macOS, or winget install OpenJS.NodeJS.LTS on Windows), then wait for them. Do not change their Node installation without asking.

2. Set the Toolving API key

The harness needs a Toolving account API key in TOOLVING_API_KEY. It is separate from the model credentials of Claude Code, Codex or Pi, and the harness never reads or replaces those.

  • If TOOLVING_API_KEY is already set in the environment, use it.
  • Otherwise ask the user for their API key from their Toolving account at toolving.com.
  • Never print the key, echo it into a log, or commit it to a repository.
  • The key must be in the environment the agent host starts from, because the host passes it to the harness. Ask the user where they want it kept, and show them the line before you write it.

bash or zsh (Linux, macOS, WSL): add to ~/.bashrc or ~/.zshrc (macOS uses zsh by default):

export TOOLVING_API_KEY='<the key>'

fish:

set -Ux TOOLVING_API_KEY '<the key>'

Windows PowerShell: store it for the user account. Programs that are already running, including the current terminal, do not see it until they are restarted:

[Environment]::SetEnvironmentVariable('TOOLVING_API_KEY', '<the key>', 'User')
$env:TOOLVING_API_KEY = [Environment]::GetEnvironmentVariable('TOOLVING_API_KEY', 'User')   # this session too

WSL: WSL does not see Windows user variables. Set the key in the WSL shell profile as for bash or zsh above.

3. Run the installer

The installer downloads the newest release from toolving.com and checks its SHA-256. It puts the package in ~/.local/share/toolving/conceiver-agent-harness and the conceiver-harness command in ~/.local/bin (on Windows, %USERPROFILE%\.local\share\toolving\conceiver-agent-harness and %USERPROFILE%\.local\bin\conceiver-harness.cmd). It then registers the plugin with each of Claude Code, Codex and Pi that it finds. Running it again upgrades.

Linux, macOS and WSL

curl -fsSL https://toolving.com/harness/install.sh | sh

Windows PowerShell

irm https://toolving.com/harness/install.ps1 | iex

If the installer says ~/.local/bin is not on PATH, add it and tell the user:

  • bash or zsh: add export PATH="$HOME/.local/bin:$PATH" to ~/.bashrc or ~/.zshrc. macOS does not have it on PATH by default.
  • fish: fish_add_path ~/.local/bin.
  • Windows PowerShell: [Environment]::SetEnvironmentVariable('Path', [Environment]::GetEnvironmentVariable('Path', 'User') + ";$HOME\.local\bin", 'User'), then open a new terminal. Claude Code's own installer usually puts this folder on PATH already.

In WSL, the installer skips a host whose command is a Windows program under /mnt/c, because a Windows host cannot load a plugin from the Linux file system. Run the PowerShell installer in Windows for that host.

If it fails:

  • Node.js 22 or newer is required: go back to step 1.
  • checksum mismatch: stop and tell the user. Do not install the file by hand.
  • claude plugin install failed (or the Codex or Pi equivalent): run the same command yourself to see the host's message, for example claude plugin install conceiver-agent-harness@toolving.

4. Check the setup

Open a new shell so it has the key and PATH, then check each host that the installer registered:

conceiver-harness doctor claude-code
conceiver-harness doctor codex
conceiver-harness doctor pi

The output is JSON. The top-level "ok" should be true, and the command exits with status 0. json-instance-scopes with configured: 0 is expected before the first use: the hosted instance is created on the first event.

  • toolving-api-key fails: the key is not in this shell's environment. Go back to step 2. On Windows, open a new terminal after setting a user variable.
  • pi-native-fallback fails: Pi has no fallback model yet. See Pi in step 5. Run conceiver-harness doctor without a host only when the user runs all three; it checks Pi too.
  • conceiver-harness is not found: ~/.local/bin is not on PATH in this shell (step 3).

5. Host-specific setup

Claude Code

The installer registers the plugin. Restart Claude Code so it loads the hooks with TOOLVING_API_KEY in its environment. Until the key is there, each prompt shows a one-line notice and Claude Code behaves as normal.

In active mode the hook runs a learned command only when Claude Code would run it without asking. That means the session is in bypassPermissions mode, or an allow rule covers the command and no deny rule does. For the commands the user runs often, offer to add allow rules to their Claude Code user settings (~/.claude/settings.json; on Windows %USERPROFILE%\.claude\settings.json) or the project's .claude/settings.json, for example:

{ "permissions": { "allow": ["Bash(npm test)", "Bash(npm run build)", "Bash(cargo test)"] } }

A scoped Bash(...) rule matches one plain command line only. Commands with pipes, ;, &, redirection, $ or newlines need a blanket Bash allow, which you should only add if the user asks for it. Read-only tools inside the working directory need no rule. Show the user the rules before you write them.

Codex CLI

The installer adds the conceiver skill. Codex keeps its own login. The skill is advisory: it tells Codex to run build and test commands as conceiver-harness run -- <command>, which keeps the full log in a file and returns a short result.

Pi

Pi needs a fallback model for the turns Conceiver does not handle. Ask the user which provider and model they use in Pi, then set them where the key is kept:

export PI_CONCEIVER_FALLBACK_PROVIDER=<provider>
export PI_CONCEIVER_FALLBACK_MODEL=<model-id>
[Environment]::SetEnvironmentVariable('PI_CONCEIVER_FALLBACK_PROVIDER', '<provider>', 'User')
[Environment]::SetEnvironmentVariable('PI_CONCEIVER_FALLBACK_MODEL', '<model-id>', 'User')

Then select conceiver-tool-memory/json in Pi. The fallback must not point back to conceiver-tool-memory/json.

6. Choose how it behaves

New installs start in learning mode. Conceiver learns from every turn but changes nothing. It shows what it would have run and checks that against what the agent did. Tell the user this, then leave it in learning mode until conceiver-harness report shows that most predictions were confirmed.

conceiver-harness report          # predictions confirmed, interventions, tokens saved
conceiver-harness mode active     # run learned commands and summarize their outcomes
conceiver-harness mode learning   # back to watching only

Each learned step comes back from Conceiver as its best guess with a confidence level: hypothesis, confident, highly confident or ambiguous. The level is the step's evidence for (times it was seen or confirmed) minus its evidence against (times the agent did something else): one is hypothesis, two confident, three or more highly confident, level is ambiguous. A step that fits a learned pattern in a way no example has shown stays a hypothesis. In active mode a step runs only when it is highly confident; anything less stays a suggestion for the model.

To save the most tokens, turn evidence memory off. Conceiver keeps learning and running commands, but no past episodes are added to the model's context:

conceiver-harness evidence off    # `evidence on` turns it back on

Each setting can also be given per shell with CONCEIVER_MODE=active|learning and CONCEIVER_EVIDENCE=on|off (in PowerShell, $env:CONCEIVER_MODE = 'active').

For a benchmark or an experiment, set CONCEIVER_MEMORY_SCOPE=<name>. That run then learns in a separate hosted memory and never reads or adds to the user's usual one. The same name finds the same memory again.

A few errors can show up in a hook notice. HARNESS_PAUSED (503) means the agent harness service is paused: nothing is applied or charged, teachings stay queued on disk, and they are sent when the service resumes. MODEL_SIZE_LIMIT_REACHED (409) means the hosted model has reached its maximum size and takes in nothing more: teachings stay queued on disk and are sent again by later hooks, and upgrading account storage does not change this limit. STORAGE_UPGRADE_REQUIRED (402) means the account's storage is full: queued teachings are sent once storage is expanded. INSTANCE_INACTIVE (409) means the hosted instance retired: the harness creates a new instance and repeats the call by itself, so there is nothing to do. RUNTIME_OPERATION_REJECTED (422) means Conceiver refused that one operation for good: repeating it returns the same error, nothing is charged, and the instance stays usable. Do not retry it.

7. Tell the user what you did

Report in a few lines:

  • the system and shell, and which hosts were set up;
  • where the key is kept (not the key itself);
  • which allow rules you added, if any;
  • the current mode and evidence setting;
  • that conceiver-harness report shows what Conceiver has learned and saved.

If the user also writes programs that teach and query Conceiver, set up the Python SDK as well: its installer adds the toolving-conceiver skill, which tells an agent how to teach Conceiver each kind of task.

Upgrade and removal

Run the installer again to upgrade. To remove the harness, remove the plugin with each host's own plugin command: in Claude Code, claude plugin uninstall conceiver-agent-harness@toolving; for Codex and Pi, check codex plugin --help and pi --help for the removal command. Then delete the package folder and the command:

  • Linux, macOS and WSL: ~/.local/share/toolving/conceiver-agent-harness and ~/.local/bin/conceiver-harness.
  • Windows: %USERPROFILE%\.local\share\toolving\conceiver-agent-harness and %USERPROFILE%\.local\bin\conceiver-harness.cmd.

Local state, queued teachings and stored step outputs are in ~/.local/share/conceiver-agent-harness (or $XDG_DATA_HOME/conceiver-agent-harness, or CONCEIVER_HARNESS_HOME when set). Filtered build and test logs are in ~/.cache/conceiver-harness/logs. On Windows ~ is %USERPROFILE%. Ask the user before deleting those.