
Security News
minimatch Patches 3 High-Severity ReDoS Vulnerabilities
minimatch patched three high-severity ReDoS vulnerabilities that can stall the Node.js event loop, and Socket has released free certified patches.
autoform
Advanced tools
autoformTrace once. Transform freely.
Composable function transformations for LM programs.
Think JAX, but for LM programs.
Quickstart - Transforms - Concurrency - Debugging - Docs
pip install git+https://github.com/ASEM000/autoform.git
import autoform as af
def explain(topic: str) -> str:
prompt = af.format("Explain {} in one paragraph.", topic)
msg = dict(role="user", content=prompt)
return af.lm_call([msg], model="gpt-5.2")
ir = af.trace(explain)("...") # capture structure, no execution
Now transform it:
# execute
output = ir.call("quantum entanglement")
# batch: n inputs
outputs = af.batch(ir).call(["DNA", "gravity", "recursion"])
# pushforward: propagate input perturbations forward
output, tangent = af.pushforward(ir).call(("quantum entanglement", "add more examples"))
# pullback: propagate output feedback backward
output, grad = af.pullback(ir).call(("quantum entanglement", "too technical"))
# compose: batched differentiation
topics = ["DNA", "gravity", "recursion"]
critiques = ["too technical", "too brief", "too abstract"]
outputs, hints = af.batch(af.pullback(ir)).call((topics, critiques))
The last line is the point: batch(pullback(ir)), transformations compose.
| Transform | What it does |
|---|---|
batch | Vectorize over inputs |
pushforward | Forward-mode AD |
pullback | Reverse-mode AD |
sched | Auto-concurrent execution |
sched finds independent LM calls. acall runs them concurrently.
scheduled = af.sched(ir)
result = await scheduled.acall("input") # acall for async
Checkpoint intermediate values. Substitute on re-execution.
def pipeline(x: str) -> str:
msg1 = dict(role="user", content=x)
step1 = af.lm_call([msg1], model="gpt-5.2")
step1 = af.checkpoint(step1, key="step1", collection="debug")
msg2 = dict(role="user", content=step1)
step2 = af.lm_call([msg2], model="gpt-5.2")
return step2
ir = af.trace(pipeline)("...")
# capture
with af.collect(collection="debug") as captured:
result = ir.call("input")
# substitute step1 value
with af.inject(collection="debug", values=dict(step1=["modified"])):
result = ir.call("input")
⚠️ Early development: API may change.
FAQs
Composable function transformations for LLM programs
We found that autoform demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
minimatch patched three high-severity ReDoS vulnerabilities that can stall the Node.js event loop, and Socket has released free certified patches.

Research
/Security News
Socket uncovered 26 malicious npm packages tied to North Korea's Contagious Interview campaign, retrieving a live 9-module infostealer and RAT from the adversary's C2.

Research
An impersonated golang.org/x/crypto clone exfiltrates passwords, executes a remote shell stager, and delivers a Rekoobe backdoor on Linux.