Almanak AI Agent Swarm

Accelerating Quant Research & DeFi Strategy Deployment.

Introducing: The Strategy Team

Executive Summary

While the industry buzzes about autonomous blockchain agents, the reality is that today's on-chain environment is still too unpredictable — and too adversarial — to entrust significant capital to nondeterministic fully autonomous AI agents. While this field matures, at Almanak we take a more pragmatic stance: empower humans first. By providing a Team of 18 specialized AI agents that accelerate idea-to-deployment workflows, we cut strategy development cycles from days or even months to minutes without compromising quality and security.

The AI Agent Swarm integrates seamlessly with the Almanak Platform for building, optimizing and managing sophisticated financial strategies. The Swarm orchestrates: research, design, coding, testing, backtesting, QA, permissions, deployment on our platform, monitoring, visualization, troubleshooting and more. Humans are still the pilots but now they have a sophisticated team of AI agents doing all the heavy lifting at lightning speed.

Key Innovation
Think Cursor or Windsurf but for Quants in DeFi - increasing their productivity by orders of magnitude.

Agents

Almanak Agentic Swarm wheel
Figure 1 - The Almanak AI Agent Swarm: 18 domain-expert agents collaborating towards a shared goal.
Agent Role Main Output
Strategist Designs strategies based on user requirements. Strategy Design
Coder Translates designs into code using Almanak's Strategy Framework. Strategy Code
Reviewer Reviews the work of other agents to ensure quality and alignment. Reviews
QA Engineer Performs tests and on-chain simulations (e.g. via Anvil). Test Results
Debugger Root-cause analysis & fixes. Bug Reports
UI Designer Creates dashboards for monitoring strategy performance. Dashboard Code
Permission Mgr Identifies required (SAFE) permissions and creates payload for signature. Permissions Payload
Deployer Packages the strategy and (optionally) pushes it onto the platform. Deployment File
Data Wizard Gathers on-chain and off-chain data. On/Off-chain Data
Researcher Explores chains and protocols to find insights. Actionable Reports
Quant Applies, refines and tests financial models. Financial Models & Code
Stack Expert Provides information about Almanak's Stack and Platform. Stack Information
SDK Master Reads Protocols' SDKs and writes wrappers for Almanak's framework. SDK Wrappers
Supervisor Orchestrates other agents. Agentic Coordination
Vault Manager Manages vaults. Vault Management
Influencer Shares results and insights with the community. Engaging Content
Troubleshooter Assists users to troubleshoot issues with their strategies. Actionable Fixes
Security Guard Analyzes code submitted to the platform for security threats. Security Reports

Each agent can be leveraged independently or in combination, depending on the goal.

Teams

The magic really happens when agents collaborate. There is an intelligence that arises when agents work together and feed off each other. The Swarm offers specialized teams, each focusing on a specific aspect of strategy development. We've all noticed the powerful evolution from LLM to agents to agents with tools to multi-agent systems, where each agent has its own expertise and tools. The MAS approach reduces the hallucinations happening from the agent being confused by trying to do too much or having too many tools. This modular approach allows for flexibility, scalability and maximum efficiency of agents collaboration.

This document introduces the Strategy Team which is a multi-agent system for strategy development. Other teams such as the Research Team and the Backtesting Team will be introduced and detailed in future documents.

Strategy Team
Strategy Team: multi-agent system for strategy development

Each team operates independently but can collaborate when necessary. The system's architecture allows for easy integration of new teams and agents as the project evolves.

Strategy Team - Architecture

Strategies deployed and running on the Almanak Platform are implemented via the Almanak Strategy Framework, a Python library that allows for easy deployment of robust blockchain and DeFi strategies. Users are already creating and deploying strategies on the platform. Users are coming up with their strategy idea, implementing it in Python via the strategy framework, adding dashboards, setting permissions for their SAFE wallet and packaging the strategy to push it on the platform and even share it with the community. With the rise of AI Agents, we challenged ourselves to offload the heavy lifting from these steps to AI Agents to speed up the strategy development cycle from hours, days or even weeks to minutes without compromising quality and security. As for the 'coming up with the strategy idea', that's where the Research Team comes in. But let's focus on the Strategy Team for now.

The Strategy Team is implemented via LangGraph. Each node is an agent and each edge represents a conditional transition to the next agent. We opted for a graph-based workflow instead of an orchestrator or supervisor pattern because it offers more stability and fits our needs perfectly. Shared memory flows through a typed TeamState object so that every agent sees the whole picture while touching only its own scope of responsibility. The Research Team however, is implemented as a Swarm pattern using the OpenAI definition and implementation.

LangGraph offers a deterministic flow execution, state persistence, and native support for human-in-the-loop checkpoints. When we choose to enable --yolo mode the graph simply shortcuts those checkpoints (available only for power users).

The system's architecture is designed for both flexibility and reliability. The LangGraph implementation allows for:

Strategy Team state graph
Figure 3 - Strategy Team: state graph with conditional transitions between agents.

The Strategy Team workflow follows a structured process from concept to deployment, which has inner feedback loops between agents:

1
Requirements Gathering
The Strategist agent captures user requirements and translates them into a formal strategy specification.
2
Strategy Design
The Strategist creates a detailed design including state machine definitions, configuration parameters, and key metrics.
3
Design Review
The Reviewer evaluates the design for completeness, feasibility, and alignment with the Almanak framework.
4
Implementation
The Coder translates the design into executable Python code using the Almanak Strategy Framework.
5
Code Sound Check
The QA Engineer performs initial syntax and structure validation of the code.
6
Code Review
The Reviewer performs deeper analysis and framework conformance checks.
7
Testing
The QA Engineer runs tests using Anvil to simulate on-chain behavior.
8
Debugging
If issues arise, the Debugger analyzes root causes and suggests fixes, which the Coder implements.
9
Dashboard Creation
The UI Designer creates Streamlit dashboards for strategy monitoring.
10
Permissions Setup
The Permission Manager creates SAFE-based access control lists.
11
Deployment
The Deployer packages the strategy and optionally pushes it on the platform.

The feedback loop between the Reviewer and the Coder, as well as the feedback loop between the QA Engineer, the Debugger, and the Coder, really is what makes the system so powerful. Here is a simplified example of how these feedback loops work:

Feedback Loops - Simplified Example


Strategy Team in Action

Simple Example: BasicLP Strategy

Below is a simple example of a Basic LP strategy opening a position on Uniswap V3. The user requirements are translated into a formal strategy specification, which is then implemented in Python using the Almanak Strategy Framework.

Input: User Requirements

Create a strategy called BasicLP that takes a USD amount in settings. During the initialization, wrap that amount worth of ETH to WETH. Then buy 50 % of that worth in WBTC, open a UniV3 LP with the remaining WETH/WBTC (±10 % range). During teardown, close the position and back assets to ETH. Add a dashboard that shows the Open/Close actions as well as the price overtime vs my position.

Output: Strategy Code

This is a terminal/console example showing the Strategy Team in action end-to-end. The platform will provide a full UI for the Strategy Team (unveiling soon!).

Other Examples

The exciting part is that you can rapidly develop different type of strategies using our the Strategy Team. Here are additional examples that will be showcased with the upcoming release of the UI.

Funding Rate Arbitrage

Create a strategy called FundingArb that monitors funding rates across Hyperliquid and Binance for BTC and ETH perpetuals. When the funding rate differential exceeds 0.05% per 8h, take a position long on the exchange with negative funding and short on the exchange with positive funding. Use 3x leverage with a max position size of $10,000 per pair. Include automatic stop-loss at 2% drawdown and take profit at 1.5% gain. Track funding payments and PnL in a dashboard with time-series charts for rate differentials.

Points Farming with Delta Neutrality

Build a strategy named DeltaNeutralFarmer that allocates 70% of capital to farm points on Bera by providing liquidity for BERA-USDC. Simultaneously, maintain delta neutrality by shorting an equivalent amount of BERA on Hyperliquid with 1.5x leverage. Automatically rebalance positions when delta exposure exceeds ±5%. Include a slippage tolerance of 0.5% for DEX trades and 0.2% for perp trades. Track points earned, funding paid, and impermanent loss in a comprehensive dashboard. Add alerts for significant divergence events.

Multichain Technical Analysis

Develop a strategy called CrosschainTA that applies technical analysis across Arbitrum, Optimism, and Base. Monitor ETH/USDC, WBTC/USDC, and ARB/USDC pairs on these chains, looking for RSI divergences and MACD crossovers. When a buy signal is generated on one chain but not others, allocate 20% of available capital to that opportunity if gas costs are under 0.05% of trade value. Use trailing stop-loss of 7% and implement a risk management system that never exceeds 40% allocation across all positions. Create a visualization dashboard showing signals across chains and performance metrics.

Security & Governance

AI Security Focus: Almanak's structured AI workflow approach is specifically designed to combat current and upcoming AI agents attack vectors that plague direct LLM prompting systems and naive AI trading bots that might consume untrusted content directly. Our multi-agent system operates within a controlled environment with curated data sources, pre-tested strategies, permissioned execution, and continuous monitoring. This institutional-grade process, inspired by traditional trading desk workflows, provides robust protection against malicious inputs while still leveraging AI to accelerate strategy development.

AI Security
Figure 4 - AI Security: Illustration of our approach to AI security, focusing on producing verifiable and auditable code. The diagram is an illustration we previously shared on social media and not the technical agent workflow. (see Figure 3 for actual agent workflow).

Financial strategies move real money; every swarm output therefore passes through multiple guardrails:

Our security approach balances innovation speed with risk management. By implementing multiple layers of validation and human oversight, we ensure that strategies are both effective and safe.

2026 Roadmap

Research Directions

We're excited to see that our AI Agent Swarm is already 1-shotting basic strategies, providing alpha on the market and able to troubleshoot live strategies, all the while there is so much room for improvement already planned. Our AI Kitchen is cooking hard.

Conclusion

Almanak's AI Agent Swarm is not a speculative pitch — it is running in production today. While the work is only getting started, we're already seeing massive velocity uplift from idea-to-mainnet deployment turning days into minutes. Moreover, we're allowing quants to efficiently work on several ideas in parallel while agents are doing all the tedious work! By combining rigorous engineering with the latest advances in LLM-based AI agents and frameworks, we enable quants, researchers, protocol teams and DeFi enthusiasts to iterate faster, verify better and deploy safer.
Until fully autonomous finance matures, empowering humans with super-charged tools is the most impactful—and responsible—path forward.

💡 Building the future one agent at a time.