virattt / dexter
An autonomous agent for deep financial research
AI Architecture Analysis
This repository is indexed by RepoMind. By analyzing virattt/dexter in our AI interface, you can instantly generate complete architecture diagrams, visualize control flows, and perform automated security audits across the entire codebase.
Our Agentic Context Augmented Generation (Agentic CAG) engine loads full source files into context on-demand, avoiding the fragmentation of traditional RAG systems. Ask questions about the architecture, dependencies, or specific features to see it in action.
Repository Overview (README excerpt)
Crawler viewDexter š¤ Dexter is an autonomous financial research agent that thinks, plans, and learns as it works. It performs analysis using task planning, self-reflection, and real-time market data. Think Claude Code, but built specifically for financial research. Table of Contents ⢠š Overview ⢠ā Prerequisites ⢠š» How to Install ⢠š How to Run ⢠š How to Evaluate ⢠š How to Debug ⢠š± How to Use with WhatsApp ⢠š¤ How to Contribute ⢠š License š Overview Dexter takes complex financial questions and turns them into clear, step-by-step research plans. It runs those tasks using live market data, checks its own work, and refines the results until it has a confident, data-backed answer. **Key Capabilities:** ⢠**Intelligent Task Planning**: Automatically decomposes complex queries into structured research steps ⢠**Autonomous Execution**: Selects and executes the right tools to gather financial data ⢠**Self-Validation**: Checks its own work and iterates until tasks are complete ⢠**Real-Time Financial Data**: Access to income statements, balance sheets, and cash flow statements ⢠**Safety Features**: Built-in loop detection and step limits to prevent runaway execution ā Prerequisites ⢠Bun runtime (v1.0 or higher) ⢠OpenAI API key (get here) ⢠Financial Datasets API key (get here) ⢠Exa API key (get here) - optional, for web search Installing Bun If you don't have Bun installed, you can install it using curl: **macOS/Linux:** **Windows:** After installation, restart your terminal and verify Bun is installed: š» How to Install ⢠Clone the repository: ⢠Install dependencies with Bun: ⢠Set up your environment variables: š How to Run Run Dexter in interactive mode: Or with watch mode for development: š How to Evaluate Dexter includes an evaluation suite that tests the agent against a dataset of financial questions. Evals use LangSmith for tracking and an LLM-as-judge approach for scoring correctness. **Run on all questions:** **Run on a random sample of data:** The eval runner displays a real-time UI showing progress, current question, and running accuracy statistics. Results are logged to LangSmith for analysis. š How to Debug Dexter logs all tool calls to a scratchpad file for debugging and history tracking. Each query creates a new JSONL file in . **Scratchpad location:** Each file contains newline-delimited JSON entries tracking: ⢠**init**: The original query ⢠**tool_result**: Each tool call with arguments, raw result, and LLM summary ⢠**thinking**: Agent reasoning steps **Example scratchpad entry:** This makes it easy to inspect exactly what data the agent gathered and how it interpreted results. š± How to Use with WhatsApp Chat with Dexter through WhatsApp by linking your phone to the gateway. Messages you send to yourself are processed by Dexter and responses are sent back to the same chat. **Quick start:** Then open WhatsApp, go to your own chat (message yourself), and ask Dexter a question. For detailed setup instructions, configuration options, and troubleshooting, see the WhatsApp Gateway README. š¤ How to Contribute ⢠Fork the repository ⢠Create a feature branch ⢠Commit your changes ⢠Push to the branch ⢠Create a Pull Request **Important**: Please keep your pull requests small and focused. This will make it easier to review and merge. š License This project is licensed under the MIT License.