Building a Multi-Agent Investment Research System: Architecture and Implementation
This article walks through a practical architecture for a multi-agent investment research system built on large language models. It explains why a single agent hits three walls in this domain (one-sided perspective, context pollution, and no traceable process), then breaks down the overall design: role profiles, skill packages, a kanban board, a dispatcher, per-role scratch workspaces, and a heartbeat-reclaim mechanism. Seven roles, six key capabilities, a sample task card, an end-to-end run timeline, three reference checklists, the changes needed to move from futures to equities, proactive alerting concerns, and common pitfalls with acceptance criteria are all covered.
1. Background: Three Bottlenecks of a Single Agent in Investment Research
Connecting a large language model directly to market data and asking it to “analyze a given instrument” is the first path most teams try. Once you push that path further, you usually hit three walls.
The first wall is a single point of view. The value of an investment research conclusion comes precisely from the long-versus-short confrontation. Looking only at the bullish logic makes it easy to mistake seasonal supply contraction for the start of a trend; listening only to the bearish case makes it easy to overlook cost support. A single agent naturally tends to follow the questioner’s hints and struggles to build an opposing case against itself.
The second wall is context pollution. Technical analysis, fundamentals, macro liquidity, and risk constraints rely on completely different reasoning methods. Stuff them into the same context and the model treats “a bullish moving-average alignment” and “inventory destocking” as evidence of equal weight, producing output that looks comprehensive but has no sense of priority.
The third wall is that the process cannot be traced. A one-off question-and-answer session leaves only the conclusion and no intermediate artifacts. The next day, when you want to review “why this position size was given at the time,” there is nothing to work from.
A multi-agent architecture targets exactly these three points: role isolation buys you adversarial perspectives, process isolation buys you clean context, and workspace record-keeping buys you reviewability.
2. Overall Architecture: Roles, Isolation, and Aggregation
The skeleton of the system can be summarized in one sentence: one entry role understands intent, multiple specialized roles work in parallel in their own isolated environments, one aggregation role performs cross-validation and outputs the conclusion, and one reflection role distills experience back into the system.
A few general concepts are involved here, so it is worth laying them out clearly to avoid ambiguity later.
- Role Profile: An independent agent configuration containing model selection, persona rules, memory, and a skill set. Once multiple roles are started, they are separate, mutually invisible processes. They cannot see each other’s intermediate artifacts and can only exchange information through explicit deliverables.
- Skill Package: Bundles a domain’s knowledge, decision procedures, and script tools into a reusable unit that is loaded on demand rather than kept resident in the prompt.
- Kanban: A collaboration panel built around task cards, where card status transitions form the workflow state machine and avoid having roles synchronize by “shouting” at each other in natural language.
- Dispatcher: The component that assigns tasks according to dependencies, deciding which cards can run in parallel and which must run sequentially.
- Scratch Workspace: A dedicated file directory for each role, used to store intermediate scripts, raw scraped data, and charts, so outputs land on disk instead of being stuffed into the conversation.
- Heartbeat-Reclaim: A mechanism that periodically wakes roles to run routine checks and, when a task stalls abnormally, reclaims resources and resets state.
The seven roles divide the work as follows: the entry role (the conversational interface for the user), the bull researcher, the bear researcher, the technical analyst, the market researcher, risk control, and the memory reflection agent. In this architecture, aggregation is handled by the entry role doubling as the “chief,” though it can also be split out as an eighth role depending on task complexity.
The direct benefit of isolation is that the technical analyst does not need to understand spot premiums and discounts, and risk control does not need to read the full reasoning chains of both the bull and bear reports. Each consumes only structured conclusions. Context length is partitioned, so a single role’s prompt can be written short and hard.
3. How to Use Six Key Capabilities
1. Role profiles isolate context. Each role keeps only the decision rules for its own domain. The risk control role’s rules must explicitly state that it “does not participate in direction judgment and only applies exposure and drawdown constraints to a direction that has already been given,” otherwise it degrades into a second analyst.
2. Skill packages load on demand. Deterministic logic such as data fetching, indicator calculation, and report rendering should be handed to scripts rather than left to the model’s improvisation. The model handles judgment and trade-offs; scripts handle precision.
3. The kanban drives state transitions. Cards should support these statuses: to be decomposed, in progress, pending cross-validation, finalized, and archived. Status is the source of truth, which prevents multiple roles from duplicating work.
4. The dispatcher manages dependencies. Bull analysis, bear analysis, and technical analysis can run in parallel; aggregation must wait until all three enter “pending cross-validation”; risk control is triggered only after aggregation produces a first draft.
5. The scratch workspace keeps records. Agree that each role writes to fixed filenames, for example long_thesis.md, short_thesis.md, and risk_check.json, and the aggregation role reads them by convention. The interface stays stable, which makes implementations easy to swap.
6. Scheduled wake-up and abnormal reclaim. Used for pre-market routine scans and stalled-task cleanup. If a task exceeds its expected duration without updating its card, it is reclaimed and redispatched to prevent “zombie tasks” from occupying the kanban.
A sample card structure (pseudocode, only expressing the field design):
{"card_id": "methanol-20260826","title": "Analyze methanol","assignee": "technical_analyst","status": "in_progress","depends_on": [],"deliverable": "technical_view.md","timeout_seconds": 600}
4. Timeline of a Complete Run
Take the single instruction “analyze methanol” as an example. End to end it takes a little over ten minutes, of which the model’s actual computation is under ten minutes and the rest is the interaction time between the user and the system to confirm the decomposition plan. This ratio is worth noting: human-machine interaction cost is often higher than computation cost, so architecture design should prioritize compressing the confirmation step.
The timeline is roughly as follows:
- The entry role parses intent, generates task cards and a dependency graph, and confirms the decomposition plan with the user (whether to include cross-period comparison, whether to give a specific position range).
- The dispatcher assigns three cards in parallel: bull logic, bear logic, and technical analysis.
- The market researcher adds macro and upstream/downstream linkage information, writing it into a shared read-only area.
- Once the three deliverables are in place, the entry role cross-validates as the “chief” and flags conflicting evidence.
- Risk control applies exposure and stop-loss constraints to the conclusion and outputs an assumption for the maximum tolerable drawdown.
- The memory reflection agent writes this run’s judgment biases into long-term memory for retrieval by later tasks.
- The final report is rendered and archived to disk.
The final report structure should be fixed as: a conclusion summary, a confidence score with the basis for that score, the direction judgment, a suggested position range, several observable thresholds (trigger conditions and corresponding actions), and conflicting evidence plus invalidation conditions. The confidence score must come with a rationale; otherwise it is just a number that cannot be questioned.
5. Three Reference Checklists
Role checklist (7): entry/aggregation, bull researcher, bear researcher, technical analyst, market researcher, risk control, memory reflection agent.
Skill package checklist (2): a data fetching and indicator calculation package; a report rendering and archiving package.
Command checklist (10, grouped by purpose)
- Initialization: initialize the workspace, load role profiles
- Execution: submit an analysis task, view the kanban, view a role’s draft
- Control: pause, resume, reclaim stalled tasks
- Maintenance: update skill packages, write reflection memory, archive reports
6. Extending from Futures to Equities: What Needs to Change
The logic of the multi-role division of labor can be reused directly, with changes concentrated in three places. First, replace the data skill package (financial statements, industry classification, and shareholder structure replace warehouse receipts and basis). Second, add a “financial statement interpretation” role, because equity fundamentals are more granular. Third, change the threshold system from chart price levels to event-driven triggers (earnings releases, share unlocks, rating changes). There is no need to increase the number of roles; get it working first, then split further.
7. Proactive Push and Engineering Considerations
Moving the system from “passive question-and-answer” to “proactive alerts” hinges on letting scheduled tasks judge the value of information themselves and then push conclusions to an instant messaging tool. Four points matter in practice:
- Frequency governance: Set a daily push cap and quiet hours to avoid alert fatigue.
- Deduplication: The same conclusion for the same instrument is pushed only once within a set window.
- Failure degradation: When data is missing, explicitly output “insufficient evidence” instead of a conclusion that looks complete.
- Observability: Send scheduling, per-role duration, and card stall counts into a unified logging service and monitoring alerts; general-purpose category capabilities are sufficient to handle this.
8. Common Pitfalls and Acceptance Criteria
The three most common pitfalls are: role prompts overstepping into each other’s territory and making conclusions homogeneous; deliverable formats not being fixed, causing the aggregation role to fail parsing frequently; and missing invalidation conditions, so the report always “looks correct.”
For acceptance, look at four metrics: whether the bull and bear conclusions are genuinely opposed, whether the confidence score comes with a basis, whether thresholds are observable and executable, and whether conclusion drift across repeated runs on the same input stays within an acceptable range. Only when all four pass is this architecture truly usable, rather than merely able to run through a demo once.
