5h ago

Yohei Nakajima Open Sources ActiveGraph Runtime For Reactive AI Agents

0
Original post

i'm excited to open source Active Graph: an event-sourced reactive graph runtime for long-running, agents 🔄🧠 events/logs projects a graph. reactive behaviors react and affect the graph. fork-and-diff agent runs. no A2A, no workflows, no DAG site: http://activegraph.ai docs: http://docs.activegraph.ai github: https://github.com/yoheinakajima/activegraph quick start: pip install activegraph this is an early experiment in a new paradigm for agent architecture 🧪

7:00 AM · May 20, 2026 View on X
Reposted by

current agent systems coordinate through conversations and workflows. Active Graph explores what happens when agents coordinate through evolving shared state instead

this proposal suggests that long-running agents need a proper state layer with: types, persistent, reactive, replayable, forkable, inspectable state

YoheiYohei@yoheinakajima

i'm excited to open source Active Graph: an event-sourced reactive graph runtime for long-running, agents 🔄🧠 events/logs projects a graph. reactive behaviors react and affect the graph. fork-and-diff agent runs. no A2A, no workflows, no DAG site: http://activegraph.ai docs: http://docs.activegraph.ai github: https://github.com/yoheinakajima/activegraph quick start: pip install activegraph this is an early experiment in a new paradigm for agent architecture 🧪

2:00 PM · May 20, 2026 · 25K Views
2:00 PM · May 20, 2026 · 724 Views

the core concept is a graph that represents everything about the agents knowledge, history, behaviors, capabilities

graph is made of events behaviors react to graph changes relationships can carry behaviors patch & propose to edit graph views are scoped view of graph frames are bounded context for a run policies set rules

YoheiYohei@yoheinakajima

current agent systems coordinate through conversations and workflows. Active Graph explores what happens when agents coordinate through evolving shared state instead this proposal suggests that long-running agents need a proper state layer with: types, persistent, reactive, replayable, forkable, inspectable state

2:00 PM · May 20, 2026 · 724 Views
2:00 PM · May 20, 2026 · 495 Views

this is how you add an event, fork and cache a run, and then find the diff between a parent and fork

in this example, the fork shares the parent's event log up to event 142. from 143 onward it diverges

being able to do this should help with building self-improving agents

YoheiYohei@yoheinakajima

the core concept is a graph that represents everything about the agents knowledge, history, behaviors, capabilities graph is made of events behaviors react to graph changes relationships can carry behaviors patch & propose to edit graph views are scoped view of graph frames are bounded context for a run policies set rules

2:00 PM · May 20, 2026 · 495 Views
2:00 PM · May 20, 2026 · 273 Views

relations can carry behaviors

- depends_on can unblock work - contradicts can know how to trigger review - derived_from can know how to invalidate downstream artifacts

YoheiYohei@yoheinakajima

behaviors are small reactive units > state changes, behaviors react, behaviors emit more state changes no central orchestrator

2:00 PM · May 20, 2026 · 242 Views
2:00 PM · May 20, 2026 · 229 Views

this is what a ReAct agent looks like using ActiveGraph

No explicit ReAct while-loop.

thought → action → observation → thought

Each step is just an object landing on the graph. The graph is the agent state. The event log is the reasoning trace.

YoheiYohei@yoheinakajima

this is what babyagi looks like using activegraph the graph is the loop (this is simplified code, you can find a real example in examples/babyagi.py)

2:01 PM · May 20, 2026 · 163 Views
2:01 PM · May 20, 2026 · 164 Views

if you're curious to read more about this project, here's an article i shared yesterday explaining the background

YoheiYohei@yoheinakajima

http://x.com/i/article/2056734659736985600

9:20 PM · May 19, 2026 · 37.2K Views
2:01 PM · May 20, 2026 · 245 Views

and the article before talked even more broadly about the state of stateful agents, which inspired this project

YoheiYohei@yoheinakajima

http://x.com/i/article/2056590933874147328

4:50 AM · May 19, 2026 · 22.1K Views
2:01 PM · May 20, 2026 · 960 Views

Active Graph really feels like the culmination of all of my BabyAGI and graph experiments.

[fyi, technical history of babyagi: http://babyagi.wiki]

would love to hear thoughts if you try it out!

the easiest way to test is point your favorite coding agent to "http://docs.activegraph.ai" and asking it to build something or ask it questions

YoheiYohei@yoheinakajima

and the article before talked even more broadly about the state of stateful agents, which inspired this project

2:01 PM · May 20, 2026 · 960 Views
2:01 PM · May 20, 2026 · 670 Views

@grok @perplexity_ai review http://docs.activegraph.ai, analyze the approach critically, and explain in detail where this sits in the evolving landscape of LLM based agent architecture

YoheiYohei@yoheinakajima

i'm excited to open source Active Graph: an event-sourced reactive graph runtime for long-running, agents 🔄🧠 events/logs projects a graph. reactive behaviors react and affect the graph. fork-and-diff agent runs. no A2A, no workflows, no DAG site: http://activegraph.ai docs: http://docs.activegraph.ai github: https://github.com/yoheinakajima/activegraph quick start: pip install activegraph this is an early experiment in a new paradigm for agent architecture 🧪

2:00 PM · May 20, 2026 · 25K Views
2:49 PM · May 20, 2026 · 1.2K Views

for anyone curious, this was the result of many experiments bouncing around but this version uses...

initial ideation: chatgpt for ideas/@replit for quick build final repo build: opus 4.7 prompting claude code pypi testing: ran so many tests w @replit who wrote reports that I fed back into claude launch video: @elevenlabs and claude

YoheiYohei@yoheinakajima

Active Graph really feels like the culmination of all of my BabyAGI and graph experiments. [fyi, technical history of babyagi: http://babyagi.wiki] would love to hear thoughts if you try it out! the easiest way to test is point your favorite coding agent to "http://docs.activegraph.ai" and asking it to build something or ask it questions

2:01 PM · May 20, 2026 · 670 Views
6:34 PM · May 20, 2026 · 480 Views

@Replit narrative walkthrough video of repo for anyone interested:

6:36 PM · May 20, 2026 · 604 Views