Google WikiSkill: Compiling Agent Experience into Persistent Knowledge
This post discusses the paper "WikiSkill: Compiling Agent Experience into Persistent Knowledge for Skill Evolution" by Liyan Tang, Cyrus Rashtchian, Chun-Sung Ferng, Andrew Tomkins, Da-Cheng Juan, and Tu Vu (Google Research / Google DeepMind / Virginia Tech, arXiv:2608.27454).
The Problem: Cognitive Amnesia in Autonomous Agents
The author frames today's self-evolving agents (e.g., Reflexion, Voyager) as an explorer in a maze whose scratch notes grow into a self-contradictory mess:
- Prompt bloat: distilling trial-and-error history directly into prompt rules makes system prompts balloon, with rules that conflict.
- Fragile experience: when a fine-tuning round fails on the validation set, developers roll back the entire context — erasing valuable failure lessons along with it.
- When a Skill Proposer generates a new skill S_{N+1} that fails validation (e.g., accuracy drops from 85% to 60%), the Skill Layer instantly reverts to the stable S_N.
- Meanwhile, the Wiki Layer permanently records a post-mortem of the failure.
- No full fine-tuning treadmill: agents iterate daily via wiki compilation rather than costly weight retraining.
- Human–agent knowledge symbiosis: the wiki layer is human-readable Markdown with hyperlinks, so experts can audit, correct, or hand-write entries.
- Knowledge compounding: every wall an agent hits becomes a permanent knowledge asset — a "time's arrow" for machine intelligence.
- *WikiSkill: Compiling Agent Experience into Persistent Knowledge for Skill Evolution* — arXiv:2608.27454
WikiSkill's answer: don't dump experience into prompts. Instead, run a cognitive compiler that turns raw traces into a persistent wiki, and the wiki into lightweight executable skills.
The Three-Layer Workspace
1. Raw Layer — an immutable, append-only flight recorder: every tool call, API error (403 Forbidden, connection timeouts), and chain-of-thought fragment. Purely read-only, enabling full auditability.
2. Wiki Layer — a structured, encyclopedia-style knowledge base with indexed entries: *Pattern* pages (root causes of specific errors), *Strategy* pages (task decomposition playbooks), and environment rules. It grows monotonically: knowledge, once written, is never deleted due to a failed fine-tune.
3. Skill Layer — an ultra-compact set of action rules (e.g., a handful of golden rules and checklists) injected into the reasoning context, kept at minimal token cost.
Asymmetric Gating and Rollback
The framework's signature design: rollback is asymmetric.
Next time the Skill Proposer drafts a skill, it reads the failure archive first — so the same mistake is not repeated. The post compares this to human civilization: books preserve the lessons of failed policies even after the policies themselves are repealed.
Counterintuitive Finding: Don't Let the Agent Read the Wiki Directly
A control experiment found that agents given the full wiki via RAG during reasoning performed significantly worse than agents given only the compiled compact skills — thousands of tokens of facts caused overthinking and attention dilution, while a few hundred tokens of golden rules yielded decisive execution.
> Declarative knowledge is for background compilation and reflection; procedural knowledge is the reflex for acting in the field.
Reported Benchmark Results
Evaluated on OSWorld, WebArena, SWE-bench, and AgentBench/ToolQA (figures as reported in the post):
| Dimension | Zero-shot baseline | Reflexion/Voyager-style | WikiSkill | | --- | :---: | :---: | :---: | | Task success improvement | baseline (0%) | +12% ~ +18% | +35% ~ +52% | | Rule conflicts / overfitting | none | high, grows with rounds | near zero (gated) | | Context token usage | very low | exponential bloat | constant, very low | | Small models vs. large models | can't compete | still behind | surpasses large baselines |
The post claims that small models (e.g., Gemini Flash-class, Qwen-7B/14B) evolved via WikiSkill outperform much larger uncompiled base models on long-horizon tasks.