<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>llm=glm-4.7 on tomrochette.com</title>
    <link>https://tomrochette.com/tags/llm=glm-4.7/</link>
    <description>Recent content in llm=glm-4.7 on tomrochette.com</description>
    <generator>Hugo -- gohugo.io</generator>
    <language>en</language>
    <managingEditor>tom@tomrochette.com (Tom Rochette)</managingEditor>
    <webMaster>tom@tomrochette.com (Tom Rochette)</webMaster>
    <copyright>© 2026 Tom Rochette</copyright>
    <lastBuildDate>Fri, 02 Oct 2026 19:42:41 -0400</lastBuildDate><atom:link href="https://tomrochette.com/tags/llm=glm-4.7/index.xml" rel="self" type="application/rss+xml" />
    
    <item>
      <title>Ouroboros: An Autonomous Self-Improving AI Agent</title>
      <link>https://tomrochette.com/agi/ouroboros-an-autonomous-self-improving-ai-agent/</link>
      <pubDate>Fri, 02 Jan 2026 00:00:00 +0000</pubDate>
      <author>tom@tomrochette.com (Tom Rochette)</author>
      <guid>https://tomrochette.com/agi/ouroboros-an-autonomous-self-improving-ai-agent/</guid>
      <category>artificial-general-intelligence</category><category>ouroboros</category><category>open-source</category><category>fully-ai-generated</category><category>llm=glm-4.7</category><category>llm=glm-5.3</category><category>llm=deepseek-v4.1-flash</category>
      <description>&#xA;&lt;h2 class=&#34;relative group&#34;&gt;What is Ouroboros?&#xA;    &lt;div id=&#34;what-is-ouroboros&#34; class=&#34;anchor&#34;&gt;&lt;/div&gt;&#xA;    &#xA;    &lt;span&#xA;        class=&#34;absolute top-0 w-6 transition-opacity opacity-0 -start-6 not-prose group-hover:opacity-100 select-none&#34;&gt;&#xA;        &lt;a class=&#34;text-primary-300 dark:text-neutral-700 !no-underline&#34; href=&#34;#what-is-ouroboros&#34; aria-label=&#34;Anchor&#34;&gt;#&lt;/a&gt;&#xA;    &lt;/span&gt;&#xA;    &#xA;&lt;/h2&gt;&#xA;&lt;p&gt;&lt;strong&gt;&lt;a href=&#34;https://github.com/TomzxCode/ouroboros&#34;  target=&#34;_blank&#34; rel=&#34;noreferrer&#34;&gt;&lt;img class=&#34;external-link-favicon&#34; src=&#34;https://www.google.com/s2/favicons?domain=github.com&amp;sz=128&#34; alt=&#34;&#34; width=&#34;16&#34; height=&#34;16&#34; loading=&#34;lazy&#34;&gt;Ouroboros&lt;/a&gt; is an autonomous AI agent that works on the tasks you give it and continuously improves itself.&lt;/strong&gt;&#xA;It is named after the ancient symbol of a serpent eating its own tail (representing infinity and cyclic renewal), and it implements a continuous loop of Do → Learn → Improve → Retry.&lt;/p&gt;&#xA;&lt;p&gt;Unlike traditional AI assistants that wait for commands and forget context between sessions, Ouroboros:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Runs indefinitely without human intervention&lt;/li&gt;&#xA;&lt;li&gt;Maintains persistent memory of everything it has done&lt;/li&gt;&#xA;&lt;li&gt;Reflects on its performance regularly&lt;/li&gt;&#xA;&lt;li&gt;Modifies its own code to improve over time&lt;/li&gt;&#xA;&lt;li&gt;Can incorporate human feedback when provided&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;Previously I wrote about &lt;a href=&#34;https://tomrochette.com/agi/globallm-automated-open-source-contribution-at-scale/&#34; &gt;GlobaLLM&lt;/a&gt;, an AI agent that autonomously contributes to open source projects.&#xA;While GlobaLLM&amp;rsquo;s primary objective is project and task prioritization at scale, Ouroboros focuses on task implementation and self-improvement.&#xA;&lt;strong&gt;Ouroboros is thus one component of GlobaLLM&amp;rsquo;s solution.&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;h2 class=&#34;relative group&#34;&gt;How It Works&#xA;    &lt;div id=&#34;how-it-works&#34; class=&#34;anchor&#34;&gt;&lt;/div&gt;&#xA;    &#xA;    &lt;span&#xA;        class=&#34;absolute top-0 w-6 transition-opacity opacity-0 -start-6 not-prose group-hover:opacity-100 select-none&#34;&gt;&#xA;        &lt;a class=&#34;text-primary-300 dark:text-neutral-700 !no-underline&#34; href=&#34;#how-it-works&#34; aria-label=&#34;Anchor&#34;&gt;#&lt;/a&gt;&#xA;    &lt;/span&gt;&#xA;    &#xA;&lt;/h2&gt;&#xA;&#xA;&lt;h3 class=&#34;relative group&#34;&gt;The Core Loop&#xA;    &lt;div id=&#34;the-core-loop&#34; class=&#34;anchor&#34;&gt;&lt;/div&gt;&#xA;    &#xA;    &lt;span&#xA;        class=&#34;absolute top-0 w-6 transition-opacity opacity-0 -start-6 not-prose group-hover:opacity-100 select-none&#34;&gt;&#xA;        &lt;a class=&#34;text-primary-300 dark:text-neutral-700 !no-underline&#34; href=&#34;#the-core-loop&#34; aria-label=&#34;Anchor&#34;&gt;#&lt;/a&gt;&#xA;    &lt;/span&gt;&#xA;    &#xA;&lt;/h3&gt;&#xA;&lt;p&gt;Ouroboros follows a structured nine-step cycle that repeats continuously:&lt;/p&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&lt;strong&gt;Read goals&lt;/strong&gt;: fetches tasks from &lt;code&gt;agent/goals/active.md&lt;/code&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;Select goal&lt;/strong&gt;: picks one to work on, or defaults to self-improvement&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;Plan&lt;/strong&gt;: uses an LLM to create a step-by-step plan&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;Execute&lt;/strong&gt;: carries out the plan using available tools&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;Journal&lt;/strong&gt;: writes results to a daily log&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;Reflect&lt;/strong&gt;: analyzes what happened and identifies improvements, both task-related and self-related&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;Self-modify&lt;/strong&gt;: edits its own source code if improvements are found&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;Journal again&lt;/strong&gt;: records reflection and modification results&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;Repeat&lt;/strong&gt;: starts the cycle again&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;p&gt;&lt;strong&gt;The separation between execution and self-modification is crucial.&lt;/strong&gt;&#xA;The agent will not modify its code while working on a task; reflections and improvements happen only during dedicated reflection cycles.&lt;/p&gt;&#xA;&#xA;&lt;h3 class=&#34;relative group&#34;&gt;Architecture&#xA;    &lt;div id=&#34;architecture&#34; class=&#34;anchor&#34;&gt;&lt;/div&gt;&#xA;    &#xA;    &lt;span&#xA;        class=&#34;absolute top-0 w-6 transition-opacity opacity-0 -start-6 not-prose group-hover:opacity-100 select-none&#34;&gt;&#xA;        &lt;a class=&#34;text-primary-300 dark:text-neutral-700 !no-underline&#34; href=&#34;#architecture&#34; aria-label=&#34;Anchor&#34;&gt;#&lt;/a&gt;&#xA;    &lt;/span&gt;&#xA;    &#xA;&lt;/h3&gt;&#xA;&lt;div class=&#34;highlight-wrapper&#34;&gt;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-text&#34; data-lang=&#34;text&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;┌─────────────────────────────────────────────────────────┐&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;│                      Agent Core                         │&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;│  (coordinates the loop, handles signals, manages state) │&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;└─────────────────────────────────────────────────────────┘&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;         │                    │                    │&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;         ▼                    ▼                    ▼&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;┌──────────────┐    ┌──────────────┐    ┌──────────────┐&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;│   Memory     │    │  LLM Layer   │    │   Tools      │&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;│              │    │              │    │              │&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;│ • Working    │    │ • Anthropic  │    │ • run_cmd    │&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;│ • Journal    │───▶│   Claude     │───▶│ • read_file  │&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;│ • Goals      │    │ • Token      │    │ • write_file │&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;│ • Feedback   │    │   tracking   │    │ • search_*   │&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;└──────────────┘    └──────────────┘    └──────────────┘&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&#xA;&#xA;&lt;h3 class=&#34;relative group&#34;&gt;Memory System&#xA;    &lt;div id=&#34;memory-system&#34; class=&#34;anchor&#34;&gt;&lt;/div&gt;&#xA;    &#xA;    &lt;span&#xA;        class=&#34;absolute top-0 w-6 transition-opacity opacity-0 -start-6 not-prose group-hover:opacity-100 select-none&#34;&gt;&#xA;        &lt;a class=&#34;text-primary-300 dark:text-neutral-700 !no-underline&#34; href=&#34;#memory-system&#34; aria-label=&#34;Anchor&#34;&gt;#&lt;/a&gt;&#xA;    &lt;/span&gt;&#xA;    &#xA;&lt;/h3&gt;&#xA;&lt;p&gt;Ouroboros uses a three-tiered memory architecture:&lt;/p&gt;&#xA;&lt;table&gt;&#xA;&#x9;&lt;thead&gt;&#xA;&#x9;&#x9;&#x9;&lt;tr&gt;&#xA;&#x9;&#x9;&#x9;&#x9;&#x9;&lt;th&gt;Tier&lt;/th&gt;&#xA;&#x9;&#x9;&#x9;&#x9;&#x9;&lt;th&gt;Description&lt;/th&gt;&#xA;&#x9;&#x9;&#x9;&#x9;&#x9;&lt;th&gt;Location&lt;/th&gt;&#xA;&#x9;&#x9;&#x9;&lt;/tr&gt;&#xA;&#x9;&lt;/thead&gt;&#xA;&#x9;&lt;tbody&gt;&#xA;&#x9;&#x9;&#x9;&lt;tr&gt;&#xA;&#x9;&#x9;&#x9;&#x9;&#x9;&lt;td&gt;&lt;strong&gt;Working memory&lt;/strong&gt;&lt;/td&gt;&#xA;&#x9;&#x9;&#x9;&#x9;&#x9;&lt;td&gt;Current goals, immediate context&lt;/td&gt;&#xA;&#x9;&#x9;&#x9;&#x9;&#x9;&lt;td&gt;In-process&lt;/td&gt;&#xA;&#x9;&#x9;&#x9;&lt;/tr&gt;&#xA;&#x9;&#x9;&#x9;&lt;tr&gt;&#xA;&#x9;&#x9;&#x9;&#x9;&#x9;&lt;td&gt;&lt;strong&gt;Short-term&lt;/strong&gt;&lt;/td&gt;&#xA;&#x9;&#x9;&#x9;&#x9;&#x9;&lt;td&gt;Daily journals (notes, reflections, feedback)&lt;/td&gt;&#xA;&#x9;&#x9;&#x9;&#x9;&#x9;&lt;td&gt;&lt;code&gt;agent/journal/YYYY/MM/DD/&lt;/code&gt;&lt;/td&gt;&#xA;&#x9;&#x9;&#x9;&lt;/tr&gt;&#xA;&#x9;&#x9;&#x9;&lt;tr&gt;&#xA;&#x9;&#x9;&#x9;&#x9;&#x9;&lt;td&gt;&lt;strong&gt;Long-term&lt;/strong&gt;&lt;/td&gt;&#xA;&#x9;&#x9;&#x9;&#x9;&#x9;&lt;td&gt;Git history with descriptive commits&lt;/td&gt;&#xA;&#x9;&#x9;&#x9;&#x9;&#x9;&lt;td&gt;Git repository&lt;/td&gt;&#xA;&#x9;&#x9;&#x9;&lt;/tr&gt;&#xA;&#x9;&lt;/tbody&gt;&#xA;&lt;/table&gt;&#xA;&lt;p&gt;Everything is logged in human-readable markdown, which makes it easy to inspect what the agent has been up to.&lt;/p&gt;&#xA;&#xA;&lt;h3 class=&#34;relative group&#34;&gt;Tool Registry&#xA;    &lt;div id=&#34;tool-registry&#34; class=&#34;anchor&#34;&gt;&lt;/div&gt;&#xA;    &#xA;    &lt;span&#xA;        class=&#34;absolute top-0 w-6 transition-opacity opacity-0 -start-6 not-prose group-hover:opacity-100 select-none&#34;&gt;&#xA;        &lt;a class=&#34;text-primary-300 dark:text-neutral-700 !no-underline&#34; href=&#34;#tool-registry&#34; aria-label=&#34;Anchor&#34;&gt;#&lt;/a&gt;&#xA;    &lt;/span&gt;&#xA;    &#xA;&lt;/h3&gt;&#xA;&lt;p&gt;The agent comes with built-in tools for common operations:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;code&gt;run_command&lt;/code&gt;: execute shell commands&lt;/li&gt;&#xA;&lt;li&gt;&lt;code&gt;read_file&lt;/code&gt;: read file contents&lt;/li&gt;&#xA;&lt;li&gt;&lt;code&gt;write_file&lt;/code&gt;: write to files&lt;/li&gt;&#xA;&lt;li&gt;&lt;code&gt;search_files&lt;/code&gt;: find files by pattern&lt;/li&gt;&#xA;&lt;li&gt;&lt;code&gt;search_content&lt;/code&gt;: search within files&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;&lt;strong&gt;Crucially, Ouroboros can create, register, and use new tools that it writes itself.&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;p&gt;Tools are implemented as CLI commands of the &lt;code&gt;ouroboros&lt;/code&gt; CLI, which the agent can invoke during execution.&lt;/p&gt;&#xA;&#xA;&lt;h2 class=&#34;relative group&#34;&gt;Design Principles&#xA;    &lt;div id=&#34;design-principles&#34; class=&#34;anchor&#34;&gt;&lt;/div&gt;&#xA;    &#xA;    &lt;span&#xA;        class=&#34;absolute top-0 w-6 transition-opacity opacity-0 -start-6 not-prose group-hover:opacity-100 select-none&#34;&gt;&#xA;        &lt;a class=&#34;text-primary-300 dark:text-neutral-700 !no-underline&#34; href=&#34;#design-principles&#34; aria-label=&#34;Anchor&#34;&gt;#&lt;/a&gt;&#xA;    &lt;/span&gt;&#xA;    &#xA;&lt;/h2&gt;&#xA;&#xA;&lt;h3 class=&#34;relative group&#34;&gt;Safety Through Structure&#xA;    &lt;div id=&#34;safety-through-structure&#34; class=&#34;anchor&#34;&gt;&lt;/div&gt;&#xA;    &#xA;    &lt;span&#xA;        class=&#34;absolute top-0 w-6 transition-opacity opacity-0 -start-6 not-prose group-hover:opacity-100 select-none&#34;&gt;&#xA;        &lt;a class=&#34;text-primary-300 dark:text-neutral-700 !no-underline&#34; href=&#34;#safety-through-structure&#34; aria-label=&#34;Anchor&#34;&gt;#&lt;/a&gt;&#xA;    &lt;/span&gt;&#xA;    &#xA;&lt;/h3&gt;&#xA;&lt;p&gt;&lt;strong&gt;The execution/reflection separation prevents runaway self-modification.&lt;/strong&gt;&#xA;The agent can change code only during a dedicated reflection phase, and all changes are committed to git with descriptive messages that explain the reasoning behind each change.&lt;/p&gt;&#xA;&#xA;&lt;h3 class=&#34;relative group&#34;&gt;Transparency&#xA;    &lt;div id=&#34;transparency&#34; class=&#34;anchor&#34;&gt;&lt;/div&gt;&#xA;    &#xA;    &lt;span&#xA;        class=&#34;absolute top-0 w-6 transition-opacity opacity-0 -start-6 not-prose group-hover:opacity-100 select-none&#34;&gt;&#xA;        &lt;a class=&#34;text-primary-300 dark:text-neutral-700 !no-underline&#34; href=&#34;#transparency&#34; aria-label=&#34;Anchor&#34;&gt;#&lt;/a&gt;&#xA;    &lt;/span&gt;&#xA;    &#xA;&lt;/h3&gt;&#xA;&lt;p&gt;&lt;strong&gt;Every action is logged.&lt;/strong&gt;&#xA;Want to know what the agent did?&#xA;Check the daily journal:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;code&gt;agent/journal/YYYY/MM/DD/notes.md&lt;/code&gt;: what it did&lt;/li&gt;&#xA;&lt;li&gt;&lt;code&gt;agent/journal/YYYY/MM/DD/reflections.md&lt;/code&gt;: what it learned&lt;/li&gt;&#xA;&lt;li&gt;&lt;code&gt;agent/journal/YYYY/MM/DD/user-feedback.md&lt;/code&gt;: human input received&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;h3 class=&#34;relative group&#34;&gt;Autonomy with Optional Guidance&#xA;    &lt;div id=&#34;autonomy-with-optional-guidance&#34; class=&#34;anchor&#34;&gt;&lt;/div&gt;&#xA;    &#xA;    &lt;span&#xA;        class=&#34;absolute top-0 w-6 transition-opacity opacity-0 -start-6 not-prose group-hover:opacity-100 select-none&#34;&gt;&#xA;        &lt;a class=&#34;text-primary-300 dark:text-neutral-700 !no-underline&#34; href=&#34;#autonomy-with-optional-guidance&#34; aria-label=&#34;Anchor&#34;&gt;#&lt;/a&gt;&#xA;    &lt;/span&gt;&#xA;    &#xA;&lt;/h3&gt;&#xA;&lt;p&gt;Ouroboros needs no human intervention, but it welcomes it.&#xA;It incorporates feedback, adjusts course based on user suggestions, and explains its reasoning when asked.&lt;/p&gt;&#xA;&#xA;&lt;h2 class=&#34;relative group&#34;&gt;What Makes It Interesting&#xA;    &lt;div id=&#34;what-makes-it-interesting&#34; class=&#34;anchor&#34;&gt;&lt;/div&gt;&#xA;    &#xA;    &lt;span&#xA;        class=&#34;absolute top-0 w-6 transition-opacity opacity-0 -start-6 not-prose group-hover:opacity-100 select-none&#34;&gt;&#xA;        &lt;a class=&#34;text-primary-300 dark:text-neutral-700 !no-underline&#34; href=&#34;#what-makes-it-interesting&#34; aria-label=&#34;Anchor&#34;&gt;#&lt;/a&gt;&#xA;    &lt;/span&gt;&#xA;    &#xA;&lt;/h2&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&lt;strong&gt;Self-improvement&lt;/strong&gt;: the agent can and does modify its own implementation based on reflection&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;Persistent memory&lt;/strong&gt;: git commits serve as a permanent, queryable history of everything tried&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;Graceful degradation&lt;/strong&gt;: failed modifications can be reverted; the agent learns and tries again&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;Tool extensibility&lt;/strong&gt;: new tools can be created dynamically as needs arise&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;Idle improvement&lt;/strong&gt;: when no goals are active, it works on making itself better&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&#xA;&lt;h2 class=&#34;relative group&#34;&gt;The Vision&#xA;    &lt;div id=&#34;the-vision&#34; class=&#34;anchor&#34;&gt;&lt;/div&gt;&#xA;    &#xA;    &lt;span&#xA;        class=&#34;absolute top-0 w-6 transition-opacity opacity-0 -start-6 not-prose group-hover:opacity-100 select-none&#34;&gt;&#xA;        &lt;a class=&#34;text-primary-300 dark:text-neutral-700 !no-underline&#34; href=&#34;#the-vision&#34; aria-label=&#34;Anchor&#34;&gt;#&lt;/a&gt;&#xA;    &lt;/span&gt;&#xA;    &#xA;&lt;/h2&gt;&#xA;&lt;p&gt;Ouroboros represents an experiment in autonomous AI agents.&#xA;&lt;strong&gt;Can an agent improve itself over time without human intervention, or with only limited intervention?&lt;/strong&gt;&#xA;By maintaining a detailed journal, reflecting on its actions, and having the freedom to modify its own code, Ouroboros aims to answer this question.&lt;/p&gt;&#xA;&lt;p&gt;The name is fitting: the serpent eating its tail represents the continuous cycle of doing, learning, and improving that drives the agent forward.&#xA;Each reflection builds on the last; each modification makes the agent slightly more capable.&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&#34;https://github.com/TomzxCode/ouroboros&#34;  target=&#34;_blank&#34; rel=&#34;noreferrer&#34;&gt;&lt;img class=&#34;external-link-favicon&#34; src=&#34;https://www.google.com/s2/favicons?domain=github.com&amp;sz=128&#34; alt=&#34;&#34; width=&#34;16&#34; height=&#34;16&#34; loading=&#34;lazy&#34;&gt;Ouroboros&lt;/a&gt; is open source.&#xA;Check out the repository to see the code, contribute, or run your own self-improving agent.&lt;/p&gt;&#xA;</description>
      
    </item>
    
    <item>
      <title>GlobaLLM: Automated Open Source Contribution at Scale</title>
      <link>https://tomrochette.com/agi/globallm-automated-open-source-contribution-at-scale/</link>
      <pubDate>Sat, 27 Dec 2025 00:00:00 +0000</pubDate>
      <author>tom@tomrochette.com (Tom Rochette)</author>
      <guid>https://tomrochette.com/agi/globallm-automated-open-source-contribution-at-scale/</guid>
      <category>artificial-general-intelligence</category><category>globallm</category><category>open-source</category><category>fully-ai-generated</category><category>llm=glm-4.7</category>
      <description>&#xA;&lt;h1 class=&#34;relative group&#34;&gt;Introduction&#xA;    &lt;div id=&#34;introduction&#34; class=&#34;anchor&#34;&gt;&lt;/div&gt;&#xA;    &#xA;    &lt;span&#xA;        class=&#34;absolute top-0 w-6 transition-opacity opacity-0 -start-6 not-prose group-hover:opacity-100 select-none&#34;&gt;&#xA;        &lt;a class=&#34;text-primary-300 dark:text-neutral-700 !no-underline&#34; href=&#34;#introduction&#34; aria-label=&#34;Anchor&#34;&gt;#&lt;/a&gt;&#xA;    &lt;/span&gt;&#xA;    &#xA;&lt;/h1&gt;&#xA;&lt;p&gt;Consider the following dilemma: you have unlimited access to state-of-the-art LLMs, but finite compute resources.&lt;/p&gt;&#xA;&lt;p&gt;How do you maximize positive impact on the software ecosystem?&lt;/p&gt;&#xA;&lt;p&gt;&lt;a href=&#34;https://github.com/TomzxCode/globallm&#34;  target=&#34;_blank&#34; rel=&#34;noreferrer&#34;&gt;&lt;img class=&#34;external-link-favicon&#34; src=&#34;https://www.google.com/s2/favicons?domain=github.com&amp;sz=128&#34; alt=&#34;&#34; width=&#34;16&#34; height=&#34;16&#34; loading=&#34;lazy&#34;&gt;GlobaLLM&lt;/a&gt; is an experiment in autonomous open source contribution which attempts to address this question.&lt;/p&gt;&#xA;&lt;p&gt;It&amp;rsquo;s a system that discovers repositories, analyzes their health, prioritizes issues, and automatically generates pull requests - all while coordinating with other instances to avoid redundant work.&lt;/p&gt;&#xA;&lt;p&gt;The core insight isn&amp;rsquo;t just that LLMs can write code; it&amp;rsquo;s that &lt;em&gt;strategic prioritization&lt;/em&gt; combined with &lt;em&gt;distributed execution&lt;/em&gt; can multiply that capability into something genuinely impactful.&lt;/p&gt;&#xA;&lt;p&gt;This article explains how GlobaLLM works, diving into the architecture that lets it scale from fixing a single bug to coordinating across thousands of repositories.&lt;/p&gt;&#xA;&#xA;&lt;h1 class=&#34;relative group&#34;&gt;The GlobaLLM Pipeline: A High-Level View&#xA;    &lt;div id=&#34;the-globallm-pipeline-a-high-level-view&#34; class=&#34;anchor&#34;&gt;&lt;/div&gt;&#xA;    &#xA;    &lt;span&#xA;        class=&#34;absolute top-0 w-6 transition-opacity opacity-0 -start-6 not-prose group-hover:opacity-100 select-none&#34;&gt;&#xA;        &lt;a class=&#34;text-primary-300 dark:text-neutral-700 !no-underline&#34; href=&#34;#the-globallm-pipeline-a-high-level-view&#34; aria-label=&#34;Anchor&#34;&gt;#&lt;/a&gt;&#xA;    &lt;/span&gt;&#xA;    &#xA;&lt;/h1&gt;&#xA;&lt;p&gt;GlobaLLM follows a five-stage pipeline:&lt;/p&gt;&#xA;&lt;div class=&#34;highlight-wrapper&#34;&gt;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-text&#34; data-lang=&#34;text&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;Discover -&amp;gt; Analyze -&amp;gt; Prioritize -&amp;gt; Fix -&amp;gt; Contribute&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&#xA;&#xA;&lt;h2 class=&#34;relative group&#34;&gt;1. Discover&#xA;    &lt;div id=&#34;1-discover&#34; class=&#34;anchor&#34;&gt;&lt;/div&gt;&#xA;    &#xA;    &lt;span&#xA;        class=&#34;absolute top-0 w-6 transition-opacity opacity-0 -start-6 not-prose group-hover:opacity-100 select-none&#34;&gt;&#xA;        &lt;a class=&#34;text-primary-300 dark:text-neutral-700 !no-underline&#34; href=&#34;#1-discover&#34; aria-label=&#34;Anchor&#34;&gt;#&lt;/a&gt;&#xA;    &lt;/span&gt;&#xA;    &#xA;&lt;/h2&gt;&#xA;&lt;p&gt;The system begins by finding repositories worth targeting.&lt;/p&gt;&#xA;&lt;p&gt;Using GitHub&amp;rsquo;s search API, it filters by domain, language, stars, and other criteria.&lt;/p&gt;&#xA;&lt;p&gt;Current methodology uses &lt;strong&gt;domain-based discovery&lt;/strong&gt; with predefined domains (&lt;code&gt;ai_ml&lt;/code&gt;, &lt;code&gt;web_dev&lt;/code&gt;, &lt;code&gt;data_science&lt;/code&gt;, &lt;code&gt;cloud_devops&lt;/code&gt;, &lt;code&gt;mobile&lt;/code&gt;, &lt;code&gt;security&lt;/code&gt;, &lt;code&gt;games&lt;/code&gt;), each with custom search queries combining relevant keywords.&lt;/p&gt;&#xA;&lt;p&gt;The system then applies &lt;strong&gt;multi-stage filtering&lt;/strong&gt;:&lt;/p&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&lt;strong&gt;Language filtering&lt;/strong&gt;: Excludes non-programming languages (Markdown, HTML, CSS, Shell, etc.)&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;Library filtering&lt;/strong&gt;: Uses heuristics to identify libraries vs applications (checks for package files like &lt;code&gt;pyproject.toml&lt;/code&gt;, &lt;code&gt;package.json&lt;/code&gt;, &lt;code&gt;Cargo.toml&lt;/code&gt;; filters out &amp;ldquo;awesome&amp;rdquo; lists and doc repos; analyzes descriptions and topics)&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;Quality filtering&lt;/strong&gt;: Language-specific queries include testing indicators (pytest, jest, testing)&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;Health filtering&lt;/strong&gt;: Applies health scores to filter out unmaintained projects&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;Dependent enrichment&lt;/strong&gt;: Uses libraries.io API to fetch package dependency counts for impact scoring&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;p&gt;Results are cached locally (24hr TTL) to avoid redundant API calls and respect rate limits.&lt;/p&gt;&#xA;&lt;p&gt;The goal isn&amp;rsquo;t to find every repository - it&amp;rsquo;s to find libraries where a contribution would matter.&lt;/p&gt;&#xA;&#xA;&lt;h2 class=&#34;relative group&#34;&gt;2. Analyze&#xA;    &lt;div id=&#34;2-analyze&#34; class=&#34;anchor&#34;&gt;&lt;/div&gt;&#xA;    &#xA;    &lt;span&#xA;        class=&#34;absolute top-0 w-6 transition-opacity opacity-0 -start-6 not-prose group-hover:opacity-100 select-none&#34;&gt;&#xA;        &lt;a class=&#34;text-primary-300 dark:text-neutral-700 !no-underline&#34; href=&#34;#2-analyze&#34; aria-label=&#34;Anchor&#34;&gt;#&lt;/a&gt;&#xA;    &lt;/span&gt;&#xA;    &#xA;&lt;/h2&gt;&#xA;&lt;p&gt;Once a repository is identified, GlobaLLM performs deep analysis to determine &lt;strong&gt;whether contributing is worthwhile&lt;/strong&gt;.&lt;/p&gt;&#xA;&lt;p&gt;This gate prevents wasting resources on abandoned projects, hostile communities, or repositories where contributions won&amp;rsquo;t have impact.&lt;/p&gt;&#xA;&lt;p&gt;It calculates a &lt;strong&gt;HealthScore&lt;/strong&gt; based on multiple signals:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;strong&gt;Commit velocity&lt;/strong&gt;: Is the project actively maintained?&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;Issue resolution rate&lt;/strong&gt;: Are bugs getting fixed?&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;CI status&lt;/strong&gt;: Does the project have passing tests?&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;Contributor diversity&lt;/strong&gt;: Is there a healthy community?&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;It also computes an &lt;strong&gt;impact score&lt;/strong&gt; - how many users would benefit from a fix, based on stars, forks, and dependency analysis using &lt;code&gt;NetworkX&lt;/code&gt;.&lt;/p&gt;&#xA;&lt;p&gt;Repositories with low health scores or minimal impact are deprioritized or skipped entirely.&lt;/p&gt;&#xA;&#xA;&lt;h2 class=&#34;relative group&#34;&gt;3. Prioritize&#xA;    &lt;div id=&#34;3-prioritize&#34; class=&#34;anchor&#34;&gt;&lt;/div&gt;&#xA;    &#xA;    &lt;span&#xA;        class=&#34;absolute top-0 w-6 transition-opacity opacity-0 -start-6 not-prose group-hover:opacity-100 select-none&#34;&gt;&#xA;        &lt;a class=&#34;text-primary-300 dark:text-neutral-700 !no-underline&#34; href=&#34;#3-prioritize&#34; aria-label=&#34;Anchor&#34;&gt;#&lt;/a&gt;&#xA;    &lt;/span&gt;&#xA;    &#xA;&lt;/h2&gt;&#xA;&lt;p&gt;The system fetches open issues from approved repositories and ranks them using a sophisticated multi-factor algorithm.&lt;/p&gt;&#xA;&lt;p&gt;Each issue is analyzed by an LLM to determine:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;strong&gt;Category&lt;/strong&gt;: bug, feature, documentation, performance, security, etc.&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;Complexity&lt;/strong&gt;: 1-10 scale (how difficult to solve)&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;Solvability&lt;/strong&gt;: 0-1 score (likelihood of automated fix success)&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;Requirements&lt;/strong&gt;: affected files, breaking change risk, test needs&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;The prioritization then combines four dimensions:&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;Health (weight: 1.0)&lt;/strong&gt;: Repository health adjusted for complexity.&lt;/p&gt;&#xA;&lt;p&gt;A healthy repository with simple issues scores higher than an unhealthy repository with complex ones.&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;Impact (weight: 2.0)&lt;/strong&gt;: Based on stars, dependents, and watchers.&lt;/p&gt;&#xA;&lt;p&gt;Uses log-scale normalization (stars / 50,000, dependents / 5,000).&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;Solvability (weight: 1.5)&lt;/strong&gt;: LLM-assessed likelihood of successful resolution.&lt;/p&gt;&#xA;&lt;p&gt;Documentation and style issues (~0.9) rank higher than critical security (~0.3) due to automation difficulty.&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;Urgency (weight: 0.5)&lt;/strong&gt;: Category multiplier × age × engagement.&lt;/p&gt;&#xA;&lt;p&gt;Critical security bugs get 10× multiplier, documentation gets 1×.&lt;/p&gt;&#xA;&lt;p&gt;The final formula:&lt;/p&gt;&#xA;&lt;div class=&#34;highlight-wrapper&#34;&gt;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-text&#34; data-lang=&#34;text&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;priority = (health × 1.0) + (impact × 2.0) + (solvability × 1.5) + (urgency × 0.5)&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&#xA;&lt;p&gt;Budget constraints filter the ranked list:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Per-repository token limit (default: 100k)&lt;/li&gt;&#xA;&lt;li&gt;Per-language issue limit (default: 50)&lt;/li&gt;&#xA;&lt;li&gt;Weekly token budget (default: 5M)&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;Results are saved to the issue store with full breakdowns for transparency.&lt;/p&gt;&#xA;&#xA;&lt;h2 class=&#34;relative group&#34;&gt;4. Fix&#xA;    &lt;div id=&#34;4-fix&#34; class=&#34;anchor&#34;&gt;&lt;/div&gt;&#xA;    &#xA;    &lt;span&#xA;        class=&#34;absolute top-0 w-6 transition-opacity opacity-0 -start-6 not-prose group-hover:opacity-100 select-none&#34;&gt;&#xA;        &lt;a class=&#34;text-primary-300 dark:text-neutral-700 !no-underline&#34; href=&#34;#4-fix&#34; aria-label=&#34;Anchor&#34;&gt;#&lt;/a&gt;&#xA;    &lt;/span&gt;&#xA;    &#xA;&lt;/h2&gt;&#xA;&lt;p&gt;GlobaLLM claims the highest-priority unassigned issue and generates a solution.&lt;/p&gt;&#xA;&lt;p&gt;This is where LLMs do the heavy lifting.&lt;/p&gt;&#xA;&lt;p&gt;The &lt;code&gt;CodeGenerator&lt;/code&gt; class sends a structured prompt to Claude or ChatGPT with:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;The issue title and description&lt;/li&gt;&#xA;&lt;li&gt;Repository context (code style, testing framework)&lt;/li&gt;&#xA;&lt;li&gt;Language-specific conventions&lt;/li&gt;&#xA;&lt;li&gt;Category-specific requirements (bug vs feature vs docs)&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;The LLM responds with a complete solution:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;strong&gt;Explanation&lt;/strong&gt;: Step-by-step reasoning&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;File patches&lt;/strong&gt;: Original and new content for each modified file&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;Tests&lt;/strong&gt;: New or modified test files&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;The system tracks tokens used at every step for budget management.&lt;/p&gt;&#xA;&#xA;&lt;h2 class=&#34;relative group&#34;&gt;5. Contribute&#xA;    &lt;div id=&#34;5-contribute&#34; class=&#34;anchor&#34;&gt;&lt;/div&gt;&#xA;    &#xA;    &lt;span&#xA;        class=&#34;absolute top-0 w-6 transition-opacity opacity-0 -start-6 not-prose group-hover:opacity-100 select-none&#34;&gt;&#xA;        &lt;a class=&#34;text-primary-300 dark:text-neutral-700 !no-underline&#34; href=&#34;#5-contribute&#34; aria-label=&#34;Anchor&#34;&gt;#&lt;/a&gt;&#xA;    &lt;/span&gt;&#xA;    &#xA;&lt;/h2&gt;&#xA;&lt;p&gt;The final stage uses &lt;code&gt;PRAutomation&lt;/code&gt; to create a well-structured pull request with context, tests, and documentation.&lt;/p&gt;&#xA;&lt;p&gt;For trivial changes (typos, version bumps), it can even auto-merge.&lt;/p&gt;&#xA;&#xA;&lt;h1 class=&#34;relative group&#34;&gt;Where LLMs Are Used&#xA;    &lt;div id=&#34;where-llms-are-used&#34; class=&#34;anchor&#34;&gt;&lt;/div&gt;&#xA;    &#xA;    &lt;span&#xA;        class=&#34;absolute top-0 w-6 transition-opacity opacity-0 -start-6 not-prose group-hover:opacity-100 select-none&#34;&gt;&#xA;        &lt;a class=&#34;text-primary-300 dark:text-neutral-700 !no-underline&#34; href=&#34;#where-llms-are-used&#34; aria-label=&#34;Anchor&#34;&gt;#&lt;/a&gt;&#xA;    &lt;/span&gt;&#xA;    &#xA;&lt;/h1&gt;&#xA;&lt;p&gt;LLMs are the engine that powers GlobaLLM, but they&amp;rsquo;re used strategically rather than indiscriminately.&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;Stage 3 - Prioritize&lt;/strong&gt;: The &lt;code&gt;IssueAnalyzer&lt;/code&gt; calls an LLM to categorize each issue.&lt;/p&gt;&#xA;&lt;p&gt;Input: title, body, labels, comments, reactions.&lt;/p&gt;&#xA;&lt;p&gt;Output: category, complexity (1-10), solvability (0-1), breaking_change, test_required.&lt;/p&gt;&#xA;&lt;p&gt;This costs ~500 tokens per issue and feeds directly into the priority scoring.&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;Stage 4 - Fix&lt;/strong&gt;: The &lt;code&gt;CodeGenerator&lt;/code&gt; uses an LLM to generate complete solutions.&lt;/p&gt;&#xA;&lt;p&gt;Input: issue details, repository context, language style guidelines.&lt;/p&gt;&#xA;&lt;p&gt;Output: explanation, file patches (original + new content), test files.&lt;/p&gt;&#xA;&lt;p&gt;This costs 1k-10k tokens depending on complexity.&lt;/p&gt;&#xA;&lt;p&gt;The key insight: LLMs are only used for tasks requiring intelligence.&lt;/p&gt;&#xA;&lt;p&gt;Discovery, health scoring, impact calculation, and PR automation use deterministic algorithms.&lt;/p&gt;&#xA;&#xA;&lt;h1 class=&#34;relative group&#34;&gt;Scaling GlobaLLM&#xA;    &lt;div id=&#34;scaling-globallm&#34; class=&#34;anchor&#34;&gt;&lt;/div&gt;&#xA;    &#xA;    &lt;span&#xA;        class=&#34;absolute top-0 w-6 transition-opacity opacity-0 -start-6 not-prose group-hover:opacity-100 select-none&#34;&gt;&#xA;        &lt;a class=&#34;text-primary-300 dark:text-neutral-700 !no-underline&#34; href=&#34;#scaling-globallm&#34; aria-label=&#34;Anchor&#34;&gt;#&lt;/a&gt;&#xA;    &lt;/span&gt;&#xA;    &#xA;&lt;/h1&gt;&#xA;&lt;p&gt;The real power of GlobaLLM emerges when you run multiple instances in parallel.&lt;/p&gt;&#xA;&#xA;&lt;h2 class=&#34;relative group&#34;&gt;Distributed Agent Architecture&#xA;    &lt;div id=&#34;distributed-agent-architecture&#34; class=&#34;anchor&#34;&gt;&lt;/div&gt;&#xA;    &#xA;    &lt;span&#xA;        class=&#34;absolute top-0 w-6 transition-opacity opacity-0 -start-6 not-prose group-hover:opacity-100 select-none&#34;&gt;&#xA;        &lt;a class=&#34;text-primary-300 dark:text-neutral-700 !no-underline&#34; href=&#34;#distributed-agent-architecture&#34; aria-label=&#34;Anchor&#34;&gt;#&lt;/a&gt;&#xA;    &lt;/span&gt;&#xA;    &#xA;&lt;/h2&gt;&#xA;&lt;p&gt;Each GlobaLLM instance has a unique &lt;code&gt;AgentIdentity&lt;/code&gt;.&lt;/p&gt;&#xA;&lt;p&gt;When it&amp;rsquo;s ready to work, it calls:&lt;/p&gt;&#xA;&lt;div class=&#34;highlight-wrapper&#34;&gt;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;globallm assign claim&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&#xA;&lt;p&gt;This atomically reserves the highest-priority unassigned issue.&lt;/p&gt;&#xA;&lt;p&gt;The assignment is stored in PostgreSQL with a heartbeat timestamp.&lt;/p&gt;&#xA;&#xA;&lt;h2 class=&#34;relative group&#34;&gt;Issue Assignment System&#xA;    &lt;div id=&#34;issue-assignment-system&#34; class=&#34;anchor&#34;&gt;&lt;/div&gt;&#xA;    &#xA;    &lt;span&#xA;        class=&#34;absolute top-0 w-6 transition-opacity opacity-0 -start-6 not-prose group-hover:opacity-100 select-none&#34;&gt;&#xA;        &lt;a class=&#34;text-primary-300 dark:text-neutral-700 !no-underline&#34; href=&#34;#issue-assignment-system&#34; aria-label=&#34;Anchor&#34;&gt;#&lt;/a&gt;&#xA;    &lt;/span&gt;&#xA;    &#xA;&lt;/h2&gt;&#xA;&lt;p&gt;To prevent multiple agents from working on the same issue:&lt;/p&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Issues are marked &lt;code&gt;assigned&lt;/code&gt; with an agent ID and timestamp&lt;/li&gt;&#xA;&lt;li&gt;Heartbeats update every 5 minutes&lt;/li&gt;&#xA;&lt;li&gt;If a heartbeat expires (30 minutes), the issue is reassigned&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;p&gt;This allows crash recovery: if an agent crashes mid-work, another will pick up the issue.&lt;/p&gt;&#xA;&#xA;&lt;h2 class=&#34;relative group&#34;&gt;Crash Recovery&#xA;    &lt;div id=&#34;crash-recovery&#34; class=&#34;anchor&#34;&gt;&lt;/div&gt;&#xA;    &#xA;    &lt;span&#xA;        class=&#34;absolute top-0 w-6 transition-opacity opacity-0 -start-6 not-prose group-hover:opacity-100 select-none&#34;&gt;&#xA;        &lt;a class=&#34;text-primary-300 dark:text-neutral-700 !no-underline&#34; href=&#34;#crash-recovery&#34; aria-label=&#34;Anchor&#34;&gt;#&lt;/a&gt;&#xA;    &lt;/span&gt;&#xA;    &#xA;&lt;/h2&gt;&#xA;&lt;p&gt;The heartbeat system is elegant in its simplicity:&lt;/p&gt;&#xA;&lt;div class=&#34;highlight-wrapper&#34;&gt;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-python&#34; data-lang=&#34;python&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;c1&#34;&gt;# Agent side&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;k&#34;&gt;while&lt;/span&gt; &lt;span class=&#34;n&#34;&gt;working&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;:&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;    &lt;span class=&#34;n&#34;&gt;update_heartbeat&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;(&lt;/span&gt;&lt;span class=&#34;n&#34;&gt;issue_id&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;,&lt;/span&gt; &lt;span class=&#34;n&#34;&gt;agent_id&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;)&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;    &lt;span class=&#34;n&#34;&gt;do_work&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;()&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;c1&#34;&gt;# Recovery side&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;n&#34;&gt;expired&lt;/span&gt; &lt;span class=&#34;o&#34;&gt;=&lt;/span&gt; &lt;span class=&#34;n&#34;&gt;get_issues_with_expired_heartbeats&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;()&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;k&#34;&gt;for&lt;/span&gt; &lt;span class=&#34;n&#34;&gt;issue&lt;/span&gt; &lt;span class=&#34;ow&#34;&gt;in&lt;/span&gt; &lt;span class=&#34;n&#34;&gt;expired&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;:&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;    &lt;span class=&#34;n&#34;&gt;reassign&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;(&lt;/span&gt;&lt;span class=&#34;n&#34;&gt;issue&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;)&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&#xA;&lt;p&gt;No distributed consensus needed - PostgreSQL&amp;rsquo;s row-level locking handles contention.&lt;/p&gt;&#xA;&#xA;&lt;h2 class=&#34;relative group&#34;&gt;Database Design&#xA;    &lt;div id=&#34;database-design&#34; class=&#34;anchor&#34;&gt;&lt;/div&gt;&#xA;    &#xA;    &lt;span&#xA;        class=&#34;absolute top-0 w-6 transition-opacity opacity-0 -start-6 not-prose group-hover:opacity-100 select-none&#34;&gt;&#xA;        &lt;a class=&#34;text-primary-300 dark:text-neutral-700 !no-underline&#34; href=&#34;#database-design&#34; aria-label=&#34;Anchor&#34;&gt;#&lt;/a&gt;&#xA;    &lt;/span&gt;&#xA;    &#xA;&lt;/h2&gt;&#xA;&lt;p&gt;PostgreSQL is the central state store:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;strong&gt;Connection pooling&lt;/strong&gt;: 2-10 connections per process (&lt;code&gt;psycopg&lt;/code&gt; pool)&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;JSONB columns&lt;/strong&gt;: Flexible schema for repository/issue metadata&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;Indexes&lt;/strong&gt;: On frequently queried fields (stars, health_score, assigned status)&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;Migrations&lt;/strong&gt;: Versioned schema&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;h1 class=&#34;relative group&#34;&gt;Future Work&#xA;    &lt;div id=&#34;future-work&#34; class=&#34;anchor&#34;&gt;&lt;/div&gt;&#xA;    &#xA;    &lt;span&#xA;        class=&#34;absolute top-0 w-6 transition-opacity opacity-0 -start-6 not-prose group-hover:opacity-100 select-none&#34;&gt;&#xA;        &lt;a class=&#34;text-primary-300 dark:text-neutral-700 !no-underline&#34; href=&#34;#future-work&#34; aria-label=&#34;Anchor&#34;&gt;#&lt;/a&gt;&#xA;    &lt;/span&gt;&#xA;    &#xA;&lt;/h1&gt;&#xA;&lt;p&gt;GlobaLLM is an evolving experiment.&#xA;There are numerous challenges that developers face on a daily basis that a system such as GlobaLLM will also encounter and would need to deal with in order to be more effective:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Parallelizing work across multiple agents without conflicts or redundant effort.&lt;/li&gt;&#xA;&lt;li&gt;Producing &amp;ldquo;mental models&amp;rdquo; of repositories to better understand their goals, architecture, dependencies and trajectories.&lt;/li&gt;&#xA;&lt;li&gt;Have a higher-level decision-making system that can reason about which repositories to focus on based on broader trends in the open source ecosystem.&lt;/li&gt;&#xA;&lt;li&gt;Make decisions such as which programming languages to focus on.&lt;/li&gt;&#xA;&lt;li&gt;Have the ability to work with closed source repositories which may not have the same signals as open source ones (e.g., forks, stars, dependency count).&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;h1 class=&#34;relative group&#34;&gt;Conclusion&#xA;    &lt;div id=&#34;conclusion&#34; class=&#34;anchor&#34;&gt;&lt;/div&gt;&#xA;    &#xA;    &lt;span&#xA;        class=&#34;absolute top-0 w-6 transition-opacity opacity-0 -start-6 not-prose group-hover:opacity-100 select-none&#34;&gt;&#xA;        &lt;a class=&#34;text-primary-300 dark:text-neutral-700 !no-underline&#34; href=&#34;#conclusion&#34; aria-label=&#34;Anchor&#34;&gt;#&lt;/a&gt;&#xA;    &lt;/span&gt;&#xA;    &#xA;&lt;/h1&gt;&#xA;&lt;p&gt;GlobaLLM is an experiment in what&amp;rsquo;s possible when you combine LLM code generation with principled decision-making and distributed execution.&lt;/p&gt;&#xA;&lt;p&gt;The goal isn&amp;rsquo;t to replace human contributors - it&amp;rsquo;s to handle the long tail of maintenance work that no one has time for, freeing up humans to focus on the interesting problems.&lt;/p&gt;&#xA;&lt;p&gt;The system is actively developed and evolving.&lt;/p&gt;&#xA;&lt;p&gt;Current work focuses on better prioritization heuristics, more sophisticated validation, and integration with additional LLM providers.&lt;/p&gt;&#xA;&lt;p&gt;If you&amp;rsquo;re interested in contributing or just want to run it yourself, &lt;a href=&#34;https://github.com/TomzxCode/globallm&#34;  target=&#34;_blank&#34; rel=&#34;noreferrer&#34;&gt;&lt;img class=&#34;external-link-favicon&#34; src=&#34;https://www.google.com/s2/favicons?domain=github.com&amp;sz=128&#34; alt=&#34;&#34; width=&#34;16&#34; height=&#34;16&#34; loading=&#34;lazy&#34;&gt;the code is available on GitHub&lt;/a&gt;.&lt;/p&gt;&#xA;&lt;p&gt;This system is far from perfect, but it&amp;rsquo;s a step toward harnessing AI to make open source software healthier and more sustainable at scale.&lt;/p&gt;&#xA;&lt;p&gt;It&amp;rsquo;s also a way to explore what it looks like to have to make decisions at the scale of millions of repositories and billions of issues.&lt;/p&gt;&#xA;</description>
      
    </item>
    
  </channel>
</rss>
