Building a Multi-Agent Architecture for Investment Research: A Practical Guide

    This article explains how to build a multi-agent system for investment research by turning one-off Q&A into an auditable, reusable, and extensible research pipeline. It covers the limitations of single-turn chat in quantitative and industry research, the target behavior of a one-sentence input with structured output, and six core capabilities abstracted from common agent frameworks: profile isolation, skills, kanban collaboration, a dispatcher, scratch workspaces, and heartbeat-reclaim. It then walks through seven business roles, a complete run flow, reusable skill and command checklists, and an evolution roadmap, along with engineering notes on unified data gateways, least-privilege permissions, reproducible confidence scoring, and hosted execution.

    1. Background: Why Single-Turn Q&A Is Not Enough for Investment Research

    In quantitative research and industry analysis, a common pain point is that sending a question to a general-purpose chat model often returns text that looks correct but cannot be acted on. The issue is not model capability but a missing workflow: there is no long-versus-short debate, no independent data verification, no explicit risk constraints, and no place to turn conclusions into reusable knowledge.

    This article is therefore not about a specific tool. It addresses a general technical problem: how to use a multi-agent architecture to turn one-off Q&A into an auditable, reusable, and extensible research pipeline.

    2. Target Behavior: One-Sentence Input, Structured Output

    The acceptance criteria can be broken down into four layers:

    1. Minimal input: The user sends a single natural-language instruction, such as “Analyze methanol,” without writing scripts or running a second command.
    2. Process isolation: Multiple roles run in separate working directories and do not pollute each other’s intermediate artifacts.
    3. Adversarial roles: Bullish and bearish cases must be written separately to avoid a single narrative reinforcing itself.
    4. Actionable output: The report must include a directional view, a confidence score, a suggested position range, and several trackable observation thresholds.

    A complete run takes a little over ten minutes. The agents execute for less than ten minutes; the rest is interaction time spent confirming the task breakdown with the system. This “align on the breakdown first, then release execution” design is key to controlling hallucinations and rework costs.

    3. Six Key Capability Abstractions

    This architecture is not tied to a specific product. It relies on three categories of capabilities that are relatively mature in mainstream agent frameworks, summarized in six points:

    • Profile isolation: Each role has its own model selection, persona rules, memory space, and skill set. After startup, each runs as an independent process and cannot see the others’ drafts.
    • Skills: Domain knowledge, data-fetching scripts, and report templates are packaged into loadable modules, so knowledge is captured once and reused across roles.
    • Kanban collaboration: Task cards, rather than long conversations, are the collaboration medium. Card status represents progress and naturally supports resuming from a breakpoint.
    • Dispatcher: It splits the overall task into subtasks, assigns them to the appropriate roles, and controls concurrency and dependency order.
    • Scratch workspace: Each role has an independent sandbox directory for intermediate files to prevent mutual overwrites.
    • Heartbeat-reclaim: If a long-running role loses contact, its task is automatically reclaimed and reassigned, addressing the “stuck” problem in long-chain tasks.

    An illustrative task card structure (pseudocode that only expresses field semantics):

    1. task_id: T-20240612-001
    2. title: Bullish and bearish research on methanol
    3. owner: cio
    4. depends_on: []
    5. acceptance:
    6. - Both the bull and the bear produce independent conclusions
    7. - Risk control provides a maximum drawdown constraint
    8. - Output includes confidence and observation thresholds
    9. status: dispatched

    4. Seven Roles and a Complete Run

    Role list (7 business roles plus 1 default chat entry point):

    Role Responsibility Key Output
    Chief Investment Officer Break down tasks and make the final decision Final report
    Bullish Researcher Build the bullish case List of upside drivers
    Bearish Researcher Build the bearish case List of downside risks
    Technical Analyst Price-volume and structure analysis Key levels and patterns
    Market Researcher Supply-demand and industry chain Fundamental data table
    Risk Control Constraints and stress testing Position cap, stop-loss
    Memory Reflector Review and knowledge capture Experience entries

    The run flow is: the default entry receives the instruction → the Chief Investment Officer breaks it down and creates cards → the researcher, technical, and market tracks run in parallel → risk control performs constraint checks in the draft area → the Chief Investment Officer synthesizes the report → the Memory Reflector writes to long-term memory. If any role times out without a heartbeat, the dispatcher reclaims and reassigns the card to ensure the chain converges.

    5. Three Reference Checklists (Ready to Reuse)

    Skills (2): (1) A data fetching and cleaning skill that standardizes field definitions and missing-value handling; (2) A report rendering skill that fixes the output into three sections: confidence, position suggestion, and observation thresholds.

    Common commands (10): Analyze a symbol; compare two symbols; update a role’s knowledge; check kanban progress; pause and revise the breakdown; export a report; review the deviation from the last conclusion; load a new skill; adjust risk-control parameters; enable scheduled inspection.

    6. Evolution Roadmap and Engineering Notes

    There are two next steps. First, port the multi-role division of labor from futures to equity research; the role boundaries stay largely the same, and only the data skills need to be replaced. Second, introduce proactive push: the system runs periodic self-checks, filters out symbols worth flagging, and pushes conclusions to an instant messaging tool.

    Three engineering points deserve emphasis. All external data access should go through a unified gateway with audit logs. Role permissions should follow least privilege, with write operations limited to each role’s own draft area. Confidence scores in reports must specify how they are calculated; otherwise, they are not reproducible. For hosted execution, common cloud capabilities such as container platforms, message queues, object storage, and monitoring alerts can carry scheduling and record-keeping, avoiding state loss in a single-machine environment.