← Back to Pull requests

feat(commands): let try-agent run any quickstart agent framework #69

Open
unknown opened this pull request with 650 lines diff across 8 files
View on GitHub
unknown unknown commented on Oct 19, 2026 10:12 UTC
Author

Why

The docs ship a quickstart per agent framework, and each one is a page of setup: clone, find the right folder, apply the agent under the name that sample uses, wire the connection, install, run, crash it, read the run back. Today the plugin shortcuts exactly one of them. Every other framework is still a manual walkthrough, even though eight of the eleven samples are structurally identical to langgraph and the rest differ only in build tool and port.

This change makes /catalyst-ai:try-agent the way to run any of them. /catalyst-ai:try-agent crewai is the whole instruction — the per-sample facts the prompt used to state are read out of the sample itself.

That matters most for the docs. A quickstart page no longer needs to carry its own prompt with its own agent name, port and request body baked in; it needs one line naming the framework. Eleven long prompts that drift independently of the samples they describe collapse into one short one that reads the current truth from the clone. When a sample renames its agent or moves a port, the prompt keeps working and no doc page goes stale.

It also removes the class of bug that motivated deriving over tabulating: a prompt that confidently applies schedule-planner for a crewai run produces a wrong catalyst_apply and a console link to a workflow that does not exist. One of the two new evals exists specifically to hold that line.

What

/catalyst-ai:try-agent was pinned to agents/langgraph. Name any framework from catalyst-quickstarts/agents and it uses that one; name none and it still defaults to langgraph, which needs no API key.

How

Rather than embed a table of per-framework facts that rots when the quickstarts repo renames an agent or adds a framework, the prompt derives them from the clone it already makes in step 3:

  • the crash-test dev-.yaml → appID, appPort, start command

  • test.http → the shape of the crash request
  • That second one earns its place: spring-ai's body takes reference, not prompt, so a hardcoded body would have failed there.

    Other changes to the prompt:

  • The agent name and port become <agent> and <port>, settled in step 3 the way <project> is settled in step 2. The console-link template no longer hardcodes schedule-planner above step 1.

  • Step 4 checks for the API key after the clone, names the variable it wants, and offers langgraph as a fallback.

  • Step 5 installs the sample's dependencies per its README — previously implicit when uv was the only path.

  • The four frameworks with no crash-test sample (langgraphjs, langchaingo, microsoft-dotnet, dapr-agents) are named, so the model declines in one sentence instead of improvising a demo that cannot crash.
  • Deriving rather than tabulating also brings in mastra (npm), spring-ai (Maven, port 8080) and microsoft-dotnet (dotnet, port 5050) with no special case beyond their folder and config filenames. The ports are the useful proof: three different ones, none stated in the prompt.

    Coverage

    Eleven frameworks, of which langgraph, spring-ai and microsoft-dotnet run offline with no key:

    | framework | agent | key |
    |---|---|---|
    | langgraph | schedule-planner | none |
    | spring-ai | spring-ai-crash-recovery | none |
    | microsoft-dotnet (MAF) | event-planner | none |
    | adk | entertainment-planner | OPENAI_API_KEY |
    | crewai | venue-scout | OPENAI_API_KEY |
    | deepagents | transportation-planner | OPENAI_API_KEY |
    | openai-agents | catering-coordinator | OPENAI_API_KEY |
    | pydantic-ai | decoration-planner | OPENAI_API_KEY |
    | strands | budget-planner | OPENAI_API_KEY |
    | mastra | sre-agent | OPENAI_API_KEY or Ollama |
    | claude-agents | photography-planner | ANTHROPIC_API_KEY |

    Downstream

    README.md, the eval's verbatim copy of the prompt in evals/starter-agent-loads-a-skill/prompt.md, and the generated web/install/{install.json,data.js} all follow the command text.

    Verification

  • python scripts/build_install_data.py --check — up to date

  • python scripts/lint_skills.py — passes

  • python scripts/check_mcp_surface.py — passes

  • python scripts/check_coordinates.py — passes

  • python -m unittest discover -s scripts — 19 tests pass
  • scripts/check_install.py was not run: it shells out to npx, which is not on PATH in my shell. It reads skills, none of which this PR touches.

    Evals

    The starter eval asserts only that a catalyst- skill fires, so it passes unchanged whether or not any of the above works. Deriving the agent name rather than stating it is this PR's whole bet, and nothing tested it. Two evals now pin it:

  • try-agent-reads-the-agent-name names crewai (agent venue-scout) and grades that the response does not settle on a name it has not read — schedule-planner above all, which the old prompt stated, which the old generated install data carried, and which the model has every reason to reach for. One LLM grader on the claim, with a carve-out for naming it only to say it is langgraph's, plus a not_contains on workflows/schedule-planner in the console link.

  • try-agent-declines-a-framework-without-a-sample names langgraphjs — one letter from the default — and grades that the response says there is no crash-test sample instead of improvising, or quietly running langgraph in its place.
  • Both run with the usual [Read, Glob, Grep, Skill], so they grade what the model commits to before reading, not an actual clone. That is a weaker assertion than I would like, but it catches the confident-wrong-name failure, which is the one that produces a bad catalyst_apply and a console link to a workflow that does not exist.

    New gate: variant_eval_drift

    Each variant prompt is the command's body plus the line a user would add — a second copy with nothing holding it in place. check_mcp_surface.py already enforces that evals/starter-<x>-loads-a-skill copies commands/try-<x>.md verbatim; it now also enforces that an evals/try-<x>-* prompt opens with that body. Tests ship with it in the shape the file already uses: a passing control, a drifted body, a near-miss paraphrase, a variant naming no command, and a starter eval that must not be mistaken for one.

    Version bump

    0.7.1 → 0.8.0. The first commit touched commands/, which check_version_bump.py covers, and I had not bumped it — this PR would have failed CI as originally opened. feat takes a minor bump here, matching the history.

    🤖 Generated with Claude Code

    Diff: 650 lines (+487 / -163) across 8 files Reviewer: sicoyle Review duration: 17472m
    All Vouch review confidence checks passed
    Residual risk 0.28 = Change Risk (0.52) × (1 − Review Confidence (0.47)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.52 · 650 lines diff across 8 files
    0.52
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.02 · 1 substantive comment(s)
    0.02
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    46%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    Groq Risk Narration
    AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
    Model 1 · Change Risk Attribution
    SHAP Weights
    Diff Size diff_size
    0.388
    Shallow Review Depth shallow_review_depth
    0.344
    Real PR Conversation Timeline
    1 comments
    "Review active on #69"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 46.7% reviewed
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 52% (MEDIUM) · Higher = larger blast radius
    52%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 46.7% · Lower = rushed or shallow review
    46.7%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 27.7% · Safe to merge
    27.7%