Skip to content

docs(langgraph): eight guides teach through their running examples - #1029

Merged
blove merged 21 commits into
mainfrom
blove/docs-example-first-langgraph
Sep 6, 2026
Merged

docs(langgraph): eight guides teach through their running examples#1029
blove merged 21 commits into
mainfrom
blove/docs-example-first-langgraph

Conversation

@blove

@blove blove commented Sep 6, 2026

Copy link
Copy Markdown
Contributor

PR 2 of the example-first docs program (spec: docs/superpowers/specs/2026-09-05-docs-example-first-content-design.md; plan: docs/superpowers/plans/2026-09-06-docs-example-first-langgraph-pilot.md).

Pages rewritten (each: what the demo does → how it is built as sequential <ExampleCode> blocks in build order → concepts the example does not show → What's Next): streaming, persistence, interrupts, memory, durable-execution (was a stub), subgraphs, time-travel, deployment.

Walkthroughs deleted: the eight cockpit/langgraph/*/python/docs/guide.md files (absorbed where they were right; several were wrong about checkpointers and about setBranch, and the pages now follow the code). PENDING_PAGES in the guard drops the eight LangGraph entries (33 remain).

Example sources: comment-only #region markers in six graphs/components; comment/docstring/prompt text fixes where the example promised behavior it does not have (time-travel setBranch, subgraphs ref-file comment). No executable line changed; both deployment generators produce no diff.

Facts corrected along the way (each verified against libs/langgraph / libs/chat source): submit(null) resumes only pending work; retry()/reload() semantics; AgentError fields; provideAgent({ config }) does not exist (config is a submit option); setBranch() is a client-side pointer, a fork is submit(input, { checkpoint }); langgraph dev refuses a self-compiled checkpointer while a deployment ignores it.

New e2e: apps/website/e2e/example-code.spec.ts proves a rendered <ExampleCode> block is highlighted, titled, and copies exactly the pre text; runs in the production-verify step too.

Verification: nx run-many -t test,lint green (website, cockpit-registry, cockpit-shell, scripts); generators no drift; prod build renders every page with data-example-file counts equal to its tag counts; nx e2e website 123 passed.

Follow-ups (not here): the durable-execution generate node takes state["messages"][-1] (the plan's response) as the "user" turn; the time-travel Fork button is a second Replay; the memory example's docstrings still say "cross-thread"; the registry's Angular descriptor for deployment-runtime points at a file that does not exist; CodeGroup still cannot tab ExampleCode blocks.

🤖 Generated with Claude Code

blove and others added 21 commits September 5, 2026 18:52
… running examples

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
…d copies example source

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Rewrite the streaming guide around the example it embeds: what the demo
does, then the graph, provider, and component pulled in with ExampleCode
instead of hand-typed copies. The walkthrough is absorbed and deleted.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
…one API style throughout

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
… receiver name; US spelling

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
…ref-file note, stream-mode names

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
…riant; narrower resume region

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
…ate; sidebar prose matches its block

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
…eturns; the pipeline indicator trails by one node

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
… provider factory, no retired brand in the rendered ref file

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
…ent contract

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
…p promising setBranch forks; page precision

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
…e and submit(null) wording aligned

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
@vercel

vercel Bot commented Sep 6, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Actions Updated
threadplane Ignored Ignored Preview Sep 6, 2026 1:53am UTC

Request Review

@blove
blove enabled auto-merge (squash) September 6, 2026 01:52

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Automated approval: this PR received an intelligent (AI) code review. See the review comments on this PR.

@github-actions

github-actions Bot commented Sep 6, 2026

Copy link
Copy Markdown
Contributor

Claude finished @blove's task in 0s —— View job


I'll analyze this and get back to you.

@blove
blove merged commit e960f1c into main Sep 6, 2026
40 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant