code
Fix with agents: a crew of five
Takes a failing pull request or an issue all the way to a fix
The Analyzer reads the failing checks and their CI logs (or the merge conflict)
The Planner, the AI tool on your server, proposes a fix after reading the code in read-only mode
After you approve, the Fixer edits the code and runs the tests,
the Executor pushes onto the pull request's own branch, and the Verifier watches the checks on the new commit
If they still fail, it goes round again
code
Changes across linked repositories
One plan with the backend and both apps checked out side by side, a pull request in each, and one approval
They ship in order
If one fails, the rest are held and their
approvals cleared
If Opswren restarts partway through (deploying itself does that), it carries on with the rest, using the approval already given
code
Second look and proof of the fix
A fresh session, preferably a different AI tool, reviews the finished change in read-only mode
For a bug fix, the AI adds a test that reproduces the bug
Opswren runs it
before the fix (it should fail) and after it (it should pass), so the approver sees evidence, not just the AI's word
code
Deploy fixer
A merged change that failed to deploy: it reads the deploy output, plans a fix, and after you approve runs the steps and deploys again
Each new plan includes what was already tried
After three rounds it hands over to a person
code · new
When CI can't run, Opswren runs it
GitHub Actions jobs that ended without ever starting (no minutes left, a failed payment), or that sat queued for over 20 minutes, are told apart from a real test failure
Opswren then reads the repository's own .github/workflows and takes the run steps of the jobs that test pushes and pull requests, leaving out deploy, release and publish jobs, jobs with an environment, and anything that needs secrets
Python projects get a throwaway virtualenv, and with no workflow it uses the detected or configured test command
It runs on a team server with an SSH login, the tools the job needs (git, Python, Node, Java, the Android SDK, or a Mac for macOS jobs) and enough free memory, the repository's own deploy servers first
It works in its own folder, at low priority, with a 25-minute limit, and is cleaned up after
The result goes on the change (passed, failed, or not checked when no server can run it) and on the commit on GitHub as opswren/ci
code · new
Merges and Deploy on push follow CI
If CI didn't run, the checks run before a merge
Failed checks stop the merge unless an admin approves with a reason, which is logged and the other admins are told
Deploy on push waits while CI runs, doesn't deploy a commit CI failed (the team is told), and leaves the deploy to CI when CI's own deploy job shipped it
When CI didn't run, it runs the checks first and deploys only if they pass
opswren itself · new
Opswren's own backend survives a bad deploy
Before anything restarts, the new commit is checked out on the side, and it must import and run its database migrations on a copy of the live database
If it can't, nothing is touched
The database is backed up before every deploy (the last 7 are kept), and if the health check doesn't pass within a minute, the code goes back, and the database too if migrations changed it
Five failed starts within two minutes return it to the last commit that deployed fine
While it restarts, the apps show "Opswren is restarting" instead of a raw 502 error, and Opswren deploying itself after a merge in the app goes through the same checks
servers · new
Ask a server why it spiked
The CPU, memory, disk and load readings around that time, compared with the hour before, the incidents open then, and for anything in the last 30 minutes,
fresh read-only checks (busiest processes, memory, disk, errors)
The AI replies with the likely cause, the evidence and what to do
Asking can never change the server
servers · new
Clean cache and Deep clean, Linux and macOS
A breakdown script ranks every possible cleanup, safest and biggest first
On a Mac it measures the data volume, not the read-only system volume, and clears
Xcode, simulator, npm, Gradle, Homebrew and Docker caches through named cleanups that the Mac's agent runs itself
servers
Disk agent
Started by an alert or by hand
It runs df before and after every step and stops once the disk is below the target, then takes a second, deeper look
Anything that could delete app data waits for a person
servers
Network doctor
Takes two snapshots of the kernel's TCP counters five seconds apart (ListenOverflows, ListenDrops, RetransSegs, resets) and checks somaxconn and HTTP/2
Its fixes include a backup and an nginx -t test before reloading
servers
Alert agent and fix plans
An alert becomes a plan tied to its server
If the plan is more than 30 minutes old, the server is checked again before anything runs
A snapshot of what the agent saw is kept with the plan, and risky steps need RUN typed to confirm
Close it or mark it won't do, and it stays closed while the alert keeps firing
servers
Exposure watch
Once a day, each server's public address is looked up in Shodan's passive InternetDB
Each risky port it lists is then tried from Opswren, a plain TCP connect that sends nothing, so an alert only fires for a port that really answers now, not days-old scan data
Known CVEs raise alerts too, and it checks the SPF and DMARC records for your alert emails
Its fix closes the port: Redis set to listen on 127.0.0.1 with a backup of its config, the port blocked in the firewall, and the port tried again from outside to prove it
servers
Discovery
A read-only scan finds git checkouts, Docker and Compose projects, systemd services, PM2, nginx sites and listening ports
It links each app to its repository with a health check
ai
Your AI, where your code is
Claude Code, Codex, Gemini CLI or Qwen Code, already signed in on your server
If one isn't available, Opswren tries another tool on the same server, then your other servers,
then your own API key
Tools over their usage limit are skipped until it resets, and tokens are counted for every run
Each plan records exactly which AI answered: the tool, its version and the model, so a silent switch down the chain is visible