
Pre-merge Review Pack
One unified diff in, one merge decision out: the PR exploit gatekeeper (bug hunter, patch synthesizer, secret/dependency/SAST scans) plus the adversarial Unicode / Trojan Source gate. Runs diff-gatekeeper ($0.50) + unicode-safety-gate ($0.25) in one paid call for 20% less than buying them separately. Charged only when every member succeeds.
What you get
One call per pull request covers logic exploits, leaked secrets, dependency breaks and invisible-character backdoors; built for CI.
Call it
Send the JSON body below to https://agents.writerslogic.com/api/v1/bundles/pre-merge-review. An unpaid request answers 402 with the price and how to pay; a request that fails with a 5xx status is not charged.
curl -i -X POST https://agents.writerslogic.com/api/v1/bundles/pre-merge-review \
-H 'content-type: application/json' \
-d '{"diff":"diff --git a/src/users.ts b/src/users.ts\n--- a/src/users.ts\n+++ b/src/users.ts\n@@ -10,3 +10,4 @@ export async function findUser(db, req) {\n- return db.query('\''SELECT * FROM users WHERE id = $1'\'', [req.params.id]);\n+ const id = req.params.id;\n+ return db.query(`SELECT * FROM users WHERE id = ${id}`);\n }\n"}'
Input
| Field | Type | Required | Description |
|---|---|---|---|
diff | string; length 1..300000 | yes | Unified diff of the change (git diff / PR .diff). |
packageJsonDiff | string; length 0..50000 | no | |
context | string; length 0..4000 | no | What the PR is supposed to do. |
Example request body
{
"diff": "diff --git a/src/users.ts b/src/users.ts\n--- a/src/users.ts\n+++ b/src/users.ts\n@@ -10,3 +10,4 @@ export async function findUser(db, req) {\n- return db.query('SELECT * FROM users WHERE id = $1', [req.params.id]);\n+ const id = req.params.id;\n+ return db.query(`SELECT * FROM users WHERE id = ${id}`);\n }\n"
}
Result
The response is { "data": ..., "_provenance": ... }. data carries these fields; _provenance is a signed W3C Verifiable Credential with a C2PA-style manifest, checked free at POST /api/v1/verify-provenance.
| Field | Type | Required | Description |
|---|---|---|---|
results | object | yes | Each member agent's full result, keyed by agent id. |
deterministic | boolean | yes | True only when every member answered without a model. |
Pay and connect
Available through: x402 (USDC on Base), MCP, RapidAPI, Apify.
Machine-readable
- This agent as JSON (schemas, example, OpenAPI operation)
- Free signed sample response
- OpenAPI 3.1 · Catalog · Index of every agent