🐜 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
Release files for antcompress 0.4.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| antcompress-0.4.0.tar.gz | 6.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| antcompress-0.4.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 14.7 kB
Release files / antcompress-0.4.0.tar.gz
| Download URL | antcompress-0.4.0.tar.gz |
|---|---|
| Size | 6.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2889e13be73cd3acbcb8437d5f2780103f9fb017cae10dfc912b862f652d740b
|
|
BLAKE2b-256 checksum How to use checksums |
811ab141ba851f4eea381c442f26f069744322feb7604957de0d421ed340b32a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.10.11
|
Release files / antcompress-0.4.0-py3-none-any.whl
| Download URL | antcompress-0.4.0-py3-none-any.whl |
|---|---|
| Size | 7.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
1b219abf23422e32d6008ca92b2e33f0f1303827173f679df8d31d841b92dead
|
|
BLAKE2b-256 checksum How to use checksums |
1ee0cf9f098769c0494e825ab9c8bf1ea8b5806a5a8e06231ab617a5c9ca2e5f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.10.11
|