🐜 Ant — High-ratio lossless compressor + Agent Mode that saves 70–90% AI tokens on code repos
Project description
🐜 Ant v0.4.0
High-ratio lossless compressor + Agent Mode that saves 70–90% tokens when feeding repos to AI coding tools.
pip install antcompress[agent]
Commands
ant init [path]→ Generates an.ant_context/tree replica for efficient IDE exploration + agent rules.ant compress <path>→ tiny .ant file (95–99% smaller)ant decompress <file.ant>→ restore exact originalant pack-ai <folder>→ Agent Mode (JSON for IDEs or MD for phone)ant unpack-ai <edited.md>→ AI changes → new .ant
Quick Start
ant pack-ai . --stdout --model claude
Phone Workflow (no Termux)
ant pack-ai my-repo/- Send
my-repo.ai.mdto phone. - Paste into Claude/Grok/ChatGPT.
- Save AI reply as
edited.md. - Send back →
ant unpack-ai edited.md→ant decompress updated.ant
Agent Mode in IDEs
Cursor / Continue.dev
Add to ~/.continue/config.json:
"context": [{
"provider": "command",
"params": {
"command": "ant pack-ai . --format json --model claude --max-tokens 120000 --stdout",
"name": "ant-repo"
}
}]
Type @ant-repo in chat.
Aider
aider --context-cmd "ant pack-ai . --format json --model claude --max-tokens 128000 --stdout"
GitHub Copilot
Run ant pack-ai . --stdout and paste the output into Copilot Chat to give it full project context while staying under the token limit.
Google Antigravity
Since Antigravity can use your terminal, simply ask it to: "Use Ant to pack this repo for context" or "Use Ant to apply changes from this edited.md file."
Made with ❤️ by Okediya Ayobami Oluwaseunfunmi
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 antcompress-0.4.0.tar.gz.
File metadata
- Download URL: antcompress-0.4.0.tar.gz
- Upload date:
- Size: 6.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2889e13be73cd3acbcb8437d5f2780103f9fb017cae10dfc912b862f652d740b
|
|
| MD5 |
da62f1e86e2a61280f2e303adea41a4c
|
|
| BLAKE2b-256 |
811ab141ba851f4eea381c442f26f069744322feb7604957de0d421ed340b32a
|
File details
Details for the file antcompress-0.4.0-py3-none-any.whl.
File metadata
- Download URL: antcompress-0.4.0-py3-none-any.whl
- Upload date:
- Size: 7.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1b219abf23422e32d6008ca92b2e33f0f1303827173f679df8d31d841b92dead
|
|
| MD5 |
eea4a5704090253568a74b2b5508b9c4
|
|
| BLAKE2b-256 |
1ee0cf9f098769c0494e825ab9c8bf1ea8b5806a5a8e06231ab617a5c9ca2e5f
|