
Research
Malicious npm Packages Impersonate Flashbots SDKs, Targeting Ethereum Wallet Credentials
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
Last tested: 03/21/2025, 07:25 America/Los_Angeles
AIContext is a context tool that helps AI assistants better understand your code. With the cx CLI, it creates intelligent snapshots of your project. Using cx's MCP, it preserves file relationships, tracks development history, and filters out noise—ensuring AI tools grasp your codebase's structure and patterns. ✨
cx --mpc
(to be released soon)
cx
# Install globally
npm install -g aictx
# Generate context from current directory
cx
# Generate context from specific directory with a message
cx ./src -m "authentication api"
The output will be copied to your clipboard and saved to a context file, ready to paste into your AI tool of choice.
Usage: cx [directory] [options]
Option | Description |
---|---|
-h, --help | Show help information. Use -h <category> for category-specific help |
--configure | Start the configuration wizard to set up preferences |
--show | Display your current configuration settings |
--version | Show the current version of the tool |
--clear | Remove all generated context files inside the ./code folder |
--clear-all | Remove ALL context files and directories (with confirmation) |
Option | Description |
---|---|
-m, --message "text" | Add a descriptive message to the context file name |
-s, --snap | Create a snapshot in the context/snap directory |
-sm "message" | Create a snapshot with a message (combined flag) |
--verbose, -v | Show detailed progress during execution (helpful for debugging) |
--no-clipboard | Skip copying content to clipboard (faster execution) |
Option | Description |
---|---|
-i, --ignore <pattern> | Add a glob pattern to exclude files/directories |
--show-ignore | Display all current exclusion patterns |
--configure-ignore | Configure and remove exclusion patterns |
--timeout <seconds> | Set a custom timeout for file search (default: 30 seconds) |
--max-size <MB> | Set a custom maximum file size (default: 2 MB) |
# Basic context generation
cx # Generate context from current directory
cx ./src # Generate context from specific directory
cx ./src -m "auth api" # Add a descriptive message to the context
# Snapshots
cx ./src -s # Create a snapshot
cx ./src -sm "before refactor" # Create snapshot with message
cx ./src -s -m "v1.0 release" # Same as above (separate flags)
# Exclusion patterns
cx -i "*.o" # Exclude all .o files
cx -i "target/**" # Exclude Rust target directory
cx -i "**/*.min.js" # Exclude all minified JS files
cx --show-ignore # List all exclusion patterns
# Performance options
cx ./src --verbose # Show detailed progress for debugging
cx ./src --timeout 10 # Set a shorter timeout of 10 seconds for large projects
cx ./src --max-size 20 # Set a custom maximum file size of 20 MB
cx ./src --no-clipboard # Skip clipboard operations for faster execution
# Clean up
cx --clear # Remove all generated context files (except snapshots)
cx --clear -s # Remove all context files AND snapshots
cx --clear-all # Remove ALL context files and directories (with confirmation)
Use cx --configure
to set up your preferences for a customized experience:
Setting | Description |
---|---|
Auto-clipboard copy | Enable/disable automatic copying of generated context to clipboard |
Default timeout | Set the default timeout in seconds for scanning directories (default: 10s) |
Max file size | Set the maximum file size in MB to include in context (default: 1MB) |
These settings help you customize how AIContext operates to match your workflow. For example, disabling clipboard copy can speed up execution, while adjusting timeout and file size limits can help with larger projects.
View your current configuration with cx --show
.
Configuration is stored in ~/.aictx/config.json
and can be manually edited if needed.
AIContext automatically excludes binary files to ensure your context remains clean and focused on code:
.exe
, .dll
, .so
), object files (.o
, .obj
), compiled code.png
, .jpg
, .mp3
, .mp4
, etc.).zip
, .tar.gz
, .rar
, etc.)# Add custom exclusion pattern
cx -i "target/**" # Exclude Rust target directory
cx -i "**/*.min.js" # Exclude all minified JS files
# View current exclusion patterns
cx --show-ignore
# Configure exclusions interactively (add/remove)
cx --configure-ignore
--max-size <MB>
to temporarily override the maximum file size filter~/.aictx/exclude.json
cx --clear
cx -h
AIContext includes several ways to get help:
# General help
cx -h
# Category-specific help
cx -h snapshots # Help with snapshot commands
cx -h basic # Basic command help
cx -h ignore # Help with exclusion patterns
For troubleshooting issues, use verbose mode to see detailed output:
cx ./src -v # Show detailed processing information
If you're getting timeout errors with large projects:
cx ./src --timeout 60 # Increase timeout to 60 seconds
MIT
FAQs
CLI tool to generate code context files
The npm package aictx receives a total of 0 weekly downloads. As such, aictx popularity was classified as not popular.
We found that aictx demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
Security News
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
Security News
Following last week’s supply chain attack, Nx published findings on the GitHub Actions exploit and moved npm publishing to Trusted Publishers.