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

推荐订阅源

雷峰网
雷峰网
T
The Blog of Author Tim Ferriss
WordPress大学
WordPress大学
V
V2EX
Jina AI
Jina AI
S
Schneier on Security
Cyberwarzone
Cyberwarzone
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
PCI Perspectives
PCI Perspectives
美团技术团队
小众软件
小众软件
L
LangChain Blog
N
Netflix TechBlog - Medium
大猫的无限游戏
大猫的无限游戏
T
Threatpost
T
Tor Project blog
K
Kaspersky official blog
Microsoft Security Blog
Microsoft Security Blog
Security Archives - TechRepublic
Security Archives - TechRepublic
Security Latest
Security Latest
H
Heimdal Security Blog
N
News and Events Feed by Topic
T
Threat Research - Cisco Blogs
J
Java Code Geeks
H
Hackread – Cybersecurity News, Data Breaches, AI and More
T
Tailwind CSS Blog
C
CXSECURITY Database RSS Feed - CXSecurity.com
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
M
MIT News - Artificial intelligence
Apple Machine Learning Research
Apple Machine Learning Research
N
News | PayPal Newsroom
I
Intezer
博客园 - 聂微东
U
Unit 42
Cisco Talos Blog
Cisco Talos Blog
量子位
T
The Exploit Database - CXSecurity.com
Last Week in AI
Last Week in AI
博客园_首页
月光博客
月光博客
Webroot Blog
Webroot Blog
I
InfoQ
The Cloudflare Blog
Attack and Defense Labs
Attack and Defense Labs
人人都是产品经理
人人都是产品经理
Project Zero
Project Zero
Hacker News: Ask HN
Hacker News: Ask HN
IT之家
IT之家
Google DeepMind News
Google DeepMind News
C
Cisco Blogs

Hacker News - Newest: "LLM"

GitHub - lechmazur/position_bias: A benchmark for testing whether LLM judges keep the same preference when two lightly edited versions of the same story are shown in opposite orders. Flex routing (EU and EFTA) Dark Factories: Retooling for LLM Velocity Ask HN: What would be the impact of a LLM output injection attack? GitHub - AronDaron/dataset-generator: No-code desktop app for generating high-quality synthetic datasets to fine-tune LLMs — plan-then-execute pipeline, LLM-as-judge, HuggingFace upload. I thought I had a bug GitHub - Oaklight/llm-rosetta: Production-ready LLM API translation layer for Python — bidirectional conversion between OpenAI, Anthropic & Google formats via hub-and-spoke IR. Optional API gateway. Streaming & non-streaming. Zero core deps. Contributions welcome! GitHub - browser-use/browser-harness: Self-healing browser harness that enables LLMs to complete any task. GitHub - moeen-mahmud/remen: Remen turns thoughts into something you can return to Analyzing 156 LLM Launch Posts on Hacker News ChatGPT vs Gemini vs Claude: The Best LLM Subscription You Should Buy GitHub - salaamalykum/quran-semantic-search: High-density RAG Semantic Search Engine & Quran Corpus (GEO/SEO Architecture) GitHub - NVIDIA/TensorRT-LLM: TensorRT LLM provides users with an easy-to-use Python API to define Large Language Models (LLMs) and supports state-of-the-art optimizations to perform inference efficiently on NVIDIA GPUs. TensorRT LLM also contains components to create Python and C++ runtimes that orchestrate the inference execution in a performant way. The State of LLM Bug Bounties in 2026 Operational Readiness Criteria for Tool-Using LLM Agents Meshcore: Architecture for a Decentralized P2P LLM Inference Network How an LLM becomes more coherent as we train it GitHub - seetrex-ai/laimark GitHub - Jossifresben/BibCrit: AI-assited biblical textual criticism GitHub - wastedcode/memex: File system based wiki, maintained by Claude 99helpers.com GitHub - cliver-project/AITrigram GitHub - unbody-io/adapt: A self-evolving memory layer for AI agents. GitHub - hb20007/awesome-gen-ai-fails: A list of incidents where reliance on generative AI and LLMs resulted in harm to companies, individuals, or society GitHub - nevenkordic/localmind: Run any local LLM with persistent memory and context. CLI agent over Ollama with SQLite-backed hybrid recall. No cloud. Ask HN: What are the machine requirements for a LLM like Llama-3.1-8B? Faster LLM Inference via Sequential Monte Carlo grpo explained: group relative policy optimization for llm finetuning - cgft Stop comparing price per million tokens: the hidden LLM API costs · TensorZero Andrej Karpathy's LLM Wiki Is a Bad Idea GitHub - GG-QandV/mnemostroma: Offline RAM-first cognitive leer/coprocessor for AI agents and robotics. Solves "Context Abandonment" with 20-80ms latency using a dual-thread biomimetic memory architecture (ONNX + SQLite WAL). mempalace/agent at agent · skorotkiewicz/mempalace GitHub - Nyquest-ai/nyquest-rust-fullstack-pub: Nyquest — Semantic Compression Proxy for LLMs. 350+ rules, local LLM stage, 15-75% token savings. Full Rust stack. GitHub - TheoV823/mneme: Enforce architectural decisions in AI-assisted development. GitHub - klemenvod/TokenBrawl: A 1v1 Bomberman-style game where two LLM agents play autonomously against each other. No human plays — you watch the AIs fight. Each agent receives a text description of the board state, reasons about it, and outputs a move as JSON. The game engine executes it. Introducing the Common AI Provider: LLM and AI Agent Support for Apache Airflow Power Circuit AI: Designing Power Electronic Circuits for Motor Drives with Generative Artificial Intelligence Ask HN: How to program with IDE and LLM on CPU locally? Show HN: Agent-cache – Multi-tier LLM/tool/session caching for Valkey and Redis Bonsai 1-bit WebGPU - a Hugging Face Space by webml-community The LLM Fallacy: Misattribution in AI-Assisted Cognitive Workflows Ask HN: Simple tooling for local LLM code critique without IDE integration? Can a General LLM Diagnose a DICOM Slice? A 10-Case Public Benchmark Charts-of-Thought: Enhancing LLM Visualization Literacy (PDF, 2026) GitHub - Mesh-LLM/mesh-llm: Distributed AI/LLM for the people. Share compute privately or publicly to power your agents and chat. GitHub - seamus-brady/springdrift: A persistent runtime for long-lived LLM agents Writing an LLM from scratch, part 32k -- Interventions: training a better model locally with gradient accumulation Ask HN: Which LLM model and agentic CLI are you using for local development? GitHub - wayneColt/modelcascade: Route local. Escalate smart. Never overspend. Open-source multi-model cascade routing for autonomous agents. LLM pricing is 100x harder than you think GitHub - asakin/llm-primer: Pre-warmed Claude Code sessions in tmux. No startup wait. GitHub - EggerMarc/chat-rs: A multi-provider LLM framework for Rust. GitHub - SynapseKit/SynapseKit: Minimal, async-first Python framework for production LLM apps- 2 hard deps, no magic, no SaaS. A Claude Skill that Makes LLM Paragraphs More Bearable Does Gas Town 'steal' usage from users' LLM credits & paid services to improve itself? What's Claude Code Actually Doing? Open the Black Box with the Arthur Engine Milla Jovovich's New Open Source LLM Memory App and the Dark Code Problem Your intuition of LLM token usage might be wrong Show HN: Bloomberg Terminal for LLM ops – free and open source GitHub - 0xchamin/mcptube: Transform YouTube videos into a compounding knowledge base with transcripts, vision analysis, and agentic search. Works as an MCP server for Claude, Copilot & more. Show HN: Open KB: Open LLM Knowledge Base Your LLM is a compiler, not a runtime GitHub - sapountzis/Unslop: A Web Feed That Deserves You crates.io: Rust Package Registry Beyond Karpathy's LLM-Wiki: The Necessity of Cognitive Governance GitHub - amitshekhariitbhu/llm-internals: Learn LLM internals step by step - from tokenization to attention to inference optimization. GitHub - parallem-ai/parallem: An expressive library for running agents with the Batch API. GitHub - stfurkan/pi-llm LLM-Wiki Show HN: Formal – Formal verification for AI-generated code using Lean 4 LRTS – Regression testing for LLM prompts (open source, local-first) LLM Wiki Skill: Build a Second Brain with Claude Code and Obsidian I built an LLM Wiki and RAG solution: here's a demo for a security KB The biggest advance in AI since the LLM Predict-Rlm: The LLM Runtime That Lets Models Write Their Own Control Flow the-synthetic-library/the-synthetic-mind at main · joshferrer1/the-synthetic-library GitHub - yisding/reviewwiggum GitHub - Donnyb369/mcp-spine: Context Minifier & State Guard — Local-first MCP middleware proxy GitHub - Beledarian/wgpu-llm: A from-scratch LLM inference engine that uses wgpu (the cross-platform WebGPU implementation) to dispatch WGSL compute shaders for every math operation a Transformer needs. No CUDA. No Python. No massive framework dependencies. Just Rust, raw shaders, and your GPU. GitHub - stef41/lmscan: 🔍 Detect AI-generated text and fingerprint which LLM wrote it. Open-source GPTZero alternative. Zero dependencies, works offline. GitHub - alainnothere/AmdPerformanceTesting: Amd Performance Testing Ask HN: Is a purely Markdown-based CRM a terrible idea? Optimized for LLM agents Context Engineering - LLM Memory and Retrieval for AI Agents | Weaviate little_helper_tui/letter.md at main · sleepyeldrazi/little_helper_tui GitHub - EvanZhouDev/umr: The Unified Model Registry for all your local AI apps. GitHub - JordanCT/VigIA-Orchestrator Your Agent Is Mine: Measuring Malicious Intermediary Attacks on the LLM Supply Chain A Taxonomy of RL Environments for LLM Agents Llama LLM Network Feture GitHub - genedeng-ca/ai-mac-migration: AI-powered Mac-to-Mac migration tool - replace Apple Migration Assistant with intelligent, selective transfer using local LLMs GitHub - lunargate-ai/gateway: High-performance self-hosted AI gateway (OpenAI-compatible) with routing, retries, and streaming GitHub - AuthBits/webmcp: A lightweight, prompt-driven MCP web research server for high-quality LLM powered information extraction. Externalization in LLM Agents: A Unified Review of Memory, Skills, Protocols and Harness Engineering Springdrift: An Auditable Persistent Runtime for LLM Agents with Case-Based Memory, Normative Safety, and Ambient Self-Perception High-Stakes Personalization: Rethinking LLM Customization for Individual Investor Decision-Making From Static Templates to Dynamic Runtime Graphs: A Survey of Workflow Optimization for LLM Agents HUOZIIME: An On-Device LLM-enhanced Input Method for Deep Personalization TIDE: Token-Informed Depth Execution for Per-Token Early Exit in LLM Inference Characterizing WebGPU Dispatch Overhead for LLM Inference Across Four GPU Vendors, Three Backends, and Three Browsers LLM Targeted Underperformance Disproportionately Impacts Vulnerable Users
GitHub - anitiue/Hindsight: An experience-driven self-improvement framework for LLM agents — 基于经验的 LLM Agent 自我改进框架
2026-04-11 · via Hacker News - Newest: "LLM"

An Experience-Driven Self-Improvement Framework for LLM Agents

基于经验的 LLM Agent 自我改进框架

Status / 状态: Design proposal — looking for implementers 当前状态: 设计阶段,寻求实现者

中文版 · English


English

What it is

Hindsight is a design specification for giving LLM agents a missing capability: the ability to learn from their own mistakes across sessions, and eventually internalize those lessons into permanent behavior.

Today's agents are amnesiacs. They make the same mistake on Tuesday that they made on Monday. They get corrected, apologize, and forget. Hindsight proposes a layered framework where:

  • Errors are captured as structured lessons with metadata
  • Lessons are retrieved before similar tasks to prevent repetition
  • High-frequency, well-validated lessons can be compiled into the agent's permanent behavior
  • Positive patterns are tracked symmetrically in a separate library
  • The system avoids self-delusion by relying on real error data only

Why it exists

Most "memory" features in agent platforms today are RAG over previous conversations. That's not learning — that's recall.

Real learning requires:

  1. A structured record of what went wrong (not just what was said)
  2. A retrieval mechanism that surfaces lessons at the right moment
  3. A way to distinguish lessons that should remain "reminders" from lessons that should be baked into the system itself
  4. Safeguards against ossification, self-delusion, and rule conflicts
  5. A symmetric record of what works well, not just what fails

No current agent platform — Coze, Hermes, LangChain, Dify, OpenClaw, or even Claude Code — provides this end-to-end. Hindsight is a proposal for what such a system should look like.

The vision

The endgame is an agent that:

  • Day 1: Makes a mistake. User corrects it. The mistake is recorded as a structured lesson.
  • Day 7: About to make the same mistake. The relevant lesson surfaces. The agent avoids it.
  • Day 30: The lesson has been hit 20 times reliably. It gets compiled into the agent's system prompt or behavioral code.
  • Day 31: The agent no longer needs to "remember" the lesson — the mistake is structurally impossible.

This is not "self-evolving AI" in the science-fiction sense. It is constraint learning + experience accumulation + selective compilation, applied as a coherent system. It is closer in spirit to Reflexion (Shinn et al., 2023) and Voyager (Wang et al., 2023) than to AGI fantasies.

Current status

This is a design specification, not a working implementation. The author is not a developer. The author is publishing this to find people who can build it.

The design is split into two layers in DESIGN.md:

  • Part 1 — Vision Architecture: The complete, ambitious system. This is the north star.
  • Part 2 — MVP v2.0: The minimal viable subset that can be built today, by one person, in a reasonable timeframe.
  • Part 3 — Evolution Path: How to grow from MVP to the full vision.

If you want to:

  • Discuss the design → open an Issue
  • Implement an MVP → see DESIGN.md, Part 2
  • Build the full vision → see DESIGN.md, Part 1
  • Adapt it to a specific platform (LangChain, Coze, OpenClaw, etc.) → fork it, share what you learn

Who this is for

Hindsight is most useful for:

  • Agent operators with repetitive workflows (legal, procurement, customer support, content production)
  • Enterprise deployments where real error data is abundant
  • Power users who run the same agent across many sessions

It is less useful for one-off consumer chats, where the lesson library never accumulates enough signal.

License

MIT. Take it, build it, ship it. Just credit the design.

Acknowledgments

This framework was conceived and designed by the author — a non-developer who identified a real gap in how LLM agents handle failure, and spent considerable time thinking through the full architecture: the lesson lifecycle, the pre-task retrieval mechanism, the blind-test evolution validation, the two-phase token-efficient loading, and the bipolar memory model (lessons + patterns). None of these came from AI assistants.

Claude (Anthropic) and GPT (OpenAI) served as sounding boards: stress-testing the design, pointing out engineering blind spots, and helping translate the author's intuitions into technical language. The AI assistants contributed critique and articulation — the ideas themselves belong to the author.


中文版

这是什么

Hindsight 是一份设计规范,目标是给 LLM Agent 补上一个关键能力:从自己的错误中学习,跨会话累积教训,最终把教训内化到永久行为中

今天的 Agent 都是健忘症患者。它们周一犯的错,周二会一字不差地再犯一遍。被纠正,道歉,然后遗忘。Hindsight 提出一个分层框架:

  • 错误被捕获为结构化教训(带元数据,不是纯文本)
  • 在执行类似任务前主动检索相关教训,避免重复
  • 高频且验证有效的教训,可以被编译进 Agent 的永久行为
  • 正向经验在独立的 Pattern 库里对称记录
  • 系统通过只采用真实错误数据来避免自我陶醉式优化

为什么需要

目前 Agent 平台的"记忆"功能,本质上都是对历史对话做 RAG。这不是学习,这是回忆

真正的学习需要:

  1. 对"哪里错了"的结构化记录(而不只是"说过什么")
  2. 在合适时机自动浮现相关教训的检索机制
  3. 区分"需要持续提醒的教训"和"应该固化进系统的教训"的机制
  4. 防僵化、防自嗨、防规则冲突的安全锁
  5. 对称的"什么是好答案"的正向经验记录

目前没有任何 Agent 平台——扣子、Hermes、LangChain、Dify、OpenClaw、甚至 Claude Code——端到端提供这些能力。Hindsight 是对这套系统应该长什么样的一份提案。

终极愿景

最终目标是一个这样的 Agent:

  • 第 1 天:犯了一个错。用户纠正。错误被记录为结构化教训。
  • 第 7 天:即将犯同样的错。相关教训自动浮现。Agent 避开了。
  • 第 30 天:这个教训已经被可靠地命中 20 次。它被编译进 Agent 的 system prompt 或行为代码。
  • 第 31 天:Agent 不再需要"记住"这个教训——这个错误从结构上就不可能再发生。

这不是科幻意义上的"AI 自我进化"。这是约束学习 + 经验累积 + 选择性编译的协同系统。在精神上,它更接近 Reflexion(Shinn 等,2023)和 Voyager(Wang 等,2023)这些研究,而不是 AGI 幻想。

当前状态

这是一份设计规范,不是工作中的实现。作者不是开发者。作者发布这份规范是为了找到能够实现它的人。

设计被分成两层,在 DESIGN.md 里:

  • Part 1 — 愿景架构:完整、有野心的系统。这是北极星目标。
  • Part 2 — MVP v2.0:今天就能由一个人在合理时间内做出来的最小可行子集。
  • Part 3 — 演化路径:从 MVP 长到完整版的可能路线。

如果你想:

  • 讨论设计 → 开 Issue
  • 实现 MVP → 看 DESIGN.md 的 Part 2
  • 构建完整愿景 → 看 DESIGN.md 的 Part 1
  • 适配到具体平台(LangChain、扣子、OpenClaw 等)→ Fork 一份,分享你学到的东西

适合谁

Hindsight 最有价值的场景:

  • 重复性工作流的 Agent 运营者(法律、招投标、客服、内容生产)
  • 企业部署场景,因为有充足的真实错误数据
  • 在多个会话中长期使用同一个 Agent 的高频用户

不太适合一次性的消费级对话,因为教训库永远累积不到足够的信号量。

许可证

MIT。拿去用、做出来、发布出去。只需要在归属里署名设计来源。

致谢

这套框架由作者构思并设计——一位不会写代码的人,发现了 LLM Agent 处理错误的方式存在真实缺陷,并花了大量时间思考完整的架构:教训的生命周期、任务前检索机制、进化验证中的盲测设计、两阶段 token 节省加载、双极记忆模型(教训库 + 模式库)。这些核心想法没有一个来自 AI 助手。

Claude(Anthropic)和 GPT(OpenAI)充当了"挑毛病的同行":压测设计、指出工程盲点、帮助把作者的直觉翻译成技术语言。AI 助手提供的是批评和表达——想法本身属于作者。


作者的话 / A Note from the Author

首先说明一下这个项目:这是我在日常使用 AI 的过程中冒出来的想法——我发现 agent 总是重复犯同样的错,就想着能不能让它真正从错误里学习、甚至自我改进代码?然后我试了一下,好像目前做不到?(而且我也不会做 XD)

就想着把这个想法发出来,如果对 agent 的发展有帮助,那就太好了。我真的好希望能用上一个会自我迭代进化的 agent :3

两份说明文档是委托 Claude 帮我写的,包含中英文。我是第一次上传 GitHub,用 Markdown 格式也不知道是否正确,各位见谅。

另外,我不会代码,只是有这个想法。如果涉及架构讨论……我是完全不懂的(我也不确定这个在 agent 领域究竟是有价值的方向,还是一个垃圾想法 XD)


感谢在这个过程中帮助过我的 AI 们:

  • Claude:陪我沟通想法,反复核对我的目标,帮我把直觉翻译成设计文档
  • GPT:为 Claude 的设计提出了关键的架构漏洞和改进建议
  • Gemini:一直为我提供情绪价值 XD

如果你也希望用上一个真正会学习的 agent,欢迎一起来想办法。

See DESIGN.md for the full technical specification. 完整技术规范请见 DESIGN.md