Skip to content

EmberAGI/arbitrum-vibekit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

1,698 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Graphic

Β Β  Documentation Β Β  | Β Β  Contributions Β Β  | Β Β  Agent Node Β Β  | Β Β  Ember AI Β Β  | Β Β  Support Discord Β Β  | Β Β  Ember Telegram Β Β  | Β Β  𝕏 Β Β 

🧭 Table of Contents

πŸ“™ Introduction

Welcome to Vibekit, the polyglot toolkit for vibe coding smart, autonomous DeFi agents that can perform complex on-chain operations. Whether you're automating trades, managing liquidity, or integrating with blockchain data, Vibekit makes it simple to create intelligent agents that understand natural language and execute sophisticated workflows.

Core Features

  • Agent Node Framework: Modern config-driven framework with full A2A protocol compliance, generator-based workflows, and embedded wallet support for building production-ready autonomous agents

  • Model Context Protocol (MCP): Standardized integration layer for connecting agents with tools and external data sources, enabling modular and extensible agent capabilities. Check out Ember's MCP Playground to learn more

  • X402 Payment Protocol: HTTP-native payment infrastructure for autonomous agent commerce, supporting micropayments and service monetization

  • Agent-to-Agent (A2A) Communication: Built-in protocol support enabling seamless collaboration and communication between multiple agents

  • EIP-8004 On-Chain Registration: Decentralized agent identity registration following the EIP-8004 standard, enabling verifiable agent ownership, discoverability through on-chain registries, and cross-platform compatibility

  • Composable DeFi Workflows: Workflow system enabling multi-step operations with pause/resume capabilities, allowing agents to orchestrate complex DeFi strategies across protocols

  • Ember Plugin System: Modular architecture for DeFi protocols with standardized entity mapping, comprehensive type safety, and intelligent routing for optimized execution across multiple protocols

Here's an overview of how everything fits together:

Vibekit Concepts Diagram

Note

For deeper understanding of Vibekit concepts, explore our comprehensive lesson series.

🧬 Repository Architecture

Vibekit is structured as a TypeScript monorepo, with a Rust implementation on the horizon.

arbitrum-vibekit/
β”œβ”€β”€ development/                    # Development documentation and analysis
β”œβ”€β”€ img/                           # Documentation images and assets
β”œβ”€β”€ typescript/                     # Main monorepo workspace
β”‚   β”œβ”€β”€ clients/                    # Client applications
β”‚   β”‚   └── web/                    # Vibekit frontend
β”‚   β”œβ”€β”€ templates/                  # Official Vibekit agent templates
β”‚   β”œβ”€β”€ community/                  # Community contributions
β”‚   β”‚   β”œβ”€β”€ agents/                 # Community-contributed agent templates
β”‚   β”‚   └── mcp-tools/              # Community MCP tool server implementations
β”‚   β”œβ”€β”€ lib/                        # Core framework libraries such as MCP tools, Ember API, etc.
β”‚   β”‚   β”œβ”€β”€ a2a-types/              # Agent-to-Agent type definitions
β”‚   β”‚   β”œβ”€β”€ agent-node/             # Agent Node framework (v3.0+) - Config-driven A2A-compliant agents with X402 payments
β”‚   β”‚   β”œβ”€β”€ ember-api/              # Ember AI API client
β”‚   β”‚   β”œβ”€β”€ ember-schemas/          # Schema definitions
β”‚   β”‚   └── test-utils/             # Testing utilities and helpers
β”‚   └── onchain-actions-plugins/    # Ember plugin system
β”œβ”€β”€ CHANGELOG.md
β”œβ”€β”€ CLAUDE.md
β”œβ”€β”€ CONTRIBUTIONS.md
β”œβ”€β”€ LICENSE
└── README.md

Key Directories

  • agent-node/: The modern config-driven agent framework with full A2A protocol compliance, generator-based workflows, embedded wallet support, and X402 payment protocol integration for autonomous agent commerce. This is the recommended framework for building new agents.

  • templates/: Official Vibekit agent templates featuring production-ready implementations with skills, tools, hooks, and modern deployment patterns. These serve as reference implementations for building your own agents.

  • community/: Community contributions including agent templates and MCP tool server implementations. This is where developers can contribute their own specialized agents and tools to expand Vibekit's ecosystem.

  • clients/web: Modern chat interface for interacting with AI agents, enabling Agent-to-Agent communication, workflow orchestration, and real-time messaging through an intuitive web interface.

  • onchain-actions-plugins/: The Ember Plugin System providing a registry for on-chain action plugins and smart contract integrations with extensible architecture for adding new blockchain protocols.

⚑ Quickstart

Agent Node is Vibekit's modern framework for building production-ready autonomous agents with no coding required. Simply chat with your agent in natural language to execute complex DeFi strategies, orchestrate multi-step operations, and communicate with other agents. Follow the steps below to get started:

Prerequisites

Before you begin, ensure you have:

  1. Node.js 18+
  2. AI Provider API Key (from OpenRouter, OpenAI, xAI, or Hyperbolic)

1. Initialize Config Workspace

Note

You can initialize Agent Node anywhere on your system. To take advantage of Vibekit's offered tools and capabilities, we recommend creating your agent node in the community agent directory.

npx -y @emberai/agent-node@latest init

Note

During initialization, you'll be prompted with optional EIP-8004 registration configuration for on-chain agent identity. See the Agent Node documentation for details on these prompts.

This creates a config/ directory with:

  • agent.md - Base agent configuration including system prompt, model settings, A2A protocol card definition, and EIP-8004 registration details
  • agent.manifest.json - Skill composition settings
  • skills/ - Directory for skill modules (includes general-assistant.md and ember-onchain-actions.md)
  • workflows/ - Directory for custom workflow implementations (includes sample-package/ and simple-script/ examples)
  • mcp.json - MCP server registry
  • workflow.json - Workflow plugin registry
  • README.md - Config workspace documentation

2. Run the Server

Smart-start chat mode (connects to running agent or starts new server):

npx -y @emberai/agent-node@latest

3. Time to Profit!

You can now build and execute any DeFi strategy through simple conversation with the Agent Node.

πŸ”§ Build Your Own Agent

Once you have Agent Node running, customizing your agent is as simple as editing configuration files. Your config/ directory contains everything needed to define your agent's personality, capabilities, and behavior.

Key Configuration Files

agent.md - Your agent's core identity and system prompt. Modify this to:

  • Define your agent's personality and expertise (trading specialist, yield farmer, etc.)
  • Set AI model preferences (OpenAI, Anthropic, xAI, etc.)
  • Configure A2A protocol card for agent-to-agent communication
  • Set up EIP-8004 on-chain registration details

skills/ - Modular capabilities that compose your agent's skillset:

  • general-assistant.md: Basic conversational and reasoning abilities
  • ember-onchain-actions.md: DeFi operations (swaps, lending, staking, etc.)
  • Add custom skills by creating new .md files with specific tool access

workflows/ - Custom multi-step operations for complex strategies:

  • sample-package/: Package-based workflow with dependencies and src/index.ts
  • simple-script/: Simple workflow without dependencies
  • Create package-based workflows for sophisticated DeFi automation with their own dependencies

agent.manifest.json: Controls which skills and workflows are active

mcp.json: Registry for Model Context Protocol servers and tools

workflow.json: Registry for custom workflow plugins

Advanced Configuration

For detailed configuration options, workflow creation, and advanced features like on-chain registration, see the comprehensive Agent Node documentation.

πŸ€– LLM Guides

.rulesync Configuration

The .rulesync directory serves as the source of truth for all LLM configuration files. This system allows you to manage rules, commands, and subagents in a centralized location and automatically generate them for different AI tools:

.rulesync/
β”œβ”€β”€ commands/           # High-level command structures
β”œβ”€β”€ subagents/          # Persona-driven specialized agents
└── rules/              # Workspace-wide guidelines and best practices

Key Benefits:

  • Single Source of Truth: All LLM configurations managed in one place
  • Automatic Generation: Run pnpm sync:rules to generate files for Claude, Cursor, and other tools
  • Version Control: Track changes to AI configurations alongside code changes
  • Consistency: Ensure all AI tools follow the same guidelines and workflows

To generate all LLM configuration files, run the following command:

pnpm sync:rules

# Files are automatically generated to:
# - .claude/ (for Claude Code)
# - .cursor/ (for Cursor IDE)

Claude

For Claude models, prompt engineering is handled through a set of dedicated files in the .claude/ directory. These files include detailed instructions, examples, and best practices to guide LLMs in generating accurate and efficient code:

  • agents/: Contains prompts for persona-driven agents that specialize in tasks like Test-Driven Development, documentation, and feature writing.
  • commands/: Includes prompts that define high-level command structures for planning, execution, and version control.
  • hooks/: Provides scripts that can be triggered at different stages of the development lifecycle, such as pre-task and post-task actions.

Additionally, CLAUDE.md provides comprehensive guidance for Claude Code when working with the Vibekit codebase, including architecture overview, development standards, and code quality guidelines.

Cursor

Cursor rules files are located in the .cursor/rules directory. These files define best practices, workflows, and workspace conventions for building and maintaining agents:

  • createVibekitAgent.mdc: A guide for creating and configuring new agents, including best practices, required dependencies, and setup instructions.

  • vibeCodingWorkflow.mdc: Outlines the step-by-step development workflow for agents, including the Planner/Executor roles, task breakdowns, and conventions for collaborative development.

  • workspaceRules.mdc: Documents workspace-wide guidelines and best practices for the monorepo, such as dependency management, development scripts, and CI/CD standards.

πŸ’° Contributions & Bounties

We welcome contributions from the community! If you'd like to help improve Vibekit or expand its capabilities, please check out our contribution guidelines. Certain contributions might qualify for the Trailblazer Fund 2.0 initiative launched by Arbitrum. Checkout our contribution center to get started!