Kaer's security agent reads a code change and reports the security bugs it finds, with the file, usually the line, and a severity. It runs on Janus 1.0: Flash reviews each change, and Pro takes a deeper second look at files in sensitive areas such as sign-in and payments. You can run a similar review on your own diffs today through the Kaer API.
What does the security agent do?
It reads a change before it merges and lists what an attacker could use. Since 22 November it has reviewed the changes Kaer's coding agents make to our own code. Janus 1.0 Flash reads the diff and can open other files in the repository to see how the changed code is used. When a changed file's path puts it in a sensitive area (sign-in, sessions, payments, permissions, secrets, uploads, cookies or database migrations), Janus 1.0 Pro also reviews those files, with more steps to follow the code.
Each finding gives a severity of high, medium or low and one sentence on what goes wrong. Findings are reports for now. They reach whoever is working on the change, and they do not stop a merge.
How well does it catch real security bugs?
Both models flagged all four past security fixes we undid in our code, and between them they flagged 23 of the 24 separate holes those fixes had closed, by our count. The four fixes covered removed super-admin checks, a missing check that let signed-out sessions keep working, removed payment guards, and a missing gate on internal routes.
Flash flagged 21 of the 24 holes. Pro flagged about 14, because it only reviews a change's sensitive files, but those included two outbound-request holes Flash missed. On the fix with the internal-route gate, Pro found other holes in the change and missed the gate itself. To measure false alarms, we also ran both on six ordinary changes that had merged with no known security bug.
| Kaer's reviewer, in our test | Janus 1.0 Flash | Janus 1.0 Pro |
|---|---|---|
| Past fixes flagged | 4 of 4 | 4 of 4, one after a retry |
| Holes flagged, of 24 | 21 | About 14, from sensitive files only |
| High findings on 6 ordinary changes | 3, all false alarms when checked | None on the 5 it finished |
| Time per review | 45 seconds to 4.5 minutes, most under 90 seconds | About 2 to 12 minutes when it finishes |
| Cost per review at API prices | About 1 to 4 cents | About 2 to 7 cents |
Below high, expect some noise: Flash raised three or four medium or low findings on several of the ordinary changes, and most were not security bugs. Keep three limits in mind. A check that was taken out is easier to spot than the original bug, which arrived as new code, so read these results as an upper bound. Ten changes is a small test. And the table describes Kaer's own reviewer, which makes 7 to 11 model calls per change, not the single request further down.
Where does it fall short?
Pro is the less reliable of the two. Its first attempt failed on half of the ten changes, with server errors or an answer we could not use. After we changed how we call it, it finished every change we ran again except one, which stalls on every attempt. Our reviewer now gives up on that kind of change after about 20 minutes and records it as skipped, so it never counts as passed.
Flash takes fewer steps, and it missed the two outbound-request holes Pro caught. Its high findings also vary from one run to the next, so we read them as leads to check. One hole, a payment guard on a narrow path, got past both models.
How do you run a security review on your own code today?
Through the Kaer API, with one request per change. Janus 1.0 Flash and Pro are on api.kaer.ai, which is OpenAI-compatible, so a script or CI job can send a diff with a review instruction. This is simpler than Kaer's own reviewer: the model sees the diff and the lines around each edit, and cannot open other files.
- Sign up or sign in at api.kaer.ai, top up the prepaid balance and create a key with the
modelsscope. The quickstart walks through it. - From your repository, run the review. It needs jq 1.6 or later.
cat > review-prompt.txt <<'EOF'
Review this code change for security bugs an attacker could use:
missing authentication or permission checks, injection, exposed
secrets, unsafe redirects or outbound requests, and broken session
handling. For each finding give the file and line, a severity (high,
medium or low) and one sentence on how it is exploited. Report nothing
you cannot point to in the code. If there are no findings, say so.
EOF
git diff -U30 origin/main...HEAD > change.diff
test -s change.diff || echo "change.diff is empty: check the base branch."
jq -n --rawfile rules review-prompt.txt --rawfile diff change.diff '{
model: "janus-1-flash",
stream: true,
max_tokens: 16384,
messages: [
{role: "system", content: $rules},
{role: "user", content: $diff}
]
}' | curl -sSN https://api.kaer.ai/v1/chat/completions \
-H "Authorization: Bearer $KAER_API_KEY" \
-H "Content-Type: application/json" \
--data-binary @- \
| sed -e 's/^data: //' -e '/^\[DONE\]$/d' -e '/^$/d' \
| jq -rj 'if .error then "\nError: \(.error.message)\n"
elif .choices[0].finish_reason == "length" then "\n[Cut off]\n"
else (.choices[0].delta.content // "") end'
The answer streams in as it is written. -U30 adds 30 lines either side of each edit, so the model sees more of the code around it. For the sensitive files, run it a second time with "janus-1-pro" as the model, a reasoning_effort: "medium", line under stream, and only those paths in the diff, for example git diff -U30 origin/main...HEAD -- src/auth. At its default effort Pro can think for minutes before it writes anything, and in our tests the API ended those reviews early. At medium they finished. Keep the streaming and the max_tokens line too: without them, Pro's reviews in our tests failed or came back empty.
In CI, fetch the base branch first and put your own default branch in place of main. Leave lockfiles and generated files out of the diff (end the git diff line with -- ':(exclude)package-lock.json', for example), and check it holds no secrets before you send it. If your code already guards against something, say so in the prompt file: one such line removed a false alarm in our test. Check each finding against the code before you act on it. For more on the API, see how to hand Kaer real work from your own code.
What is coming next?
None of these is available yet:
- Kaer on GitHub. You mention @kaer on a pull request and Kaer answers in the thread. It is in testing, and the security agent will run there.
- A free allowance of security reviews for each account.
- A PR agent, separate from the security agent, for the other problems in a change, such as bugs and regressions.
- A version for a company's own git server.
For how Kaer handles risky actions in the product itself, see Kaer's security page and what Kaer will not do without you.
Results are from Kaer's own test on 22 November 2026: four past security fixes put back and six ordinary merged changes. Flash reviewed all ten; Pro finished nine.
Frequently asked questions
Does Kaer keep the code I send for review?
Not today. In the API's standard mode Kaer logs metadata such as the time, model, token counts, cost and a keyed hash of your IP, not your code. From 14 December 2026 it may keep the prompt, here your diff, for up to 30 days for abuse and safety review. AI model providers may process it to answer; the Privacy Policy lists them. Zero data retention is on Enterprise accounts at a higher rate. Neither mode trains a model.
How big a change can I send?
A request body can be up to 1 MB. In our tests Flash reviewed a 170 KB diff in about half a minute. Pro, at medium effort, answered a 15 KB diff in about 80 seconds and ended early on the 170 KB one, so send Pro only the sensitive files.
Can the review block a merge?
In your own CI that is your call. Ask for JSON with a severity field in the prompt file, then fail the job on any high finding. We plan to let Pro's high findings hold our own merges once we have a few weeks of results.





