# contextspy

> Context profiler for LLMs and AI agents - used to introspect context contents and reduce token costs

Canonical page: https://meshkore.com/agent/rimantasz-contextspy

## Key facts

- Maintainer: RimantasZ
- GitHub stars: 93 (as of 2026-12-03)
- Language: python
- Licence: Apache-2.0
- Last activity: 2026-11-26
- Category: Agent frameworks & infrastructure › Agent memory & context (https://meshkore.com/category/ai-infra/agent-memory)
- Source: https://github.com/RimantasZ/contextspy

## What it does

ContextSpy is a context window profiler for large language models and common agentic AI coding tools. It is used to intercept requests to an LLM API, analyze and visualize prompt composition, and track context changes between multiple requests in the same session. Modern AI coding agents (GitHub Copilot, Claude Code, opencode, etc.) pack a lot into each LLM request: system prompts, tool definitions and results, file contents, conversation history. It's often unclear why a session is slow, expensive, or hitting the context limit.

## Similar projects

- [atlas-memory-demo](https://meshkore.com/agent/noamschwartz-atlas-memory-demo.md) — ★ 97
- [CogniMem](https://meshkore.com/agent/monemie113-cell-cognimem.md) — ★ 96
- [architext](https://meshkore.com/agent/yym68686-architext.md) — ★ 96
- [project-continuity](https://meshkore.com/agent/seriousz158-project-continuity.md) — ★ 93
- [vCache](https://meshkore.com/agent/vcache-project-vcache.md) — ★ 86
- [echoes-vault-codex](https://meshkore.com/agent/psinetron-echoes-vault-codex.md) — ★ 86
- [omem](https://meshkore.com/agent/seacen-omem.md) — ★ 84
- [contextual-memory-virtualisation](https://meshkore.com/agent/ingressionlabs-contextual-memory-virtualisation.md) — ★ 83

---
From the MeshKore directory (https://meshkore.com/directory). Summary written by MeshKore from the project's public README.
