Example Guide

Quick start

Getting started Install gnaw and produce your first prompt. Learn filtering Include and exclude files with glob patterns. Learn templating Shape output with Handlebars templates.

Callout variants

Integration points

A core Rust library that provides the foundation for code ingestion and prompt generation.

Command line interface, designed for humans. gnaw my_project --include="*.rs"

An axum-based REST surface for browser-extension integration (planned).

Terminal example

bash
mkdir -p my_project/{src,tests}
gnaw my_project

A plain code block

fn main() {
    let budget = 8_000;
    println!("packing context into {budget} tokens");
}