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
.claude/commands/09-query-engine.mdWhat 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
QueryEngineclass 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
QueryEnginethrough the Anthropic API wrapper and list its parameters. - Create
scripts/test-query.tsand check streamed output and tool calls.
How to install 09-query-engine
Manually: put the files in place
.claude/commands/09-query-engine.mdHow to use
Paste the text at the start of a chat or into project instructions
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.