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

推荐订阅源

S
SegmentFault 最新的问题
J
Java Code Geeks
V
V2EX
Blog — PlanetScale
Blog — PlanetScale
博客园 - 司徒正美
Hugging Face - Blog
Hugging Face - Blog
F
Fortinet All Blogs
aimingoo的专栏
aimingoo的专栏
B
Blog
A
About on SuperTechFans
有赞技术团队
有赞技术团队
月光博客
月光博客
Microsoft Azure Blog
Microsoft Azure Blog
阮一峰的网络日志
阮一峰的网络日志
腾讯CDC
美团技术团队
大猫的无限游戏
大猫的无限游戏
爱范儿
爱范儿
N
Netflix TechBlog - Medium
C
Check Point Blog
Recent Announcements
Recent Announcements
博客园 - Franky
博客园 - 叶小钗
T
Tailwind CSS Blog

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 - kouhxp/liteflow: 1000-line C program where an LL...
mrkn1 · 2026-05-05 · via Hacker News: Show HN

A ~1000-line C program that runs YAML-defined DAGs, where an LLM can edit the graph mid-run.

When a task fails, a planner LLM gets the stderr and emits one of four verbs: RETRY, PATCH, INSERT_BEFORE, ABORT. The runtime applies the mutation and continues. Every edit is recorded in an append-only event log, so you can replay any run and see exactly which graph changes the LLM made and why.

Not an agent. A runtime where the LLM is a peer of the scheduler.

Build

cc -std=c11 -O2 -o liteflow liteflow.c

Single file, no libraries. Shells out to curl for HTTP. Linux, macOS, modern Windows.

Run

export OPENAI_API_KEY=...
export OPENAI_BASE_URL=https://api.deepinfra.com/v1/openai   # any OpenAI-compatible endpoint

./liteflow run examples/demo.yaml
./liteflow replay logs/<run-dir>/events.jsonl

What a workflow looks like

name: release
tasks:
  - id: tests
    type: shell
    cmd: "pytest"

  - id: gate
    type: decision
    prompt: "Tests passed. Ship or hold?"
    branches: [ship, hold]
    depends_on: [tests]

  - id: ship
    type: shell
    cmd: "./deploy.sh"
    depends_on: [gate]
    when: gate                    # only runs if `gate` chose this id

  - id: archive
    type: shell
    cmd: "echo done > /var/log/release/last.log"
    on_failure:
      planner: gpt-4o-mini
      budget: 3                   # max LLM mutations applied to this task
    depends_on: [ship]

If archive fails because /var/log/release/ doesn't exist, the planner can INSERT_BEFORE a mkdir task. The graph grows by one node, the original retries, the run finishes green.

Task types

shell, llm, file_read, file_write, decision.

decision nodes constrain the LLM to picking one of the declared branches. Downstream tasks gate on the choice via when:. The unchosen branch ends in a gated_out state that doesn't poison its dependents.

Mutation grammar

Verb Effect
RETRY re-run unchanged
PATCH modify one field (cmd/path/content/prompt/model), retry
INSERT_BEFORE inject a shell remediation task, then retry
ABORT give up

Anything else from the planner is logged and treated as ABORT. Per-task budgets cap the number of mutations.

Audit log

Every state change appends to events.jsonl:

run_started
task_started        task=archive origin=yaml
task_retry          task=archive rc=1
planner_invoked     task=archive budget=3
mutation_applied    verb=INSERT_BEFORE new_task=mkdir_dir cmd="mkdir -p ..."
task_started        task=mkdir_dir origin=planner
task_succeeded      task=mkdir_dir
task_started        task=archive origin=yaml
task_succeeded      task=archive
run_finished        succeeded=3 failed=0 skipped=0 gated_out=0

Tasks the planner created carry origin=planner along with the mutation id and parent task. You can always answer why is this task in the graph?

Limits

  • YAML parser is a 2-space-indent subset; no block scalars (|, >), anchors, or multi-doc.
  • Tasks share state via files on disk, not templating.
  • Run-once CLI; no daemon, no scheduler.
  • Open-ended graph synthesis is deliberately not in v1.