Skip to content

Instantly share code, notes, and snippets.

@EzraWolf
EzraWolf / btw.ts
Created May 24, 2026 17:09
pi agent lean /btw command
/**
* /btw <msg> spawns a throwaway LLM chat
* /btw:settings to configure model/thinking
*/
import * as fs from "node:fs";
import * as path from "node:path";
import type { ExtensionAPI, ExtensionCommandContext } from "@earendil-works/pi-coding-agent";
import {
createAgentSession, DynamicBorder, getMarkdownTheme,
getSettingsListTheme, SessionManager,