Code
How virattt/ai-hedge-fund is laid out, and where to start for common changes.
There is no import map for this report yet.
Where to start reading
- Repository root
- Repository root
- Likely public API
- Likely public API
- Likely start-up file
- Likely start-up file
- Suggested starting pointAI
- Suggested starting pointAI
Find files for a task
AIAdd a New Signal Strategy
- Create a new Python file in hedge_fund/signals/ (e.g., my_strategy.py) inheriting from Signal base class
- Implement analyze() method to score securities and return SignalOutput with positions
- Register the strategy in fund configuration YAML under 'signals' section
- Add unit tests in hedge_fund/signals/test_my_strategy.py following existing test patterns
Add a New UI Component to Dashboard
- Create a new file in hedge_fund/tui/ (e.g., my_widget.py) extending textual.widget.Widget
- Implement render() and binding methods for interactive elements
- Style using TCSS file hedge_fund/tui/app.tcss or inline CSS
- Register widget in main app container (app.py) or builder module
Integrate a New LLM Provider
- Add langchain package dependency to pyproject.toml (e.g., langchain-myai)
- Create provider implementation in hedge_fund/llm/client.py following existing provider patterns
- Register provider in hedge_fund/llm/registry.py with model mappings
- Add unit test in hedge_fund/llm/test_client.py to verify provider integration
Add a New Risk or Portfolio Constraint
- Define constraint model in hedge_fund/risk/limits.py or extend Limit protocol
- Implement validation logic in hedge_fund/portfolio/validation.py
- Add constraint to fund spec YAML under 'risk' or 'portfolio' section
- Add unit tests in hedge_fund/risk/test_limits.py or hedge_fund/portfolio/test_construction.py
Change the public API
Trace runtime behavior
Add or update tests
Change build or automation
RepoPilot lists up to 500 files, so a file missing here may still exist.
- Files marked “likely” are guessed from their names.