Skip to main content

AI-powered directory scanner and project analyzer

Project description

AILS - AI-Powered Directory Scanner & Project Analyzer

PyPI version Python Support License: MIT

A powerful command-line tool that intelligently scans directories, analyzes project structures, and leverages AI to provide deep insights about your codebase. Perfect for developers who want to understand complex projects quickly or document their code automatically.

eatures

  • AI-Powered Analysis - Leverages advanced language models to understand and describe your project structure
  • Smart Directory Scanning - Efficiently scans and categorizes files with intelligent .gitignore support
  • Multi-language Support - Full interface support for English and Chinese
  • Interactive Configuration - Easy-to-use wizard for setting up API credentials
  • Secure & Private - User-specific configuration storage keeps credentials safe
  • Vector Search - Advanced semantic search capabilities for code analysis
  • Beautiful CLI - Clean, colorful terminal interface with progress indicators
  • Auto-Recovery - Smart error handling with automatic configuration retry

Quick Start

Installation

Install AILS directly from PyPI:

pip install ails-cli-tool

or

uvx ails-cli-tool

First Run

  1. Start analyzing your projects:
    ails
    

That's it! AILS will guide you through the rest.

Detailed Installation

PyPI (Recommended)

For stable releases:

pip install ails-cli-tool

System Requirements

  • Python 3.8 or higher
  • pip package manager
  • Internet connection for AI API calls

Configuration

Initial Setup

Run the configuration wizard to set up your AI API credentials:

ails-config

The wizard will guide you through:

  1. Choosing between recommended configuration or manual setup
  2. Entering your API credentials
  3. Testing the connection
  4. Saving the configuration securely

Configuration Options

AILS requires three main settings:

Setting Description Example
AI_API_KEY Your API key for the AI service sk-xxxxxxxxxxxxxxxx
AI_API_URL Base URL for the API endpoint https://api.openai.com/v1
AI_MODEL Model name to use gpt-4, gpt-3.5-turbo

Recommended Configuration

AILS offers a one-click recommended configuration that:

  • Uses pre-configured, tested API settings
  • Automatically validates the connection
  • Gets you up and running in seconds

Simply select "Yes" when prompted during ails-config.

Manual Configuration

For custom API providers or specific requirements:

  1. Run ails-config
  2. Choose manual configuration
  3. Enter your specific:
    • API Key
    • API URL (must end in /v1)
    • Model name

Configuration Storage

Configurations are stored securely in:

  • Windows: %APPDATA%\AILS\config
  • macOS/Linux: ~/.config/ails/config

This ensures your credentials are:

  • Separated from project files
  • Accessible across all projects
  • Easy to update or remove

Usage

Basic Usage

Scan and analyze your current directory:

ails

Language Settings

Switch interface language using environment variables:

English (default):

export AILS_LANG=en
ails

Chinese:

export AILS_LANG=zh
ails

Windows users:

$env:AILS_LANG="zh"
ails

Error Recovery

If AILS encounters an authentication error (401), it will:

  1. Detect the issue automatically
  2. Ask if you want to use recommended configuration
  3. Retry immediately after successful configuration

No need to restart the program!

Advanced Features

Vector Search Integration

AILS includes semantic search capabilities using sqlite-vec:

  • Find related code segments
  • Discover similar functionality
  • Navigate large codebases efficiently

Smart File Filtering

Automatically respects:

  • .gitignore patterns
  • .kilocodeignore custom patterns
  • Standard exclusion rules for common build artifacts

Enhanced Prompts

AILS intelligently enhances prompts to:

  • Add relevant context
  • Include file metadata
  • Optimize token usage

Troubleshooting

Invalid Token Error (401)

Symptom: Error code: 401 - invalid token

Solution:

  1. Select "Yes" when prompted to use recommended configuration
  2. Or run ails-config manually
  3. Verify your API key is correct and active

Connection Timeout

Symptom: API request timeout

Solution:

  • Check your internet connection
  • Verify the API URL is accessible
  • Try using a different network or VPN if blocked

Configuration Not Loading

Symptom: Program keeps asking for configuration

Solution:

# Verify configuration file exists
# Windows:
type %APPDATA%\AILS\config

# macOS/Linux:
cat ~/.config/ails/config

# Re-run configuration wizard
ails-config

Import Errors

Symptom: ModuleNotFoundError

Solution:

# Reinstall with all dependencies
pip install --upgrade --force-reinstall ails-cli-tool

Dependencies

AILS requires the following packages (automatically installed):

  • openai>=1.0.0 - AI API client
  • python-dotenv>=1.0.0 - Environment configuration
  • requests>=2.25.0 - HTTP requests
  • sqlite-vec>=0.1.0 - Vector search
  • pathspec>=0.11.0 - Pattern matching
  • pyperclip>=1.8.0 - Clipboard operations

Acknowledgments

  • Built with ❤️ by the AILS team
  • Powered by OpenAI and compatible AI services
  • Thanks to all contributors and users

Links


Made with ❤️ for developers who want to understand their code better.

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

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

ails_cli_tool-1.0.1-cp312-cp312-win_amd64.whl (788.5 kB view details)

Uploaded CPython 3.12Windows x86-64

ails_cli_tool-1.0.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (5.9 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.17+ x86-64

ails_cli_tool-1.0.1-cp312-cp312-macosx_11_0_arm64.whl (805.9 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

ails_cli_tool-1.0.1-cp312-cp312-macosx_10_9_x86_64.whl (860.0 kB view details)

Uploaded CPython 3.12macOS 10.9+ x86-64

ails_cli_tool-1.0.1-cp311-cp311-win_amd64.whl (820.2 kB view details)

Uploaded CPython 3.11Windows x86-64

ails_cli_tool-1.0.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (6.0 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ x86-64

ails_cli_tool-1.0.1-cp311-cp311-macosx_11_0_arm64.whl (838.9 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

ails_cli_tool-1.0.1-cp311-cp311-macosx_10_9_x86_64.whl (919.1 kB view details)

Uploaded CPython 3.11macOS 10.9+ x86-64

ails_cli_tool-1.0.1-cp310-cp310-win_amd64.whl (816.7 kB view details)

Uploaded CPython 3.10Windows x86-64

ails_cli_tool-1.0.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (5.6 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.17+ x86-64

ails_cli_tool-1.0.1-cp310-cp310-macosx_11_0_arm64.whl (846.8 kB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

ails_cli_tool-1.0.1-cp310-cp310-macosx_10_9_x86_64.whl (926.5 kB view details)

Uploaded CPython 3.10macOS 10.9+ x86-64

ails_cli_tool-1.0.1-cp39-cp39-win_amd64.whl (820.3 kB view details)

Uploaded CPython 3.9Windows x86-64

ails_cli_tool-1.0.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (5.6 MB view details)

Uploaded CPython 3.9manylinux: glibc 2.17+ x86-64

ails_cli_tool-1.0.1-cp39-cp39-macosx_11_0_arm64.whl (851.8 kB view details)

Uploaded CPython 3.9macOS 11.0+ ARM64

ails_cli_tool-1.0.1-cp39-cp39-macosx_10_9_x86_64.whl (931.7 kB view details)

Uploaded CPython 3.9macOS 10.9+ x86-64

ails_cli_tool-1.0.1-cp38-cp38-win_amd64.whl (842.4 kB view details)

Uploaded CPython 3.8Windows x86-64

ails_cli_tool-1.0.1-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (5.7 MB view details)

Uploaded CPython 3.8manylinux: glibc 2.17+ x86-64

ails_cli_tool-1.0.1-cp38-cp38-macosx_11_0_arm64.whl (884.1 kB view details)

Uploaded CPython 3.8macOS 11.0+ ARM64

ails_cli_tool-1.0.1-cp38-cp38-macosx_10_9_x86_64.whl (963.1 kB view details)

Uploaded CPython 3.8macOS 10.9+ x86-64

File details

Details for the file ails_cli_tool-1.0.1-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for ails_cli_tool-1.0.1-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 84f5b9d968326c642200c5d04175c7a9733636117ed645375e2ff12073675c72
MD5 da1a39cdbd0e75ba3c7ec6fd4c162494
BLAKE2b-256 82068e3ba1e9dc59a245970e0302b13528b4e335a9c0f0c20ea762ffb284ba6c

See more details on using hashes here.

File details

Details for the file ails_cli_tool-1.0.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for ails_cli_tool-1.0.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 dcf740c51b68894577e4a2b92dd074b52e7862d53f5a5ac80c64619df2830422
MD5 7bd4d4932dcbff15140dbcc479114e88
BLAKE2b-256 23719397861bb8ea54839891bd3fd29f0b66a849193cce25b12934968e5d0dfa

See more details on using hashes here.

File details

Details for the file ails_cli_tool-1.0.1-cp312-cp312-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for ails_cli_tool-1.0.1-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 bc2a5225520db2295c1d2850c31a4107787a8a10377d61e14c9c3d159ccd3ff6
MD5 484d4b6f4b185c42b733c16a20230f88
BLAKE2b-256 eb8cc65231ee793a1b96932ee32ebaa1c5c14b40da209cceb45395b6ff8b9f5e

See more details on using hashes here.

File details

Details for the file ails_cli_tool-1.0.1-cp312-cp312-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for ails_cli_tool-1.0.1-cp312-cp312-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 ad24138418200dead4112f7d7de9af44393f727d860c3b1466207dedabbc7bf5
MD5 0bbb7bb6dab3cb8f2036e6bcd39b69c4
BLAKE2b-256 e681fe7544492186f67e6fb582f541a620efc96328afe325a9f868c984b3f6ec

See more details on using hashes here.

File details

Details for the file ails_cli_tool-1.0.1-cp311-cp311-win_amd64.whl.

File metadata

File hashes

Hashes for ails_cli_tool-1.0.1-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 4ea11674349a4944c96663ba4dfa0a712dfc0fed6d9f36ac8649e4af53c48234
MD5 5ec3e02af6f26822bdd22d30df40e86d
BLAKE2b-256 222bd736464b0f1b4213318fc392c7a077832303364628eaae3c2caf8e6d379c

See more details on using hashes here.

File details

Details for the file ails_cli_tool-1.0.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for ails_cli_tool-1.0.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 f44b77e520fb4f786af15a79c2df5ad0869293c1ea004479ec95c4e4b1e35351
MD5 b5f9157000bde1bdd30b3f3cc1aed6d8
BLAKE2b-256 a6f1ba94fbde7dd5ab338b113f0ab8a131d2190e7707556038d48de37254038b

See more details on using hashes here.

File details

Details for the file ails_cli_tool-1.0.1-cp311-cp311-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for ails_cli_tool-1.0.1-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 74f6a265fad98fd8fe71f13a1f0cf53dce69a807a7d723519b9f267357abbe69
MD5 7dc141fd1834465c5516fda5253d599e
BLAKE2b-256 8eff51a98d8592947ffcc2853416fdb8248732fc0bb805330ee5a697a2f95eef

See more details on using hashes here.

File details

Details for the file ails_cli_tool-1.0.1-cp311-cp311-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for ails_cli_tool-1.0.1-cp311-cp311-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 3efa6cc36ce34455c143ac3a2c866b5cc48ce87dee43de289992553bd1c85b7f
MD5 e07d6bb0ec0199f28232be4b9a582790
BLAKE2b-256 771d547a7ca5f689f5ab7c4e69ddf496824caa5195662e11c3c366e684bc5ff9

See more details on using hashes here.

File details

Details for the file ails_cli_tool-1.0.1-cp310-cp310-win_amd64.whl.

File metadata

File hashes

Hashes for ails_cli_tool-1.0.1-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 bc025661a853260eddc67e65ae262fa935189d73837ad9c9d02e144af6cec8b1
MD5 7f1c23d86de65537d25873a97146d790
BLAKE2b-256 c5cfdc01b36a67261b6158a17825aabab36570a815f58f329dca7fe17d60dd22

See more details on using hashes here.

File details

Details for the file ails_cli_tool-1.0.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for ails_cli_tool-1.0.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 6b0dd96b90de07797098a87edec4774708e1efaeecbd524dcc68400cf5a0ce7f
MD5 78842df5d65c301746f8a8c8d2aefff8
BLAKE2b-256 534ccfb9306dd34deb8176a1d010eb5e01211d07490570f7aee601536415d6a6

See more details on using hashes here.

File details

Details for the file ails_cli_tool-1.0.1-cp310-cp310-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for ails_cli_tool-1.0.1-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b8a220e4aeb23e2d5ff7106649a145bf43b02aea54554bda6c70d7a8347b1faf
MD5 136a6c76cc29f111cc07cdde446c3e5d
BLAKE2b-256 242a6f5cd356b41e3cb1b53c206937f062bd73b62e9501f6d930f45c706e7947

See more details on using hashes here.

File details

Details for the file ails_cli_tool-1.0.1-cp310-cp310-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for ails_cli_tool-1.0.1-cp310-cp310-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 ce3c1a587c215e4d056b85d45be4338acf190145d5d6e4314545f224432dc0f9
MD5 7c8354e72c10601daffde7b696d9936b
BLAKE2b-256 f2bca6bc14642125e6dff857d4b055a852b280ec129024dfcef623d23ee060ff

See more details on using hashes here.

File details

Details for the file ails_cli_tool-1.0.1-cp39-cp39-win_amd64.whl.

File metadata

File hashes

Hashes for ails_cli_tool-1.0.1-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 213a1a93cbd14371e63dc2f14bba996ed45282f7ecb88cdd0332de0501b790b6
MD5 29993a97b3851c60ddfc94c7f9ac5bc5
BLAKE2b-256 36bde59f2d9e833dd0a589dd395546d977187600d3ab804a68cfcf9b548b63ae

See more details on using hashes here.

File details

Details for the file ails_cli_tool-1.0.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for ails_cli_tool-1.0.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 5debd764cbccd9f1f91185caf496c68fe807ce3842c5eac98fd1e61eb8e1cfce
MD5 2e51bdbb30d20305ab1b12d92d6dc3bf
BLAKE2b-256 c53c028d7a75951ef1c1eed03a90169fcbb33fa222fa360e6d131baf20a4765f

See more details on using hashes here.

File details

Details for the file ails_cli_tool-1.0.1-cp39-cp39-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for ails_cli_tool-1.0.1-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 6508cbbbb89beaf626d6c83f0e85210e37cb02422e5c6adc09376825a0bd0499
MD5 5de0daa50fbab64284164f3c5e046cd1
BLAKE2b-256 b75861f843c22b7d2e580ede1001bd45b0ae37288bf1e1bbf3df0dee6e7cc276

See more details on using hashes here.

File details

Details for the file ails_cli_tool-1.0.1-cp39-cp39-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for ails_cli_tool-1.0.1-cp39-cp39-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 bb362b369921d26f9a18ea9be97bb2a0b4ebd85b760dcbea10e2343b08d8ba93
MD5 ed77277067f5604bc4323ca8bdca3a63
BLAKE2b-256 71f4092609d766cf954974ab1f7a0d72c5cf26ed69a3633b3701f37632385cd7

See more details on using hashes here.

File details

Details for the file ails_cli_tool-1.0.1-cp38-cp38-win_amd64.whl.

File metadata

File hashes

Hashes for ails_cli_tool-1.0.1-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 f3c371cec2d1ef7b3facffdc01aff6f5b04d6c2f319796d631a3634729b5a3ef
MD5 1107dc00ad8edee2ef161644385a0d79
BLAKE2b-256 21b34c0011d9ecfd482b5aa4a6f3caa7d37b99dee24f6f9440afd8c4c8d731da

See more details on using hashes here.

File details

Details for the file ails_cli_tool-1.0.1-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for ails_cli_tool-1.0.1-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 b3d34a9a72579b83fbc0370c1a3eff773d81b7ffe23d32707b35d731a5d2f48a
MD5 ec57bf1d1a3679df6c5bb6c7c155bd80
BLAKE2b-256 f5c9a5511335023405803dca9635342a9149605d8d74dd520d130190247abe71

See more details on using hashes here.

File details

Details for the file ails_cli_tool-1.0.1-cp38-cp38-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for ails_cli_tool-1.0.1-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 7415c357c6d72ba48a100124de74a8879f9ccf9a75e6c4c57b7a3cfaea865e80
MD5 48a356e2390ade8e4058fbe34418b14a
BLAKE2b-256 da9df3f9e27be798e602d3c541dd3c48d57e72a5a53244c7005fd822bb78a99e

See more details on using hashes here.

File details

Details for the file ails_cli_tool-1.0.1-cp38-cp38-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for ails_cli_tool-1.0.1-cp38-cp38-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 1f1ed25109fe2d78264107ffec8d3100997a1a136af3f4c8c72feb24669c0212
MD5 d7d091ee177a6865f626a8b9e87f64d2
BLAKE2b-256 4bcc17d50fe73b7a8fb2de93ac6dede2d12a4f4aebb2c3eff97610c8572c454b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page