How it works

Two agents, two refusals, and a policy file you can read

Written for whoever has to sign off on letting this near a repository. If that is you, the parts worth your scepticism are below.

The ruleset

Policy is a file in your repository

Not a settings page, not a model’s judgement. A rule is a name, a grade, and the paths it applies to. Editing it is a pull request like any other: reviewable, diffable, revertible.

The highest matching rule wins, so adding a rule can only ever make something stricter unless you deliberately delete one.

The file itself is graded G4, and an agent is refused write access to it outright. Nothing that decides how an agent is judged can be edited by one.

# Grade precedence: G4 > G3 > G2 > G1.

# Unmatched changes default to G2.

 

## rule: dependency-bumps

grade: G1

paths_only: package.json, pnpm-lock.yaml, go.sum

 

## rule: database-migrations

grade: G4

paths: **/migrations/**, **/sql/**

description: Schema migrations against production data.

After the diff, before the merge

Two checks that run on the change an agent actually made

The grade a card was dispatched under describes what it said it would do. These run against what it did.

Grade drift

The diff is re-graded by the same ruleset. If it comes back riskier than the card was dispatched as, the decision to run it unattended was made on information that turned out to be wrong, so auto-merge is blocked and a person is asked.

This is what stops a styling card that quietly refactored auth.

Path lock

A card declares the paths an agent may touch. Anything outside them is a violation whatever it grades: a clean, well-reviewed, entirely correct change in the wrong file is still refused.

The file list comes out of git, not out of the agent’s account of itself.

Where it runs

Two ways to run it. Either way, runners pull and nothing is pushed.

A runner is the process that claims a card, clones the repository, runs the coding tool and reports back. A board needs two: one that codes and one that reviews. Put them on a machine you own, or let us run them for you.

We run it for you

Pro

One press in the app starts both runners on infrastructure we operate. No machine, no container, no account anywhere else.

Start both runnerscodingreviewabout a minute
  • Asleep between cards. A runner stops after five idle minutes and wakes when the next card is queued, so only the hours it works are counted.
  • Priced by the hour. A$0.08€0.05$0.05 per runner-hour, billed by the second, with the first 100 hours a month included on Pro.
  • A machine of its own. Each runner is a separate virtual machine that holds nothing else. The clone is deleted when the card is done.

Docker, on a machine you own

Every plan

A spare box, a VM, a Mac mini under a desk. It works behind NAT, and your source never leaves your network.

# one per role: coding, then review
docker run -d --restart unless-stopped \
  -e NIGHTSHIFT_CODE=ns-… \
  -e NIGHTSHIFT_ROLE=coding \
  -v nightshift-coding:/state \
  nightshift-runner
  • Outbound only. No inbound ports, no VPN, no static IP. It asks for work over HTTPS.
  • Your hardware, your call. Run it where your code already lives, on any plan.
  • About ten minutes. Most of it is the first image build. Every start after that takes seconds.
True of both
The clone token is minted per jobScoped to one repository and expired within the hour.
The model key is yoursYour Anthropic key pays for the model calls, wherever the runner is.
A card costs the sameWhere a runner lives changes how soon it starts, not what a card spends.
The gate

What has to be true before anything merges itself

gradeThe post-graded diff is within the grade your policy permits to run unattended. Out of the box that is G1 and nothing else.
no driftIt did not grade riskier than it was dispatched as.
pathsEvery changed file is inside the card's declared scope, and none of them is a governance file.
reviewA review agent that is not the one that wrote it has passed the diff.
ciYour own checks have reported green against that commit.

Any one of them missing and the card is waiting for you in the morning instead, with the reason it stopped. The gate is the only thing that can merge. A review agent’s approval is an input to it, not a decision.

Your CTO

On the board and in Slack, answering from the record

Connect it to Slack once, from Settings. Everybody who wants it links their own account, and from then on the questions a team asks about its board get answered where the team already is. It is an engineering lead who has read every card and every night, not another agent doing the work.

readsThe board and its history: cards, nights, sprint reports, escalations, repositories. Never the code. In Slack, only direct messages to it and messages that mention it.
sendsWhat needs you, the morning report after a night that did something, alerts to the channel you choose, and a nudge now and then, a few a day at most. Each can be switched off, for the account or for yourself.
answersWhat happened last night, why a card came back, what a grade means. In Slack, also how the last sprint went and which rules send work back most. Every card it names is a link you can check.
decidesNothing. It cannot dispatch, merge, approve or change a rule. It can draft a split or an epic, from Slack too, and the person finishes it in Nightshift: nothing is created or planned until they press the button there.
costsEach answer on your own model key, with a monthly ceiling you can set. Alerts, reports and nudges are written by fixed rules and cost nothing.
The CTO agent

Once a month, something reads the code and says what next

A rule answers anything that is a number: what the fortnight cost, which card ate it, how much work was paid for twice. Those are on the sprint report and they stay there. This is for the questions with no column to threshold. Is the grade boundary in the right place for this repository. Is the backlog describing one product or three. Which part of the codebase absorbs work without getting better.

readsThe repository, and the record of every night that has run in it.
writesOne draft epic, with its evidence named: the card codes, the file paths and the dispatch ids it was formed from.
decidesNothing. It proposes, and the proposal lands in the catalogue beside every other one. Archive it in a gesture, or accept it and it is a night's work by Friday.
costsOne bounded call a month, on your own model key, with a ceiling on the files it may read and on what it may spend.

It needs something to compare, which is why it is a Pro feature and not a Free one. An advisor with no history is a horoscope, and one board that has run two nights is not history. It is also why it writes an epic rather than a report: a report is four plausible paragraphs nobody reads by the third month, and the difference between a consultancy and a colleague is that a colleague does the thing.

May we count this visit? Google Analytics tells us which pages people read and nothing about who you are. It loads only if you say yes, and you can change your mind from the footer. What it stores.