Skip to content

armgit / kwant

Public Imported from GitHub
0

Your own team of AI bots in one self-hosted binary: spaces, every account you have, handoffs, approvals and routines. Open-source, self-hosted alternative to Grok Bot, Claude Duet and OpenAI dots. Rust + React.

26.1 KB
Raw Blame
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Lessons: AI agents that learn from their earlier tasks · kwant</title>
<meta name="description" content="In kwant, a bot&#x27;s failed checks, stalled turns, your send-backs and goals that stopped holding become short lessons it sees before similar work. They come from kwant&#x27;s own records, so a bot can&#x27;t write its own.">
<meta name="theme-color" content="#0d0a1f">
<meta name="color-scheme" content="dark">
<link rel="canonical" href="https://kwant.si/docs/lessons">
<meta property="og:type" content="article">
<meta property="og:site_name" content="kwant">
<meta property="og:locale" content="en_US">
<meta property="og:title" content="Lessons: AI agents that learn from their earlier tasks · kwant">
<meta property="og:description" content="In kwant, a bot&#x27;s failed checks, stalled turns, your send-backs and goals that stopped holding become short lessons it sees before similar work. They come from kwant&#x27;s own records, so a bot can&#x27;t write its own.">
<meta property="og:url" content="https://kwant.si/docs/lessons">
<meta property="og:image" content="https://kwant.si/assets/og/docs-lessons.png?v=3c2efd7314">
<meta property="og:image:type" content="image/png">
<meta property="og:image:width" content="1200">
<meta property="og:image:height" content="630">
<meta property="og:image:alt" content="Lessons: Each bot sees what went wrong on its last 30 days of work before it starts the next task.">
<meta property="article:published_time" content="2026-11-03">
<meta property="article:modified_time" content="2026-11-03">
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:site" content="@kwantbot">
<meta name="twitter:title" content="Lessons: AI agents that learn from their earlier tasks · kwant">
<meta name="twitter:description" content="In kwant, a bot&#x27;s failed checks, stalled turns, your send-backs and goals that stopped holding become short lessons it sees before similar work. They come from kwant&#x27;s own records, so a bot can&#x27;t write its own.">
<meta name="twitter:image" content="https://kwant.si/assets/og/docs-lessons.png?v=3c2efd7314">
<meta name="twitter:image:alt" content="Lessons: Each bot sees what went wrong on its last 30 days of work before it starts the next task.">
<link rel="icon" href="../favicon.svg?v=0abbeedab4" type="image/svg+xml">
<link rel="icon" href="../favicon-32.png?v=ac1a1e97c4" sizes="32x32" type="image/png">
<link rel="apple-touch-icon" href="../apple-touch-icon.png?v=1bc2442f39">
<link rel="preload" href="../assets/fonts/pixelify-sans.woff2?v=4840ba0cdf" as="font" type="font/woff2" crossorigin>
<link rel="preload" href="../assets/fonts/inter-var.woff2?v=977e43492e" as="font" type="font/woff2" crossorigin>
<link rel="preload" href="../assets/fonts/jetbrains-mono.woff2?v=8247becaf0" as="font" type="font/woff2" crossorigin>
<link rel="stylesheet" href="../assets/css/site.css?v=9c69cd7fc5">
</head>
<body class="page-docs">
<a class="skip" href="#main">Skip to content</a>
<header class="topbar">
  <nav class="pill px" aria-label="Main">
    <a class="brand" href="../" aria-label="kwant home"><svg viewBox="0 0 16 17" width="38" height="38" shape-rendering="crispEdges" aria-hidden="true"><rect x="10" y="4" width="1" height="1" fill="#1d1147"/><rect x="10" y="1" width="2" height="2" fill="#ddd5ff"/><rect x="4" y="5" width="8" height="1" fill="#fff"/><rect x="3" y="6" width="10" height="1" fill="#fff"/><rect x="2" y="7" width="12" height="7" fill="#fff"/><rect x="3" y="14" width="10" height="1" fill="#fff"/><rect x="4" y="15" width="8" height="1" fill="#ddd5ff"/><rect x="13" y="7" width="1" height="7" fill="#ddd5ff"/><rect x="5" y="8" width="2" height="3" fill="#1d1147"/><rect x="9" y="8" width="2" height="3" fill="#1d1147"/><rect x="3" y="11" width="2" height="1" fill="#b8a9fb"/><rect x="11" y="11" width="2" height="1" fill="#b8a9fb"/><rect x="6" y="12" width="1" height="1" fill="#1d1147"/><rect x="9" y="12" width="1" height="1" fill="#1d1147"/><rect x="7" y="13" width="2" height="1" fill="#1d1147"/><rect x="4" y="16" width="2" height="1" fill="#ddd5ff"/><rect x="10" y="16" width="2" height="1" fill="#ddd5ff"/></svg><span>kwant</span></a>
    <a class="nl" href="/features">Features</a>
    <a class="nl" href="/docs/quickstart" aria-current="page">Docs</a>
    <a class="nl" href="/blog/">Blog</a>
    <a class="nl stars" href="https://github.com/alexsergivan/kwant" rel="noopener" aria-label="kwant on GitHub, 683 stars"><svg viewBox="0 0 16 16" width="17" height="17" fill="currentColor" aria-hidden="true"><path d="M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82.64-.18 1.32-.27 2-.27.68 0 1.36.09 2 .27 1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38A8.013 8.013 0 0016 8c0-4.42-3.58-8-8-8z"/></svg><b>★ 683</b></a>
    <a class="btn btn-solid btn-get px" href="/docs/quickstart">Get started</a>
  </nav>
</header>
<main id="main">
<div class="wrap docs">
  <nav class="docs-nav" aria-label="Docs">
    <h2>Docs</h2>
    <div class="docs-group"><h3>Get started</h3><ul><li><a href="/docs/quickstart">Quickstart</a></li><li><a href="/docs/install">Install &amp; run</a></li><li><a href="/docs/phone">On your phone</a></li></ul></div>
    <div class="docs-group"><h3>Using kwant</h3><ul><li><a href="/docs/spaces">Spaces</a></li><li><a href="/docs/bots-and-teams">Bots &amp; teams</a></li><li><a href="/docs/accounts">Accounts &amp; profiles</a></li><li><a href="/docs/models">Models &amp; routing</a></li><li><a href="/docs/approvals">Approvals &amp; passwords</a></li><li><a href="/docs/agents-in-vm">Run Claude in the VM</a></li><li><a href="/docs/flight-school">Flight School</a></li><li><a href="/docs/smart-results">Smart Results</a></li><li><a href="/docs/dev-mode">Dev mode</a></li></ul></div>
    <div class="docs-group"><h3>Works on its own</h3><ul><li><a href="/docs/mission-board">Mission board</a></li><li><a href="/docs/goals">Goals</a></li><li><a href="/docs/idea-jar">Idea jar</a></li><li><a href="/docs/routines">Routines &amp; bot actions</a></li><li><a href="/docs/memory-skills">Memory, skills &amp; search</a></li><li><a href="/docs/lessons" aria-current="page">Lessons</a></li><li><a href="/docs/truth-ledger">Truth Ledger</a></li><li><a href="/docs/loose-ends">Loose ends &amp; letters</a></li><li><a href="/docs/parallel-universe">Parallel Universe</a></li></ul></div>
    <div class="docs-group"><h3>Connect</h3><ul><li><a href="/docs/mcp">MCP tools</a></li><li><a href="/docs/home-assistant">Home Assistant</a></li><li><a href="/docs/agents-connect">Coding agents</a></li><li><a href="/docs/telegram">Telegram</a></li><li><a href="/docs/browser">Browser</a></li><li><a href="/docs/browser-proxy">Browser proxy</a></li></ul></div>
  </nav>
  <article class="prose">
    <details class="crumb-mobile">
      <summary class="px">Lessons <span>Docs menu</span></summary>
      <nav aria-label="Docs (menu)">
    <div class="docs-group"><p class="docs-h">Get started</p><ul><li><a href="/docs/quickstart">Quickstart</a></li><li><a href="/docs/install">Install &amp; run</a></li><li><a href="/docs/phone">On your phone</a></li></ul></div>
    <div class="docs-group"><p class="docs-h">Using kwant</p><ul><li><a href="/docs/spaces">Spaces</a></li><li><a href="/docs/bots-and-teams">Bots &amp; teams</a></li><li><a href="/docs/accounts">Accounts &amp; profiles</a></li><li><a href="/docs/models">Models &amp; routing</a></li><li><a href="/docs/approvals">Approvals &amp; passwords</a></li><li><a href="/docs/agents-in-vm">Run Claude in the VM</a></li><li><a href="/docs/flight-school">Flight School</a></li><li><a href="/docs/smart-results">Smart Results</a></li><li><a href="/docs/dev-mode">Dev mode</a></li></ul></div>
    <div class="docs-group"><p class="docs-h">Works on its own</p><ul><li><a href="/docs/mission-board">Mission board</a></li><li><a href="/docs/goals">Goals</a></li><li><a href="/docs/idea-jar">Idea jar</a></li><li><a href="/docs/routines">Routines &amp; bot actions</a></li><li><a href="/docs/memory-skills">Memory, skills &amp; search</a></li><li><a href="/docs/lessons" aria-current="page">Lessons</a></li><li><a href="/docs/truth-ledger">Truth Ledger</a></li><li><a href="/docs/loose-ends">Loose ends &amp; letters</a></li><li><a href="/docs/parallel-universe">Parallel Universe</a></li></ul></div>
    <div class="docs-group"><p class="docs-h">Connect</p><ul><li><a href="/docs/mcp">MCP tools</a></li><li><a href="/docs/home-assistant">Home Assistant</a></li><li><a href="/docs/agents-connect">Coding agents</a></li><li><a href="/docs/telegram">Telegram</a></li><li><a href="/docs/browser">Browser</a></li><li><a href="/docs/browser-proxy">Browser proxy</a></li></ul></div>
      </nav>
    </details>
<p class="kicker">Docs</p>
<h1>Lessons: bots learn from their earlier tasks</h1>
<p class="intro">Send a task back once with "the summary lists PRs that were reverted", and the bot sees that line before its next task. Lessons are new in 0.6.8 and on by default. There is nothing to set up: kwant builds them from what already happened to each bot's work in the last 30 days.</p>

<h2 id="what">What becomes a lesson</h2>
<div class="table-wrap"><table>
  <thead><tr><th>What happened</th><th>The lesson says</th></tr></thead>
  <tbody>
    <tr><td>You sent a task back, or blocked it, with a reason</td><td>Your reason, in your words, and how the task ended</td></tr>
    <tr><td>A check failed after the bot handed the task in</td><td>Which kind of check failed, its command or file when that is safe to show, and the start of its output</td></tr>
    <tr><td>A turn stalled, ran out of time or ended on a denied action</td><td>That it ended without a hand-in, and how the task ended</td></tr>
    <tr><td>A <a href="/docs/goals">goal</a> made from the bot's finished task stopped holding</td><td>That the goal is not met, until it holds again</td></tr>
  </tbody>
</table></div>
<p>A usage limit, a sign-in problem, a budget stop or a network hiccup is not the bot's doing and never becomes a lesson. The same check or alike reasons are one lesson with <strong>×N</strong> for how many tasks it happened on; AutoFix's retries of one task count once.</p>

<h2 id="where">Where a bot sees them</h2>
<ul>
  <li><strong>In a task brief.</strong> Up to 8 short lines, most repeated first, under "Lessons from earlier tasks".</li>
  <li><strong>In chats, routines and hand-offs.</strong> A shorter list of up to 5.</li>
  <li><strong>A check before hand-in.</strong> A task with an approved check asks its bot to run the checks itself and fix what fails before moving it to review. The task's activity says "It ran its checks before hand-in" when it did.</li>
</ul>
<p>To see what a bot carries, open its <strong>Memory</strong> tab: <strong>Lessons from earlier work</strong> lists the same lines, with <strong>View task</strong> when the <a href="/docs/mission-board">Mission board</a> is on. The list updates on its own; there is nothing to edit or approve.</p>

<h2 id="safe">Why a bot can't game it</h2>
<ul>
  <li><strong>From kwant's records, not the bot's.</strong> Lessons come from failed checks, task states and your send-backs. A bot can't add, edit or remove one.</li>
  <li><strong>Fixed sentences.</strong> Each line is a template filled from known fields. Your words and check output are cut to one short line, and dropped if they hold a link, a file path, a backtick or a word like approve, payment, token or password.</li>
  <li><strong>Only for that bot.</strong> A bot sees its own lessons in its own space, never another bot's.</li>
</ul>

<h2 id="measure">Does it help?</h2>
<p>1 task in 5 starts without lessons, so their effect can be compared with the tasks that had them. The task's activity says "It started with N lessons from earlier work" when it had them.</p>
<div class="note"><strong>Turn it off</strong> in Settings with <strong>Learn from earlier work</strong>. Off means no lessons anywhere and nothing logged; turning it back on uses the same 30 days of history.</div>

    <nav class="pager" aria-label="Docs pages"><a class="prev px" href="/docs/memory-skills"><small>Previous</small>Memory, skills &amp; search</a><a class="next px" href="/docs/truth-ledger"><small>Next</small>Truth Ledger</a></nav>
  </article>
</div>
</main>
<footer class="site-footer">
  <div class="ground" aria-hidden="true"><div class="crew"><svg class="char-svg" viewBox="5 1 16 20" shape-rendering="crispEdges" aria-hidden="true"><rect x="7" y="20" width="12" height="1" fill="#261d4a"/><rect x="12" y="2" width="2" height="1" fill="#ffe066"/><rect x="11" y="3" width="4" height="2" fill="#ffe066"/><rect x="12" y="3" width="1" height="1" fill="#ffffff"/><rect x="12" y="5" width="2" height="1" fill="#8a8aa8"/><rect x="12" y="6" width="2" height="1" fill="#1b1033"/><rect x="9" y="7" width="8" height="1" fill="#9be564"/><rect x="8" y="8" width="10" height="1" fill="#9be564"/><rect x="7" y="9" width="12" height="7" fill="#9be564"/><rect x="8" y="16" width="10" height="1" fill="#9be564"/><rect x="9" y="17" width="8" height="1" fill="#5e9e33"/><rect x="18" y="9" width="1" height="7" fill="#5e9e33"/><rect x="17" y="16" width="1" height="1" fill="#5e9e33"/><rect x="7" y="15" width="1" height="1" fill="#5e9e33"/><rect x="8" y="16" width="1" height="1" fill="#5e9e33"/><rect x="10" y="8" width="2" height="1" fill="#e2ffc7"/><rect x="9" y="9" width="1" height="1" fill="#e2ffc7"/><rect x="10" y="10" width="2" height="3" fill="#1b1033"/><rect x="14" y="10" width="2" height="3" fill="#1b1033"/><rect x="10" y="10" width="1" height="1" fill="#f5f2ff"/><rect x="14" y="10" width="1" height="1" fill="#f5f2ff"/><rect x="8" y="13" width="2" height="1" fill="#ff6b81"/><rect x="16" y="13" width="2" height="1" fill="#ff6b81"/><rect x="11" y="14" width="1" height="1" fill="#1b1033"/><rect x="14" y="14" width="1" height="1" fill="#1b1033"/><rect x="12" y="15" width="2" height="1" fill="#1b1033"/><rect x="9" y="18" width="2" height="1" fill="#1b1033"/><rect x="15" y="18" width="2" height="1" fill="#1b1033"/></svg><svg class="char-svg" viewBox="5 1 16 20" shape-rendering="crispEdges" aria-hidden="true"><rect x="7" y="20" width="12" height="1" fill="#261d4a"/><rect x="9" y="5" width="8" height="2" fill="#6d4fd6"/><rect x="8" y="6" width="1" height="1" fill="#6d4fd6"/><rect x="13" y="4" width="1" height="1" fill="#6d4fd6"/><rect x="10" y="5" width="2" height="1" fill="#9a7cff"/><rect x="9" y="7" width="8" height="1" fill="#ff8a7a"/><rect x="8" y="8" width="10" height="1" fill="#ff8a7a"/><rect x="7" y="9" width="12" height="7" fill="#ff8a7a"/><rect x="8" y="16" width="10" height="1" fill="#ff8a7a"/><rect x="9" y="17" width="8" height="1" fill="#cf5446"/><rect x="18" y="9" width="1" height="7" fill="#cf5446"/><rect x="17" y="16" width="1" height="1" fill="#cf5446"/><rect x="7" y="15" width="1" height="1" fill="#cf5446"/><rect x="8" y="16" width="1" height="1" fill="#cf5446"/><rect x="10" y="8" width="2" height="1" fill="#ffd6cf"/><rect x="9" y="9" width="1" height="1" fill="#ffd6cf"/><rect x="10" y="10" width="2" height="3" fill="#1b1033"/><rect x="14" y="10" width="2" height="3" fill="#1b1033"/><rect x="10" y="10" width="1" height="1" fill="#f5f2ff"/><rect x="14" y="10" width="1" height="1" fill="#f5f2ff"/><rect x="8" y="13" width="2" height="1" fill="#ff6b81"/><rect x="16" y="13" width="2" height="1" fill="#ff6b81"/><rect x="11" y="14" width="1" height="1" fill="#1b1033"/><rect x="14" y="14" width="1" height="1" fill="#1b1033"/><rect x="12" y="15" width="2" height="1" fill="#1b1033"/><rect x="9" y="18" width="2" height="1" fill="#1b1033"/><rect x="15" y="18" width="2" height="1" fill="#1b1033"/></svg><svg class="char-svg" viewBox="5 1 16 20" shape-rendering="crispEdges" aria-hidden="true"><rect x="7" y="20" width="12" height="1" fill="#261d4a"/><rect x="15" y="6" width="1" height="1" fill="#1b1033"/><rect x="15" y="3" width="2" height="2" fill="#5ce1ff"/><rect x="15" y="3" width="1" height="1" fill="#ffffff"/><rect x="9" y="7" width="8" height="1" fill="#fdc934"/><rect x="8" y="8" width="10" height="1" fill="#fdc934"/><rect x="7" y="9" width="12" height="7" fill="#fdc934"/><rect x="8" y="16" width="10" height="1" fill="#fdc934"/><rect x="9" y="17" width="8" height="1" fill="#d98a1f"/><rect x="18" y="9" width="1" height="7" fill="#d98a1f"/><rect x="17" y="16" width="1" height="1" fill="#d98a1f"/><rect x="7" y="15" width="1" height="1" fill="#d98a1f"/><rect x="8" y="16" width="1" height="1" fill="#d98a1f"/><rect x="10" y="8" width="2" height="1" fill="#fff0a0"/><rect x="9" y="9" width="1" height="1" fill="#fff0a0"/><rect x="10" y="10" width="2" height="3" fill="#1b1033"/><rect x="14" y="10" width="2" height="3" fill="#1b1033"/><rect x="10" y="10" width="1" height="1" fill="#f5f2ff"/><rect x="14" y="10" width="1" height="1" fill="#f5f2ff"/><rect x="8" y="13" width="2" height="1" fill="#ff6b81"/><rect x="16" y="13" width="2" height="1" fill="#ff6b81"/><rect x="11" y="14" width="1" height="1" fill="#1b1033"/><rect x="14" y="14" width="1" height="1" fill="#1b1033"/><rect x="12" y="15" width="2" height="1" fill="#1b1033"/><rect x="9" y="18" width="2" height="1" fill="#1b1033"/><rect x="15" y="18" width="2" height="1" fill="#1b1033"/></svg><svg class="char-svg" viewBox="5 1 16 20" shape-rendering="crispEdges" aria-hidden="true"><rect x="7" y="20" width="12" height="1" fill="#261d4a"/><rect x="9" y="5" width="8" height="1" fill="#ff6b81"/><rect x="8" y="6" width="1" height="3" fill="#ff6b81"/><rect x="17" y="6" width="1" height="3" fill="#ff6b81"/><rect x="6" y="10" width="2" height="3" fill="#ff6b81"/><rect x="18" y="10" width="2" height="3" fill="#ff6b81"/><rect x="9" y="7" width="8" height="1" fill="#5ce1ff"/><rect x="8" y="8" width="10" height="1" fill="#5ce1ff"/><rect x="7" y="9" width="12" height="7" fill="#5ce1ff"/><rect x="8" y="16" width="10" height="1" fill="#5ce1ff"/><rect x="9" y="17" width="8" height="1" fill="#2a92c9"/><rect x="18" y="9" width="1" height="7" fill="#2a92c9"/><rect x="17" y="16" width="1" height="1" fill="#2a92c9"/><rect x="7" y="15" width="1" height="1" fill="#2a92c9"/><rect x="8" y="16" width="1" height="1" fill="#2a92c9"/><rect x="10" y="8" width="2" height="1" fill="#d2f7ff"/><rect x="9" y="9" width="1" height="1" fill="#d2f7ff"/><rect x="10" y="10" width="2" height="3" fill="#1b1033"/><rect x="14" y="10" width="2" height="3" fill="#1b1033"/><rect x="10" y="10" width="1" height="1" fill="#f5f2ff"/><rect x="14" y="10" width="1" height="1" fill="#f5f2ff"/><rect x="8" y="13" width="2" height="1" fill="#ff6b81"/><rect x="16" y="13" width="2" height="1" fill="#ff6b81"/><rect x="11" y="14" width="1" height="1" fill="#1b1033"/><rect x="14" y="14" width="1" height="1" fill="#1b1033"/><rect x="12" y="15" width="2" height="1" fill="#1b1033"/><rect x="9" y="18" width="2" height="1" fill="#1b1033"/><rect x="15" y="18" width="2" height="1" fill="#1b1033"/></svg><svg class="char-svg" viewBox="5 1 16 20" shape-rendering="crispEdges" aria-hidden="true"><rect x="7" y="20" width="12" height="1" fill="#261d4a"/><rect x="9" y="7" width="8" height="1" fill="#ff6b6b"/><rect x="8" y="8" width="10" height="1" fill="#ff6b6b"/><rect x="7" y="9" width="12" height="7" fill="#ff6b6b"/><rect x="8" y="16" width="10" height="1" fill="#ff6b6b"/><rect x="9" y="17" width="8" height="1" fill="#c43c4c"/><rect x="18" y="9" width="1" height="7" fill="#c43c4c"/><rect x="17" y="16" width="1" height="1" fill="#c43c4c"/><rect x="7" y="15" width="1" height="1" fill="#c43c4c"/><rect x="8" y="16" width="1" height="1" fill="#c43c4c"/><rect x="10" y="8" width="2" height="1" fill="#ffc9c9"/><rect x="9" y="9" width="1" height="1" fill="#ffc9c9"/><rect x="10" y="10" width="2" height="3" fill="#1b1033"/><rect x="14" y="10" width="2" height="3" fill="#1b1033"/><rect x="10" y="10" width="1" height="1" fill="#f5f2ff"/><rect x="14" y="10" width="1" height="1" fill="#f5f2ff"/><rect x="8" y="13" width="2" height="1" fill="#ff6b81"/><rect x="16" y="13" width="2" height="1" fill="#ff6b81"/><rect x="11" y="14" width="1" height="1" fill="#1b1033"/><rect x="14" y="14" width="1" height="1" fill="#1b1033"/><rect x="12" y="15" width="2" height="1" fill="#1b1033"/><rect x="9" y="18" width="2" height="1" fill="#1b1033"/><rect x="15" y="18" width="2" height="1" fill="#1b1033"/><rect x="7" y="8" width="12" height="1" fill="#1b1033"/><rect x="9" y="7" width="3" height="2" fill="#5ce1ff"/><rect x="14" y="7" width="3" height="2" fill="#5ce1ff"/><rect x="9" y="7" width="1" height="1" fill="#ffffff"/><rect x="14" y="7" width="1" height="1" fill="#ffffff"/></svg></div></div>
  <div class="wrap">
    <div class="foot-grid">
    <div class="foot-brand">
      <a class="brand" href="../" aria-label="kwant home"><svg viewBox="0 0 16 17" width="38" height="38" shape-rendering="crispEdges" aria-hidden="true"><rect x="10" y="4" width="1" height="1" fill="#1d1147"/><rect x="10" y="1" width="2" height="2" fill="#ddd5ff"/><rect x="4" y="5" width="8" height="1" fill="#fff"/><rect x="3" y="6" width="10" height="1" fill="#fff"/><rect x="2" y="7" width="12" height="7" fill="#fff"/><rect x="3" y="14" width="10" height="1" fill="#fff"/><rect x="4" y="15" width="8" height="1" fill="#ddd5ff"/><rect x="13" y="7" width="1" height="7" fill="#ddd5ff"/><rect x="5" y="8" width="2" height="3" fill="#1d1147"/><rect x="9" y="8" width="2" height="3" fill="#1d1147"/><rect x="3" y="11" width="2" height="1" fill="#b8a9fb"/><rect x="11" y="11" width="2" height="1" fill="#b8a9fb"/><rect x="6" y="12" width="1" height="1" fill="#1d1147"/><rect x="9" y="12" width="1" height="1" fill="#1d1147"/><rect x="7" y="13" width="2" height="1" fill="#1d1147"/><rect x="4" y="16" width="2" height="1" fill="#ddd5ff"/><rect x="10" y="16" width="2" height="1" fill="#ddd5ff"/></svg><span>kwant</span></a>
      <p>A self-hosted team of AI bots in one binary. Free and open source under AGPL-3.0.</p>
      <p class="foot-star">kwant runs on coffee and GitHub stars. <a href="https://github.com/alexsergivan/kwant" rel="noopener">Toss one our way <svg class="pi" viewBox="0 0 9 8" shape-rendering="crispEdges" fill="currentColor" aria-hidden="true"><rect x="4" y="0" width="1" height="1"/><rect x="3" y="1" width="3" height="1"/><rect x="0" y="2" width="9" height="1"/><rect x="1" y="3" width="7" height="1"/><rect x="2" y="4" width="5" height="1"/><rect x="2" y="5" width="2" height="1"/><rect x="5" y="5" width="2" height="1"/><rect x="1" y="6" width="2" height="1"/><rect x="6" y="6" width="2" height="1"/></svg></a></p>
    </div>
    <nav aria-label="Product">
      <h2>Product</h2>
      <a href="/features">Features</a>
      <a href="/docs/quickstart">Quickstart</a>
      <a href="/docs/install">Install &amp; run</a>
      <a href="/docs/phone">On your phone</a>
      <a href="/self-hosted-ai-agents">Self-hosted AI agents</a>
      <a href="/blog/">Blog</a>
      <a href="/docs/mcp">MCP tools</a>
    </nav>
    <nav aria-label="Using kwant">
      <h2>Using kwant</h2>
      <a href="/docs/spaces">Spaces</a>
      <a href="/docs/accounts">Accounts</a>
      <a href="/docs/approvals">Approvals</a>
      <a href="/docs/routines">Routines</a>
    </nav>
    <nav aria-label="Project">
      <h2>Project</h2>
      <a href="https://github.com/alexsergivan/kwant" rel="noopener">GitHub</a>
      <a href="https://github.com/alexsergivan/kwant/issues" rel="noopener">Issues</a>
      <a href="https://github.com/alexsergivan/kwant/blob/main/SECURITY.md" rel="noopener">Security</a>
      <a href="/contact">Contact</a>
      <a href="https://x.com/kwantbot" rel="noopener">X (@kwantbot)</a>
    </nav>
    <nav aria-label="Legal">
      <h2>Legal</h2>
      <a href="/privacy">Privacy</a>
      <a href="/terms">Terms of use</a>
      <a href="/terms#license">License</a>
    </nav>
    </div>
    <div class="foot-base">
      <p class="foot-legal">kwant is not affiliated with or endorsed by Anthropic, OpenAI, xAI, Google or Apple. Their names and products are trademarks of their owners.</p>
      <p class="foot-notice"><strong>kwant has no token.</strong> Official X account is <a href="https://x.com/kwantbot" rel="noopener">@kwantbot</a>.</p>
      <p class="foot-made">Made in Germany with <svg class="pi" viewBox="0 0 7 6" shape-rendering="crispEdges" fill="currentColor" role="img" aria-label="love"><rect x="1" y="0" width="2" height="1"/><rect x="4" y="0" width="2" height="1"/><rect x="0" y="1" width="7" height="1"/><rect x="0" y="2" width="7" height="1"/><rect x="1" y="3" width="5" height="1"/><rect x="2" y="4" width="3" height="1"/><rect x="3" y="5" width="1" height="1"/></svg></p>
    </div>
  </div>
</footer>
<script src="../assets/js/site.js?v=02a491b838" defer></script>
<script src="../assets/js/pixel.js?v=0a1a3bf1e2" defer></script>
<script type="application/ld+json">{"@context":"https://schema.org","@graph":[{"@type":"TechArticle","@id":"https://kwant.si/docs/lessons#article","headline":"Lessons: AI agents that learn from their earlier tasks","description":"In kwant, a bot's failed checks, stalled turns, your send-backs and goals that stopped holding become short lessons it sees before similar work. They come from kwant's own records, so a bot can't write its own.","url":"https://kwant.si/docs/lessons","mainEntityOfPage":"https://kwant.si/docs/lessons","image":"https://kwant.si/assets/og/docs-lessons.png?v=3c2efd7314","inLanguage":"en","datePublished":"2026-11-03","dateModified":"2026-11-03","author":{"@id":"https://kwant.si/#org"},"publisher":{"@id":"https://kwant.si/#org"},"about":{"@id":"https://kwant.si/#app"},"isPartOf":{"@id":"https://kwant.si/#website"}},{"@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"kwant","item":"https://kwant.si/"},{"@type":"ListItem","position":2,"name":"Docs","item":"https://kwant.si/docs/quickstart"},{"@type":"ListItem","position":3,"name":"Lessons","item":"https://kwant.si/docs/lessons"}]},{"@type":"Organization","@id":"https://kwant.si/#org","name":"kwant","alternateName":"kwnt","url":"https://kwant.si/","logo":"https://kwant.si/apple-touch-icon.png","sameAs":["https://github.com/alexsergivan/kwant"]}]}</script>
<script type="application/json" id="cf-beacon">{"token": "7f6ed395033a43eea3885ad0943890c2"}</script>
</body>
</html>