DEDUPED Hot AI repos, turned into use cases Get 5 a day

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.

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.

Share: X LinkedIn Hacker News Email Copy link

Disclaimer

Deduped lists open-source repositories that belong to other people. We do not own, maintain, audit, or vouch for any of them, and a repo appearing here is not an endorsement or a safety check. The use cases, steps, and prompts are written by AI and may be incomplete, outdated, or just wrong. Where a use case is marked "Seen in the wild", we link to public posts where someone described something similar, but we have not verified those posts and the use case itself is still our AI's own write-up. Use all of this at your own risk. Only run code, commands, or agents on systems and accounts you are authorized to use, and read the code and every command before you run it, especially anything that touches credentials, files, or the network. Nothing here is professional, security, legal, or financial advice. All trademarks and project names belong to their respective owners, and their use here does not imply affiliation. Content is provided as is, without warranties of any kind. Found a mistake, a safety problem, or something you want removed? Email [email protected] and we will look at it promptly. Full disclaimer page