Skip to main content
Remediation is a separate, explicit step. Nothing is edited during an assessment — the Agent Skill’s rule is that source changes happen only after the user chooses to apply a fix.

The fix loop

In a git repository, one finding gets one branch and, if the retest passes, one commit.
  • A clean tree is required. With uncommitted changes the command refuses and lists them. The fix must not carry your unrelated work with it.
  • A branch per finding. myrqen/fix-MYR-004 is created from HEAD. Running myrqen fix MYR-004 again on that branch shows the plan again rather than starting over.
  • A mechanical fix where one is safe. A dependency pinned inside a published advisory range is moved to the first fixed release, keeping your ^ or ~, but only inside the same major version. A major upgrade is an API change and is left to the agent. Myrqen does not run your package manager: install and commit the lockfile yourself.
  • Otherwise a plan and a prompt. Myrqen has no model, so for everything else it writes the files to change, the steps, and a prompt for your agent to .myrqen/fixes/.
Then retest that one finding:
retest re-runs only the static rule that raised the finding. A finding that was verified against the running application is closed the same way it was opened: your agent repeats the original request and reports what came back.
Myrqen never pushes, and never commits to the branch you started on. A retest that passes while you are on another branch records the result and says why nothing was committed.
Your agent knows this loop from the Agent Skill, so “fix MYR-004” in Claude Code or Codex runs it end to end. Compare the run before and after with myrqen diff.

Fixing by hand

Outside git, or when you only want the prompt, the steps below work on any project.

1. Get the prompt

This prints a remediation prompt built from the finding — the root cause, the smallest durable fix, the framework safeguard to prefer, and the verification that should fail before the change and pass after it — and records the finding as fix_suggested. The HTML report has the same thing behind Copy prompt to fix. Paste it into your coding agent, or work from it yourself.

2. Apply the change

Change the source, run the project’s own targeted tests, then re-run the specific security verification the finding named. Prefer the framework’s own safeguard over a hand-rolled check, and prefer the smallest change that removes the root cause over a broad rewrite.

3. Record what actually happened

Then, only after running the verification:
The finding’s status becomes fixed_verified.
Options on fix record: Exactly one of the four actions is required.
Never mark a finding verified unless the targeted security verification actually passed. A finding reaches fixed_verified only through a recorded passing verification — there is no other path, and that is the whole value of the field.

The history is append-only

Every step lands in fixHistory on the finding, with the instant, the action, whether verification passed, the changed files, and any note. The original evidence is preserved either way, so a reader can see what was claimed, what was changed, and whether it worked. Inspect it directly:

Try it against the fixture

The repository ships a reversible patch for the bundled vulnerable application, so you can see the whole loop without editing your own code.
1

Apply the patch

Then restart the fixture so the change takes effect.
2

Verify the behaviour actually changed

Before the fix the cross-account read returns 200. After it, 404.
3

Record it

Try --verification-failed first and inspect .myrqen/sessions/*/session.json: the status stays fix_applied, and the history keeps every step.
4

Put the fixture back

Restart the fixture again. Leaving the patch applied will make pnpm benchmark report a missed finding.

Retesting the whole application

A fix changes the application, so the honest way to confirm the wider picture is a new session:
A new session gets a new local report id and its own report files, so the before and after are both on disk and comparable.