Skip to content

Latest commit

 

History

576 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SecondShift homepage
SecondShift

Self-hosted agent jobs for recurring engineering work.

CI status on main PyPI version

Quick start · Skill catalog · Security model · Docs

Try a skill on your repository, then run it on demand, on a cron schedule, or from a webhook. Jobs live in .secondshift.yaml.

The agent runs in a sandbox without direct network access. A broker enforces which tools it can call, and service credentials stay outside the sandbox.

secondshift-ci-fixer-walkthrough-v2.mp4

CI failures → draft fix → scheduled skill.

Quick start

Start Docker and install uv. You'll need a model API key or a Claude Code or Codex subscription.

uv tool install secondshift
secondshift up
  1. Clone this repo with git clone https://github.com/piotrekno1/second-shift.git.
  2. In the dashboard, add the clone under Repositories → Add repository → Local folder.
  3. In Models, connect your model. Then open Jobs → Documentation drift and click Run now.

To try another skill, open Explore. The catalog shows what each skill produces, what it can access, and what it can change. For your own skill or one from GitHub, see one-off tasks.

A job in Git

This job runs the repository's documentation review every Monday at 08:00 UTC.

version: 1
jobs:
  docs-drift:
    name: Documentation drift
    skill: examples/docs-drift/.agents/skills/docs-drift/SKILL.md
    schedule: "0 8 * * 1"
    timezone: UTC

A skill is a SKILL.md file with instructions for the agent. You can keep it in your repo or reference a GitHub skill pinned to a commit. The configuration reference covers webhook triggers, requested tools, and delivery.

  • Access. A workspace owner approves the model and tools. The broker checks each call against the job's approved access, including argument limits. Approving a write tool grants the agent that write capability.
  • Output. Inspect the report, source commit, tool calls, and token usage in run history. Send reports to Slack or a webhook, or configure GitHub issues and draft PRs.
  • MCP. Start approved jobs, submit tasks, or read reports from your coding agent. Connect an MCP client

Deploy and contribute

SecondShift is in beta. The production deployment guide covers Docker Compose, PostgreSQL, gVisor, and backups.

Architecture · Release notes · Contributing

Releases

Packages

Used by

Contributors

Languages