This release has been yanked by its maintainers, and will be ignored by installers, except when explicitly specified.
Consider using release 0.1.2 instead.
Reason given by maintainers: mising wikiskill.backends
🧠 WikiSkill
Compile agent experience into a persistent wiki — and let skills evolve themselves.
📚 Docs site: ashutoshsinghpr7.github.io/wikiskill · arXiv: 2608.27454
A faithful, production-minded implementation of WikiSkill: Compiling Agent Experience into Persistent Knowledge for Skill Evolution (arXiv:2608.27454, Google Research). The loop is agent-agnostic — Hermes Agent is the reference backend (built natively), Claude Code ships in the box, and Codex/OpenCode are on the roadmap (issue #13). Your agent becomes both the student and the teacher.
What this is
Agents fail. They also learn — but the lessons usually die with the session. WikiSkill fixes that by keeping a persistent knowledge wiki alongside the skill set, and running a closed evolution loop:
- The agent runs training tasks with its current skills → raw execution traces
- A Wiki Maintainer agent distills the traces into pattern pages (root causes, fixes)
- A Skill Proposer agent reads the wiki + traces and proposes one skill change (create or patch)
- Gating: the change is validated on held-out tasks — strictly better than the best score so far → kept; otherwise rolled back. The wiki is never rolled back.
Over iterations, knowledge compounds in the wiki while only proven improvements touch the skills.
┌──────────────────────────────────────────────────────┐
│ EVOLUTION LOOP (Algorithm 1) │
│ │
tasks ─────► │ Inference Agent ──► raw/traces/ (immutable) │
│ │ │
│ ▼ │
│ Wiki Maintainer ──► wiki/patterns/, index, log │
│ │ │
│ ▼ │
│ Skill Proposer ──► proposal (create/patch skill) │
│ │ │
│ ▼ │
│ GATE: val score > R_best? ──yes──► keep, R_best=R │
│ │ no │
│ ▼ │
│ rollback skills; wiki retained forever │
└──────────────────────────────────────────────────────┘
Why Hermes?
This is not a toy simulator. Every component is a real Hermes agent turn:
| WikiSkill (paper) | This repo |
|---|---|
| Inference Agent | hermes chat --oneshot in an isolated HERMES_HOME profile |
| Raw Layer | Full session JSONL transcripts, exported via hermes sessions export |
| Wiki Layer | wiki/ — git-tracked, maintained by a real agent, never rolled back |
| Skill Layer | Real SKILL.md packages (frontmatter + instructions), git-managed |
| Wiki Maintainer | Agent turn with the paper's Appendix E.2 prompt (extracted verbatim) |
| Skill Proposer | Agent turn with the paper's Appendix E.3 ReAct prompt |
| Gating | Strict R_val > R_best; git reset --hard on reject |
Why the isolated profile matters: gating is only meaningful if the agent sees exactly the candidate skill set. Each evolution workspace gets its own HERMES_HOME (bundled skills opted out, empty memory, skills symlinked per stage) — your real profile is never touched.
Quickstart (60 seconds)
pip install -e . # installs the `wikiskill` CLI
wikiskill init demo # workspace + 22-task auto-graded bench (13 train / 9 val)
wikiskill status
wikiskill evolve --iters 3 # full Algorithm 1 loop with your default model
That's it. Each evolution workspace lives at workspaces/<domain>/:
workspaces/demo/
├── raw/traces/iter-01/{train,val}/<task>.jsonl # immutable execution traces
├── wiki/ # persistent knowledge (never rolled back)
│ ├── index.md · log.md · skill-impact.md · patterns/*.md
├── skills/active/ # git-managed evolving skill set (S₀ = ∅)
├── skills/framework/ # maintainer + proposer agent skills
├── bench/tasks/<id>/ # task sandboxes (inputs + grader)
└── runs/ # per-run stdout, proposals, state
CLI
| Command | What it does |
|---|---|
wikiskill init <domain> [--backend claude] |
Create workspace + demo bench (pins the agent backend) |
wikiskill bench --reset |
Regenerate tasks (deterministic, seed=42) |
wikiskill status |
Workspace state: scores, skills, wiki, history |
wikiskill evolve --iters N [--model M] [--provider P] [--max-turns N] [--no-early-stop] |
The full loop (--model/--provider patch the isolated profile's default model, e.g. google/gemini-2.5-flash-lite + openrouter) |
wikiskill run-task <id> |
Single inference rollout (debug) |
wikiskill compare <wsA> <wsB> [--iters N] |
Paired statistical comparison: per-task win/loss/tie + two-sided exact-binomial p-value (answers "did the skill actually help?" — see docs/COMPARING.md) |
Bring your own tasks
Tasks are plain JSON (tasks.json); anything auto-gradable works:
{
"id": "spec-format1-1", "split": "train",
"title": "Format products according to spec",
"prompt": "Read spec.md and products.json...",
"sandbox": {"spec.md": "...", "products.json": "..."},
"grader": {"type": "exact", "file": "output.txt", "expected": "alpha|35|active\n..."}
}
Graders: exact, contains, json_field, code_stdout (runs the produced script). Missing deliverables score 0, never crash.
Live results so far
Honest numbers from real agent runs on the bundled bench:
| Setup | Baseline (S₀) | What happened |
|---|---|---|
| deepseek-v4-flash, 15 turns | 1.0 | Algorithm 1 early-stop — nothing to evolve |
| deepseek-v4-flash, 8 turns | 1.0 | same |
| deepseek-v4-flash, forced | 1.0 | proposer created spec_literal_transform → R_val=1.0, not > R_best → rejected |
| deepseek-v4-flash, forced | 1.0 | maintainer distilled 4 pattern pages (incl. execute_code blocked in sandbox, ripgrep binary misses); proposer created exact-match-sandbox-task → R_val=0.8889 (skill hurt) → rejected |
| gemma-3-4b (free, OpenRouter) | — | invalid run, thrown out — dead agent sessions were phantom-graded against stale sandboxes. The maintainer's pattern page caught the framework's own bug; fixed + regression-tested (see docs/RUNS.md Run 4) |
| gemini-2.5-flash-lite (free, OpenRouter), 8 turns | 0.6667 (real) | small model fails at S₀ → maintainer distilled 5 patterns → proposer created find-secret → R_val=0.4444, the skill hurt (2 regressions) → rejected. Full loop live on a genuinely weak model, ~$0.09/iteration |
| gemini-2.5-flash-lite, 3 iterations (issue #5) | 0.4444 (real) | compounding run: train as low as 0.2308, 6/48 launch failures (detected + honest 0.0s), maintainer distilled 1 pattern, proposer declined (no_action) — nothing to gate, r_best preserved. Honest negative: accumulation needs a stronger model (see docs/RUNS.md Run 6) |
The gating mechanism has caught both a neutral and a harmful proposal live. Full logs in docs/RUNS.md.
Design decisions worth knowing
--indoesn't pin the agent's CWD in single-query runs → every inference prompt embeds an absoluteWORKING DIRECTORYand forbids exploring outside it.- Sessions live in
state.db, not loose files → transcripts are materialized viahermes sessions export --format jsonl. - Rejected proposals are never lost — their full content is embedded in
wiki/skill-impact.mdso future proposers don't repeat them (per Appendix E.3). - The demo bench has traps: subtle-spec tasks and multi-bug debug scripts whose bugs don't compensate (verified at generation time).
How this compares to other community implementations
We audited the three repos that appeared alongside the paper (see docs/RUNS.md). This is the only one that: runs on a real agent stack (Hermes), gates skills through a fully isolated profile, ships verbatim Appendix E prompts, and has a live-verified end-to-end loop (maintainer → proposer → gate → rollback).
Agent backends
The loop runs on any supported agent CLI — the raw/wiki/skill layers are backend-agnostic (issue #13).
| Backend | Pin a workspace | Notes |
|---|---|---|
hermes (default) |
wikiskill init demo --backend hermes |
reference implementation; isolated HERMES_HOME per workspace |
claude |
wikiskill init demo --backend claude |
Claude Code 2.x (claude -p), isolated CLAUDE_CONFIG_DIR, transcripts normalized from the stream-json output; claude auth login required once |
Each workspace pins its backend in workspaces/<domain>/workspace.json; switch
anytime with wikiskill evolve <domain> --backend claude. Skills evolved on
one backend transfer to another via wikiskill transfer (same SKILL.md format).
Roadmap
- Multi-iteration compounding run (the paper's key ablation: wiki accumulation matters)
- Skill transfer across models (paper: skills evolved by one model help another)
- Real-task domains (your recurring workflows as graded task sets)
-
comparecommand for statistical run comparison - Cron-driven overnight evolution (
hermes cron)
License
MIT — see LICENSE. Based on arXiv:2608.27454 (Google Research); all prompts in skills/ are adapted from the paper's Appendix E. Inspired by Karpathy's LLM Wiki.
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file wikiskill-0.1.1.tar.gz.
File metadata
- Download URL: wikiskill-0.1.1.tar.gz
- Upload date:
- Size: 43.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
882d8416948d99d6367765801d058ea792fca7cf2902a9224b33ee0260911f6c
|
|
| MD5 |
4115534290c64be1a6eddf52d0090184
|
|
| BLAKE2b-256 |
517eb8ead6499fb32e42c5c8ed450f75fa344796cf4fdb11d878827a00564dcc
|
Provenance
The following attestation bundles were made for wikiskill-0.1.1.tar.gz:
Publisher:
release.yml on ashutoshsinghpr7/wikiskill
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
wikiskill-0.1.1.tar.gz -
Subject digest:
882d8416948d99d6367765801d058ea792fca7cf2902a9224b33ee0260911f6c - Sigstore transparency entry: 2649126449
- Sigstore integration time:
-
Permalink:
ashutoshsinghpr7/wikiskill@76745fd6efec995ae133603e1e0166c070326321 -
Branch / Tag:
refs/tags/v0.1.1 - Owner: https://github.com/ashutoshsinghpr7
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@76745fd6efec995ae133603e1e0166c070326321 -
Trigger Event:
push
-
Statement type:
File details
Details for the file wikiskill-0.1.1-py3-none-any.whl.
File metadata
- Download URL: wikiskill-0.1.1-py3-none-any.whl
- Upload date:
- Size: 35.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
59382bfa7f5ffd9debd03d32ca44f0b58cb73e3d25b258f084e3bf770c35eba8
|
|
| MD5 |
8ced8bb43abf9391b9b0cce68b5973ed
|
|
| BLAKE2b-256 |
8d47e4cc568aff83ec119fabba2c1fce66c6b31ad565288d5aa3dab652a94f97
|
Provenance
The following attestation bundles were made for wikiskill-0.1.1-py3-none-any.whl:
Publisher:
release.yml on ashutoshsinghpr7/wikiskill
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
wikiskill-0.1.1-py3-none-any.whl -
Subject digest:
59382bfa7f5ffd9debd03d32ca44f0b58cb73e3d25b258f084e3bf770c35eba8 - Sigstore transparency entry: 2649126461
- Sigstore integration time:
-
Permalink:
ashutoshsinghpr7/wikiskill@76745fd6efec995ae133603e1e0166c070326321 -
Branch / Tag:
refs/tags/v0.1.1 - Owner: https://github.com/ashutoshsinghpr7
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@76745fd6efec995ae133603e1e0166c070326321 -
Trigger Event:
push
-
Statement type: