This is a guest post by Suyeol Yun, Jaeseon Ha, Subeen Pang and Jacob (Chanyeol) Choi at LinqAlpha, in partnership with AWS.
LinqAlpha is a Boston-based multi-agent AI system built specifically for institutional investors. Over 170 hedge funds and asset managers worldwide use LinqAlpha to streamline their investment research for public equities and other liquid securities, transforming hours of manual diligence into structured insights with multi-agent large language model (LLM) systems. The system supports and streamlines agentic workflows across company screening, primer generation, stock price catalyst mapping, and now, pressure-testing investment ideas through a new AI agent called Devil’s Advocate.
In this post, we share how LinqAlpha uses Amazon Bedrock to build and scale Devil’s Advocate.
Conviction drives investment decisions, but an unexamined investment thesis can introduce risk. Before allocating capital, investors often ask, “What am I overlooking?” Identifying blind spots usually involves time-consuming cross-referencing of expert calls, broker reports, and filings. Confirmation bias and scattered workflows make it hard to challenge one’s own ideas objectively. Consider the example thesis, “ABCD will be a generative AI beneficiary with successful AI monetization and competitive positioning.” The thesis seems sound until you probe whether open source alternatives could erode pricing power or if monetization mechanisms are fully understood across the product stack. These nuances often get missed. This is where a devil’s advocate comes in, a role or mindset that deliberately challenges the thesis to uncover hidden risks and weak assumptions. For investors, this kind of structured skepticism is essential to avoiding blind spots and making higher-conviction decisions.
Investors have traditionally engaged in devil’s advocate thinking through manual processes, debating ideas in team meetings, or mapping out pros and cons through informal scenario analysis. LinqAlpha set out to structure this manual and improvised process with AI.
Devil’s Advocate is an AI research agent purpose-built to help investors systematically pressure-test their investment theses using their own trusted sources at 5–10 times the speed of traditional review. To help investors test their investment theses more rigorously, Devil’s Advocate agent in LinqAlpha follows a structured four-step process from thesis definition and document ingestion to automated assumption analysis and structured counterargument generation:
This section outlines how the system works from end to end: how investors interact with the agent, how the AI parses and challenges assumptions using trusted evidence, and how the results are presented. In particular, we highlight how the system decomposes theses into assumptions, links each critique to source materials, and scales this process efficiently using Claude Sonnet 4.0 by Anthropic in Amazon Bedrock. Amazon Bedrock is a fully managed service that makes high-performing foundation models (FMs) from leading AI companies and Amazon available for your use through a unified API.
Investors articulate their thesis as a core assertion supported by underlying reasoning. For example, ABCD will be a GenAI beneficiary with successful AI monetization and competitive positioning. They enter this thesis in Devil’s Advocate in the Investment Thesis field, as shown in the following screenshot.

Investors upload research such as broker reports, expert calls, and public filings in the Upload Files field, as shown in the following screenshot. The system parses, chunks, and indexes this content into a structured evidence repository.

Devil’s Advocate deconstructs the thesis into explicit assertions and implicit assumptions. It scans the evidence base to find content that challenges or contradicts those assumptions.
The system generates a structured critique where each assumption is restated and directly challenged. Every counterpoint is sourced and linked to specific excerpts from the uploaded materials. The following screenshot shows how the system produces a structured, evidence-linked critique. Starting from the investor’s thesis, it extracts assumptions, challenges them, and anchors each counterpoint to a specific source. In this case, the claim that ABCD will benefit from generative AI is tested against two core weaknesses: a lack of a proven monetization path despite new features such as Product, and a track record of avoiding price increases due to customer sensitivity. Each argument is grounded in uploaded research, such as expert calls and analyst commentary, with clickable citations. Investors can trace each challenge back to its source and evaluate whether their thesis still holds under pressure.

The Devil’s Advocate agent is a multi-agent system that orchestrates specialized agents for document parsing, retrieval, and rebuttal generation. Unlike a fixed pipeline, these agents interact iteratively: the analysis agent decomposes assumptions, the retrieval agent queries sources, and the synthesis agent generates counterarguments before looping back for refinement. This iterative back-and-forth is what makes the system agentic rather than a static workflow. The overall architecture can be described as four interdependent stages from ingestion to critique delivery. The architecture follows a four-stage flow from data ingestion to critique delivery.
Users submit an investment thesis, often as an investment committee (IC) memo. The input is received by a custom application running in an Amazon Elastic Compute Cloud (Amazon EC2) instance, which routes the request to Amazon Bedrock. Claude Sonnet 4 by Anthropic in Amazon Bedrock interprets the statement and decomposes it into core assumptions. Amazon EC2 runs a Python-based orchestration layer built by LinqAlpha, which coordinates API calls, manages logging, and controls agent execution.
These documents are handled by a preprocessing pipeline running in an EC2 instance, which extracts raw data and converts it into structured chunks. The EC2 instance runs LinqAlpha’s parsing application written in Python and integrated with Amazon Textract for document parsing. AWS Lambda or AWS Fargate could have been alternatives, but Amazon EC2 was selected because customers in regulated finance environments required persistent compute with auditable logs and strict control over networking. Raw files are stored in Amazon Simple Storage Service (Amazon S3), structured outputs go into Amazon Relational Database Service (Amazon RDS), and parsed content is indexed by Amazon OpenSearch Service for retrieval.
Claude Sonnet 4 by Anthropic in Amazon Bedrock issues targeted retrieval queries across Amazon OpenSearch Service and aggregates counter-evidence from Amazon RDS and Amazon S3. A structured prompt template enforces consistency in the rebuttal output. For example, the agent receives prompts like:
You are an institutional research assistant designed to act as a Devil’s Advocate.
Your task is to challenge investment theses with structured, evidence-linked counterarguments.
Always use provided documents (expert calls, broker reports, 10-Ks, transcripts).
If no relevant evidence exists, clearly state "no counter-evidence found".
Thesis: {user_thesis}
Step 1. Identify Assumptions
- Extract all explicit assumptions (stated directly in the thesis).
- Extract implicit assumptions (unstated but required for the thesis to hold).
- Label each assumption with an ID (A1, A2, A3...).
Step 2. Retrieve and Test
- For each assumption, issue retrieval queries against uploaded sources (OpenSearch index, RDS, S3).
- Prioritize authoritative sources in this order:
1. SEC filings (10-K, 10-Q, 8-K)
2. Expert call transcripts
3. Broker/analyst reports
- Identify passages that directly weaken, contradict, or raise uncertainty about the assumption.
Step 3. Structured Output
For each assumption, output in JSON with the following fields:
{
"assumption_id": "A1",
"assumption": "<concise restatement of assumption>",
"counter_argument": "<evidence-backed critique, phrased in analyst style>",
"citation": {
"doc_type": "10-K",
"doc_id": "ABCD_10K_2023",
"page": "47",
"excerpt": "Management noted that monetization of Product features remains exploratory, with no committed pricing model."
},
"risk_flag": "<High | Medium | Low> (relative importance of this counterpoint to the thesis)"
}
Step 4. Output Formatting
- Return all assumptions and critiques as a JSON array.
- Ensure every counter_argument has at least one citation.
- If no evidence found, set counter_argument = "No counter-evidence found in provided sources" and citation = null.
- Keep tone factual and neutral (avoid speculation).
- Avoid duplication of evidence across assumptions unless highly relevant.
Step 5. Analyst Voice Calibration
- Write counter_arguments in the style of an institutional equity research analyst.
- Be concise (2–3 sentences per counter_argument).
- Focus on material risks to the investment case (competitive dynamics, regulation, margin compression, technology adoption).
The following is a sample output:
[
{
"assumption_id": "A1",
"assumption": "ABCD will successfully monetize GenAI features like Product",
"counter_argument": "Recent disclosures suggest Product monetization is still experimental, with management highlighting uncertainty around pricing models. This raises questions about near-term revenue contribution.",
"citation": {
"doc_type": "10-K",
"doc_id": "ABCD_10K_2023",
"page": "47",
"excerpt": "Management noted that monetization of Product features remains exploratory, with no committed pricing model."
},
"risk_flag": "High"
},
{
"assumption_id": "A2",
"assumption": "Open-source competitors will not significantly erode ABCD's pricing power",
"counter_argument": "Expert commentary indicates increasing adoption of open-source alternatives for creative workflows, which could pressure ABCD’s ability to sustain premium pricing.",
"citation": {
"doc_type": "Expert Call",
"doc_id": "EC_DesignAI_2024",
"page": "3",
"excerpt": "Clients are experimenting with Stable Diffusion-based plugins as lower-cost substitutes for ABCD Product."
},
"risk_flag": "Medium"
}
]
The final critique is returned to the user interface, showing a list of challenged assumptions and supporting evidence. Each counterpoint is linked to original materials for traceability. This end-to-end flow enables scalable, auditable, and high-quality pressure-testing of investment ideas.

The Devil’s Advocate agent operates as a multi-agent system that orchestrates parsing, retrieval, and rebuttal generation across AWS services. Specialized agents work iteratively, with each stage feeding back into the next, facilitating both document fidelity and reasoning depth. Investors interact with the system in two ways, forming the foundation for downstream processing. Investors can enter their thesis in a natural language statement of investment view. Often, this takes the form of an IC memo. Another option is to upload documents. Investors can upload finance-specific materials such as earnings transcripts, 10-Ks, broker reports, or expert call notes.
Uploaded materials are parsed into structured text and enriched with semantic structure before indexing:
Processed data is stored and indexed for fast retrieval and reproducibility:
Reasoning and rebuttal generation are powered by Claude Sonnet 4 by Anthropic in Amazon Bedrock. It performs the following functions:
The LinqAlpha Devil’s Advocate agent uses a modular multiagent design where different Claude models specialize in distinct roles:
These agents run iteratively: the Parsing agent enriches documents, the Retrieval agent surfaces potential counter-evidence, and the Synthesis agent generates critiques that might trigger additional retrieval passes. This back-and-forth orchestration, managed by a Python-based service on Amazon EC2, makes the system genuinely multi-agentic rather than a linear pipeline.
The LinqAlpha Devil’s Advocate agent employs a hybrid approach on Amazon Bedrock, combining Claude Sonnet 3.7 for document parsing with vision-language support, and Claude Sonnet 4.0 for reasoning and rebuttal generation. This separation facilitates both accurate document fidelity and advanced analytical rigor. Key capabilities include:
For hedge funds, asset managers, and research teams, the choice of Amazon Bedrock with Anthropic models is not merely about technology; it directly addresses core operational pain points in investment research:
This combination of AWS based multi-agent orchestration and LLM scalability makes the LinqAlpha Devil’s Advocate agent uniquely suited to institutional finance, where speed, compliance, and analytical rigor must coexist. With Amazon Bedrock, the solution achieved managed orchestration and built-in integration with AWS services such as Amazon S3, Amazon EC2, and OpenSearch Service, which provided fast deployment, full control over data, and elastic scale.
“This helped me objectively gut-check my bullish thesis ahead of IC. Instead of wasting hours stuck in my own confirmation bias, I quickly surfaced credible pushbacks, making my pitch tighter and more balanced.”
— PM at Tiger Cub Hedge Fund
Devil’s Advocate is one of over 50 intelligent agents in LinqAlpha’s multi-agent research system, each designed to address a distinct step of the institutional investment workflow. Traditional processes often emphasize consensus building, but Devil’s Advocate extends research into the critical stage of structured dissent, challenging assumptions, surfacing blind spots, and providing auditable counterarguments linked directly to source materials.
By combining Claude Sonnet 3.7 (for document parsing with VLM support) and Claude Sonnet 4.0 (for reasoning and rebuttal generation) on Amazon Bedrock, the system facilitates both document fidelity and analytical depth. Integration with Amazon S3, Amazon EC2, Amazon RDS, and OpenSearch Service enables more secure and scalable deployment within investor-controlled AWS environments.
For institutional clients, the impact is meaningful. By automating repetitive diligence tasks, the Devil’s Advocate agent frees analysts to spend more time on higher-order investment debates and judgment-driven analysis. IC memos and stock pitches can benefit from structured, source-grounded skepticism, supporting clearer reasoning and more disciplined decision-making.
LinqAlpha’s agentic architecture shows how multi-agent LLM systems on Amazon Bedrock can transform investment research from fragmented and manual into workflows that are scalable, auditable, and decision grade, tailored specifically for the demands of research on public equities and other liquid securities.
To learn more about Devil’s Advocate and LinqAlpha, visit linqalpha.com.
Manuel Rioux est fièrement propulsé par WordPress