ACM Gateway
ACM keeps your AI assistant's context window small and useful. This package is the gateway, a small local service that does the context work. It trims, summarises, and manages what goes to the model on every call.
The gateway works with VSCode, Cursor, Antigravity, Claude Code, and Windsurf. Your IDE talks to the gateway as if it were the AI. The gateway applies the techniques, then passes the request on to the real provider.
Install
Use uv to install the gateway.
uv tool install acm-context-management
Run
Start the gateway. It serves on http://127.0.0.1:8807.
acm-gateway
To use your own API key, set it first.
export ACM_UPSTREAM_BASE_URL=https://openrouter.ai/api/v1
export ACM_UPSTREAM_API_KEY=your_key_here
acm-gateway
Point your IDE at the gateway
Tell your IDE the AI lives at http://127.0.0.1:8807/v1.
- Cursor. Set a custom OpenAI base URL.
- Claude Code. Set
ANTHROPIC_BASE_URL.
Profiles
A profile decides which techniques are on. Pick one of minimal, long_chat, power_research, cheap_long, or visual_recall. You can also copy the example config and edit it, or set ACM_CONFIG to your own file path.
What the gateway does
- Trim. Cut old and large tool outputs.
- Summarise. Compress old turns into a short note.
- Sliding window. Keep the newest turns and the system prompt.
- Image recall. Cache or evict old images.
- Visual method. Turn big tool outputs into an image the model reads.
- Manual removal. Drop any message by hand. Choices are saved.
- Memory. Remember and recall notes across sessions.
- Multi provider routing. Route to OpenAI, OpenRouter, Google, Azure, or Anthropic.
Links
Repository: https://github.com/HarishanA21/agentic_context_management
Issues: https://github.com/HarishanA21/agentic_context_management/issues
License
MIT
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file acm_context_management-0.2.8.tar.gz.
File metadata
- Download URL: acm_context_management-0.2.8.tar.gz
- Upload date:
- Size: 103.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.11.27 {"installer":{"name":"uv","version":"0.11.27","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4d8cd24189b0e08bb2ac52575758b08f0e70a5e7f8c9b9b5c37a18e4443defb7
|
|
| MD5 |
113b38b101f0518bc39b82dd02662f60
|
|
| BLAKE2b-256 |
239671959fafc1697284f1e580cf28f7e0dcf4164e77ef4774e17ffa8ab54d79
|
File details
Details for the file acm_context_management-0.2.8-py3-none-any.whl.
File metadata
- Download URL: acm_context_management-0.2.8-py3-none-any.whl
- Upload date:
- Size: 110.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.11.27 {"installer":{"name":"uv","version":"0.11.27","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
abcdbd04b2e4d0459fceceab3acf24e18572bf3cc75f62f285673026b083bd97
|
|
| MD5 |
4a7c3409e0be123396067559c5a38a53
|
|
| BLAKE2b-256 |
6105259751012d50a2a0ee1c4217eb2345994386571738218803043f3fb113f4
|