ai-context
v1.6.2
Published
CLI tool to generate code context files
Readme
What is AIContext?
A CLI tool that generates structured context from your codebase for AI tools. Scans your project, filters out noise, and creates formatted output ready for Claude, ChatGPT, or any AI assistant.
Quick Start
npm install -g ai-context
cxCore Commands
cx # Generate from current directory
cx ./src # Generate from path
cx -m "feature" # Add filename message
cx -o # Output to screen
cx -t # Tree only
cx -s # Create snapshotOutput Formats
cx -f text # Plain text (default)
cx -f md # Markdown
cx -f json # JSON
cx -f xml # XMLIncremental Mode
Only include changed files:
cx --since 2h # Last 2 hours
cx --since 1d # Last day
cx --git-diff main # vs main branch
cx --changed # Since last runFile Filtering
# Exclude patterns
cx ignore "*.log"
cx ignore show
# Include patterns (whitelist)
cx include "src/**/*.ts"
cx include showConfiguration
cx configure # Setup
cx show # View settingsFull Documentation
COMMANDS.md - Complete CLI reference with all options, examples, and patterns.
Help
cx -h # Basic help
cx -h --more # Detailed help- Updates - Version history
- Issues - Report bugs
- Discussions - Questions
License
MIT
