Skip to main content
Microchain agents use the Microchain framework to create autonomous agents that can use tools, maintain memory, and even modify their own behavior.

Available Agents

Base Microchain

Standard trading agent with tool use capabilities

Modifiable Prompt 0-3

Agents that can modify their own system prompts

Goal Manager Agent

Agent with autonomous goal setting and tracking

NFT Game Agents

Specialized agents for NFT treasury game

Architecture

Microchain agents differ from other agents by running in a continuous loop with tool access:

Key Differences

Traditional Agents:
  • Fetch markets → Predict → Trade → Exit
  • Stateless between runs
  • Fixed behavior
Microchain Agents:
  • Continuous loop with tool access
  • Persistent memory across runs
  • Can modify their own prompts
  • Autonomous decision making

Base Microchain Agent

Standard trading agent with full tool access.

Usage

Configuration

Available Tools

The agent has access to:
  • get_markets() - Fetch available markets
  • get_market_detail() - Get specific market information
  • place_bet() - Execute trades
  • check_balance() - View current balance
  • get_positions() - View open positions
  • search_similar_markets() - Find related markets via Pinecone
  • web_search() - Search the internet
  • stop() - End execution

Example System Prompt

Modifiable System Prompt Agents

These agents can modify their own system prompts to adapt their behavior based on experience.

Usage

Implementation

Initial “Just Born” Prompt

Additional Tools

  • get_system_prompt() - View current prompt
  • modify_system_prompt() - Update the system prompt
  • view_past_trades() - Analyze historical performance
  • calculate_roi() - Check profitability

Learning Process

Version 3 (Llama 3.1)

Uses open-source Llama 3.1 instead of GPT-4o.

Goal Manager Agent

Agent with autonomous goal setting, tracking, and evaluation.

Usage

Implementation

Goal Manager Architecture

Goal Setting Process

  1. Goal Generation: LLM creates specific, measurable goal
  2. Execution: Agent works toward goal using available tools
  3. Evaluation: LLM evaluates if goal was achieved
  4. Learning: Goal and evaluation stored in database
  5. Next Goal: New goal generated based on history

Minimal System Prompt

Goal Manager injects the current goal into the prompt.

NFT Treasury Game Agents

Seven specialized agents for the NFT Treasury Game experiment.

Usage

Implementation

Each agent has unique configuration for multi-agent game scenarios.

Memory System

All microchain agents use persistent long-term memory.

Chat History Storage

Memory Import

Prompt Storage

Modified prompts persist across runs.

Configuration Options

Iteration Control

Memory Configuration

Model Selection

Callbacks

Best Practices

For Base Microchain Agent

For Modifiable Prompt Agents

For Goal Manager Agent

Monitoring

Troubleshooting

Agent Loops Infinitely

Agent Forgets Context

Prompt Modifications Lost

Research Experiments

Microchain agents are used for research on:
  • Self-improvement: Can agents improve through prompt modification?
  • Autonomous goal-setting: Do self-set goals improve performance?
  • Multi-agent dynamics: NFT game with 7 competing agents
  • Open-source viability: Llama 3.1 vs GPT-4o comparison

Next Steps

Specialized Agents

Explore purpose-built agents

Agent Overview

Back to agent gallery