Skip to content

Latest commit

 

History

History
93 lines (68 loc) · 2.22 KB

File metadata and controls

93 lines (68 loc) · 2.22 KB
AIContext Logo

Context Management for AI-Assisted Development

Tests npm node License

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.

AI Context Example

Quick Start

npm install -g ai-context
cx

Core 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 snapshot

Output Formats

cx -f text              # Plain text (default)
cx -f md                # Markdown
cx -f json              # JSON
cx -f xml               # XML

Incremental 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 run

File Filtering

# Exclude patterns
cx ignore "*.log"
cx ignore show

# Include patterns (whitelist)
cx include "src/**/*.ts"
cx include show

Configuration

cx configure            # Setup
cx show                 # View settings

Full Documentation

COMMANDS.md - Complete CLI reference with all options, examples, and patterns.

Help

cx -h                   # Basic help
cx -h --more            # Detailed help

License

MIT