whatisgithub

What is gmas?

frontier-ai-next/gmas — explained in plain English

Analysis updated 2026-05-18

22PythonAudience · developerComplexity · 4/5LicenseSetup · moderate

In one sentence

A Python framework for building multi-agent AI systems as a live, editable graph, where agent roles and connections can change while the system is running.

Mindmap

mindmap
  root((repo))
    What it does
      Graph based multi agent runtime
      Roles change while running
      Tracks tokens time and errors
    Tech stack
      Python
      OpenAI compatible APIs
      PyTorch Geometric
    Use cases
      Build adaptive agent teams
      Route work between agents
      Export graph for GNN research
    Audience
      Developers
      Researchers
      AI engineers

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

What do people build with it?

USE CASE 1

Build a team of AI agents whose roles and connections can be rerouted while a task is running.

USE CASE 2

Add retry, timeout, and budget controls to a multi-agent workflow to keep runs predictable.

USE CASE 3

Export an agent graph for graph neural network research using PyTorch Geometric.

What is it built with?

PythonOpenAI APIPyTorch GeometricMCP

How does it compare?

frontier-ai-next/gmasagno-agi/agent-platform-railwayalexantaluo0/acot-vla-wm
Stars222222
LanguagePythonPythonPython
Setup difficultymoderatemoderatehard
Complexity4/54/55/5
Audiencedeveloperdeveloperresearcher

Figures from each repo's GitHub metadata at analysis time.

How do you get it running?

Difficulty · moderate Time to first run · 30min

Requires Python 3.12 or 3.13 and your own LLM API access, optional extras add web search, MCP, or graph ML support.

MIT license: free to use, modify, and distribute, including for commercial purposes, as long as the copyright notice is kept.

So what is it?

gMAS is a Python framework for building systems made up of multiple AI agents that work together, where the roles each agent plays and how they are connected to each other can change while the system is actually running. Instead of coordinating agents through scattered prompt templates and callback functions, gMAS keeps the whole team of agents, their connections, and their state in one structure called a role graph. In this graph, each agent is a node with its own instructions, model, tools, and local memory, and the connections between agents carry work and context along a specific path. A scheduler looks at this graph and figures out the order agents should run in, including which ones can run at the same time. As the system runs, it keeps a record of what each agent produced, how many tokens it used, how long it took, and any errors, and it can change its own plan mid-run through defined rules rather than by improvising, such as stopping early, skipping an agent, rerouting work, or recovering from a failure. The framework does not depend on a specific AI provider. It works with any function that takes a text prompt and returns a text response, so it can connect to OpenAI-compatible services or other model providers depending on how that function is written. It also supports tools such as running shell commands, searching the web, reading files, and connecting to the Model Context Protocol, along with retry logic, timeouts, and budgets to keep runs from running away with cost or time. A more advanced feature lets the system's structure change while it is running: a piece of code called a topology hook watches what happens after each step and can respond by stopping the run, skipping or forcing certain agents, adding or removing connections between agents, or changing which agent gives the final answer. gMAS also supports treating the agent graph as data for graph machine learning, including exporting it in formats usable with PyTorch Geometric for graph neural network research. It requires Python 3.12 or 3.13, installs through pip or uv, and is released under the MIT license. The project is described as an early release aimed at developers and researchers, with the core API tested but some advanced parts still expected to change.

Copy-paste prompts

Prompt 1
Show me how to build a simple three-agent workflow in gMAS with a researcher, reviewer, and writer.
Prompt 2
Explain how gMAS's dynamic topology hooks let a run stop early or reroute work between agents.
Prompt 3
Help me connect gMAS to my own OpenAI-compatible model endpoint using its callable interface.
Prompt 4
What tools and integrations does gMAS support, and how do I install just the ones I need?

Frequently asked questions

What is gmas?

A Python framework for building multi-agent AI systems as a live, editable graph, where agent roles and connections can change while the system is running.

What language is gmas written in?

Mainly Python. The stack also includes Python, OpenAI API, PyTorch Geometric.

What license does gmas use?

MIT license: free to use, modify, and distribute, including for commercial purposes, as long as the copyright notice is kept.

How hard is gmas to set up?

Setup difficulty is rated moderate, with roughly 30min to a first successful run.

Who is gmas for?

Mainly developer.

Open on GitHub → Ask about another repo

This repo across BitVibe Labs

Verify against the repo before relying on details.