Skip to main content

context-gen-cli (Python Edition)

⚡ Fast, AST-powered CLI tool that scans any project, extracts architecture models, and generates structured LLM context (agent.md & agent.json).

Features

  • 100% Accurate Python Dependency Graphs: Built using Python's native ast (Abstract Syntax Tree) module.
  • Gitignore Respect: Uses pathspec to ignore unwanted directories and secrets.
  • Dual Output: Generates both human-readable Markdown (agent.md) and MCP-compatible structured JSON (agent.json).
  • Modern CLI: Powered by typer and rich.

Installation

pip install context-gen-cli

Quick Start

# Generate agent.md in context/ directory
context-gen .

# Generate agent.json
context-gen . --format json

# Custom output path
context-gen ./my-project -o custom/path/context.md

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

context_gen_cli-1.0.0.tar.gz (10.6 kB view details)

Uploaded Source

Built Distribution

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

context_gen_cli-1.0.0-py3-none-any.whl (11.8 kB view details)

Uploaded Python 3

File details

Details for the file context_gen_cli-1.0.0.tar.gz.

File metadata

  • Download URL: context_gen_cli-1.0.0.tar.gz
  • Upload date:
  • Size: 10.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.11.5

File hashes

Hashes for context_gen_cli-1.0.0.tar.gz
Algorithm Hash digest
SHA256 55d42227cd3e0120475f015f3fb11137bcfa8f629e824bcdaece95ee875a0cea
MD5 b139723d989be7806f347a6017451d2f
BLAKE2b-256 cbd6d2d2d7ead5d977c24893d04fca610dadd5541ca573a47c8f9b3f3c36391b

See more details on using hashes here.

File details

Details for the file context_gen_cli-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for context_gen_cli-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4116bd84ffaf0f1db0f3c0cd81233a2ecfaaffa41f50bf53f108155cbb374872
MD5 841d8df8aa803b36ea9b307e331f3a20
BLAKE2b-256 b9b64010ca70436b46f465910b6f6c5391e422c1a7d643a8ee4f9ed4e305d6a4

See more details on using hashes here.

Release history Release notifications | RSS feed

1.2.5

2 files

1.2.4

2 files

1.2.0

2 files

This release

1.0.0 This release

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page