Finish Turning the Agents into Connector Steps
13 of the orchestrator's roughly 40 agents are steps the connector can hand Claude. The rest, starting with the revision and correction agents that editing finished memos depends on, still need converting.
- Path
- plans/Finish-Turning-Agents-into-Connector-Steps.md
- Authors
- Michael Staton
- Augmented with
- Claude Code on Claude Opus 5.5
Finish Turning the Agents into Connector Steps
Where it stands
The method is decided ([[The-Server-Hands-Claude-the-Method-One-Step-at-a-Time]]): each agent in src/agents/ becomes a step file in src/connector/steps/, and next_step hands it to Claude in the partner’s chat. Until the orchestrator runs on the server with its own keys, Claude (or a subagent it delegates to) does every step.
13 steps exist, each naming its source_agent: materials.brief, materials.extract, research.section, research.sources, draft.section, the seven enhance.* steps, and compile.assemble. They cover generating a memo. The connector’s current scope is the opposite: iterating memos that are already done and shared (Plan 9 in the spec).
What to convert, in order
- Revision, which Plan 9 runs on:
-
section_reviser.py, revising a section’s prose without losing what it said. It becomes the rewrite step: inputs are the research file and the current section draft only, with no outside knowledge and no web research. Done 2026-11-21:draft.rewrite, arevision_onlystep that bothstart_revisionpaths reopen in place ofdraft.section. Its inputs are exactly the research and the section as it stands, and the partner’s request leads its instruction (CONN-STEP-11, CONN-REV-01, CONN-REV-03). - Also give
draft.sectionthe current draft as an input when it runs as part of a revision, and add the same no-outside-knowledge line to its instructions. Superseded 2026-11-21 (VP Eng with the operator): revisions usedraft.rewrite, sodraft.sectionwrites first drafts only. It carries the no-outside-knowledge line and doesn’t readsection.current(CONN-STEP-12, restated).
-
- Correction, for “this citation is wrong” and “this fact is off”:
fact_verifier,fact_corrector,citation_validator,citation_corrector,remove_invalid_sources,attribution_audit. - Rewrites and enrichment:
key_info_rewrite,competitive_landscape_researcher,competitive_landscape_evaluator,link_enrichment,socials_enrichment,inject_deck_images(ifenhance.*doesn’t already cover it). - Clean-up passes, which may be server-side code rather than Claude steps:
citation_spacing,internal_comments_sanitizer,anomalies. - Check for overlap and retire:
researcher,research_enhanced,codified_section_researcher,perplexity_sources,source_cataloger,source_extractor,scorecard_agent,scorecard_navigator. Several look superseded by existing steps. Confirm which before converting any. - Not memo steps:
portfolio_listing_agent,slides/,one_pager_generatorbeyondenhance.one_pager. Decide separately.
For each agent
- Read the agent’s prompt and its node in the LangGraph workflow.
- Write
src/connector/steps/<phase>.<name>.mdin the shape of the existing steps:reads,requires_approved,source_agent, the instruction, and what a finished artifact must look like. - Add the step to the registry’s flow (or to a revision path, for steps that only run on request), with tests beside the existing step tests.
- Note in the agent file that the step now exists.
Done when
- A partner can ask Claude for each kind of change in Plan 9’s routing table, and
next_stephands Claude a step for it. - Every agent in
src/agents/is a step, folded into one, or marked retired.
Related
- [[MemoPop-Connector-API]], Plan 9: where an edit goes
- [[Upload-Deal-Folders-With-a-Binaries-Manifest]]: steps for imported deals need their materials recorded
- [[First-Partner-Test-of-the-Connector-from-Claude]]