AI Agent Hub
Back to plugins
⚙️

agents-in-the-loop

Workflow Updated 2026.09.15

Run the following command in DeepSeek Harness:

dsh plugin install markelayan/agents-in-the-loop

Paste the following prompt into your AI chat to install this plugin:

Run dsh plugin install markelayan/agents-in-the-loop in your terminal; the source lives at https://github.com/markelayan/agents-in-the-loop . After restarting dsh web, the session_message and contacts tools become available to every session.

About this plugin

In a multi-session DeepSeek Harness deployment, agents run in isolated sessions with no native channel to speak to one another. agents-in-the-loop closes that gap by adding exactly two model tools, session_message and contacts, so any two sessions on the same dsh instance can exchange messages reliably without a message queue or middleware.

Delivery is battle-tested: targets are resolved by registered name at call time, so a re-raised agent under the same alias is always reachable and stale session ids never cause missed messages. For idle targets the full text is rendered into the conversation and pushed into the runtime context; for busy targets it is injected as a plugin-source notice that is mid-turn safe and starts no new turn. The contacts directory supports list, get, add, call, and update in a single call, resolving alias, status, and label together. Self-registration requires only the name, so the agent never needs to look up its own session id. There is no web UI, no database, and no background polling; the plugin is fully inert until an agent invokes a tool.

Built for teams orchestrating multi-agent collaboration in DS, from review pipelines to cross-domain follow-ups and parallel consultation flows. It requires DSH 0.1.2 or later and Node 20 or later, activates with a single cordis patch line, and carries zero external dependencies beyond the dsh runtime itself.

Use Cases

  • Agents in separate sessions exchange context to complete a shared task
  • An agent delegates a sub-question to a specialist session and retrieves the answer
  • An orchestrator injects follow-up prompts into idle review agents without blocking its own turn

Best For

  • Teams building multi-agent review or consultation pipelines on DeepSeek Harness
  • Developers who need lightweight inter-session messaging without an external broker
  • Workflow designers who want agent-to-agent coordination that stays silent until explicitly invoked