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
- Set
SHADOW_JWT_SECRETto a secret of at least 32 characters, and optionallySHADOW_API_PORT(default 8800), before starting the adapter. - 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.
- 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.
- 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
Every Monday: the 5 hottest repos and exactly how to use them. Free, one email a week, unsubscribe anytime.
Get them freeShare: X LinkedIn Hacker News Email Copy link
Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer