09 Query Engine — AI skill for Claude Code
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
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:
- Sends messages to the Anthropic API (streaming)
- Processes streaming responses (text, thinking, tool_use blocks)
- Executes tools when the LLM requests them (tool loop)
- Handles retries, rate limits, and errors
- Tracks token usage and costs
- 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 RepositoryRelated Skills
Scraper Run
Deterministic extraction engine. Loads a blueprint, executes pagination, handles auth refresh, rate limits, an
Vibeharness
Hackable, interactive LLM agent harness for the terminal — streaming REPL, tool-using agent loop, persistent P
Full Stack Chat Application With Multi Platform Clients AI Agent Integration
A Claude Code-style AI agent harness in Python. Uses Ollama + native LLM tool-calling to read/write files and
Codespar Core
Commerce SDK for AI agents — sessions, managed auth, Complete Loop orchestration for Latin American APIs
Salient Core
Guardrail and permission layer for AI agent harnesses. A default-deny control kernel that gates every tool cal
MCP Sophon
Deterministic context compressor for MCP agents. Slots in front of prompt caching, mem0, Letta, or Claude Code
Related Agents
John Carmack
Use for performance-critical systems analysis, game engine principles, functional programming discipline, and
Scope Discoverer
Discovers functional scope from existing codebase for reverse documentation. Identifies targets through multi-
Prompt Inspector
Prompt optimization inspector. Detects verbose non-functional content in command/agent documentation following