Skip to main content

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.

  1. Cursor. Set a custom OpenAI base URL.
  2. 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

  1. Trim. Cut old and large tool outputs.
  2. Summarise. Compress old turns into a short note.
  3. Sliding window. Keep the newest turns and the system prompt.
  4. Image recall. Cache or evict old images.
  5. Visual method. Turn big tool outputs into an image the model reads.
  6. Manual removal. Drop any message by hand. Choices are saved.
  7. Memory. Remember and recall notes across sessions.
  8. 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

acm_context_management-0.2.7.tar.gz (103.5 kB view details)

Uploaded Source

Built Distribution

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

acm_context_management-0.2.7-py3-none-any.whl (110.5 kB view details)

Uploaded Python 3

File details

Details for the file acm_context_management-0.2.7.tar.gz.

File metadata

  • Download URL: acm_context_management-0.2.7.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

Hashes for acm_context_management-0.2.7.tar.gz
Algorithm Hash digest
SHA256 96d88c484064e00c0afc168756a25bf84e61e2086801e5c131502f59d77a434e
MD5 404eb945655716059519319167ee0c89
BLAKE2b-256 03e9f289ffcc2c2e07e17891df2e383253fd4d518a0075d8ba6d726f826425a6

See more details on using hashes here.

File details

Details for the file acm_context_management-0.2.7-py3-none-any.whl.

File metadata

  • Download URL: acm_context_management-0.2.7-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

Hashes for acm_context_management-0.2.7-py3-none-any.whl
Algorithm Hash digest
SHA256 60a6cb5176e1ab67b1cd9ac6fcf4813a90cbf7097692c432cad8bd42582eb375
MD5 c5757849199b2c8c6e00bbac47bab5e5
BLAKE2b-256 ec3a54d106bbd06e7f3ec16cc5d9f609bfbb8e833ee0a2177e67b32eb5f2ed48

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