ncode

CLI docs Storage

ncode CLI Help

Storage

What takes space#

ncode keeps its own data in one local database plus a few folders: your sessions (conversations and their runs), the details of every agent step (tool output, prompts), rewind snapshots, workflow journals and research reports. Cleaning up touches only this data, never your project files or the .swarm_code folder in a project.

Two ways to shrink it#

  • Delete removes whole sessions, snapshots, journals or reports for good.
  • Prune keeps every session and its transcript, tokens, cost and timings, and drops only the bulky details of finished runs: tool output and prompts. A pruned run still reads the same in the transcript; its agent steps just no longer show their full output.

Nothing is ever removed from a session that is pinned, open in a window or still running.

Retention#

Retention does the same work on a schedule, once a day, while the desktop app is running:

  • delete sessions older than 30, 60, 90 or 180 days (off by default);
  • prune agent details older than 14, 30 or 90 days (off by default).

Reclaiming disk space#

Deleting rows frees space inside the database file, not on the disk. Reclaiming the space (SQLite's VACUUM) rewrites the file so it shrinks; it deletes nothing, and the sweep never does it on its own.

Storage in the terminal#

Open Settings → Storage. It measures what ncode's data takes, and runs a cleanup or a vacuum for you. Measuring and cleaning run as a task with its seconds shown; c cancels.

Cleaning up changes the shared database, so it runs from one place at a time: from ncode while the desktop app is closed, or from the app.

Note The two retention settings, Automatically delete sessions older than and Prune agent details older than, can be set here, but only the desktop app applies them, once a day while it is running. With the terminal alone, clean up by hand from this page.