Skip to main content
wisen logo: a loose line sketching a range of hills

wisen

You've corrected your coding agent on the same thing four times this week. wisen reads your sessions and turns the corrections that keep coming back into fixes to your CLAUDE.md and AGENTS.md, each one yours to approve.

wisen demo: a day's reflection surfaces a correction you made four times, the Gardener proposes one CLAUDE.md change, you approve it, and it becomes a branch you merge

Full walkthrough (a standalone HTML page: download it and open it in a browser)

pipx install wisen && wisen synthesize

Not on PyPI yet: the package lands with the first release. Until then, install from source as in the Quickstart.

CI License: MIT Python 3.11+ Built with pydantic-ai

Claude Code Codex Cursor Gemini CLI opencode Pi


You spend hours a day with coding agents: corrections, rephrases, rejected tool calls, the occasional flow state. Then it all evaporates. wisen reads those sessions where your agents already keep them, writes one reflection for the day, and proposes small fixes to the instruction files your agents read. You approve each fix, and later sessions show whether it helped.

Quickstart

You need Python 3.11+ and one LLM API key. The default model is openai:gpt-5.6-terra, so OPENAI_API_KEY; any pydantic-ai provider works (see Configuration).

git clone https://github.com/Vela3202019/wisen && cd wisen
pip install -e ".[server]"
export OPENAI_API_KEY=sk-...            # or put it in a repo-root .env
wisen synthesize                        # reflect on yesterday (one real LLM call)
wisen serve                             # API on :8000: reflections and chat

Every command and install extra is in docs/commands.md.

Features

  • Eight sources. Claude Code, Codex, Cursor, opencode, Gemini CLI, Pi, generic exports and git commits, read into one session shape.
  • One reflection a day. Moods, friction points, one insight and recommendations. Days with nothing new are skipped.
  • Chat that investigates. Ask "how was my week?" and it searches your reflections, transcripts and configs before answering (docs/chat.md).
  • The Gardener. Proposes small changes to your CLAUDE.md, AGENTS.md and skill files. Each one is a git branch you approve and merge yourself (docs/gardener.md).
  • Voice briefing. Hear the morning reflection out loud (the [voice] extra).
  • Your own server, optional. The dashboard on your phone, push notifications, an approval inbox and a Telegram bot. It never sees a transcript (docs/server.md).
  • Any model, or your subscription. Any pydantic-ai model string; synthesis can also run on a Claude Pro/Max subscription through the Claude Code CLI.
  • No database server. One SQLite file (~/.wisen/wisen.db), created on first use.

Claude Code plugin

wisen ships as a Claude Code plugin, so the loop lives inside the sessions it learns from. Install the CLI first (see Quickstart), then:

claude plugin marketplace add Vela3202019/wisen
claude plugin install wisen@vela

What it adds:

  • At session start, one line of context when the Gardener has proposals waiting or approved branches you have not merged. Nothing when there is nothing to say, and nothing when wisen is not installed.
  • /wisen:proposals: the approval inbox in chat. Shows each proposal's target, rationale and diff; approves or rejects only the one you name.
  • /wisen:reflect: runs or reads a day's reflection and summarises it.
  • /wisen:setup: installs and configures the CLI on a machine that does not have it.

The plugin is the plugin/ directory; the marketplace is .claude-plugin/marketplace.json at the repo root. claude plugin validate . checks both.

How it works

  • Read. Connectors parse each agent's on-disk history into one shape and skip anything missing or malformed.
  • Observe. The Observer reads the day's turns and picks out the charged moments: rejections, rephrase storms, hedges.
  • Reflect. The Synthesizer turns those notes into the day's reflection, stored in SQLite.
  • Use it. The chat agent, the dashboard and the voice briefing read the reflection; the Gardener turns recurring friction into proposals.
  • Measure. Two weeks after you merge a proposal, the eval loop compares before and after, and proposes a revert if things got worse.

The full pipeline, with a diagram and a map of the code, is in docs/how-it-works.md.

A real reflection, abridged:

// 2026-07-20.json
{
  "your_mood":  { "label": "deep-focus",
    "summary": "Determined execution — dispatched 4 bugs, wrote a design doc,
                reviewed 2 PRs, 5 commits across 5 hours with zero hesitation." },
  "agent_mood": { "label": "confident",
    "summary": "Took ownership without hedging — zero 'I think', zero
                clarifications across 3 sessions, incl. a 213-turn debug session." },
  "alignment_score": 0.85,
  "insight": "The 70% rephrase rate on your end didn't indicate friction — it
              was tight-ship compression the agent could follow.",
  "friction_points": [
    { "type": "unclear-prompt",
      "description": "150 rephrases across 213 turns. The agent handled it,
                      but this is a load pattern worth examining." } ],
  "recommendations": [
    { "target": "workflow",
      "action": "If you switch models mid-session again, note why in a
                 one-liner so the pattern becomes analyzable." } ]
}

Privacy

  • Stays on your machine: raw transcripts, git history and agent configs (wisen does not copy them), the SQLite file and your API keys.
  • Goes to the model provider you pick: excerpts of the day's sessions (each turn cut to 400 characters, and a turn can include tool output), up to 20 config files, commit messages, and chat search results. With claude-cli:… synthesis, that provider is Anthropic under your own account. Voice sends your speech to Google's Gemini.
  • Goes to your own server, if you pair one: derived results, which can quote short pieces of your sessions; in stage B also the Observer's notes and the text of the files the Gardener may edit, never raw transcripts or tool output. Everything passes one egress gate that checks a typed schema, masks secrets and caps text length, and wisen egress shows what left today.

The exact limits, every packet type, stage B, Telegram and the full list of network calls are in docs/privacy.md.

Documentation

Project status

A personal project under active development; expect the schema and CLI to move. Plans live in docs/plan/.

Contributing

Dev setup, offline tests and a guide to adding a connector for a new agent are in CONTRIBUTING.md. Connectors are small, so a first contribution is too. Please follow the Code of Conduct, report security problems as SECURITY.md describes, and see CHANGELOG.md for what changed in each release.

License

MIT

Metadata

Release files for wisen 0.2.0

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

Source distribution (sdist)

Source distribution for wisen 0.2.0
File Size Uploaded Provenance Actions
wisen-0.2.0.tar.gz 262.9 kB With provenance Details for wisen-0.2.0.tar.gz

Built distribution (wheel)

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

Total release size: 480.6 kB

Release files / wisen-0.2.0.tar.gz

Download URL wisen-0.2.0.tar.gz
Size 262.9 kB
Tags Source
SHA-256 checksum
How to use checksums
e90383608757b7017e08d87eecf81019de9739dc7052a20fe557e645c64719f0
BLAKE2b-256 checksum
How to use checksums
b4c0d72c27caedfd875109947f0013aed8b2fe382f809f94b0df1583589db2da
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 12, 2026.

Transparency log

Release files / wisen-0.2.0-py3-none-any.whl

Download URL wisen-0.2.0-py3-none-any.whl
Size 217.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
eeefece1d6be54df703f33a6b676d6999aef5c346039e31f71bd529e4758bacb
BLAKE2b-256 checksum
How to use checksums
b438522ce34be321846743b1dcf3499306d407e4145fbd7329253ccab96335db
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 12, 2026.

Transparency log

Security for wisen 0.2.0

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 wisen-0.2.0.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 Nov 12, 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