{
  "id": 647,
  "kind": "thread",
  "title": "Loop Engineering: The 20-Step Roadmap From Prompter to Loop Designer",
  "summary": "X article popularizing “loop engineering” (named in Addy Osmani’s essay; amplified after Claude Code’s Boris Cherny described his workflow as loops). Four phases: understand the 2023–2026 prompt→orchestration→context→loop stack and ReAct reason-act-observe; specify measurable done, an external verifier, layered exits, persistent state, and a human gate on irreversible actions; pick one repetitive checkable task, run it by hand, write a contract, watch, then tighten the verifier; then open vs closed loops, harness quality, cost routing, sub-agents, cron-scripted loops, and taste-as-reward. Discord post is a later quote-tweet with a GPT-5.6 Sol vs Claude Fable 5 speed video plus FOMO copy; the substantial artifact is the July 11 article.",
  "body": "",
  "notes": "Primary: X article (id 2075850153924186113) via fxtwitter. Discord posted https://x.com/eng_khairallah1/status/2080654171267567861 which quotes the article and attaches a Sol vs Fable 5 video; cataloged the article as the follow-through. No paper/repo. How-to article, not a hosted corpus, so no datasets_local row.",
  "url": "https://x.com/eng_khairallah1/status/2075862184299565100",
  "links": [],
  "authors": [
    "Khairallah AL-Awady"
  ],
  "tags": [
    "loop-engineering",
    "agents",
    "verifier",
    "react",
    "x"
  ],
  "topics": "agent loops, prompt engineering, coding agents",
  "venue": "X",
  "publisher": "",
  "source": "web",
  "language": "en",
  "access": "free",
  "license": "",
  "published_year": 2026,
  "added_at": "2026-08-14T19:15:00.000Z",
  "verified_at": "2026-08-14T19:15:00.000Z",
  "attrs": {
    "scale": "Article tweet ~677 likes / 111 retweets / ~2.01M views; quoting tweet ~65 likes / 12 retweets / ~21k views at fetch.",
    "purpose": "Teach a 20-step path from typing prompts to designing unattended agent loops with verifiers and termination",
    "author_type": "human",
    "time_period": "X article 2026-07-11. Quoting tweet 2026-07-24. Discord posted 2026-07-25."
  },
  "enrichment": {},
  "enriched_at": "2026-10-03T14:33:38.640Z",
  "license_class": "unknown",
  "langs": [
    "en"
  ],
  "modalities": [],
  "size_class": null,
  "provenance": {
    "channel": "random-papers",
    "legacy_paper_id": "666",
    "needs_deep_eval": "no",
    "pipeline_status": "done",
    "research_status": "done"
  },
  "visibility": "public",
  "status": "active",
  "duplicate_of": null,
  "origin": "legacy",
  "created_at": "2026-10-03T12:29:06.561Z",
  "updated_at": "2026-10-03T14:30:16.149Z",
  "page": "https://papers.projxon.ai/entries/647",
  "markdown": "https://papers.projxon.ai/entries/647.md",
  "api": "https://papers.projxon.ai/api/entries/647",
  "relations": [],
  "duplicates": [],
  "similar": [
    {
      "id": 716,
      "kind": "code",
      "title": "FrontierAgent",
      "summary": "Open-source (Apache 2.0) agent runtime, terminal TUI, and evaluation suite for long-horizon research and file-based work, released alongside the Apodex-1.1 model. Ships two workflows: ReAct (one stateful agent in a task-scoped sandbox) and Agent Team (coordinator delegating to parallel sub-agents). Installs with one command on macOS/Linux with no Docker dependency; the same engine powers Apodex's model benchmark runner.",
      "url": "https://github.com/ApodexAI/FrontierAgent",
      "authors": [
        "Apodex AI"
      ],
      "tags": [
        "agents",
        "tui",
        "react",
        "multi-agent",
        "open-source",
        "evaluation"
      ],
      "venue": "GitHub",
      "source": "github",
      "license": "Apache-2.0",
      "published_year": 2026,
      "added_at": "2026-09-29T00:00:00.000Z",
      "has_dataset_profile": false,
      "license_class": "permissive",
      "langs": [
        "en"
      ],
      "modalities": [],
      "size_class": null,
      "citation_count": null,
      "downloads": null,
      "stars": 5038,
      "page": "https://papers.projxon.ai/entries/716",
      "markdown": "https://papers.projxon.ai/entries/716.md",
      "api": "https://papers.projxon.ai/api/entries/716"
    },
    {
      "id": 819,
      "kind": "paper",
      "title": "LibraryDesignBench: can agents design libraries other agents can use?",
      "summary": "Agents will soon replace humans as the main users and designers of libraries; a good library lets future agents write correct programs with less code. LibraryDesignBench: one agent designs a library, and three other agents write programs with it. 15 design tasks across four languages, with no prescribed APIs, abstractions, or guidance, to elicit genuine design decisions; programs are scored on correctness and simplicity. Results: agents using libraries designed by Opus 5.5 or Fable 5.1 pass as many tests as with the production human-written library while writing simpler code; with DeepSeek V4 Pro's libraries, agents do worse than with no library at all. Despite full design freedom, agents converged on the same patterns as the human library for 11 of 15 tasks. Most excess code stems from the library's design, not the implementer: rigid interfaces led agents to reimplement functionality (adding bugs), verbose interfaces forced more code. Giving the designer explicit guidance (start from prototypes, test with fresh subagents, more examples) made downstream programs shorter and improved score modestly at roughly twice the design cost. A standalone spin-off benchmark, LibraryUseBench, tests how well a model uses a real library with minimal guidance: Opus 5.5 leads, Sonnet 5.5 close behind, every newer model improves on its predecessor. Supported by DARPA, NSF, PrimeIntellect, and SnorkelAI's Open Benchmark Grant.",
      "url": "https://arxiv.org/abs/2609.36730",
      "authors": [
        "Gabe Orlanski",
        "et al. (collaborators: @a1zhang",
        "@atrost3122",
        "@vincentsunnchen",
        "@fredsala",
        "@awsTO",
        "@lschmidt3)"
      ],
      "tags": [
        "benchmarks",
        "agents",
        "library-design",
        "api-design"
      ],
      "venue": "arXiv (2026-09)",
      "source": "paper",
      "license": "",
      "published_year": 2026,
      "added_at": "2026-09-30T00:00:00.000Z",
      "has_dataset_profile": false,
      "license_class": "unknown",
      "langs": [
        "en"
      ],
      "modalities": [],
      "size_class": null,
      "citation_count": 0,
      "downloads": null,
      "stars": null,
      "page": "https://papers.projxon.ai/entries/819",
      "markdown": "https://papers.projxon.ai/entries/819.md",
      "api": "https://papers.projxon.ai/api/entries/819"
    },
    {
      "id": 830,
      "kind": "benchmark",
      "title": "ProgramBench: write-a-program-from-scratch SWE-agent benchmark; Muse Spark 1.3 results",
      "summary": "ProgramBench: a SWE-agent benchmark where an agent must write a whole program (sqlite, ffmpeg, php, cmatrix, ngrrram, ...) from scratch. Meta Muse Spark 1.3 ranks #2 (max tier) and #3 (xhigh tier) overall on the leaderboard. Full solves by 1.3 max: 5 programs entirely -- cmatrix, eureka, ngrrram*, nomino*, wrapcheck* (* = first time any LM has solved them). ngrrram (a TUI typing trainer): the agent typed lessons into the original and captured the screen frame by frame, then recreated layouts/scoring/UI; remaining misses are small details. Progress 1.1 -> 1.3 (both xhigh): avg test pass rate 47.0% -> 68.6%; almost resolved (>=95%): 8 -> 33 programs; fully resolved: 0 -> 2; 39% fewer tokens across the benchmark. Cost: Muse Spark max averages $6.46/task -- roughly the same as GPT-5.6 Sol xhigh at $6.08, but fully resolves 5 programs vs 2 and gets >=95% on 50 vs 31; Opus 5 reaches 9 solved at $50.53/task (~8x more). Trajectories, final codebases, and test pass/fail breakdowns open-sourced; submissions open to anyone. More models coming soon (6 astra, 5.5 opus noted).",
      "url": "https://x.com/jyangballin/status/2105322290179428389?s=20",
      "authors": [
        "ProgramBench team",
        "John Yang (SWE-bench / SWE-agent / SWE-smith author)"
      ],
      "tags": [
        "agents",
        "coding-agents",
        "swe-benchmarks",
        "program-synthesis",
        "open-weight-evals"
      ],
      "venue": "programbench.com (results announced 2026-09-30)",
      "source": "x",
      "license": "",
      "published_year": 2026,
      "added_at": "2026-09-30T00:00:00.000Z",
      "has_dataset_profile": false,
      "license_class": "unknown",
      "langs": [
        "en"
      ],
      "modalities": [],
      "size_class": null,
      "citation_count": null,
      "downloads": null,
      "stars": null,
      "page": "https://papers.projxon.ai/entries/830",
      "markdown": "https://papers.projxon.ai/entries/830.md",
      "api": "https://papers.projxon.ai/api/entries/830"
    },
    {
      "id": 657,
      "kind": "other",
      "title": "Prime Agent: A Self-Improving RLM Harness",
      "summary": "Prime Intellect launch blog (cite primeintellect2026primeagent). Recursive Language Model: one tool, a persistent IPython kernel; context lives in named Python objects and sub-agents are await rlm(...) calls that return at admission, with later replies via agent_message. Continual Harness H=(ρ,G,K,M) exposes CRUD over prompts, sub-agents, skills, and memory; /refine applies small evidence-backed edits without touching the immutable base prompt. Daemon owns sessions so you can detach/reattach. Opus 5 in Prime Agent reports 95.5% RHAE Best@1 on ARC-AGI-3 (above the 95.4% human-expert baseline; three-run [95.0, 95.2, 95.5], 99.97% Best@3, 183/183 levels). Competitive vs Claude Code/Codex/Pi-mono on OOLONG/LongBench/EmulatorBench with GLM-5.2. Factorio FLE case study: /refine raised production score into 100K+ but also turned RCON cheats into skills. MIT. Built on pi. Full technical report promised later.",
      "url": "https://www.primeintellect.ai/blog/prime-agent",
      "authors": [
        "Seth Karten",
        "Alex L. Zhang",
        "Kevin Thomas",
        "Sebastian Müller",
        "Prime Intellect Team"
      ],
      "tags": [
        "prime-agent",
        "rlm",
        "continual-harness",
        "prime-intellect",
        "ipython",
        "arc-agi-3",
        "coding-agent",
        "blog",
        "x"
      ],
      "venue": "Prime Intellect Blog",
      "source": "web",
      "license": "MIT",
      "published_year": null,
      "added_at": "2026-08-14T19:50:00.000Z",
      "has_dataset_profile": false,
      "license_class": "permissive",
      "langs": [
        "en"
      ],
      "modalities": [],
      "size_class": null,
      "citation_count": null,
      "downloads": null,
      "stars": null,
      "page": "https://papers.projxon.ai/entries/657",
      "markdown": "https://papers.projxon.ai/entries/657.md",
      "api": "https://papers.projxon.ai/api/entries/657"
    },
    {
      "id": 1272,
      "kind": "paper",
      "title": "Sentry: Learning to Recover from LLM Agent Failures at Test Time",
      "summary": "Test-time framework for recovering LLM agents from failures, from Stanford's ACE (Agentic Context Engineering) team. Core finding: failure knowledge is conditional — how it reaches the agent matters as much as what it contains. Failure lessons kept in context misfire when their failure is absent: ACE-style memory that keeps past failure lessons in context for every task distracts the agent (e.g., on WebShop the agent found the right product then kept comparing alternatives and never acted); simply removing failure lessons improves ACE by +17% on WebShop and +14% on Mind2Web Replay. Conversely, runtime-intervention methods (AgentGuard) act only on failure but learn nothing — fixed rules can fire at the wrong time (a 'no progress' warning made the agent abandon correctly picked product options). Sentry combines both: it learns from experience like ACE, but keeps failure knowledge in a separate playbook outside the agent's main context; a failure detector watches for failures, retrieves failure-specific guidance (hard repair for invalid actions, soft repair with hints), and a verifier checks recovery without access to task rewards — the playbook is updated only if recovery succeeded. Results on WebShop, AppWorld, SWE-bench Lite, Mind2Web Replay: +37% over the best runtime-intervention baseline on average (up to +77% on WebShop), +39% over ACE; ACE+Sentry combined performs best overall, with task-level and failure-level learning as complementary. Learned lessons transfer to held-out tasks; controlled experiments confirm exposing the full playbook hurts even when relevant lessons remain available on demand. CC BY 4.0 license. Directly relevant to the user's agent app (memory design: storing knowledge is easy, deciding when the agent sees it is what matters) and to Launch Helm's intervention/control angle.",
      "url": "https://arxiv.org/abs/2610.02994",
      "authors": [
        "Changxiu Ji",
        "Amy Lu",
        "Qizheng Zhang",
        "Kunle Olukotun"
      ],
      "tags": [
        "sentry",
        "agent-failure-recovery",
        "test-time",
        "ace",
        "stanford",
        "playbook",
        "verifier"
      ],
      "venue": "arXiv 2610.02994 [cs.LG], submitted 2 Oct 2026, preprint",
      "source": "x",
      "license": "",
      "published_year": 2026,
      "added_at": "2026-10-06T00:00:00.000Z",
      "has_dataset_profile": false,
      "license_class": "unknown",
      "langs": [
        "en"
      ],
      "modalities": [],
      "size_class": null,
      "citation_count": null,
      "downloads": null,
      "stars": null,
      "page": "https://papers.projxon.ai/entries/1272",
      "markdown": "https://papers.projxon.ai/entries/1272.md",
      "api": "https://papers.projxon.ai/api/entries/1272"
    },
    {
      "id": 827,
      "kind": "paper",
      "title": "TraceML: What Auto-Research Agents Miss in Long-Horizon ML Development",
      "summary": "TraceML: a trajectory-level analysis tool for auto-research agents and systematic agent-human comparisons. Reconstructs ML development trajectories (human Kaggle notebook histories; agent git commits and search journals) into a unified schema: every code version labeled with ML-pipeline stages (8 coarse, 136 fine tags) and each edit with action, intent, magnitude, and score effect. Released as the traceml CLI so users can analyze their own agent runs (AIDE, MLEvolve journals, any git workspace). Scale: 4,465 human Kaggle trajectories across 134 competitions (151,088 labeled code versions); paired subset of 430 human + 207 agent trajectories on 7 competitions. Findings: agents collapse into narrow loops -- Codex spends 89% of edits tuning the submission (62nd percentile finish), MLEvolve 63% mutating its model (48th percentile), while top-10% humans mix data work, validation, model changes, and ensembling (97th/92nd percentile finishes); humans pivot on 25% of transitions vs 9% (Codex) / 58% (MLEvolve); top humans return to earlier approaches on 9% of eligible versions (78% end higher), Codex 1 of 658, MLEvolve 0 of 344. A ~1,000-token planning prompt distilled from human practice improved scores in 5 of 7 competitions (2 within noise, none regressed) -- \"closes only the instructable part of the gap.\"",
      "url": "https://arxiv.org/abs/2608.26086",
      "authors": [
        "Jiarui Yan",
        "Weiwei Sun",
        "Sijie Li",
        "Wenhan Li",
        "Yiming Yang"
      ],
      "tags": [
        "agents",
        "ml-research",
        "trajectory-analysis",
        "kaggle",
        "auto-research"
      ],
      "venue": "Carnegie Mellon University; arXiv:2608.26086 (accepted at NeurIPS 2026 E&D track, COLM 2026 Workshop on Agent Behavior); annotations/schemas/dataset code CC BY 4.0; toolkit Apache-2.0",
      "source": "paper",
      "license": "",
      "published_year": 2026,
      "added_at": "2026-09-30T00:00:00.000Z",
      "has_dataset_profile": false,
      "license_class": "unknown",
      "langs": [
        "en"
      ],
      "modalities": [],
      "size_class": null,
      "citation_count": 0,
      "downloads": null,
      "stars": null,
      "page": "https://papers.projxon.ai/entries/827",
      "markdown": "https://papers.projxon.ai/entries/827.md",
      "api": "https://papers.projxon.ai/api/entries/827"
    }
  ]
}
