Nightshift.
Engineering agents for tickets, reviews and incidents.
Nightshift is the service I built for engineering agents at Loweconex. It picks up tagged Jira tickets and handles pull-request reviews, security automation and incident response, with each workflow running under its own access and budget.
- My role
- Designed, built and run the service
- Context
- Loweconex
- Built with
- Python · Kubernetes · Jira · Bitbucket · LiteLLM
01
Working with the tools we already use
I wanted a common way to run agents against our engineering tools. A Jira tag marks a ticket for Nightshift to pick up. Other workflows handle pull-request reviews, security work and incident response.
For ticket delivery, the output fits our existing review process: a draft pull request, test results and a record of the run. That gives an engineer a change to assess in Bitbucket, linked back to the work in Jira.
02
The ticket-delivery pilot
For the supervised delivery pilot, I started with penetration-test tickets on a Java service. A ticket gives the agent a specific finding to work on and gives the reviewer something concrete to check. Nightshift prepared the workspace, worked on the implementation and submitted the proposed change for verification.
The resulting draft passed Maven tests run independently of the agent, then branch and pull-request CI. An engineer reviewed the change before merge. This exercised the full route from a Jira ticket to a tested draft in Bitbucket.
Those checks cover the build and test suite. Reviewing whether the implementation actually resolves the security finding remains part of the engineer’s job.
03
How a run works
For a delivery run, the Python service selects an eligible tagged ticket, checks its scope and claims the work. It prepares an isolated workspace for the agent. Preparation, implementation, verification and publication are separate stages; repository credentials are kept out of the agent’s implementation stage.
The verifier reconstructs the proposed change from a clean checkout and runs the configured checks. Failed checks prevent publication. A passing run can open a draft pull request, with the run record available to the reviewer.
04
Handling incomplete or changed work
I didn’t want an agent guessing its way through an incomplete ticket. It can ask for clarification on Jira instead. Before writing back, Nightshift checks whether the ticket or branch has changed during the run; an engineer’s edit can change what needs doing.
Version updates use deterministic edits where the change is mechanical. Each workflow has its own access and budget, so adding a capability does not automatically give it the permissions of every other workflow.
Clarity
Customer data, queried in plain English.