Skip to content

ObneyAI/macroexpand-2-demo

Repository files navigation

macroexpand-2-demo

This repo contains 3 basic demos that were discussed during the macroexpand-2 meetup on 08/09/2025.

It shows how to use ObneyAI's Grain library to build agents of varying complexity.

Usage

To actually run the examples, you'll need a python virtual environment in the root of the project directory running at least Python 3.12. You will need to install the requirements in the requirements.txt file as well. You'll also need an open router API key or familiarity with DSPY to adjust the config in extras/dspy.clj.

01_hello_world.clj

This shows a naive chatbot with no conversational memory.

02_conversational_memory.clj

This shows a chatbot with conversational memory.

03_code_agent_jr.clj

This shows a naive researcher coding agent that can accept simple requests and use a read only set of tools to investigate the current project. It's primary purpose is to demonstrate an agent of reasonable complexity and how Behavior Trees keep that complexity under control. It also demonstrates a re-entrant general purpose Tool Use subtree in order to display the optimally modular property of behavior trees.

About

Examples of Grain's Agent Framework for the Macroexpand-2 meetup

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published