Skip to main content

Save slots for coding projects.

Project description

Slots repo banner

Slots

PyPI version Python versions Install

Save slots for your local directory - Checkpoint your progress along the way with no commitment.

Slots is a small CLI for creating save slots inside a coding project. It is useful when you want to attempt a refactor, compare approaches, or let an AI coding agent make changes while keeping an easy restore point.

Installation

pip install slots-cli

For MCP support:

pip install "slots-cli[mcp]"

Quickstart

Create a save slot before making risky changes:

slots init
slots save before-refactor

Make your edits, then check what changed:

slots status
Difference from base state
3 changed: 1 added, 1 modified, 1 removed

Added (1)
+  new_feature.py

Modified (1)
!  app.py

Removed (1)
-  old_utils.py

Restore the save slot if you want to go back:

slots load before-refactor

Undo the most recent load if you change your mind:

slots revert

Commands

Initialize

slots init

Creates .slots/ and records the base state. All saves are tied to the same base state.

Refresh the base state:

slots init --refresh

This clears existing save slots and aligns the base state with the current respository.

Save

slots save before-refactor

Creates a named save slot from the current project state.

Status

slots status

Shows differences between the current project and the base state.

slots status --latest

Shows differences between the current project and the most recent save slot.

List

slots list

Lists save slots.

Load

slots load before-refactor

Loads added and modified files from a save slot.

slots load before-refactor --remove-files

Also removes files that were deleted in the save slot.

Revert

slots revert

Reverts the most recent load using the automatic pre-load backup.

Delete

slots delete before-refactor

Deletes a save slot.

Reset

slots reset

Deletes all Slots data from the project.

MCP Support

Slots includes a MCP server so AI coding tools can create and restore save slots.

Install with MCP support:

pip install "slots-cli[mcp]"

Then run the MCP server:

slots-mcp

Common Installation commands:

Codex

codex mcp add slots -- slots-mcp

Claude Code

claude mcp add slots -- slots-mcp

Notes

Slots is not a replacement for Git - it is designed to work alongside it as a lightweight local checkpoint tool.

Before loading a slot, Slots creates a backup in .slots/backups/. You can restore the latest load with:

slots revert

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

slots_cli-0.1.1.tar.gz (13.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

slots_cli-0.1.1-py3-none-any.whl (11.6 kB view details)

Uploaded Python 3

File details

Details for the file slots_cli-0.1.1.tar.gz.

File metadata

  • Download URL: slots_cli-0.1.1.tar.gz
  • Upload date:
  • Size: 13.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.10

File hashes

Hashes for slots_cli-0.1.1.tar.gz
Algorithm Hash digest
SHA256 da6a6bf88865923a1ddb886e61248d7c61c3c4f99eef20d88065304283397605
MD5 d9f720df872397dbb88d4735bbaa66ec
BLAKE2b-256 a8eb4939e0b6839061a5b3ac0698c97886b31c9729128b8614596077b9732e1f

See more details on using hashes here.

File details

Details for the file slots_cli-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: slots_cli-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 11.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.10

File hashes

Hashes for slots_cli-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 4573d00a093925ce8b5b772312b03985aa3053985b16de7e42c1bebef23a5994
MD5 3836bb38abb255dadd71602c0198f850
BLAKE2b-256 5eaf62aa133e766d2d4082d28ee04e6e431f230699a1f3c59da0a0d42fabc9c4

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page