Skip to content
Scalpels home

Sign up now for $10 in credit on a new Laravel Cloud account.

Guide

Continuously improve your software with Scalpels and Solo

· Ed Grosvenor

Last updated

TL;DR · 1 min

One of the things that can give a builder the confidence to ship fast is having a system in place that keeps everything performant and durable. This guide is a simplified version of how we manage our suite of apps and how our clients keep their apps healthy. It's a simple continuous improvement loop that runs completely autonomously, powered by Scalpels and Solo from Aaron Francis.

Here's the elevator pitch for the loop:

  1. Every hour, an agent reads what your apps did since the last time it looked. That means slow requests and new exceptions from Hone, and errors and unusual log volume from Wake.
  2. It decides what is new, what is getting worse, and what is just noise.
  3. For each real problem, it files a Solo todo and a GitHub issue, then starts a second agent to investigate it.
  4. The investigator finds the cause, reproduces it, and takes it as far as you have decided for that project. That might be a comment, a draft pull request, a pull request, or a merge.

The loop is just a python script that runs once an hour, sending a prompt to the conductor agent in Solo. Solo's MCP lets that conductor spawn additional agents, so each finding can be handed off to a fresh agent, leaving the conductor to just do simple classification and triage of the findings in the data.

How the pieces fit

Piece Job in the loop
Hone Performance and exceptions. What got slower, what started failing, and which deploy came before it.
Wake Logs from every app in one place. Error lines, and changes in how much each app is logging.
Scalpels MCP One connection to both, for every team you belong to. The agent asks Scalpels, and Scalpels relays the question to the app running in your own infrastructure.
Solo Where the agents live. Solo runs the conductor and the investigators, holds the conductor's notes, and tracks the todos.
cron The clock. A small script, run every hour, makes sure the conductor is there and tells it to start.
GitHub The permanent record. Issues for every problem, and pull requests for every fix.

The loop only ever reads Hone and Wake. Neither has a tool that "fixes" anything. The agent's job is to notice problems and explain them. If you let it, it also fixes the code. How far it goes is up to you, project by project. The remediation page is about how to decide.

The parts of this guide

  • What you need: the apps, the token, and a computer that stays awake.
  • The ledger: the one scratchpad that remembers when the last run was and what it has already seen.
  • The conductor: the standing Solo agent, the script that rings it every hour, and its standing orders.
  • The sweep: exactly what to ask each app, and how to turn "since the last run" into arguments each one accepts.
  • Investigations: turning a finding into a todo, an issue, and an investigator, without ever chasing the same problem twice.
  • Remediation: how far each investigation goes on its own, and the questions that decide it.

Read them in order the first time. The conductor's orders refer to the ledger, the sweep, and the investigation rules, and it works best when you have tuned all three for your own apps.

The code that goes with this guide, including the script cron runs and every file of instructions the agents read, is in artisan-build/scalpels-guides on the continuously-improve-your-software branch.

Changelog

  1. Published.
  2. Corrected against a real run of the loop: a deployment id per tool in the ledger, and the delays a newly connected app has to wait out. The loop now reads Hone and Wake. The suggested token can now set the whole loop up, and each project's remediation rules decide whether an investigation ends at a comment, a draft pull request, a pull request or a merge. Added a TL;DR film.

Need help setting up automation to keep your Laravel app healthy?

These agencies and freelancers are standing by and ready to help.

  • Scott Keck-Warren

    Michigan

    PHP and Laravel developer with 13 years of experience building and maintaining production apps. US Eastern, English.

    Freelancer Ask for help
    Ask Scott Keck-Warren for help