Catalog PyPI
PACKAGE EXPLORERView in registry

agent-code-context

PyPI

Extracts structured, token-efficient context bundles from Python codebases for AI coding agents.

Versions collected1
Direct dependencies0From release 0.1.0
Last observed20 Oct, 21:40 UTC

README

Version 0.1.0 documentation

agent-code-context

agent-code-context is a Python library and CLI tool that extracts structured, token-efficient context bundles from Python codebases. By analyzing the Abstract Syntax Tree (AST), it generates symbol indexes, dependency graphs, and dead code reports. This allows AI coding agents to understand the architecture and relationships of a codebase without consuming unnecessary tokens on full file contents.

Problem Statement

AI coding agents (like those built with LangChain, AutoGen, or custom LLM wrappers) often struggle with large codebases because passing entire files or directories quickly exceeds context window limits. Developers currently lack a lightweight, standalone tool to extract just the "skeleton" of a codebase—what exists, where it lives, and how it connects. agent-code-context solves this by providing a token-efficient summary of the code structure, enabling agents to make informed decisions about which specific files to read next.

Features

  • Symbol Indexing: Extracts classes, functions, and their signatures (arguments and type hints) across the project.
  • Dependency Graphing: Maps internal import relationships to show which modules depend on which.
  • Dead Code Detection: Heuristically identifies public functions and classes that are never imported or called within the project.
  • Token-Efficient Output: Formats output as compact JSON or structured Markdown optimized for LLM context windows.
  • CLI Interface: Allows easy integration into shell-based agent workflows.

Installation

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Versions 1

Collected releases
VersionPublishedDirect dependenciesOpen version
0.1.013 Jul 20260

Package advisories

0
No matching advisories collected

This describes our collected data; it is not a security assessment.

Metadata history

Meaningful changes
Current collected state Current

Observed since 20 Oct, 21:40 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package:19af170027cf9702fec476307f361550e2377415659d5199c463980f461354d9