Skip to main content
prompt GP ChatGPT

09-query-engine — Claude Code prompt: inspect QueryEngine

The 09-query-engine prompt guides an architecture review of QueryEngine and a basic conversation test against the Anthropic API. Use it to trace requests, streaming events, and tool calls.

no license ★ 3,444 updated 2026-10-14

Install into Claude Code · Manually: put the files in place All methods and platforms ↓
.claude/commands/09-query-engine.md
Open on GitHub

What 09-query-engine does

The task starts with src/QueryEngine.ts: map its classes and public methods, then follow a user message through the API call and tool loop. It also asks you to inspect src/services/api/client.ts and src/services/api/claude.ts to trace request parameters and streaming.

Next, review the dependencies and work around optional services where needed. The prompt calls for a standalone scripts/test-query.ts test, outside the REPL, that prints streamed text, handles tool calls, and records what remains broken. A working API check requires ANTHROPIC_API_KEY; without it, the test cannot make the requested Anthropic call.

What it helps with

  • map the QueryEngine class and its public API
  • trace requests from the engine to Anthropic
  • inspect streaming events and tool execution
  • create a minimal query test outside the REPL
  • document working features and remaining blockers

Example prompts for the agent

  • Map the classes, methods, and message flow in src/QueryEngine.ts.
  • Trace a request from QueryEngine through the Anthropic API wrapper and list its parameters.
  • Create scripts/test-query.ts and check streamed output and tool calls.

How to install 09-query-engine

Manually: put the files in place

.claude/commands/09-query-engine.md

Questions about 09-query-engine

How do I install 09-query-engine in Claude Code?

Copy .claude/commands/09-query-engine.md into Claude Code’s commands directory.

What does 09-query-engine do?

It guides an inspection of QueryEngine, the API request path, streaming, and tool execution. It also asks for a minimal test script and notes on remaining blockers.

Do I need an API key to test QueryEngine?

Yes. The Anthropic API test requires ANTHROPIC_API_KEY.

Similar prompts

All prompts for Backend and APIs →

From the same set17

The whole set →
05-env-and-auth 05-env-and-auth sets up environment variables and tests API connectivity in claude-code workspaces. Creates a documented .env.example and builds a test script for Bun. GP ChatGPT ★ 3,444repo stars 07-tool-system 07-tool-system is a Claude Code prompt for auditing the CLI tool interface, registry, and imports. It also asks for a smoke test that loads the available tools. GP ChatGPT ★ 3,444repo stars 06-ink-react-terminal-ui 06-ink-react-terminal-ui — a Claude prompt that follows the React + Ink render path in the claude-code repo, checks the components and theme, and ends with a working terminal render test. GP ChatGPT ★ 3,444repo stars 14-dev-runner The 14-dev-runner prompt configures a development runner for Claude Code to execute TypeScript directly with Bun. It eliminates the need for full production builds during iterative work. GP ChatGPT ★ 3,444repo stars 12-services-layer 12-services-layer — a prompt that configures Claude Code CLI background services: analytics, policy limits, remote settings, session memory, and bootstrap data. GP ChatGPT ★ 3,444repo stars 02-runtime-shims 02-runtime-shims is a Claude Code prompt that creates runtime shims for bun:bundle flags and MACRO globals to run CLI source without Bun. GP ChatGPT ★ 3,444repo stars 03-build-config The 03-build-config prompt guides Claude Code through setting up an esbuild build for a TypeScript and TSX CLI. Use it to produce dist/cli.mjs for Bun or Node.js 20+. GP ChatGPT ★ 3,444repo stars Claude Code Explorer MCP Claude Code Explorer MCP — an MCP server that lets your agent browse the Claude source: tool and slash-command listings, code search, architecture overview. CX Codex +1 ★ 3,444repo stars

Project sponsors

Companies that keep this analytics open