Building the Costvela Agent: Supporting Complex Pipelines & 3 Modes
A look under the hood of our Agentic AI. How Researcher, Architect, and Engineer modes collaborate to deliver the future of Autonomous Finance.
2026 is the year of Agentic AI, but most tools are just chatty autocomplete.
To build a system capable of handling billion-dollar financial models, we couldn't rely on a single LLM. We had to build a Synthetic Financial Team.
We realized that a real analyst doesn't just "write code" immediately. They research context, architect a solution, and then execute. So, we architected our Agent to do exactly that.
So, we built our Agent with Three Distinct Modes, functioning as a cohesive team.
1. The Researcher
"Measure twice, cut once."
Before a single line of code is written, the Researcher mode activates.
- Goal: Context gathering.
- Action: It scans your existing files, understands your current schema, and looks for dependencies.
- Why it matters: It prevents the AI from hallucinating variables that don't exist or suggesting logic that conflicts with your business rules.
2. The Architect
"Design the blueprint."
Once the context is clear, the Architect takes over.
- Goal: High-level design and structure.
- Action: It proposes the shape of the solution. "We need a new 'Headcount' group, with inputs for 'Salary' and 'Hiring Plan'."
- Why it matters: This ensures your model remains modular and scalable. The Architect thinks in systems, not just formulas.
3. The Engineer
"Build it right."
Finally, the Engineer executes the plan.
- Goal: Implementation and Syntax.
- Action: It writes the precise Costvela DSL code, ensuring correct syntax, variable referencing, and mathematical accuracy.
- Why it matters: You get executable, bug-free logic that runs immediately.
Supporting Complex Pipelines
From "Excel to DSL" conversion to "Autonomous Scenario Planning," these agents don't work in isolation. They form a Trinity Pipeline.
When you upload a complex spreadsheet:
- Researcher maps the Excel cells to concepts.
- Architect groups these concepts into a logical mode structure.
- Engineer generates the final DSL code.
Toward Autonomous Finance
This multi-mode architecture is our stepping stone to Autonomous Finance. We envision a future where your Agent monitors your actuals, autonomously spins up "Correction" scenarios, and proactively suggests budget adjustments—all verified by the same rigorous pipeline.
We're building more than a tool; we're building your 24/7 financial analyst team.