Skip to content

Practical patterns, starters & CLI tools for loop engineering with AI coding agents. Design systems that prompt and orchestrate agents (inspired by Addy Osmani and Boris Cherny). Includes loop-audit, loop-init, loop-cost.

776 B
Raw Blame
export type ToolId = 'init' | 'audit' | 'cost' | 'sync' | 'context' | 'worktree' | 'gate' | 'mcp' | 'sandbox';
/** Resolve absolute path to a tool CLI script, or null if only npx remains. */
export declare function resolveToolScript(id: ToolId): Promise<string | null>;
export interface SpawnResult {
    code: number;
    stdout: string;
    stderr: string;
}
/** Run a sibling tool; inherit stdio for interactive pass-through. */
export declare function runTool(id: ToolId, args: string[]): Promise<number>;
/** Run a sibling tool and capture stdout (for doctor/status). */
export declare function runToolCapture(id: ToolId, args: string[]): Promise<SpawnResult>;
export declare function toolPackageName(id: ToolId): string;
export declare function listToolIds(): ToolId[];