@nanocollective/nanocoder
Version:
A local-first CLI coding agent that brings the power of agentic coding tools like Claude Code and Gemini CLI to local models or controlled APIs like OpenRouter
24 lines • 1.17 kB
TypeScript
import type { Command } from '../types/commands.js';
/**
* The /compact command compresses message history to reduce context usage.
*
* Note: The actual command logic is handled in app-util.ts handleCompactCommand()
* because it requires access to app state (messages, setMessages, provider, model)
* that isn't available through the standard command handler interface.
*
* This command definition exists to:
* 1. Register the command in the command registry for /help and autocomplete
* 2. Provide the command description to users
*
* Available flags:
* --aggressive - Aggressive compression mode (removes more content)
* --conservative - Conservative compression mode (preserves more content)
* --default - Default balanced compression mode
* --preview - Show compression preview without applying
* --restore - Restore messages from pre-compression backup
* --auto-on - Enable auto-compact for this session
* --auto-off - Disable auto-compact for this session
* --threshold <n> - Set auto-compact threshold (50-95%) for this session
*/
export declare const compactCommand: Command;
//# sourceMappingURL=compact.d.ts.map