09 Query Engine banner
codeaashu codeaashu

09 Query Engine

AI community

Description

# Prompt 09: Get the QueryEngine (Core LLM Loop) Functional ## Context You are working in `/workspaces/claude-code`. The `QueryEngine` (`src/QueryEngine.ts`, ~46K lines) is the heart of the CLI — it: 1. Sends messages to the Anthropic API (streaming) 2. Processes streaming responses (text, thinking, tool_use blocks) 3. Executes tools when the LLM requests them (tool loop) 4. Handles retries, rate limits, and errors 5. Tracks token usage and costs 6. Manages conversation context (message histor

Installation

Installs to ~/.claude/skills/codeaashu-claude-code-09-query-engine/SKILL.md

Terminal
mkdir -p ~/.claude/skills/codeaashu-claude-code-09-query-engine && curl -fsSL https://raw.githubusercontent.com/codeaashu/claude-code/HEAD/prompts/09-query-engine.md -o ~/.claude/skills/codeaashu-claude-code-09-query-engine/SKILL.md

Restart Claude Code, or start a new session, for it to be picked up.

Full documentation available on GitHub

View Source Repository