Skip to main content
The sensei command starts and follows runs from a terminal. Nothing runs on your machine: the work happens in a sandbox on Sensei’s side.

Install

or pipx install senselab-sensei. The package needs Python 3.11 or later and installs the command sensei.
login asks for your Sensei key and saves it in ~/.config/sensei/config.json, readable only by you. Create a key under Access management.

Update

update finds what installed the command (uv, pipx or pip), runs that tool’s update and says the version it went from and to. Your key and settings in ~/.config/sensei/config.json are kept. Once a day, on a terminal, the command says in one line when a newer version is out. It says nothing in CI or when its output is not a terminal. Set SENSEI_NO_UPDATE_CHECK=1 to turn it off.

From version 0.1.0

Version 0.1.0 has no update command and no --version. If sensei batch or sensei update answers No such command, you have 0.1.0. Update it once with the tool that installed it:
If you installed with the one-line installer from the dashboard, running that line again updates it too. Version 0.2.0 adds sensei batch, sensei settings, sensei secrets, sensei model, sensei eval, sensei update and sensei --version. Version 0.3.0 adds sensei say.

Configuration

The environment takes precedence over the config file.

Runs

sensei run

TARGET is a definition file, a saved agent’s name, or a task in your words. --tools, --ask-first and --browser cannot be combined with --repo or --pr. --ask, --no-pr, --dry-run, --branch, --pr and --test-command hold for a definition file and a saved agent from version 0.2.1. Before it they held for a task in words only, so update first: sensei update. Press Ctrl-C while following a run to stop following. The run continues on Sensei’s side, and sensei logs <run> --follow picks it up again.

sensei batch

FILE has one task on each line. Each task is a run of its own, from the same commit. The changes that verify are tested together, and each gets a pull request that says how it fits with the rest. sensei batch check RUN tests a finished batch’s changes together again, against the branch as it is now. See Several changes at once.

sensei pr

Fixes an open pull request. Sensei reads the review and the failing checks, adds one commit to the pull request’s branch and says what it did in a comment. Without TASK it fixes what the review and the failing checks say.

sensei runs, logs, show

A run id can be shortened. The first 8 characters are enough.

sensei answer, say, approve, resume, cancel, patch

answer, approve and resume follow the run afterwards. Pass --no-follow to return at once. say returns at once; pass --follow to follow the run. say is for a run that is working. A waiting run is answered, and a finished one is started again; say says which. See Work on a run together.

sensei outcome

Says how a finished run turned out. --step names the step that was wrong on a run with steps.

Agents

Repositories

Tools

Settings and secrets

What the project gives its runs by name. See Services, settings and secrets.

Schedules

Exit codes