Skip to main content

Wisk

Contract-guided agent execution and persistent learning on OKF.

wisk is an experimental agent runtime inspired by Google Research's 2026 work on compiling agent experience into persistent knowledge for skill evolution.

It uses Open Knowledge Format (OKF) to represent live execution state and persistent learning as an auditable typed knowledge graph.

Consumer quickstart

Wisk is intended to be adopted by an existing repository, not reconstructed from a long prompt.

uvx wisk init
wisk start

wisk init creates a managed .wisk/ bundle containing compatible normative contracts, canonical learning roles, and the standard consumer profile. It is a one-time adoption step; ordinary scheduled or interactive work thereafter enters through wisk start.

wisk start needs no task. It resumes compatible live work when present; otherwise it selects the best eligible SessionType and returns the next typed contract action. Optional task, SessionType, and RunSpec constraints remain available:

wisk start "Improve CLI ergonomics"
wisk start --session-type wiki
wisk start --run-spec local-review

Managed runtime files can be refreshed explicitly with:

wisk upgrade

Upgrade checks hashes before writing. If a Wisk-managed file was edited locally, the command reports a conflict and leaves the installation untouched. Consumer-owned files and runtime knowledge are never overwritten by managed upgrade.

See RFC 0006 and RFC 0005.

What Wisk does

Agent repositories face two related problems:

  1. a session can start from a prompt with weak structural guidance about what good execution must establish;
  2. useful lessons from execution are easily lost or mixed into unstructured memory.

Wisk addresses both.

A work session starts from a typed RunSpec, creates an intentionally incomplete LoopRun, and progressively records readings, goals, decisions, evidence, checks, and an outcome. okf-parser validation makes missing contract state visible while the work is still happening.

RunSpec
  → LoopRun scaffold
  → RunReading / RunGoal / RunDecision / RunEvidence / RunCheck
  → RunOutcome
  → Experience

That episodic evidence feeds the canonical three-role learning cycle:

Skill creates/refines a candidate
              ↓
Experience executes real work and records what happened
              ↓
Wiki synthesizes and compares durable evidence
              ↓
Skill revisits the candidate and decides its lifecycle
              └──────────────→ next Experience

The canonical roles are Experience, Wiki, and Skill. SkillEvaluation remains available as an optional explicit benchmark/review artifact when useful.

See RFC 0004.

Standard profile

wisk init installs an opinionated but replaceable standard profile.

  • Experience is ordinary useful work and is the on-demand fallback for wisk start when no higher-priority synthesis or skill evolution is due.
  • Wiki becomes eligible after three new Experiences and has higher priority than ordinary Experience.
  • Skill becomes eligible after six new Experiences. Wiki has higher priority, so synthesis runs before skill evolution when both are due.

The default rhythm is roughly:

Experience × 3 → Wiki
Experience × 3 → Wiki → Skill
repeat

Those thresholds are product defaults, not universal laws. Consumers can specialize SessionTypes, RunSpecs, context policies, and cadence without redefining the core learning roles.

Contract-guided execution

The run artifact is not a report written after the work. It exists before substantive execution begins.

wisk start
→ validate persisted state
→ inspect the next unsatisfied requirement
→ perform the next useful action
→ record typed state and evidence
→ validate again
→ leave a coherent outcome or handoff

Core concepts include RunSpec, LoopRun, RunReading, RunGoal, RunDecision, RunEvidence, RunCheck, RunOutcome, and Handoff.

Consumers specialize RunSpec rather than forcing domain rules into Wisk core. Software development, journalism, legal work, research, and other domains can require different readings, evidence, checks, and result states while sharing the same runtime.

Persistent learning

  • Experience — episodic evidence distilled from real execution.
  • WikiEntry — durable knowledge synthesized across experiences.
  • AgentSkill — reusable procedural guidance; active and experimental versions may coexist.
  • SkillProposal — explicit change record/rationale for procedural evolution.
  • SkillEvaluation — optional explicit benchmark or review record.

Procedural state is reversible while evidence and durable knowledge are cumulative. A weak candidate skill can be rejected without losing the experience that showed why it failed.

CLI

Important entry points include:

wisk init [repository]
wisk start [task] [--session-type ...] [--run-spec ...]
wisk upgrade [repository]
wisk check <run>
wisk context <task>
wisk session next
wisk session start-next <task>   # compatibility alias
wisk run reading|goal|decision|evidence|check|outcome ...
wisk experience preview|record ...
wisk handoff list|create|continue ...
wisk serve

Python API

from wisk import Wisk

Architecture boundary

okf-parser
  ├── Markdown/frontmatter parsing
  ├── concept identity and graph traversal
  ├── Ibis / DuckDB / NetworkX integration
  └── schema compilation and validation

wisk
  ├── RunSpec + live execution semantics
  ├── SessionType + policy/cadence composition
  ├── experience and knowledge consolidation
  ├── skill evolution lifecycle
  ├── consumer bootstrap + upgrade
  └── CLI + FastMCP runtime

Wisk does not duplicate generic parsing or validation machinery from okf-parser.

Development and dogfooding

Wisk develops itself through the same runtime. The repository's own knowledge/ tree is a dogfood consumer with additional development-specific SessionTypes and policies.

The canonical Experience/Wiki/Skill roles are deliberately policy-neutral so other repositories do not inherit Wisk's software-development assumptions.

See docs/architecture.md and docs/dogfooding.md.

Development setup

git clone https://github.com/franklinbaldo/wisk.git
cd wisk
uv sync
uv run wisk info

License

MIT © Franklin Baldo

Metadata

Release files for wisk 0.3.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for wisk 0.3.1
File Size Uploaded Provenance Actions
wisk-0.3.1.tar.gz 202.4 kB With provenance Details for wisk-0.3.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for wisk 0.3.1
File Interpreter ABI Platform Actions
wisk-0.3.1-py3-none-any.whl Python 3 none any Details for wisk-0.3.1-py3-none-any.whl

Total release size: 271.6 kB

Release files / wisk-0.3.1.tar.gz

Download URL wisk-0.3.1.tar.gz
Size 202.4 kB
Tags Source
SHA-256 checksum
How to use checksums
aa6fec36be08c0d72bd0f2c6a52c65cd7988fc75cfa7526a553425a4293c21c8
BLAKE2b-256 checksum
How to use checksums
aca573fe71b2dd6374a99829481022f1cebda1eec8687e1ddb662cc15f873ee7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 8, 2026.

Transparency log

Release files / wisk-0.3.1-py3-none-any.whl

Download URL wisk-0.3.1-py3-none-any.whl
Size 69.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
093205eb9db4401668da70cf99b598f23c37db8e0834edee9588ccf84e4c08b6
BLAKE2b-256 checksum
How to use checksums
5a53347703d4d97532dffb19898d83ed90067f994c75d19a2a3a4f309f13bdd9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 8, 2026.

Transparency log

Security for wisk 0.3.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for wisk-0.3.1.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 8, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page