Skip to main content

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

Project description

🐜 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

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.4.0.tar.gz (6.9 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.4.0-py3-none-any.whl (7.8 kB view details)

Uploaded Python 3

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

Hashes for antcompress-0.4.0.tar.gz
Algorithm Hash digest
SHA256 2889e13be73cd3acbcb8437d5f2780103f9fb017cae10dfc912b862f652d740b
MD5 da62f1e86e2a61280f2e303adea41a4c
BLAKE2b-256 811ab141ba851f4eea381c442f26f069744322feb7604957de0d421ed340b32a

See more details on using hashes here.

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

Hashes for antcompress-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1b219abf23422e32d6008ca92b2e33f0f1303827173f679df8d31d841b92dead
MD5 eea4a5704090253568a74b2b5508b9c4
BLAKE2b-256 1ee0cf9f098769c0494e825ab9c8bf1ea8b5806a5a8e06231ab617a5c9ca2e5f

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