Problem
agentspec init --yes generates a manifest without a spec.api section. The LangGraph skill only generates server.py when spec.api is set. Without it, agentspec generate --framework langgraph produces no HTTP server — so the GIF 2 flow can't end with curl localhost:8000/v1/chat.
Blocks Hook 2 — the "YAML to running agent" demo requires a working HTTP endpoint.
Proposed fix
File: packages/cli/src/commands/init.ts (~line 196)
Add after the prompts section, always included (not gated by a flag):
# ── API ───────────────────────────────────────────────────────────────────
api:
port: 8000
pathPrefix: /v1
corsOrigins: ["*"]
Acceptance criteria
Problem
agentspec init --yesgenerates a manifest without aspec.apisection. The LangGraph skill only generatesserver.pywhenspec.apiis set. Without it,agentspec generate --framework langgraphproduces no HTTP server — so the GIF 2 flow can't end withcurl localhost:8000/v1/chat.Blocks Hook 2 — the "YAML to running agent" demo requires a working HTTP endpoint.
Proposed fix
File:
packages/cli/src/commands/init.ts(~line 196)Add after the prompts section, always included (not gated by a flag):
Acceptance criteria
agentspec init --yes && grep 'api:' agent.yaml→ api section presentagentspec init --yes && agentspec validate agent.yaml→ passesserver.pywith the chat endpoint