feat(c-examples): aviation foundation + c-tool-calls + c-subagents (PR 1 of 4)#347
Merged
Conversation
Builds shared aviation mock data + tool library, then uses them to make c-tool-calls and c-subagents actually do what their prompts claim. Today both are single-node system_prompt+LLM stubs whose prompts promise tool calls / subagent orchestration the graphs don't perform. PR 1 establishes the aviation theme with 3 tools (lookup_flight, get_airport_info, find_routes) backed by ~10 airports, ~4 airlines, ~30 flights. c-tool-calls becomes a canonical agent ↔ ToolNode loop; c-subagents becomes a sequential trip-planner pipeline (research → booking → itinerary), each subagent emitting AIMessage with a distinguishing name= so the chat-subagents UI renders distinct cards. PR 2-4 extend the aviation theme to the other 9 c-* examples. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This was referenced May 16, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
PR 1 of 4 in the c-* aviation theme rollout (spec: `docs/superpowers/specs/2026-05-16-c-examples-aviation-foundation-design.md`, plan: `docs/superpowers/plans/2026-05-16-c-examples-aviation-foundation.md`).
Spec correction landed inline (Task 0)
The spec's original decision 6 was wrong — chat lib's subagent UI is driven by tool calls named `task` (default), not by `AIMessage(name=...)`. Correction in the spec markdown is the first commit of this PR.
Out-of-scope (PR 2-4)
Test plan
🤖 Generated with Claude Code