惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

月光博客
月光博客
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
N
Netflix TechBlog - Medium
大猫的无限游戏
大猫的无限游戏
爱范儿
爱范儿
Martin Fowler
Martin Fowler
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
The Register - Security
The Register - Security
IT之家
IT之家
博客园_首页
Microsoft Security Blog
Microsoft Security Blog
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
博客园 - 三生石上(FineUI控件)
I
InfoQ
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
Jina AI
Jina AI
Apple Machine Learning Research
Apple Machine Learning Research
M
MIT News - Artificial intelligence
博客园 - Franky
C
Check Point Blog
T
The Blog of Author Tim Ferriss
V
Visual Studio Blog
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
T
Tailwind CSS Blog
Recent Announcements
Recent Announcements
云风的 BLOG
云风的 BLOG
美团技术团队
The Cloudflare Blog
Y
Y Combinator Blog
H
Hackread – Cybersecurity News, Data Breaches, AI and More
MyScale Blog
MyScale Blog
The GitHub Blog
The GitHub Blog
D
DataBreaches.Net
Google DeepMind News
Google DeepMind News
V
V2EX
aimingoo的专栏
aimingoo的专栏
GbyAI
GbyAI
G
Google Developers Blog
S
SegmentFault 最新的问题
Hugging Face - Blog
Hugging Face - Blog
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
U
Unit 42
罗磊的独立博客
量子位
MongoDB | Blog
MongoDB | Blog
Last Week in AI
Last Week in AI
Stack Overflow Blog
Stack Overflow Blog
小众软件
小众软件
D
Docker
人人都是产品经理
人人都是产品经理

Hacker News: Show HN

PurrrrrFocus: Pomodoro Timer App - App Store Workflow Engine — Multi-Step Orchestration for Bun RapidPhoto: Pro Photo Editor App - App Store GitHub - DheerG/swarms: Achieve extraordinary results with claude code across a variety of tasks SPICE simulation → oscilloscope → verification with Claude Code — Lucas Gerads Show HN: VCoding – A 5 MB native Windows IDE with no dynamic dependencies Show HN: LLMs don't hallucinate because they're bad at math, it's the format GitHub - Agent-FM/agentfm-core: AgentFM is a peer-to-peer network that turns everyday computers into a decentralized AI supercomputer. AgentFM lets you run massive AI workloads directly across a global mesh of idle CPUs and GPUs. Show HN: Tracking Top US Science Olympiad Alumni over Last 25 Years GitHub - Potarix/agent-hub: One place to talk to all your agents Show HN: Runtime security for AI agents(injection,tool abuse, data exfiltration) GitHub - dubeyKartikay/lazyspotify: Terminal Spotify client for macOS and Linux GitHub - the-banana-tool/king-louie: Easy to use GUI Personal AI Assistant. Win/Linux/Mac. Show HN I made my vacation rental bookable by AI agents–no Airbnb, 0% commission GitHub - basteez/jsf-autoreload: maven plugin to enable hot reload on jsf projects uvm32/hosts/host-gdbstub at main · ringtailsoftware/uvm32 GitHub - labsai/EDDI: Config-driven engine that turns JSON into production-grade AI agents. Multi-agent orchestration, 12+ LLM providers, MCP/A2A protocols, RAG, persistent memory, and enterprise compliance (EU AI Act, GDPR, HIPAA). Built on Quarkus. GitHub - glitchnsec/fortyone-oss: AI Executive Assistant Platform Quickstart | Alien GitHub - muxshed/shed: One stream in, or many. Every destination, simultaneously. No cloud middleman, no per-channel fees, no limits. GitHub - ocrbase-hq/ocrbase: 📄 PDF/IMG ->.MD/JSON Document OCR API for PaddleOCR and GLMOCR. Self-hostable. GitHub - impactjo/home-memory: MCP server that lets your AI assistant remember everything about your home. GitHub - Sets88/dbcls: DbCls is a powerful terminal database client that supports various databases GitHub - neptun2000/heor-agent-mcp GitHub - SeanFDZ/macmind: Single-layer transformer in HyperTalk for the classic Macintosh RollQuation: Math Puzzles - Apps on Google Play GitHub - dropbox/witchcraft Show HN: Agent-cache – Multi-tier LLM/tool/session caching for Valkey and Redis GitHub - opentalon/opentalon: OpenTalon is an open-source platform built from the ground up in Go as a robust alternative to OpenClaw LinkedIn™ 职位抓取工具 - Chrome 应用商店 GitHub - EdoardoBambini/Agent-Armor-Iaga: AI agents are getting tool access — shell, file system, databases, APIs, secrets. But **nobody is governing what they actually do with it**. Frameworks like LangChain, CrewAI, AutoGen, and Claude Code give agents the power to execute. Agent Armor gives you the power to control, audit, and approve every single action before it happens. HN Vibes — Week 15, Apr 7–13 2026 GitHub - chojs23/ec: Easy terminal-native 3-way git mergetool vim-like workflow GitHub - SethPyle376/hiraeth: Local AWS emulator focused on fast integration testing, with SQS support, SQLite-backed state, and a debug-friendly web UI. GitHub - JakOb-dotcom/cloud-sandbox-security-analysis: Technical analysis and Proof of Concept (PoC) regarding environment variable exfiltration in containerized cloud sandboxes via side-channel data leaks. Springboards - Flint Alpha Show HN: A simpler coding agent harness GitHub - audiodude/sudomake-friends GitHub - 256thFission/mini-mythos: OSS clone of Anthropic’s Mythos harness to locate C/C++ memory vulnerabilities Show HN: OpenParallax: OS-level privilege separation for AI agent execution Hacker News Sorted - Chrome 应用商店 Show HN: How to Install Docker on Ubuntu 24.04 LTS: Complete 2026 Guide GitHub - himanshudongre/smriti GitHub - sverrirsig/claude-control: macOS desktop dashboard for monitoring and managing multiple Claude Code sessions GitHub - ory/dockertest: Write better integration tests! Dockertest helps you boot up ephermal docker images for your Go tests with minimal work. Chiral - Chrome 应用商店 Show HN: Two Claudes collaborating through shared memory on a $100 mini-PC GitHub - pmichaillat/latex-cv: Minimalist LaTeX template for academic CVs GitHub - oguzbilgic/posse: A web UI for Anthropic Managed Agents. GitHub - sshiraz/depsly: Dependency risk analysis tool for npm packages ABI Add safari/agent-harness — Safari browser automation via safari-mcp by achiya-automation · Pull Request #212 · HKUDS/CLI-Anything GitHub - Halfblood-Prince/trustcheck: Verify PyPI package attestations and improve Python supply-chain security GitHub - oguzbilgic/kern-ai: Agents that do the work and show it. GitHub - bruits/satteri: High-performance Markdown and MDX processing for the JavaScript ecosystem GitHub - tylergibbs1/feedstock: High-performance web crawler and scraper for TypeScript, powered by Bun and Playwright GitHub - Grimm67123/grimmbot: The self-improving sandboxed and open-source AI agent. With persistent memory and scheduling. GitHub - whitevanillaskies/whitebloom: Local whiteboard that blooms. GitHub - hwdsl2/docker-whisper: Docker image for a self-hosted Whisper speech-to-text server with speaker diarization and OpenAI-compatible transcription and translation APIs. Powered by faster-whisper. Supports all Whisper models, NVIDIA GPU (CUDA) acceleration, JSON/SRT/VTT output, SSE streaming, offline mode, and multi-arch (amd64, arm64). GitHub - yisding/reviewwiggum GitHub - MarwanAlsoltany/serrors: Structured errors for Go: sentinel hierarchies, typed data, custom formatting, and slog integration. GitHub - soatok/age-php GitHub - Luthiraa/markitme GitHub - stagas/rtdiff: realtime git diff gui and AI-assisted commits GitHub - tombedor/excalicharts GitHub - wh1le/excalidraw-edit: Open and edit .excalidraw files from the terminal. Offline, auto-saves to disk. MalExt Sentry - Malicious Extension Scanner - Chrome 应用商店 GitHub - syi0808/asciianimesvg: Generate animated ASCII art SVGs from text. CLI, Rust library, WASM, and web editor. GitHub - zaina-ml/ml_forge: A visual-based graph node editor for training computer vision models. GitHub - anakin87/llm-rl-environments-lil-course: 🌱 A little course on Reinforcement Learning Environments for evaluating and training Language Models GitHub - takaakit/superpowers-uml: Superpowers-UML modifies Superpowers to ensure a software development workflow in which AI agents design through UML modeling. AdriByte Studio - Sviluppo Web e Soluzioni Digitali GitHub - chouligi/angel-copilot: Your personalized Angel Investment Advisor Show HN: MoodSense AI (ML and FastAPI and Gradio, Deployed on Hugging Face) Moodsense Ai - a Hugging Face Space by aman179102 GitHub - agenteractai/lodmem: Level Of Detail Context Management for Agents GitHub - ostefani/subnetlens: A fast, concurrent network scanner with a TUI and plain-text CLI, built in Go. It discovers live hosts on your network, scans their open ports, resolves hostnames, and fingerprints operating systems—delivered. Cyber Pulse: Agentic Intel - Apps on Google Play Whisper API: Self-Hostable Speech to Text Transcription The Agent-Web Protocol Stack: A Research Thesis GitHub - msmarkgu/RelayFreeLLM: A restful API designed to route user prompts to various AI model providers. Show HN: Provepy – A Python decorator that proves your code using Lean and LLMs Show HN: Pardonned.com – A searchable database of US Pardons GitHub - patrickdappollonio/dux: Dux is a terminal UI that lets you run multiple AI coding agents side by side, each in its own git worktree, with full companion terminals, macros, commit generation, and a command palette that knows more tricks than you do. kMC Crystal Simulator Show HN: HyperFlow – A self-improving agent framework built on LangGraph GitHub - stef41/vibescore: 🎵 Grade your vibe-coded project. One command, instant letter grade across security, quality, dependencies, and testing. GitHub - stef41/lmscan: 🔍 Detect AI-generated text and fingerprint which LLM wrote it. Open-source GPTZero alternative. Zero dependencies, works offline. imgur.com GitHub - visionscaper/collabmem: Enabling long-term collaboration with Agentic AI - building up episodic and world model memory over time with in-context awareness 在 Steam 上购买 FriedrichAI: Offline AI 立省 10% GitHub - atripati/ark: AI Runtime Kernel — a context operating system for AI agents. Eliminates tool bloat, loads only what’s needed, and gives LLMs their reasoning space back. GitHub - nowork-studio/toprank: Open-source Claude Code skills for SEO, SEM, Google Ads GitHub - tacomanator/sash: Lightweight macOS menu bar app for reliably cycling through windows of the current application. Appents | Social Media Management for Product-First Teams GitHub - pnhoang/youtube-spam-blocker: Automatically detects and hides spam messages in YouTube Live chat. Set rate limits, keyword filters, and block repeat offenders. GitHub - decisionnode/DecisionNode: CLI + Local MCP - A shared structured memory store across Claude Code, Cursor, Windsurf, Antigravity, and every MCP client. Semantically queryable. GitHub - AvaCodeSolutions/django-email-learning: An open source Django app for creating email-based learning platforms with IMAP integration and React frontend components. The $100K Gap in Kubernetes Security Tooling Function Calling Harness: From 6.75% to 100%
GitHub - syndicalt/llmff: FFmpeg for Inference
syndicalt · 2026-06-01 · via Hacker News: Show HN

llmff: FFmpeg-shaped pipelines for LLM workflows

llmff is an FFmpeg-shaped command-line and library tool for LLM inference pipelines. The MVP focuses on a typed pipeline graph, reproducible YAML manifests, backend adapters, local retrieval, JSON validation and repair, and JSONL traces.

Start Here

Install

Install from GitHub:

cargo install --git https://github.com/syndicalt/llmff llmff

Install the stable v1.0.0 release with:

cargo install --git https://github.com/syndicalt/llmff --tag v1.0.0 llmff

For a local checkout:

cargo install --path crates/llmff-cli

Verify the installed binary:

llmff --version
llmff stages list

Check local prerequisites without running a pipeline or calling provider endpoints:

llmff doctor \
  --run-dir .llmff/run \
  --plugin-dir ./plugins \
  --backend openai=https://api.openai.com/v1 \
  --api-key-env openai=OPENAI_API_KEY

Supported release targets and installer assumptions are documented in docs/platform-support.md.

Run the install smoke gate from a checkout:

scripts/smoke-install.sh --path .

Smoke test a generated release archive without installing:

scripts/smoke-archive.sh --archive dist/llmff-1.0.0-x86_64-unknown-linux-gnu.tar.gz

Run the release metadata preflight before creating or pushing a release tag:

scripts/release-preflight.sh v1.0.0

After release-tag CI completes, verify a published release's assets, checksums, and host-compatible packages:

scripts/check-release-assets.sh v1.0.0

Generate and validate Windows MSI packaging metadata:

scripts/package-windows-msi.sh --binary target/release/llmff.exe --version 1.0.0 --target x86_64-pc-windows-msvc --out-dir dist --emit-wxs-only

Build a Windows MSI on a Windows host:

dotnet tool restore
scripts/package-windows-msi.sh --binary target/release/llmff.exe --version 1.0.0 --target x86_64-pc-windows-msvc --out-dir dist

Smoke test a staged Windows MSI payload without installing:

scripts/smoke-windows-msi.sh --payload-root dist/windows-msi-smoke-root

Generate and validate macOS installer payload metadata:

scripts/package-macos-pkg.sh --binary target/release/llmff --version 1.0.0 --target aarch64-apple-darwin --out-dir dist --emit-payload-only

Smoke test a generated macOS installer payload without installing:

scripts/smoke-macos-pkg.sh --payload-root dist/llmff-1.0.0-aarch64-apple-darwin.pkgroot

Smoke test a generated Debian package without root:

scripts/smoke-deb.sh --deb dist/llmff_1.0.0_amd64.deb

Release tags build compressed binary archives, Ubuntu/Debian .deb packages, Arch PKGBUILD metadata, unsigned Windows MSI packages, and unsigned macOS .pkg packages in CI. Trusted Windows Authenticode signing and Apple Developer ID signing/notarization are deferred until paid credentials are available. See docs/platform-support.md for the current target matrix.

Tagged release builds publish archives, checksums, .deb packages, Arch metadata, Windows MSI packages, and macOS .pkg packages as GitHub Release assets. Manual workflow runs keep the same files as Actions artifacts.

Current Scope

  • llmff run <manifest> executes a pipeline manifest.
  • llmff inspect <manifest> dry-run validates graph references, stage requirements, conservative type compatibility, and backend availability.
  • llmff stages list prints built-in stage names.
  • llmff stages list --format json prints machine-readable stage metadata and capability flags.
  • llmff backends list prints built-in and explicitly registered backend families.
  • llmff backends list --format json prints machine-readable backend family metadata and capability flags, including backends registered with --backend, --ollama, or --plugin-dir.
  • llmff models list --format json prints runtime model metadata for built-in mock models, CLI-registered OpenAI-compatible or Ollama aliases, and plugin command backends.
  • llmff plugins list --plugin-dir <path> discovers llmff-plugin.yaml manifests and prints plugin capability metadata.
  • llmff run --plugin-dir <path> can execute plugin-provided stages, backends, and tool transports declared in those manifests.
  • llmff doctor checks local prerequisites such as binary version, run-dir writability, plugin manifest validity, API-key environment wiring, and optional release trust manifest presence without making network calls.
  • The core crate owns execution semantics; the CLI is a thin adapter.
  • Mock backends are available for deterministic local runs and tests.
  • An OpenAI-compatible backend exists in the core crate for /v1/chat/completions servers.

This is not a native inference kernel, model conversion tool, serving platform, or agent framework.

Example

Run the JSON repair example with deterministic mock model responses:

LLMFF_MOCK_BAD_RESPONSE='{"wrong":true}' \
LLMFF_MOCK_GOOD_RESPONSE='{"answer":"ok"}' \
llmff run examples/json-repair.yaml --trace /tmp/llmff-trace.jsonl

Run independent ready stages concurrently:

LLMFF_MOCK_GOOD_RESPONSE='{"answer":"ok"}' \
llmff run --parallel pipeline.yaml

Stream run and stage lifecycle events as JSONL:

LLMFF_MOCK_GOOD_RESPONSE='{"answer":"ok"}' \
llmff run --events - pipeline.yaml

Run a compact inline graph:

LLMFF_MOCK_GOOD_RESPONSE='{"answer":"ok"}' \
llmff run -i examples/question.txt \
  -g 'load | infer(model=mock:good) | write(-)'

Run inline retrieval over local documents:

llmff run -i examples/question.txt \
  -g 'load | retrieve(documents=examples/retrieval/python.txt;examples/retrieval/rust.txt,top_k=1) | write(matches.json)'

Use deterministic local embedding-style retrieval when lexical token overlap is too strict:

llmff run -i examples/question.txt \
  -g 'load | retrieve(documents=examples/retrieval/python.txt;examples/retrieval/rust.txt,top_k=1,strategy=embedding) | write(matches.json)'

Rerank retrieved matches without calling a remote service:

llmff run -i examples/question.txt \
  -g 'load | retrieve(documents=examples/retrieval/python.txt;examples/retrieval/rust.txt,top_k=2) | rerank(strategy=embedding,top_k=1) | write(matches.json)'

Cache an inline pipeline value across runs:

llmff run -i examples/question.txt \
  -g 'load | cache(path=.llmff/cache,key=prompt-v1) | write(cached-question.txt)'

Name inline stages and reference them explicitly:

LLMFF_MOCK_GOOD_RESPONSE='ok' \
llmff run -i examples/question.txt \
  -g 'load#prompt | template#render(examples/prompt.tmpl) | infer#draft(from=render,model=mock:good) | write#save(from=draft,path=answer.txt)'

Inline load reads stdin when -i/--input is omitted:

cat examples/question.txt | LLMFF_MOCK_GOOD_RESPONSE='{"answer":"ok"}' \
  llmff run -g 'load | infer(model=mock:good) | write(-)'

Inspect the manifest without running model calls:

llmff inspect examples/json-repair.yaml

Emit a machine-readable reproducibility report for agents and CI:

llmff inspect examples/json-repair.yaml --format json

The JSON report includes schema compatibility versions, the manifest hash, resolved inputs and outputs, stage order, backend registrations, plugin protocol metadata, plugin manifests, execution controls, and stdout ownership.

Inspect an inline graph without running model calls:

llmff inspect -g 'load | infer(model=mock:good) | write(-)'

inspect catches type mismatches that are statically provable, such as field-based route stages whose source is known to be text rather than JSON.

Inspect a manifest that references a registered backend alias:

llmff inspect pipeline.yaml \
  --backend openai=https://api.openai.com/v1 \
  --api-key-env openai=OPENAI_API_KEY

Inspect a manifest that references plugin stages:

llmff inspect pipeline.yaml --plugin-dir ./plugins

List built-in stages:

List stage capability metadata:

llmff stages list --format json

List backend capability metadata:

llmff backends list --format json

Include runtime-registered providers in backend metadata:

llmff backends list --format json \
  --backend openai_alt=https://api.example.test/v1 \
  --ollama local=http://localhost:11434 \
  --plugin-dir ./plugins

List runtime model metadata separately from backend family metadata:

llmff models list --format json \
  --backend openai_alt=https://api.example.test/v1 \
  --ollama local=http://localhost:11434 \
  --plugin-dir ./plugins

List plugin manifest metadata:

llmff plugins list --plugin-dir ./plugins --format json

Run a manifest that uses plugin capabilities:

llmff run pipeline.yaml --plugin-dir ./plugins

Plugin stage capabilities run as stdin/stdout command stages with op: plugin:<capability-name>. Plugin tool transports run through op: tool with transport: <capability-name>. Plugin backend capabilities register their capability name as a model alias, so a backend named local-echo serves manifest model ids such as local-echo:test-model. Backend commands receive the serialized inference request on stdin and return JSON on stdout:

{"text":"model output","usage":{"prompt_tokens":12,"completion_tokens":8,"total_tokens":20}}

Plugin sampler capabilities can be attached to infer and repair stages with sampler: <capability-name>. Sampler commands receive the serialized inference request on stdin and return JSON sampling overrides on stdout:

{"temperature":0.1,"top_p":0.9,"max_tokens":256,"seed":12345,"response_format":"json","stop":["DONE"]}

Only returned fields are applied; omitted fields keep the stage or backend defaults.

Use stdin/stdout by setting manifest input or output paths to -.

Inline graphs support op, op(value), and op(key=value) stage syntax for run and inspect. A stage can be named as op#id, and later stages can use from=id to reference it instead of the previous stage. Use semicolons inside the documents value for inline retrieve, such as documents=docs/a.txt;docs/b.txt. Inline retrieve and rerank accept strategy=lexical or strategy=embedding. Inline tool supports command, method, url, and header:<name> parameters. Manifests remain the canonical format for complex branching graphs and version-controlled recipes.

Call a command tool from an inline graph:

llmff run -i examples/question.txt \
  -g 'load | tool(command=/bin/cat) | write(tool-output.txt)'

Call an HTTP tool from an inline graph:

llmff run -i examples/question.txt \
  -g 'load | tool(method=POST,url=http://127.0.0.1:8080/process,header:content-type=text/plain) | write(tool-output.txt)'

For development without installing, prefix commands with cargo run -p llmff --, for example:

cargo run -p llmff -- inspect examples/json-repair.yaml

Manifest stages may be written in any order. llmff validates references across the full graph and executes stages in dependency order. By default stages execute sequentially for deterministic local behavior; run --parallel executes independent ready stages concurrently.

run --events <path> writes the same JSONL lifecycle events as --trace while the pipeline is running. Use run --events - to stream those events to stdout for supervisors, dashboards, or shell pipelines. Keep pipeline outputs pointed at files when streaming events to stdout to avoid interleaving two data streams.

Manifest stages can reference file-backed resources relative to the manifest:

graph:
  - id: render_prompt
    op: template
    from: load_prompt
    path: ./prompt.tmpl

  - id: apply_policy
    op: system
    from: render_prompt
    path: ./policy.md

  - id: validate
    op: validate_json
    from: draft
    schema_path: ./answer.schema.json

Inputs default to text. Set format: json to parse an input into a structured JSON value:

inputs:
  payload:
    path: ./payload.json
    format: json

JSON inputs can be templated by object field and used by field-based routes. Invalid JSON fails the load stage with a stage execution error.

template replaces {{input}} when the parent value is text. When the parent value is a JSON object, object fields are available by name, such as {{name}}.

system with a path preserves chat roles for model calls: the file contents become a system message and the parent value becomes a user message. Text-only stages render messages conservatively as role: content lines when they need a string.

Retrieve stages select local UTF-8 documents with deterministic lexical scoring:

graph:
  - id: retrieve_context
    op: retrieve
    from: load_prompt
    documents:
      - examples/retrieval/python.txt
      - examples/retrieval/rust.txt
    top_k: 1

retrieve renders its parent value as query text and returns JSON with query, strategy, and matches. The default strategy: lexical tokenizes the query and each document, scores documents by matching unique query terms, then sorts by score and path. strategy: embedding uses deterministic local character n-gram vectors and cosine similarity so near-overlap text can rank even when whole tokens differ. Embedding retrieval can persist those local vectors with index: .llmff/retrieve/context.index.json; matching document metadata is reused on later runs, changed documents are re-indexed, and the output includes index.path, index.reused_documents, and index.indexed_documents. strategy: command runs a stdin/stdout command provider for remote embedding services or external vector indexes. The command receives JSON with query, documents, and optional top_k, and returns retrieve-shaped JSON. Document paths are relative to the manifest unless absolute. top_k is optional and must be greater than zero when present.

rerank accepts retrieve-shaped JSON with query and matches, rescoring each match's text with strategy: lexical or strategy: embedding. strategy: command runs a stdin/stdout command provider for learned reranker models. The command receives the retrieve-shaped JSON plus optional top_k, and returns retrieve-shaped JSON. Local reranking preserves match fields, replaces score, writes the selected strategy, and applies optional top_k after sorting.

Cache stages persist and reuse successful parent values across runs:

graph:
  - id: cached_prompt
    op: cache
    from: render_prompt
    path: .llmff/cache
    key: prompt-v1

cache stores typed values as versioned JSON records under path, defaulting to .llmff/cache. With an explicit key, the manifest author controls the cache identity; without one, the parent value is part of the digest. Cache stages do not require environment variables and only cache successful parent values.

Route stages choose between already-computed stage outputs:

graph:
  - id: choose_final
    op: route
    from: validate
    on_success: validate
    on_invalid: repair

For JSON object outputs, route can select by scalar field value:

graph:
  - id: choose_model_output
    op: route
    from: classify
    field: kind
    cases:
      simple: fast_answer
      hard: strong_answer
    default: fast_answer

Stages can be guarded with when so they only run when their parent stage has a matching status:

graph:
  - id: repair
    op: repair
    from: validate
    when: invalid
    model: mock:good

Supported conditions are success, invalid, and skipped. A non-matching condition marks the guarded stage as skipped before any stage-specific work runs, so model calls, tool calls, and writes are not invoked for skipped stages. Skipped stages still appear in traces with status=skipped.

Tool stages call explicitly declared commands or HTTP endpoints:

graph:
  - id: normalize
    op: tool
    from: render_prompt
    command: ["/bin/cat"]

Command tools use argv directly, never a shell string. The serialized parent value is written to stdin and stdout becomes the stage output.

graph:
  - id: call_endpoint
    op: tool
    from: render_prompt
    method: POST
    url: http://127.0.0.1:8080/process
    headers:
      content-type: text/plain

HTTP tools require method and url. POST, PUT, and PATCH send the serialized parent value as the request body; response text becomes the stage output.

Write stages persist a successful parent value from inside the graph and forward the same value:

graph:
  - id: save_answer
    op: write
    from: validate
    path: ./answer.json

Top-level outputs remain supported for simple final outputs. Use write when the pipeline itself should express the write step, or when an intermediate value should be saved.

Trace Notes

--trace <path> writes JSONL events for run and stage lifecycle events. Trace events include timestamp_ms; stage_finished events also include duration_ms.

Stage traces add safe operation metadata when available:

  • model, backend, and provider_model for model-calling stages.
  • prompt_tokens, completion_tokens, and total_tokens for model-calling stages when the backend reports usage.
  • validation_errors for invalid validation results.
  • tool_kind and tool_target for tool stages.
  • output_path for write stages.
  • cache_hit and cache_path for cache stages.

Trace metadata intentionally avoids full prompt bodies, cached values, tool stdin/stdout, headers, and secrets.

Summarize a trace file:

llmff trace /tmp/llmff-trace.jsonl

The trace summary prints run status, stage status, duration, and safe metadata only. Total usage is summarized as usage=<total>.

Backend Notes

The CLI keeps backend registration explicit. This keeps commands portable and FFmpeg-like: the command line describes the run, while environment variables are only used when you choose to read a secret by name.

run and inspect accept the same backend registration flags. inspect validates that model ids resolve to configured backends, but it does not call model servers, tools, or pipeline stages.

Register an OpenAI-compatible backend:

llmff run pipeline.yaml \
  --backend openai=https://api.openai.com/v1 \
  --api-key-env openai=OPENAI_API_KEY

OpenAI-compatible backend URLs may point either at the server root or at the API root. Both https://api.openai.com and https://api.openai.com/v1 resolve to the /v1/chat/completions endpoint.

Then reference that backend alias from a manifest:

graph:
  - id: draft
    op: infer
    from: load_prompt
    model: openai:gpt-4.1-mini

The model id before the first colon is the backend alias. The model id after the first colon is sent to the provider.

For local OpenAI-compatible servers that do not require auth, omit the key flag:

llmff run pipeline.yaml \
  --backend local=http://localhost:8000/v1

Register a native Ollama backend:

llmff run pipeline.yaml \
  --ollama ollama=http://localhost:11434

Then reference the alias from a manifest or inline graph:

graph:
  - id: draft
    op: infer
    from: load_prompt
    model: ollama:llama3.1

Model-calling stages accept portable sampling controls:

graph:
  - id: draft
    op: infer
    from: load_prompt
    model: openai:gpt-test
    temperature: 0.2
    top_p: 0.9
    max_tokens: 256
    seed: 12345
    response_format: json
    stop:
      - "\nEND"
      - "</answer>"

OpenAI-compatible backends receive temperature, top_p, max_tokens, seed, response_format, and stop. They also expose a streaming contract for server-sent chat completion deltas. Use llmff run --stream-stage <stage-id> to stream one stage to stdout while still writing the normal manifest outputs. For infer stages, llmff streams backend token deltas as they arrive; for deterministic and integration stages, it streams the serialized stage payload when the stage finishes. Do not combine --stream-stage with --events - or manifest outputs that write to -; write lifecycle events and final outputs to files to keep the stream clean. Ollama receives the same controls under options except response_format: json, which maps to the top-level Ollama format: "json" hint. Inline graphs accept seed=12345, response_format=json, and stop sequences with semicolon separators, such as stop=END;DONE.

Mock backends remain available for deterministic local runs and tests:

  • LLMFF_MOCK_BAD_RESPONSE
  • LLMFF_MOCK_GOOD_RESPONSE

Those mock env vars are convenience fixtures, not the primary backend configuration model.

llmff models list reports the runtime model aliases that the current command line makes available. JSON output includes the model alias, backend name, backend kind, runtime class, source, registration flag, API key requirement, and portable capability flags.

Limitations

  • Schema values are inline JSON strings in the current manifest format.
  • llmff run --stream-stage <stage-id> streams one selected stage to stdout. infer stages stream token deltas when the backend supports them; other stages stream their serialized payload after the stage finishes.
  • Plugin manifests can be discovered and listed, and plugin stages, backend commands, tool transports, and samplers can run through stdin/stdout plugin entrypoints.
  • Multimodal values are not implemented yet.
  • Native model loading, quantization, and hardware scheduling are out of scope for this MVP.