Table of Contents
Fetching ...

GuruAgents: Emulating Wise Investors with Prompt-Guided LLM Agents

Yejin Kim, Youngbin Lee, Juhyeong Kim, Yongjae Lee

TL;DR

GuruAgents demonstrate that prompt-guided LLM agents can operationalize the qualitative insights of investment gurus into deterministic, backtestable portfolio rules. By encoding role definitions, quotations, and deterministic scoring into system prompts, the approach yields replicable decision pipelines that produce diversified to highly concentrated portfolios consistent with each guru’s philosophy. The Buffett agent delivers the strongest performance ($42.2\%$ CAGR) among the five, while the others vary, highlighting the influence of prompt design on outcomes. The work shows a new direction for automated systematic investing and provides public code and data for replication.

Abstract

This study demonstrates that GuruAgents, prompt-guided AI agents, can systematically operationalize the strategies of legendary investment gurus. We develop five distinct GuruAgents, each designed to emulate an iconic investor, by encoding their distinct philosophies into LLM prompts that integrate financial tools and a deterministic reasoning pipeline. In a backtest on NASDAQ-100 constituents from Q4 2023 to Q2 2025, the GuruAgents exhibit unique behaviors driven by their prompted personas. The Buffett GuruAgent achieves the highest performance, delivering a 42.2\% CAGR that significantly outperforms benchmarks, while other agents show varied results. These findings confirm that prompt engineering can successfully translate the qualitative philosophies of investment gurus into reproducible, quantitative strategies, highlighting a novel direction for automated systematic investing. The source code and data are available at https://github.com/yejining99/GuruAgents.

GuruAgents: Emulating Wise Investors with Prompt-Guided LLM Agents

TL;DR

GuruAgents demonstrate that prompt-guided LLM agents can operationalize the qualitative insights of investment gurus into deterministic, backtestable portfolio rules. By encoding role definitions, quotations, and deterministic scoring into system prompts, the approach yields replicable decision pipelines that produce diversified to highly concentrated portfolios consistent with each guru’s philosophy. The Buffett agent delivers the strongest performance ( CAGR) among the five, while the others vary, highlighting the influence of prompt design on outcomes. The work shows a new direction for automated systematic investing and provides public code and data for replication.

Abstract

This study demonstrates that GuruAgents, prompt-guided AI agents, can systematically operationalize the strategies of legendary investment gurus. We develop five distinct GuruAgents, each designed to emulate an iconic investor, by encoding their distinct philosophies into LLM prompts that integrate financial tools and a deterministic reasoning pipeline. In a backtest on NASDAQ-100 constituents from Q4 2023 to Q2 2025, the GuruAgents exhibit unique behaviors driven by their prompted personas. The Buffett GuruAgent achieves the highest performance, delivering a 42.2\% CAGR that significantly outperforms benchmarks, while other agents show varied results. These findings confirm that prompt engineering can successfully translate the qualitative philosophies of investment gurus into reproducible, quantitative strategies, highlighting a novel direction for automated systematic investing. The source code and data are available at https://github.com/yejining99/GuruAgents.

Paper Structure

This paper contains 22 sections, 7 figures, 1 table.

Figures (7)

  • Figure 1: Cumulative returns of five legendary investor-inspired agents (Graham, Buffett, Greenblatt, Piotroski, Altman) and benchmarks (NASDAQ 100, S&P 500) from Q4 2023 to Q2 2025.
  • Figure 2: Evolution of Portfolio Weights by Agent
  • Figure 3: System prompt for the Benjamin Graham Agent emphasizing margin of safety, liquidity, low leverage, and intrinsic-value discipline.
  • Figure 4: System prompt for the Edward Altman Agent highlighting Z–Score variants and zone-based classification.
  • Figure 5: System prompt for the Joel Greenblatt Agent implementing the Magic Formula with eligibility screens and rank-based scoring.
  • ...and 2 more figures