ginko compact
ginko compact [options]Description
Section titled “Description”Reduces session context size by removing stale or redundant information. Useful when your AI assistant’s context window is getting full.
Options
Section titled “Options”| Flag | Description |
|---|---|
-p, --preserve <files...> | Files to preserve during compaction |
-a, --aggressive | Aggressive compaction mode |
Examples
Section titled “Examples”# Standard compactionginko compact
# Preserve specific filesginko compact --preserve src/auth.ts src/config.ts
# Aggressive modeginko compact --aggressiveRelated Commands
Section titled “Related Commands”- ginko start — Context loaded at start
- ginko status — Check context size