
arXiv-to-Production Code & Hyperparameter Compiler
Fetches an arXiv paper's full text (ar5iv), selects method, pseudocode, hyperparameter tables and ablations, and returns a core-algorithm summary, hyperparameters each with a source pointer and a verbatim quote verified against the text, ablation warnings with evidence sentences, and one self-contained TypeScript or Python file that is compile/syntax-checked and literal-checked against the extracted values. Falls back to the abstract (lower confidence) when no full-text rendering exists. Answers within about 80 seconds: if the full text or a model stage is slow, it returns a PARTIAL result with partial and missing naming what was not produced, instead of timing out. Leads with status, confidence and nextStep. Generated code is never executed.
What you get
Turns a paper into a compiling reference implementation with every hyperparameter pinned to a verified quote, so a wrong constant is caught before a training run is paid for.
Call it
Send the JSON body below to https://agents.writerslogic.com/api/v1/arxiv-to-code. 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/arxiv-to-code \
-H 'content-type: application/json' \
-d '{"arxivId":"1706.03762","targetLanguage":"python"}'
Input
| Field | Type | Required | Description |
|---|---|---|---|
arxivId | string; length 0..120 | no | arXiv id or URL, e.g. 1706.03762 or https://arxiv.org/abs/1706.03762. |
searchQuery | string; length 0..300 | no | Title or keywords; the top arXiv hit is used. Provide exactly one of arxivId or searchQuery. |
targetLanguage | string; one of "typescript", "python" | yes |
Example request body
{
"arxivId": "1706.03762",
"targetLanguage": "python"
}
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 |
|---|---|---|---|
status | string; one of "OK", "PARTIAL", "INSUFFICIENT_EVIDENCE" | no | |
confidence | number | no | |
summary | string | no | One sentence: hyperparameters pinned, code check result, confidence. |
nextStep | string | no | The concrete action to take next. |
partial | boolean | no | True when a slow upstream or the time budget cut a stage short; missing lists them. |
missing | array<object> | no | Stages that did not finish and what each gap means for the result. |
timeBudget | object | no | budgetMs and elapsedMs for this request. |
paper | object | no | |
targetLanguage | string | no | |
coreAlgorithmSummary | string | no | |
extractedHyperparameters | array<object> | no | |
droppedHyperparameters | array<object> | no | |
ablationWarnings | array<object> | no | |
productionCode | string | no | |
codeCheck | object | no | |
literalCheck | object | no | |
provenance | object | no | Which results were decided deterministically (extractor corroboration, generated constants header, in-place literal patches) and how many model calls were attempted. |
evidence | object | no | |
warnings | array<string> | no | |
whatWouldChange | array<string> | no |
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