Skip to content

Brahma-fi/scaffold-agent

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

63 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Scaffold Agent

A collection of example implementations showcasing how to build autonomous DeFi agents using Console Kit. This repository demonstrates integration patterns ranging from LLM-powered execution to automated DeFi workflows.

kernel-setup

Purpose

This scaffold serves as a starting point for developers looking to build autonomous DeFi agents. Whether you're interested in LLM-powered automation or traditional programmatic workflows, these examples provide patterns for integrating Console Kit's capabilities into your applications.

Overview

Kernel Workflow

Example implementations of automated DeFi workflows using Console Kit's infrastructure. These examples demonstrate how to set up autonomous agents that can execute complex DeFi strategies while leveraging Console's policy engine and execution framework.

Local setup

  1. Install dependencies
cd kernel-workflow && yarn
  1. Set up environment variables and fill all values
mv .env.example .env

Running components

Kernel Workflow

  1. To register your executor on console & kernel -

    • Configure ExecutorConfigConsole, ExecutorMetadata, and ExecutorConfigKernel on register-executor.ts as per your requirements
    • Run from root dir:
    make run-register-executor
    
    • Pick up registryId from the script's response and update EXECUTOR_REGISTRY_ID in your .env, for running the remaining scripts
  2. To deploy a console account that is subscribed to the automation of the executor just registered -

    make run-deploy-account
    
  3. To run your automation workflow -

    • Modify pollTasksAndSubmit() on agent-workflow.ts with your automation logic. Console Kit SDK comes pre-built with native actions & helpers to make this easier
    • Run from root dir:
    make run-agent-workflow
    

    This will poll for your executable tasks, and run your automation periodically

Additional Examples

References

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •