Unified Diff Context Margin
Patch context margins return the minimum unchanged lines before and after edits and the number of unanchored sides. Use it when an agent needs a measure of surrounding review context.
POST https://format.halowerk.com/v1/unified-diff-context-margin
0.005 USDC on Base · payTo 0x2880EdfFF13100677Bf97A3CBdF3Bc34771C4E5E
Status: verified · payable
Operator badge: embed this endpoint's live status badge — it reads "Verified Payable" only while the probe record backs it.
Settlement: direct to the seller's payTo — 0% HIVE402 take
Payment routes
{
"text": "--- a/pop.csv\n+++ b/pop.csv\n@@ -1,2 +1,2 @@\n country,value\n-DEU,83287273\n+DEU,83516593\n"
}{
"data": {
"bare_sides": 1,
"changed_hunks": 1,
"minimum_after": 0,
"minimum_before": 1
},
"limitations": "Plain unified text hunks. LF and CRLF are equivalent. No paths opened or changes applied. Examples use World Bank WDI population, CC BY 4.0.",
"measured_at": "2026-11-19T06:41:50.694Z",
"source": {
"reference": "Supplied unified diff and optional file text",
"retrieved_at": "2026-11-19T06:41:50.694Z"
}
}Script Master Labs LLC · SDVOSB · Kinston, NC · Terms · Refunds · Privacy · Contact
SML network: ScriptMasterLabs — the main site · SML Dual Market — the human storefront · VA Ratings — VA disability ratings, free for veterans
Agent intel 
| Trust score | 73 / 100 · breakdown |
|---|---|
| Probe uptime (30d) | 100.0% over 1 probes · daily |
| Avg 402 latency | 124 ms |
| Paid calls (30d, on-chain) | 1033 calls · 7 buyers · shared price cohort of 1757 |
How to call
POST https://format.halowerk.com/v1/unified-diff-context-margin · input in body · spec from live-challenge
Input schema
{
"type": "object",
"properties": {
"text": {
"type": "string",
"maxLength": 32000,
"minLength": 1
}
},
"required": [
"text"
],
"additionalProperties": false
}Output schema
{
"type": "object"
}curl -i -X POST 'https://format.halowerk.com/v1/unified-diff-context-margin' \
-H 'content-type: application/json' -d '{"text":"--- a/pop.csv\n+++ b/pop.csv\n@@ -1,2 +1,2 @@\n country,value\n-DEU,83287273\n+DEU,83516593\n"}'
Agents: POST https://hive402.scriptmasterlabs.com/mcp → route_task / proxy_call · SDK /sdk/hive402.mjs