AutoGRAMS: Autonomous Graphical Agent Modeling Software
Ben Krause, Lucia Chen, Emmanuel Kahembwe
TL;DR
AutoGRAMS introduces a graph-based programming language for AI agents that unifies LM prompts, traditional code, and memory into executable autograms. It provides a compiler to translate Python code into AutoGRAMS graphs, an interpreter to run these graphs, and mechanisms for memory, variable scoping, and self-modification, including meta-autograms that design new autograms. The framework emphasizes interpretability, controllability, and safety in multi-step LM interactions, with open-source availability to foster experimentation and extension. By enabling modular subgraphs, function calls, and self-modifying capabilities, AutoGRAMS offers a flexible pathway toward sophisticated, self-improving AI agents and complex conversational systems.
Abstract
We introduce the AutoGRAMS framework for programming multi-step interactions with language models. AutoGRAMS represents AI agents as a graph, where each node can execute either a language modeling instruction or traditional code. Likewise, transitions in the graph can be governed by either language modeling decisions or traditional branch logic. AutoGRAMS supports using variables as memory and allows nodes to call other AutoGRAMS graphs as functions. We show how AutoGRAMS can be used to design highly sophisticated agents, including self-referential agents that can modify their own graph. AutoGRAMS's graph-centric approach aids interpretability, controllability, and safety during the design, development, and deployment of AI agents. We provide our framework as open source at https://github.com/autograms/autograms .
