Agent Memory 设计 August 15, 2026 10802 words • 55 min read Agent Memory 是让 Agent 在多次对话甚至多次会话之后,仍然记得用户是谁、偏好什么、之前处理过什么的关键组件。这里的 Memory 就是 Context Engineering 中说到的**应该从当前窗口 ISOLATE 到长期档案的信息**。 在 CoALA 的认知架构分类中,Memory 的类型如下: - **Working memory**:当前... #Agent#Agent Memory
Context Engineering:Agent 上下文的三层防线 August 13, 2026 6589 words • 33 min read 上下文工程的概念可以参考 Anthropic 下面这段话: > Context engineering refers to the set of strategies for curating and maintaining the optimal set of tokens (information) during LLM inference, including all the... #Agent#Agent Framework#Context Engineering
Sqlite 在 Agent 系统中的使用 August 11, 2026 4124 words • 21 min read > 在开发 [nonoka-agent](https://github. com/fyerfyer/Nonoka-agent)、[nonoka-cli](https://github... #Agent#Agent Framework
Agent 会话管理的原理 August 10, 2026 4793 words • 24 min read 在前面的文章中我们提到:nonoka cli 每轮对话 spawn 一个全新进程,进程跑完就自己关掉了。初步接触这个流程的人可能会有下面的疑惑:“进程死了,内存里的执行状态全没了。新进程是从头开始跑入口代码的,它凭什么知道接着上次聊?怎么知道该拿哪个 checkpoint?” 弄清这个问题需要明确下面三个东西: 1. **代码在磁盘上**(Python 源文件,随时可以重新启动); 2... #Agent#Agent Framework
Agent 持久化设计:从 durable execution 到 checkpoint August 10, 2026 4457 words • 23 min read > 本文整理自 [Checkpoints and Rollback](https://aiengineeringfromscratch. path=phases/15-autonomous-systems/16-checkpoints-rollback)、[Long-Running Background Agents: Durable... #Agent#Agent Framework
Multi-Agent 系统设计:原语以及在 nonoka 中的实践 August 9, 2026 2510 words • 13 min read > 本文整理自 [The Multi-Agent Primitive Model](https://aiengineeringfromscratch. path=phases/16-multi-agent-and-swarms/04-primitive-model)。 所有的 Multi Agent 系统都需要解决下面的问题: 1... #Agent#Agent Framework
从零开始的 Nonoka Agent 框架设计 August 8, 2026 3617 words • 19 min read > 这篇文章简单介绍一下前面 nonoka cli 文章中提到的自研 nonoka agent 框架的设计思路,这个框架也是经过了很多次推倒重来才初步完成的,在开发过程中也学到了很多东西,欢迎讨论。 最初想做 nonoka agent 框架是因为四月份看到 babyagi 项目和深入学了下装饰器的使用,想做一个类型安全、事件驱动、使用装饰器配置组装的 Agent... #Agent#Agent Framework
基于 Vercel AI SDK 设计 Agent2OpenCode 协议 August 6, 2026 2281 words • 12 min read > 最近实现了一个使用 Opencode 作为 TUI 前端的 CLI 应用,之后会记录一下这期间的一些设计思路和实现细节。 和 Langchain、LlamaIndex 等框架不同,Vercel AI SDK 是一个**面向前端/UI的框架**,它解决了如何将大模型的输出优雅地在前端/UI中渲染出来的问题。 在 Vercel AI SDK 中,所有的模型... #Agent#Agent CLI
DPO April 10, 2026 634 words • 4 min read DPO 是用来让模型和人类需要的偏好进行对齐的开发方法。在传统的 RLHF 中,我们需要用四个模型:Actor,Reference,Reward 与 Critic,这给显存带来和很大压力。而 DPO 跳过了“训练奖励模型”和“强化学习”这两个阶段,通过一个数学上的等价变换,直接**利用 Chosen(优) 和 Rejected(劣) 数据**对来更新模型。 首先先看最原始的... #LLM#finetune#RLHF
Auth 设计 March 13, 2026 28 words • 1 min read Write your blog post content here. This is a new blog post... #Backend#TypeScript#Auth