Skip to main content

🐜 Ant — High-ratio lossless compressor + Agent Mode that saves 70–90% AI tokens on code repos

Project description

🐜 Ant v0.3.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 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

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

antcompress-0.3.1.tar.gz (5.8 kB view details)

Uploaded Source

Built Distribution

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

antcompress-0.3.1-py3-none-any.whl (6.7 kB view details)

Uploaded Python 3

File details

Details for the file antcompress-0.3.1.tar.gz.

File metadata

  • Download URL: antcompress-0.3.1.tar.gz
  • Upload date:
  • Size: 5.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.11

File hashes

Hashes for antcompress-0.3.1.tar.gz
Algorithm Hash digest
SHA256 64480d60b6cf71bbbda7f2aff85a46eb263d7bea5d104b6d338d1f16ecef3874
MD5 0d63fd032e79932cea0d37bce5db9f22
BLAKE2b-256 03819e09c5e52065bcd3b6f54d41a9f8b99f23af71e5ba0dedd68b7caea9c332

See more details on using hashes here.

File details

Details for the file antcompress-0.3.1-py3-none-any.whl.

File metadata

  • Download URL: antcompress-0.3.1-py3-none-any.whl
  • Upload date:
  • Size: 6.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.11

File hashes

Hashes for antcompress-0.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 6bf10baa9d70df405d0d30613ba8a0d7544a979bc1adcb8dbcfdbe03dd9e7f91
MD5 af641ad59ae411ecb5719722dfa05efa
BLAKE2b-256 fa263e98e01d14ed73866d972b0a42f018c57dc8f9ffa771075243e5a127cfbd

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