Skip to main content

🐜 Ant v0.4.0

PyPI - Version

High-ratio lossless compressor + Agent Mode that saves 70–90% tokens when feeding repos to AI coding tools.

GitHub Repository

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 original
  • ant 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)

  1. ant pack-ai my-repo/
  2. Send my-repo.ai.md to phone.
  3. Paste into Claude/Grok/ChatGPT.
  4. Save AI reply as edited.md.
  5. Send back → ant unpack-ai edited.mdant 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)

Source distribution for antcompress 0.4.0
File Size Uploaded
antcompress-0.4.0.tar.gz 6.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for antcompress 0.4.0
File Interpreter ABI Platform
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

Release history Release notifications | RSS feed

This release

0.4.0 This release

2 release files

0.3.1

2 release files

0.3.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page