Memory & RAG
~8 min readUpdated: December 2026

NoteTaker Experiential Knowledge RL: Self-Updating Agent Notebooks Guide

NoteTaker Experiential Knowledge RL Agent Memory in Smoke Monkey

NoteTaker (arXiv:2612.06319) trains a persistent markdown notebook model via SFT initialization and short-stream RL with causal credit assignment, raising frozen Qwen3.5-9B held-out success across 40-task streams in AppWorld, ALFWorld, and MiniGrid from 33.6% to 53.8%—beating manual memory harnesses and much larger frontier notebook models.

Technical Review: Smoke Monkey Core Architecture Team
Tested on Node.js 18+ & BunTypeScript 5.x
Quick Answer & Executive Definition

NoteTaker Experiential Knowledge RL: Self-Updating Agent Notebooks Guide: NoteTaker (arXiv:2612.06319) trains a persistent markdown notebook model via SFT initialization and short-stream RL with causal credit assignment, raising frozen Qwen3.5-9B held-out success across 40-task streams in AppWorld, ALFWorld, and MiniGrid from 33.6% to 53.8%—beating manual memory harnesses and much larger frontier notebook models. Designed as a zero-dependency, open-source TypeScript architecture under the MIT License with native Model Context Protocol (MCP) support and deterministic phase state machines.

Key Architectural Takeaways
Quick Implementation Examplenotetaker-memory-agent.ts
notetaker-memory-agent.tstypescript
import { createAgent } from '@smoke-monkey/harness';
import fs from 'node:fs/promises';
// Minimal persistent notebook harness paired with a trained NoteTaker memory updater
const NOTEBOOK_PATH = './agent-notebook.md';
const taskAgent = createAgent({
agentId: 'stream-task-executor',
provider: 'openai-compatible',
baseUrl: 'http://127.0.0.1:8000/v1',
model: 'Qwen/Qwen3.5-9B-Instruct',
workspacePath: process.cwd(),
permissions: { read_file: 'allow', write_file: 'allow', run_command: 'ask' },
});
const notebookUpdater = createAgent({
agentId: 'notetaker-rl-updater',
provider: 'openai-compatible',
baseUrl: 'http://127.0.0.1:8001/v1',
model: 'notetaker-qwen3.5-9b-rl',
workspacePath: process.cwd(),
permissions: { read_file: 'allow', write_file: 'allow', run_command: 'deny' },
});
async function runStreamTask(taskPrompt: string) {
const notebook = await fs.readFile(NOTEBOOK_PATH, 'utf8').catch(() => '');
const execution = await taskAgent.run(`Notebook:\n${notebook}\n\nTask: ${taskPrompt}`);
await notebookUpdater.run(
`Previous notebook:\n${notebook}\nTrajectory summary:\n${execution.summary}\nRewrite ${NOTEBOOK_PATH} retaining only reusable procedures and environment invariants.`
);
return execution;
}
runStreamTask('Fetch unpaid invoices via AppWorld CLI and export reconciled CSV').catch(console.error);
Video Guides

Watch: Related Video Guides

How AI Agent Memory Works: MemGPT & Memory Types | Stanford CS329Z Lecture 7 with Michael Ryan

AI Agent Memory Explained: Context, State & Long-Term Memory

What Is NoteTaker and Why Do Prompted Memory Harnesses Plateau?

NoteTaker (Chen et al., arXiv:2612.06319) tackles experiential knowledge accumulation: converting completed agent trajectories into a persistent free-form text notebook that improves future task success. Existing harnesses like Agent Working Memory (AWM), ReasoningBank, and Agentic Context Engineering (ACE) rely on fixed extraction prompts. When paired with small open-weight models (4B–9B), those harnesses memorize brittle episode details—such as exact file IDs or one-off variable names—instead of abstracting generalizable API contracts and failure workarounds.

NoteTaker removes complex extraction rules and trains the notebook model directly using two stages: (1) SFT warm-start on trajectories distilled from Kimi-K2.6, followed by (2) short-stream group-relative RL where each rewrite at step i receives causal credit only from downstream task rewards r_{i+1..K}. Evaluated on 40-task held-out streams with frozen task solvers:

Memory Harness / Notebook ModelSolver ModelAppWorld Test-NAppWorld Test-CALFWorld TestMiniGrid TestHeld-Out Avg
No MemoryQwen3.5-4B0.0%0.0%40.7%19.1%19.9%
AWM / ReasoningBank / ACEQwen3.5-4B0.0%0.0%42.6%–47.5%15.6%–20.3%21.0%–22.0%
Minimal + NoteTaker (4B)Qwen3.5-4B22.5%11.5%82.4%40.9%46.8%
AWM / ReasoningBank / ACEQwen3.5-9B0.5%–2.2%0.0%–0.8%62.8%–68.8%27.0%–42.2%32.1%–36.5%
Minimal + SFT Only (9B)Qwen3.5-9B19.5%2.2%79.4%36.1%42.1%
Minimal + NoteTaker (9B SFT+RL)Qwen3.5-9B34.0%25.8%87.6%44.0%53.8%

Short-Stream Causal Credit Assignment Without Full-40-Task Rollout Costs

Rolling out 40-task streams end-to-end inside RL training is prohibitively slow. NoteTaker resolves this by sampling short task segments starting from an empty notebook, sharing the exact task order across rollouts in a group, and computing position-matched causal advantages so notebook edits only receive gradient signal from subsequent tasks they can actually influence.

Notice in Table 3 of the paper that even starting from an empty notebook on 50-stream AppWorld Test-N, NoteTaker (9B) reaches 36.7% versus 25.3% for ACE seeded with a hand-written manual:

bash
# 1. Initialize clean persistent workspace notebook before starting a stream
printf "# Agent Experiential Notebook\n\n## Verified Rules\n" > agent-notebook.md

# 2. Validate local NoteTaker vLLM serving endpoints (task solver + notebook updater)
curl -fsS http://127.0.0.1:8000/v1/models && curl -fsS http://127.0.0.1:8001/v1/models

Causal Delayed Payoff Matters

Single-task outcome rewards fail because abstracting a clean API invariant or environment constraint often pays off two or three tasks later, not on the trajectory where it was first discovered.

Persistent Cross-Session Memory in Smoke Monkey Harness and Canvas

Smoke Monkey Canvas already maintains persistent per-agent memory markdown files and supports cascading organizational knowledge across zone hierarchies. Adopting NoteTaker's causal curation pattern—separating task execution from post-trajectory notebook compaction—prevents agent memory files from filling up with stale file paths and transient stack traces.

In Smoke Monkey Harness, run a dedicated post-task memory consolidation step with run_command: 'deny' so the notebook updater strictly curates reusable architectural conventions and test invariants.

Google Search Questions & Answers

Frequently Asked Questions

Q:Why does NoteTaker outperform AWM, ReasoningBank, and ACE on 4B–9B models?

Static memory harnesses depend on the notebook model knowing how to abstract reusable knowledge. Without training, 4B–9B models record task-specific clutter; NoteTaker trains the update policy directly with SFT plus downstream causal RL.

Q:Does NoteTaker modify the task-solving agent weights?

No. NoteTaker keeps the task-solving model frozen and trains only the notebook-updating model, which also transfers across unseen solver models and longer evaluation streams.

Q:How big are the AppWorld gains with NoteTaker?

On Qwen3.5-9B in AppWorld 40-task held-out streams, Test-Normal jumps from 0.8%–3.2% (baseline harnesses) to 34.0%, and Test-Challenge jumps from 0.0%–0.8% to 25.8%.

Q:How can I apply NoteTaker patterns inside Smoke Monkey?

Pair a frozen coding worker in Smoke Monkey Harness with a dedicated read-only memory curator agent that rewrites your project memory file after verified task completions.

Related Alternatives & Comparisons

Related Architecture Guides

View all guides

Build with Smoke Monkey Harness

Zero dependencies. 24 built-in tools. Human-in-the-loop safety. 100% open source under the MIT License.

npm install smoke-monkey-harness