<?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: yunchuan liu</title>
    <description>The latest articles on DEV Community by yunchuan liu (@yunchuan_liu_499028a89bf1).</description>
    <link>https://dev.to/yunchuan_liu_499028a89bf1</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.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3928845%2F4913dfc2-399e-4bfe-ae81-e3fa67f443d3.png</url>
      <title>DEV Community: yunchuan liu</title>
      <link>https://dev.to/yunchuan_liu_499028a89bf1</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/yunchuan_liu_499028a89bf1"/>
    <language>en</language>
    <item>
      <title>AgentHub: A Multi-Model Terminal Workspace for Coding Agents</title>
      <dc:creator>yunchuan liu</dc:creator>
      <pubDate>Wed, 13 May 2026 08:54:09 +0000</pubDate>
      <link>https://dev.to/yunchuan_liu_499028a89bf1/agenthub-a-multi-model-terminal-workspace-for-coding-agents-284e</link>
      <guid>https://dev.to/yunchuan_liu_499028a89bf1/agenthub-a-multi-model-terminal-workspace-for-coding-agents-284e</guid>
      <description>&lt;p&gt;I have been building &lt;strong&gt;AgentHub&lt;/strong&gt;, an open-source terminal workspace for real coding-agent workflows.&lt;/p&gt;

&lt;p&gt;GitHub: &lt;a href="https://github.com/hoteye/AgentHub" rel="noopener noreferrer"&gt;https://github.com/hoteye/AgentHub&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Linux/macOS install:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;curl &lt;span class="nt"&gt;-fsSL&lt;/span&gt; https://raw.githubusercontent.com/hoteye/AgentHub/main/scripts/install_agenthub_cli.sh | bash
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Run it:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;agenthub-cli
agenthub-cli &lt;span class="nt"&gt;--headless&lt;/span&gt; &lt;span class="nt"&gt;--prompt&lt;/span&gt; &lt;span class="s2"&gt;"/provider"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Why I Built It
&lt;/h2&gt;

&lt;p&gt;Most AI coding tools are useful for small tasks: ask a question, edit a file, explain an error, generate a test.&lt;/p&gt;

&lt;p&gt;Real engineering work is different.&lt;/p&gt;

&lt;p&gt;A real task often includes:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;understanding an unfamiliar repository&lt;/li&gt;
&lt;li&gt;reading and searching files&lt;/li&gt;
&lt;li&gt;running shell commands&lt;/li&gt;
&lt;li&gt;applying patches&lt;/li&gt;
&lt;li&gt;running tests&lt;/li&gt;
&lt;li&gt;fixing failures from test output&lt;/li&gt;
&lt;li&gt;switching models for different stages&lt;/li&gt;
&lt;li&gt;splitting work into smaller subtasks&lt;/li&gt;
&lt;li&gt;reviewing child-agent changes&lt;/li&gt;
&lt;li&gt;resuming after interruption&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;That is no longer just a chat problem. It needs a runtime that can hold context, coordinate tools, apply safety policies, restore sessions, and manage multiple agents.&lt;/p&gt;

&lt;p&gt;AgentHub is my attempt to build that runtime.&lt;/p&gt;

&lt;h2&gt;
  
  
  Codex-Style Engineering Workflow as the Base
&lt;/h2&gt;

&lt;p&gt;AgentHub keeps the practical parts of a Codex-style terminal coding workflow:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;repository-aware context from the current working directory&lt;/li&gt;
&lt;li&gt;file read and search tools&lt;/li&gt;
&lt;li&gt;shell execution&lt;/li&gt;
&lt;li&gt;patch application&lt;/li&gt;
&lt;li&gt;test feedback loops&lt;/li&gt;
&lt;li&gt;tool-calling execution&lt;/li&gt;
&lt;li&gt;approval policies for risky actions&lt;/li&gt;
&lt;li&gt;sandbox policies for execution boundaries&lt;/li&gt;
&lt;li&gt;persistent threads and resume support&lt;/li&gt;
&lt;li&gt;sidecar-style execution for isolated tabs or subtasks&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The goal is not to build another general chat interface. The goal is to let agents do real work inside a repository, with enough structure to make that work recoverable and reviewable.&lt;/p&gt;

&lt;h2&gt;
  
  
  Multi-Model by Design
&lt;/h2&gt;

&lt;p&gt;No single model is best for every step of a software task.&lt;/p&gt;

&lt;p&gt;One model may be better at architecture analysis. Another may be better at precise code edits. A cheaper model may be good enough for batch documentation cleanup or repetitive subtasks.&lt;/p&gt;

&lt;p&gt;AgentHub supports multiple providers behind one runtime, including OpenAI, Anthropic, GLM, DeepSeek, and compatible APIs.&lt;/p&gt;

&lt;p&gt;Common commands look like this:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;/provider
/providers
/model gpt-5.4 high
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;When provider calls fail, AgentHub surfaces diagnostics such as the active provider, model, config source, and latest exception. That makes it easier to debug API keys, base URLs, subscriptions, and regional restrictions.&lt;/p&gt;

&lt;h2&gt;
  
  
  Resumable Long-Running Work
&lt;/h2&gt;

&lt;p&gt;Long coding tasks should not lose their working state just because the terminal closes or the task continues tomorrow.&lt;/p&gt;

&lt;p&gt;AgentHub stores threads and supports resume commands:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;/resume &amp;lt;thread_id&amp;gt;
/resume_last
/resume_path &amp;lt;rollout_path&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The important part is that visible context, tool results, file analysis, and task progress can continue from the breakpoint.&lt;/p&gt;

&lt;p&gt;For large refactors, test repair, code review, and documentation cleanup, this is a core feature rather than a convenience.&lt;/p&gt;

&lt;h2&gt;
  
  
  Delegated Agents and Background Teammates
&lt;/h2&gt;

&lt;p&gt;Multi-agent workflows are not just about launching many agents at once. The useful pattern is scoped work with clear boundaries.&lt;/p&gt;

&lt;p&gt;For example, a large-file refactor can be handled like this:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;The main agent analyzes the file and identifies boundaries.&lt;/li&gt;
&lt;li&gt;Subtasks are assigned to child agents or background teammates.&lt;/li&gt;
&lt;li&gt;Each child handles a small, verifiable scope.&lt;/li&gt;
&lt;li&gt;The main agent reviews diffs.&lt;/li&gt;
&lt;li&gt;The runtime runs the smallest useful test gate.&lt;/li&gt;
&lt;li&gt;The final change is committed only after review.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;AgentHub supports delegated agents and background tasks with commands such as:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;/spawn_agent ...
/send_input &amp;lt;agent_id&amp;gt; &amp;lt;message&amp;gt;
/wait_agent &amp;lt;agent_id&amp;gt;
/close_agent &amp;lt;agent_id&amp;gt;
/background_teammate ...
/background_task_status &amp;lt;task_id&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The main agent remains responsible for integration and quality. Child agents handle bounded work.&lt;/p&gt;

&lt;h2&gt;
  
  
  Plugins and Automation
&lt;/h2&gt;

&lt;p&gt;AgentHub has a plugin-oriented architecture. Domain-specific capabilities should live in plugins instead of being hardcoded into the host.&lt;/p&gt;

&lt;p&gt;Plugins can provide:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;slash commands&lt;/li&gt;
&lt;li&gt;tools&lt;/li&gt;
&lt;li&gt;external system connectors&lt;/li&gt;
&lt;li&gt;gateway/webhook integrations&lt;/li&gt;
&lt;li&gt;domain-specific workflows&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;For example, a GitHub plugin can handle issues, comments, labels, workflow dispatch, and approval-gated write actions.&lt;/p&gt;

&lt;p&gt;AgentHub also supports headless and server-style execution, which makes it useful outside the interactive TUI:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;agenthub-cli &lt;span class="nt"&gt;--headless&lt;/span&gt; &lt;span class="nt"&gt;--prompt&lt;/span&gt; &lt;span class="s2"&gt;"/provider"&lt;/span&gt;
agenthub-cli &lt;span class="nt"&gt;--headless&lt;/span&gt; &lt;span class="nt"&gt;--prompt&lt;/span&gt; &lt;span class="s2"&gt;"list current directory"&lt;/span&gt; &lt;span class="nt"&gt;--json&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Where This Can Go
&lt;/h2&gt;

&lt;p&gt;Local terminal agents are useful, but I think the same architecture can grow into cloud or team-level agent workspaces:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;a frontend for orchestration&lt;/li&gt;
&lt;li&gt;backend sidecar/worker containers&lt;/li&gt;
&lt;li&gt;isolated task environments&lt;/li&gt;
&lt;li&gt;centralized provider credentials&lt;/li&gt;
&lt;li&gt;approval and audit logs&lt;/li&gt;
&lt;li&gt;multi-agent scheduling&lt;/li&gt;
&lt;li&gt;plugins for internal systems&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;That is the direction I am exploring with AgentHub.&lt;/p&gt;

&lt;h2&gt;
  
  
  Who It Is For
&lt;/h2&gt;

&lt;p&gt;AgentHub is currently most useful if you:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;already use AI coding tools heavily&lt;/li&gt;
&lt;li&gt;work on real repositories, not isolated snippets&lt;/li&gt;
&lt;li&gt;need resumable long-running task context&lt;/li&gt;
&lt;li&gt;want to combine multiple model providers&lt;/li&gt;
&lt;li&gt;want delegated agents for scoped subtasks&lt;/li&gt;
&lt;li&gt;care about approvals, sandboxing, and auditability&lt;/li&gt;
&lt;li&gt;want both interactive TUI and headless automation&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;If you only need occasional code answers, a chat tool is enough. If you want agents to participate in repository-level engineering workflows, AgentHub may be a better fit.&lt;/p&gt;

&lt;h2&gt;
  
  
  Project Links
&lt;/h2&gt;

&lt;p&gt;GitHub: &lt;a href="https://github.com/hoteye/AgentHub" rel="noopener noreferrer"&gt;https://github.com/hoteye/AgentHub&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Latest release: &lt;a href="https://github.com/hoteye/AgentHub/releases/tag/cli-v0.1.11" rel="noopener noreferrer"&gt;https://github.com/hoteye/AgentHub/releases/tag/cli-v0.1.11&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Install on Linux/macOS:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;curl &lt;span class="nt"&gt;-fsSL&lt;/span&gt; https://raw.githubusercontent.com/hoteye/AgentHub/main/scripts/install_agenthub_cli.sh | bash
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Windows users can download the release archive and run:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight powershell"&gt;&lt;code&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;\agenthub-cli.exe&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;\agenthub-cli.exe&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nt"&gt;--headless&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nt"&gt;--prompt&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"/provider"&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Feedback, issues, and PRs are welcome.&lt;/p&gt;

</description>
      <category>agents</category>
      <category>ai</category>
      <category>cli</category>
      <category>showdev</category>
    </item>
  </channel>
</rss>
