Skip to content

Project Overview

Your GitHub Name edited this page May 22, 2026 · 8 revisions

Project Overview

A small SLM control layer directs a frontier coding agent at ~0.2% token overhead, and keeps the agent's own context bounded. Same prompt, fewer wasted agent turns, explicit constraints preserved. In one measured 15-turn chain, ~24k input tokens of SLM work directed ~12.66M input tokens of agent work; the bounded session ran the same multi-turn work on ~7.6× fewer input tokens than the tool's native session. Hybrid auth then routes the tiny control layer to cheap metered API and the heavy agent tokens to a flat-fee subscription. Tokens are the measured fact; the dollar translation (per-token API vs finite subscription quota) is downstream. Single workload; the token efficiency is the point.

PromptPilot is an SLM-powered control plane for AI coding agents.

It sits before Codex/Claude-style tools and uses a small model to make bounded workflow decisions: clarify ambiguous prompts, answer simple non-coding requests, pass through high-risk context unchanged, compress noisy tool output, carry bounded cross-turn session memory so follow-ups resolve references cheaply, and preserve constraints before invoking the frontier coding agent.

The goal is not to replace the coding model. The goal is to make expensive agent runs clearer, safer, and less wasteful.

This page is the conceptual overview. The repository README stays intentionally shorter and focuses on install, package metadata, and the first link into the docs.

What problem it solves

AI coding sessions often waste frontier-model context on work that does not require frontier reasoning:

  • Ambiguous prompts that should be clarified before execution.
  • Simple requests that can be answered without running the coding agent.
  • Repeated logs, stack traces, grep floods, installer output, and large diffs.
  • Prompt rewrites that accidentally drop file paths, tests, flags, or user constraints.
  • Re-explaining prior turns across separate invocations — or paying the native tool's full transcript replay every turn (which grows unbounded; PromptPilot's bounded session stays flat — see Session Memory).

PromptPilot treats these as harness decisions. The small model manages the workflow around the coding agent, while the frontier model remains responsible for code understanding, implementation, debugging, and test repair.

Typical flow

Developer request
  -> PromptPilot harness
  -> route decision (one of: clarify, answer, passthrough, act)
  -> Codex/Claude-style coding agent (for passthrough or act)
  -> bash tool output passes through the PostToolUse compression hook
     (regex-based; not part of the route decision)
  -> telemetry for review and replay

When to use PromptPilot

Use PromptPilot when:

  • You already work with Codex or Claude-style coding agents.
  • You want clearer prompts and fewer unnecessary agent calls.
  • You want compression that preserves debugging facts.
  • You care about auditability and repeatable handoff/restart workflows.

When not to use it

PromptPilot is not a good fit when:

  • You want a standalone coding agent.
  • You expect the small model to make deep implementation decisions.
  • You want maximum token reduction even when context may be lost.
  • You do not want a passthrough fallback for high-risk requests.

See also: Quickstart · Architecture · SLM Harness · Comparison

Clone this wiki locally