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.2.tar.gz (103.4 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.2-py3-none-any.whl (110.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: acm_context_management-0.2.2.tar.gz
  • Upload date:
  • Size: 103.4 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.2.tar.gz
Algorithm Hash digest
SHA256 3d5dd55c9740350742193d99ec0a4d9e7a47348b6e5c66b429adb1b326de2769
MD5 0d80cb9c5ef9ffc4fcd2062a3f68660b
BLAKE2b-256 c862ae2e4a4f700e38265db6fa375cf39556f37bbe6f1f008a16be713d443c68

See more details on using hashes here.

File details

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

File metadata

  • Download URL: acm_context_management-0.2.2-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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 669210a7b02a2a13ddd3b53dc39b6db964f8471e0764d7a84dbea408aa1eadd2
MD5 755d28dc8369d5167bfa6d9a373e0d3b
BLAKE2b-256 8cf52db31b142a8f4844d44543ba4ae9d8c63934cc01647d6e30ff0e5e27005a

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