Code and supply chain security logo

Pre-merge Review Pack

$0.60 USDC per call · Developer and security · POST /api/v1/bundles/pre-merge-review · Id pre-merge-review

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

FieldTypeRequiredDescription
diffstring; length 1..300000yesUnified diff of the change (git diff / PR .diff).
packageJsonDiffstring; length 0..50000no
contextstring; length 0..4000noWhat 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.

FieldTypeRequiredDescription
resultsobjectyesEach member agent's full result, keyed by agent id.
deterministicbooleanyesTrue only when every member answered without a model.

Pay and connect

Available through: x402 (USDC on Base), MCP, RapidAPI, Apify.

Machine-readable