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

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

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"

Google Antigravity

Add as a custom MCP tool.


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.0.tar.gz (5.6 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.0-py3-none-any.whl (6.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: antcompress-0.3.0.tar.gz
  • Upload date:
  • Size: 5.6 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.0.tar.gz
Algorithm Hash digest
SHA256 520e8309d8b96ba598c74b794508a6d09f36f58758a82c03321c3a47572f341e
MD5 623e91f5aeeea862f5d8f6134e9d6c75
BLAKE2b-256 2f42f030e35e7b559ddcb9193c27c631df42aa1abe496f1cb8e19c41dd078238

See more details on using hashes here.

File details

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

File metadata

  • Download URL: antcompress-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 6.4 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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 fd4765a4fc7f7bf5c5422cd4dacc72cdeb40ca215ec4a7c9c49b0b29eab62070
MD5 9bf6f3b36ddcabd1582c524b1a6fc971
BLAKE2b-256 4134faa69031047ea946188ddf93c017d8500953df126efc9303f49ac3ec208f

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