Manual posting workflow: opportunity queue, draft review, one-click post, manual handoff #9
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Add a human-in-the-loop posting workflow to the Magpie UI, modelled on the Peregrine review-and-approve pattern. Covers both platforms Magpie can automate (Reddit via Playwright) and platforms it cannot (Lemmy, LinkedIn, etc.) where the workflow becomes a copy-to-clipboard handoff.
Flow
UI Components
Opportunities Queue
pending_review|approved|posted|dismissedDraft Review Panel
reply_to_thread|new_postPost Actions
trigger_sub_postfor Reddit campaigns where Playwright can handle itmanual_postedstatus so the post still lands in history.Backend
New DB table:
opportunitiesNew endpoints
GET /opportunities— list with status filterPOST /opportunities— create (manual add or signal-extraction auto-create)PATCH /opportunities/{id}— update draft, statusPOST /opportunities/{id}/approve— approve + trigger post or return manual-handoff payloadPOST /opportunities/{id}/dismiss— mark dismissedManual handoff payload
MCP Tools
Add
create_opportunityandlist_opportunitiestomcp/server.jsso Claude can flag threads directly from a conversation (e.g. user pastes a Lemmy URL, Claude creates the opportunity with a draft).Example trigger
User: pastes https://lemmy.world/post/45849526 (LSC meme about broken job search)
Claude: creates opportunity, drafts a reply in Peregrine voice, queues it for review.
User: opens Magpie, reviews draft, edits one line, clicks "Copy + Open" for manual handoff.
Out of scope
References