DEDUPED Hot AI repos. Real use cases. What people build. Get the Monday 5

How to pause a legal review step for human sign-off with Auto Swarm Shadow Adapter

Park a legal_counsel task for a human reviewer while other DAG branches keep running.

Short answer: Set SHADOW_JWT_SECRET to a secret of at least 32 characters, and optionally SHADOW_API_PORT (default 8800), before starting the adapter; then start an AutoSwarm company session with opc chat --mode company "Build feature X"; the Manager AI assigns work to role seats such as legal_counsel; open the React portal on the adapter port, find the parked task in the pending queue, and read the brief. All steps.

Who it is forA team lead running an AutoSwarm company session where a contract or policy step needs a named human to approve before the workflow continues.

The problemA normal AutoSwarm task waits on the engine. A human approval can take hours, and the engine may time out or stall parallel branches.

The outcomeThe task is parked in the shadow queue with status AWAITING_HUMAN, the thread is released, and the reviewer approves it in the React portal. The approval moves the phase to Phase.APPROVED and the dependent step resumes.

What you need first

  • A working AutoSwarm install (the README links to HKUDS/AutoSwarm)
  • Python
  • A SHADOW_JWT_SECRET of at least 32 characters
  • Access to a local model server (Ollama) or an API key for Anthropic or OpenAI, depending on the use case

Steps

  1. Set SHADOW_JWT_SECRET to a secret of at least 32 characters, and optionally SHADOW_API_PORT (default 8800), before starting the adapter.
  2. Start an AutoSwarm company session with opc chat --mode company "Build feature X"; the Manager AI assigns work to role seats such as legal_counsel.
  3. Open the React portal on the adapter port, find the parked task in the pending queue, and read the brief.
  4. Attach up to 5 deliverable files (10MB each, 50MB total by default) and submit through the REST API, or send rework_requested if the work needs changes.
  5. Confirm the task shows Phase.APPROVED in the store and that the downstream AutoSwarm node has resumed.

Prompt for your agent

Use the repo AhmadHassan-BTed/AutoSwarm-Shadow-Adapter with the AutoSwarm session for <target project>. Park the legal_counsel task, then list the pending items in the shadow queue. Expected output: a list of parked tasks with their status and brief. Verify that each parked task shows AWAITING_HUMAN and that no other DAG branch is blocked.

Caveat. The README does not show how to start the adapter server or install the package, so those steps need to be confirmed from the docs before use.

Use this in your AI agent

Ask your agent

Using the Deduped MCP, get the setup steps for AhmadHassan-BTed/AutoSwarm-Shadow-Adapter and "Pause a legal review step for human sign-off"

Add Deduped to Claude Code once

claude mcp add --transport http deduped https://dedupedai.com/mcp

Cursor, ChatGPT, others

Share: X LinkedIn Hacker News Email Copy link

Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer