agentleFS
GoogleKnown publishergoogle/adk-python/.agents/skills/adk-architecture/SKILL.md

adk-architecture

Skill22k starsChanged 4 months agoApache-2.0View on GitHub

Explains how the ADK runtime fits together: the node and graph execution model, Context and Event flow, checkpoint and resume, tracing, and the rules governing the public API surface. Use when answering "how does X work" about ADK internals, tracing where an event or a piece of state comes from, deciding where a new capability belongs, reviewing a change to BaseNode, Workflow, Runner, Agent, Event or Context, working out why a node re-ran or stayed waiting after a resume, or judging whether a change breaks the public API. Don't use for assembling an agent from existing pieces (use adk-agent-builder), diagnosing one failing run or test (use adk-debug), or formatting and naming conventions (use adk-style).

1 other project uses a version of this.

Trending

Less talk lately.about the whole repository

Dec 2025: 2 mentionsJan 2026: 1 mentionFeb 2026: 1 mentionMar 2026: 2 mentionsApr 2026: 12 mentionsMay 2026: 8 mentionsJun 2026: 3 mentionsJul 2026: 2 mentionsAug 2026: 2 mentionsSep 2026: 1 mentionOct 2026: 4 mentionsNov 2026: 0 mentions
Dec 2025Jun 2026Nov 2026
Mentions a month of the google/adk-python repository that our weekly crawl found. There is no adoption data for this file yet.

Most recently taken up by

Who's talking about google/adk-python

The biggest 5 of 63 mentions linking to the repository that our crawl found. Each line is their own headline.

See all 63

Talked about on GitHub, Bluesky and Hacker News (63 times).

On GitHub · 50

45 more on GitHub

On Bluesky · 11

6 more on Bluesky

On Hacker News · 2

The file

We split this skill into the rules it gives an agent

1 rule. About 0 are common, 0 are distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈0

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Read the source before relying on any signature here.

    line 27

≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

ADK Architecture

The runtime is a graph of nodes. BaseNode is the unit of execution. Workflow is a node that schedules other nodes along declared edges. NodeRunner executes exactly one node. Runner owns the invocation and the session. Agents are nodes too — BaseAgent extends BaseNode.

A node communicates with its parent through a per-execution Context, and with the session through Events it yields. Those are two separate channels: ctx carries the result upward, events carry persistence and streaming.

Read the source before relying on any signature here. These notes drift; the code does not. Paths below are relative to src/google/adk/.

Pick a reference

QuestionReference
What must a node implement? What may it yield? Which config fields exist?BaseNode
How does the graph schedule nodes, dedup dynamic children, propagate interrupts?Workflow
How does a caller start an invocation?Runner
What is Agent, and which methods do I call on it?Agent
I am subclassing an agent — what do I override?BaseAgent
What is on an Event, and what may I assume about its lifetime?Event
What does a node read and write on ctx?Context
Who creates the child Context, stamps events, retries, catches errors?NodeRunner
Why are Runner, NodeRunner and Workflow three separate things?Runner roles
How does a human-in-the-loop pause and resume work for one node?Checkpoint and resume
How does a whole workflow survive a pause, and what does is_resumable change?Workflow resumability
How are spans created, and what attributes do they carry?Observability
Why does the model not see the raw event log?LLM context orchestration
Is this change a breaking change? Where does a new export belong?API principles

Where the code lives

ConceptModule
BaseNode, STARTworkflow/_base_node.py
Workflow, _LoopStateworkflow/_workflow.py
Graph, edge compilationworkflow/_graph.py
NodeRunnerworkflow/_node_runner.py
DynamicNodeScheduler, DynamicNodeState, DynamicNodeRunworkflow/_dynamic_node_scheduler.py
ReplayManager (resume scan)workflow/utils/_replay_manager.py
check_interception (replay fast-forward)workflow/utils/_replay_interceptor.py
NodeInterruptedError, NodeTimeoutErrorworkflow/_errors.py
Context, ctx.run_node()agents/context.py
ReadonlyContextagents/readonly_context.py
InvocationContextagents/invocation_context.py
BaseAgent, LlmAgent (aliased Agent)agents/base_agent.py, agents/llm_agent.py
BaseLlmFlow, SingleFlow, AutoFlow, flows/llm_flows/ subpackages (context/, prompt/, tools/, extensions/, core/)flows/llm_flows/
Event, NodeInfoevents/event.py
EventActionsevents/event_actions.py
Branch paths (parent.child@1)events/_branch_path.py
Node paths (wf@1/child@2)events/_node_path_builder.py
Runner, InMemoryRunnerrunners.py
LiveRequestQueue, LiveRequestlive/live_request_queue.py
Node spans, TelemetryContexttelemetry/node_tracing.py
ResumabilityConfigapps/_configs.py

Everything under workflow/ is a leading-underscore module. Treat those names as internal — they can change without a major version bump, so a change there is not automatically a breaking change.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.