codeaashu

09 Query Engine — AI skill for Claude Code

AI community

Prompt 09: Get the QueryEngine (Core LLM Loop) Functional.

How to install 09 Query Engine

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.

What 09 Query Engine does

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

Alternatives in AI

  • Wiki Query — Query the LLM Wiki and synthesize an answer 2.3k ★
  • LiveAgent — A fully functional AI Agent desktop client that supports Webui access and can be creatively customized and exp 1.9k ★
  • TurboLLM — Run any local LLM engine, auto-tuned to your GPU — polished web UI + OpenAI/Anthropic-compatible API 251 ★

Full documentation available on GitHub

View Source Repository