<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: 王纯纯</title>
    <description>The latest articles on DEV Community by 王纯纯 (@owwzo).</description>
    <link>https://dev.to/owwzo</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4128978%2F3437f687-50c5-4199-ac38-0bc3b258bc2f.jpg</url>
      <title>DEV Community: 王纯纯</title>
      <link>https://dev.to/owwzo</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/owwzo"/>
    <language>en</language>
    <item>
      <title>I built a self-hosted research agent in Java 21 — and put the heavy tools in Python</title>
      <dc:creator>王纯纯</dc:creator>
      <pubDate>Thu, 17 Sep 2026 03:26:09 +0000</pubDate>
      <link>https://dev.to/owwzo/i-built-a-self-hosted-research-agent-in-java-21-and-put-the-heavy-tools-in-python-3ocp</link>
      <guid>https://dev.to/owwzo/i-built-a-self-hosted-research-agent-in-java-21-and-put-the-heavy-tools-in-python-3ocp</guid>
      <description>&lt;p&gt;Most "research agents" fail in two boring ways: they cannot see the gardens where the comments live, and they dump every tool schema into the prompt until the run is unusable.&lt;/p&gt;

&lt;p&gt;Reactor is my attempt to treat both as engineering problems, not prompt problems.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://github.com/OWWZO/ai-agent" rel="noopener noreferrer"&gt;https://github.com/OWWZO/ai-agent&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  The control plane is Java on purpose
&lt;/h2&gt;

&lt;p&gt;I wanted a durable execution ledger, reconnectable HITL (plan approve / ask-user / follow after SSE drop), and isolated sub-agent mailboxes. The interesting part is the runtime around it.&lt;/p&gt;

&lt;p&gt;Python still does the heavy tools: search, multimodal RAG, NL2SQL, E2B, docs. React renders a whitelist UI tree. That split is ugly to deploy and easier to reason about than one mega-process.&lt;/p&gt;

&lt;h2&gt;
  
  
  Plan Mode
&lt;/h2&gt;

&lt;p&gt;Until I click approve, the agent may only research and write a plan. No writes to business databases, no sandbox, no report. This is the feature I actually use. Everything else is optional.&lt;/p&gt;

&lt;p&gt;Vague requirements do not get guessed. The agent stops and asks.&lt;/p&gt;

&lt;h2&gt;
  
  
  Lazy tools
&lt;/h2&gt;

&lt;p&gt;MCP tools are names-only in the system prompt. ToolSearch hydrates a schema on demand. Same idea as not loading every skill into context: &lt;code&gt;SKILL.md&lt;/code&gt; files live on disk until needed.&lt;/p&gt;

&lt;p&gt;Memory follows the same rule. Facts inject every turn. History is searched. Workflows are files. The chat log is not the memory.&lt;/p&gt;

&lt;h2&gt;
  
  
  Collectors
&lt;/h2&gt;

&lt;p&gt;One run can include Reddit, X, YouTube, HN, plus Bilibili / Xiaohongshu / V2EX. Private files join the same citation list. This is not a unified "search API". Each source has its own auth (RSS, key, or browser session). Ugly, and the reason it works.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fl0sv7s3ex5gplngmhlt9.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fl0sv7s3ex5gplngmhlt9.png" alt=" " width="799" height="400"&gt;&lt;/a&gt;&lt;br&gt;
&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Ftfl7ewjx06fefm21ig53.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Ftfl7ewjx06fefm21ig53.png" alt=" " width="800" height="389"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F112lrnj8g9b4oboudpqi.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F112lrnj8g9b4oboudpqi.png" alt=" " width="799" height="390"&gt;&lt;/a&gt;&lt;br&gt;
&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fxua5f9iydw3c1562jcjc.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fxua5f9iydw3c1562jcjc.png" alt=" " width="799" height="390"&gt;&lt;/a&gt;&lt;br&gt;
&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fp6qv7rjt6wtpmy38zjdn.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fp6qv7rjt6wtpmy38zjdn.png" alt=" " width="799" height="387"&gt;&lt;/a&gt;&lt;/p&gt;

</description>
      <category>agents</category>
      <category>architecture</category>
      <category>java</category>
      <category>python</category>
    </item>
  </channel>
</rss>
