Token optimization wrapper for Claude Code sessions
Project description
Claude Efficient
Stop burning Claude Code tokens.
ce wraps every session with automatic optimizations to save you money and improve context quality.
🚀 Installation
ce-tool is a Python package. Ensure you have Python 3.11+ installed. Once installed, the ce command will be available globally in your terminal.
Option 1: Install via pip (Recommended for all platforms)
Windows, macOS, and Linux:
pip install ce-tool
Option 2: Install from Source (Git Clone)
If you prefer to clone the repository and run it locally, follow these steps.
Windows, macOS, and Linux:
# 1. Clone the repository
git clone https://github.com/thedotmack/claude-efficient.git
# 2. Navigate into the directory
cd claude-efficient
# 3. Install the package globally so the 'ce' command works anywhere
pip install -e .
✨ Quick Start
-
Initialize your project:
ce initThis command sets up your project with a
CLAUDE.md,.claudeignore, and other necessary configurations for optimal performance. -
Run a task:
ce run "Your task description here. For example, build a FastAPI endpoint for user auth."
This is the main command you'll use. It automatically optimizes your request, manages session context, and routes it appropriately.
-
Check your savings:
ce gainsThis command displays a detailed dashboard of your token savings across different operations. Token savings are tracked automatically and stored globally (
~/.ce-telemetry.jsonl), allowing you to view your total savings across all projects.
🤖 Other AI CLIs
While ce acts as an optimizing wrapper around Claude Code, ce-tool also provides drop-in token optimization wrappers for other popular AI command-line tools. These wrappers apply the same prompt optimizations and track your token savings in the global ce gains dashboard.
ce-gemini: Wraps the Google Gemini CLI (gemini).ce-codex: Wraps the OpenAI Codex CLI (codex).ce-cursor: Wraps the Cursor CLI (cursor).ce-opencode: Wraps the OpenCode CLI (opencode).
You can use these just like their underlying commands (e.g. ce-gemini run "my task").
📋 Commands
claude-efficient provides a suite of commands to manage your workflow and optimize token usage.
| Command | Description |
|---|---|
ce init |
Initializes a new or existing project for use with claude-efficient. |
ce run [TASK] |
Runs a new coding session with the given task, applying optimizations. |
ce gains |
Displays the token savings dashboard. |
ce status |
Shows a health dashboard for the current project configuration. |
ce audit [LOG] |
Audits a session log to detect inefficiencies and suggest improvements. |
ce mem-search |
Searches cross-session memory for relevant context from past tasks. |
ce scope-check |
Estimates the token requirements for a task before running a session. |
ce helpers |
Provides assistance with setting up helpers and integrations. |
Made with ❤️ for efficient coding sessions.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file ce_tool-0.2.0.tar.gz.
File metadata
- Download URL: ce_tool-0.2.0.tar.gz
- Upload date:
- Size: 52.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
21edd69d89a52334df7ea7783f358ea389b115eb3cac9f56530eb5c1abea4892
|
|
| MD5 |
4d747e47b8222bb72ff578c5793207c0
|
|
| BLAKE2b-256 |
a825b4d00afd653e0b7eca49d3d17ba15bbb3d80425354aba13507052bc643e7
|
File details
Details for the file ce_tool-0.2.0-py3-none-any.whl.
File metadata
- Download URL: ce_tool-0.2.0-py3-none-any.whl
- Upload date:
- Size: 77.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
60b5b4e259bd70e62542b6fe31b94705413ea3554e8f7a46e331041e5d02e9d7
|
|
| MD5 |
b3e381efecfa4b3620139786a2b5d16b
|
|
| BLAKE2b-256 |
5feb5e3d9e28f1151c13d53d15475fed6796ebdb4aa9d00e057bbbdf6e4745b5
|