The ultimate context-engineering workspace CLI for LLMs.
Project description
Context-Ly CLI
Context-Ly CLI is a proprietary Context Intelligence Engine designed to help developers generate high-quality, token-efficient context for Large Language Models (LLMs).
Rather than manually explaining your project to an AI assistant in every session, Context-Ly analyzes your repository, discovers conventions, learns team rules, and generates structured context files that help AI tools understand your codebase more effectively.
The CLI acts as a persistent Context Memory Layer for your repository, enabling consistent AI interactions across development workflows.
Features
- Repository analysis and context generation
- Automatic framework and dependency detection
- Architecture visualization through project structure analysis
- Team convention discovery and memory management
- Persistent project-specific context storage
- LLM-ready Context Pack generation
- Repository complexity and token usage inspection
- Context-as-Code workflow with version-controlled project memory
Installation
Install Context-Ly directly from PyPI:
pip install contextly
Verify the installation:
contextly --help
Prerequisites
- Python 3.9 or later
- A local Git repository or project directory to analyze
No external services or API keys are required for the core functionality.
Quick Start
Initialize Context-Ly in your project:
contextly init
Analyze your repository and generate a complete project context:
contextly analyze
This command automatically:
- Reads your README documentation
- Scans the project structure
- Detects frameworks and dependencies
- Discovers conventions and stored memory
- Generates a comprehensive
PROJECT_CONTEXT.md
The generated file can be used directly with AI coding assistants and LLMs.
Commands
contextly init
Initialize Context-Ly in the current project.
contextly init
Creates:
.contextly/
├── config.yaml
├── memory/
└── packs/
contextly analyze
Generate a complete repository context file.
contextly analyze
This command:
- Reads project documentation
- Analyzes repository structure
- Detects frameworks and technologies
- Loads stored team conventions
- Generates
PROJECT_CONTEXT.md
Output:
PROJECT_CONTEXT.md
contextly discover
Run the Pattern Discovery Engine.
contextly discover
Discovers repository conventions such as:
- TailwindCSS usage
- Zustand state management
- React Query patterns
- Service-layer architecture hints
- Framework-specific conventions
The command provides insight into patterns already present within the codebase.
contextly learn --auto
Convert discovered conventions into permanent project memory.
contextly learn --auto
Example:
Save convention: TailwindCSS (Uses TailwindCSS for styling.)? [y/N]
Approved conventions are stored in:
.contextly/memory/rules.yaml
This creates a persistent memory layer that can be committed to source control and shared across teams.
contextly memory
Inspect all stored project memory and conventions.
contextly memory
Displays all saved rules, conventions, and architectural preferences currently remembered by Context-Ly.
contextly pack <directory>
Generate an LLM-ready Context Pack from a specific directory.
contextly pack src/components
The command:
- Reads all files in the target directory
- Calculates token usage
- Bundles the content into a reusable Context Pack
Output location:
.contextly/packs/
Useful for sharing focused portions of a large codebase with an LLM.
contextly inspect
Analyze repository complexity and token consumption.
contextly inspect
Provides visibility into:
- Large files
- Potential token-heavy directories
- Context window bottlenecks
- Repository complexity hotspots
This helps identify areas that may negatively impact AI context quality.
contextly export <pack_name>
Fuses your memory rules and the specified context pack into a single, comprehensive Context Payload.
contextly export cli
The output is instantly copied to your clipboard, ready to be pasted directly into an LLM.
contextly explain <domain>
Extracts a highly-optimized structural context payload for a specific domain based on the AST Knowledge Graph.
contextly explain core
It copies a JSON payload to your clipboard, allowing the LLM to understand the architecture without wasting tokens scanning raw files.
Understanding Context-Ly Ignore Philosophies
Context-Ly utilizes two distinct "ignore" policies depending on the operation:
- Packing & Inspection (
contextly pack,contextly inspect): These commands respect your.gitignoreand.contextlyignorefiles. This ensures that generated packs and token counts omit irrelevant files (likenode_modules, compiled binaries, etc.), producing concise, token-efficient context for the LLM. - Discovery & Intelligence (
contextly discover,contextly learn): The Pattern Discovery Engine ignores your.gitignore. It uses a minimal, hardcoded skip-list (only completely toxic directories like.gitor.venv). This allows Context-Ly to correctly discover architectural patterns and package dependencies in valid directories (like afrontend/folder) that you might have legitimately added to.gitignoreto keep your root repository clean.
Example Workflow
contextly init
contextly discover
contextly learn --auto
contextly analyze
Result:
.contextly/
PROJECT_CONTEXT.md
Your repository now has a persistent memory layer and an AI-ready context file generated from both repository analysis and learned team conventions.
Why Context-Ly?
Modern AI coding tools are powerful, but they often lack project-specific context.
Context-Ly bridges that gap by transforming repository knowledge, team conventions, and architectural patterns into structured context that can be consistently shared with LLMs.
The goal is simple:
Build context once. Use it everywhere.
Changelog
For all release notes and version history, please see the CHANGELOG.md.
Contributing
Contributions, issues, and feature requests are welcome.
If you discover a bug, have an idea for improving repository intelligence, or want to contribute new scanners and analysis capabilities, please open an issue or submit a pull request.
License
This project is proprietary and distributed under the Contextly End-User License Agreement (EULA).
See the LICENSE file for details.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file contextly-1.1.0.tar.gz.
File metadata
- Download URL: contextly-1.1.0.tar.gz
- Upload date:
- Size: 120.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
167d8459ea3aaa2c51a1490a5f4ab38d10b30a9937804f3648ae95b381347fb6
|
|
| MD5 |
d8ce1a201543acc05bde15abe05cf262
|
|
| BLAKE2b-256 |
a5dbc42f0a7c28a232db4985f20210602ff5da1ab630e54f9457b1e43fb0e3e6
|
Provenance
The following attestation bundles were made for contextly-1.1.0.tar.gz:
Publisher:
publish.yml on vutikurishanmukha9/Contextly
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
contextly-1.1.0.tar.gz -
Subject digest:
167d8459ea3aaa2c51a1490a5f4ab38d10b30a9937804f3648ae95b381347fb6 - Sigstore transparency entry: 1935685278
- Sigstore integration time:
-
Permalink:
vutikurishanmukha9/Contextly@d73c6321282db649860c6b0426dd84b7f5a64f82 -
Branch / Tag:
refs/tags/v1.1.0 - Owner: https://github.com/vutikurishanmukha9
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@d73c6321282db649860c6b0426dd84b7f5a64f82 -
Trigger Event:
release
-
Statement type:
File details
Details for the file contextly-1.1.0-py3-none-any.whl.
File metadata
- Download URL: contextly-1.1.0-py3-none-any.whl
- Upload date:
- Size: 101.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
eba0ead3dd194f5e799260879e80d6bfa790e1ff53faa71357b8322014eeaefc
|
|
| MD5 |
86e74b0a0cc86c3170a0fc23e462e7dd
|
|
| BLAKE2b-256 |
5796327a8f97c427f9b97ac26c9dc14fb638b1028f458fd059c0408fc1a87ebe
|
Provenance
The following attestation bundles were made for contextly-1.1.0-py3-none-any.whl:
Publisher:
publish.yml on vutikurishanmukha9/Contextly
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
contextly-1.1.0-py3-none-any.whl -
Subject digest:
eba0ead3dd194f5e799260879e80d6bfa790e1ff53faa71357b8322014eeaefc - Sigstore transparency entry: 1935685321
- Sigstore integration time:
-
Permalink:
vutikurishanmukha9/Contextly@d73c6321282db649860c6b0426dd84b7f5a64f82 -
Branch / Tag:
refs/tags/v1.1.0 - Owner: https://github.com/vutikurishanmukha9
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@d73c6321282db649860c6b0426dd84b7f5a64f82 -
Trigger Event:
release
-
Statement type: