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

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.0-cp312-cp312-win_amd64.whl (788.3 kB view details)

Uploaded CPython 3.12Windows x86-64

ails_cli_tool-1.0.0-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.0-cp312-cp312-macosx_11_0_arm64.whl (805.7 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

ails_cli_tool-1.0.0-cp312-cp312-macosx_10_9_x86_64.whl (859.7 kB view details)

Uploaded CPython 3.12macOS 10.9+ x86-64

ails_cli_tool-1.0.0-cp311-cp311-win_amd64.whl (819.9 kB view details)

Uploaded CPython 3.11Windows x86-64

ails_cli_tool-1.0.0-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.0-cp311-cp311-macosx_11_0_arm64.whl (838.5 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

ails_cli_tool-1.0.0-cp311-cp311-macosx_10_9_x86_64.whl (918.7 kB view details)

Uploaded CPython 3.11macOS 10.9+ x86-64

ails_cli_tool-1.0.0-cp310-cp310-win_amd64.whl (816.4 kB view details)

Uploaded CPython 3.10Windows x86-64

ails_cli_tool-1.0.0-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.0-cp310-cp310-macosx_11_0_arm64.whl (846.3 kB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

ails_cli_tool-1.0.0-cp310-cp310-macosx_10_9_x86_64.whl (926.2 kB view details)

Uploaded CPython 3.10macOS 10.9+ x86-64

ails_cli_tool-1.0.0-cp39-cp39-win_amd64.whl (820.0 kB view details)

Uploaded CPython 3.9Windows x86-64

ails_cli_tool-1.0.0-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.0-cp39-cp39-macosx_11_0_arm64.whl (851.3 kB view details)

Uploaded CPython 3.9macOS 11.0+ ARM64

ails_cli_tool-1.0.0-cp39-cp39-macosx_10_9_x86_64.whl (931.4 kB view details)

Uploaded CPython 3.9macOS 10.9+ x86-64

ails_cli_tool-1.0.0-cp38-cp38-win_amd64.whl (842.2 kB view details)

Uploaded CPython 3.8Windows x86-64

ails_cli_tool-1.0.0-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.0-cp38-cp38-macosx_11_0_arm64.whl (883.7 kB view details)

Uploaded CPython 3.8macOS 11.0+ ARM64

ails_cli_tool-1.0.0-cp38-cp38-macosx_10_9_x86_64.whl (962.7 kB view details)

Uploaded CPython 3.8macOS 10.9+ x86-64

File details

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

File metadata

File hashes

Hashes for ails_cli_tool-1.0.0-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 784893ede2a39f02243d79ad4bf1a1c54343fd9c79b52b1ef708081f9dbca263
MD5 9dba8ea05505387c97c01bb8f07bfff0
BLAKE2b-256 0f8eb2dd3ed0da5dc710f150a8f72e46b5c1733ed224524a298b48d87391ffa5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ails_cli_tool-1.0.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 977bf8f6ca17e60a75fa2683ca18979954a4326403345dad7c35ba6b27127aba
MD5 73d72b7599462c4218b219af8e7a4564
BLAKE2b-256 c81ccb50ea9220d1c7dd4426cb381ba58980d58ed2f46671c9c6df92c510f325

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ails_cli_tool-1.0.0-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 999770222375016927475e0271a92f6f6064873d235c207524292cab952dba59
MD5 7f88403417527eb5b56f1f892adf2671
BLAKE2b-256 0c09158e0849a11fc6a3f6adfb20d2cde6d40159bb021222f01ef6730313780e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ails_cli_tool-1.0.0-cp312-cp312-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 08700bc55258265b489dbe5cde06c4e3fb503b5567ead1ac7921a636d48d56b1
MD5 1865ad0f4514c7c51f7ceae594549673
BLAKE2b-256 63e07bf30a023720801c89c8a4e4bfc47ccb2dfb76c32ecabfaaef57ab66b0ce

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ails_cli_tool-1.0.0-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 0252932eb39fc926136c23d3fd5ec7b50fc8ac1b93dbaf0db6fc13a4f8c3901d
MD5 38ef0dead11ba82802f1499e93e0bbc6
BLAKE2b-256 3f711b0c7e85a324c90ce2b672b154ac339cdac0738bb6951dbb027ae2a848b4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ails_cli_tool-1.0.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 2e4d4a48e2bfee1227cef42fb700c525d165269347bd76cae1b296c94b350a59
MD5 f902ab999ab043c5cfb3426dcda15db3
BLAKE2b-256 e0d3ebe166dba48e18074198a9221954ecb380410f3029a2a800b6cbb314e1eb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ails_cli_tool-1.0.0-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 206f39f89fe5a2f8355a99e65cf90eb7acba28677aeb59c6523020cbeeae2a36
MD5 33cdc4fde93bf01919dd2910a8bc4a16
BLAKE2b-256 e9482b508afccceafb14fbe0dd135dca1c2642dd4a4428bf1d562d01f636f79d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ails_cli_tool-1.0.0-cp311-cp311-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 01ba0846408672c9b23e84f69b9f5621831e24f01bd6292bb5f8be737fe07fd6
MD5 f430f81d86244b39f17b375dda436eb4
BLAKE2b-256 d65dac233cda7d3f34749542b74422d4ed249f29ba5a14bc6ff5f32296f7940c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ails_cli_tool-1.0.0-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 bad4d4ed5cd91baf87be76e1e636f5dab786f45fb54900c6ec04e896f254b65b
MD5 222f55c5d6d4ebced6e731a72e8dabcc
BLAKE2b-256 5d4223c038a1f47ab335102e6130fa4fc9f96151d1a242dbe1c10b328972562a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ails_cli_tool-1.0.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 a2e1edde8b366f51798ce12d6efdc590e239512e097917afe281240d6e31061e
MD5 1e32830e2e85b0feeee00460953cf629
BLAKE2b-256 0dfc07835b7e203a1188d33e234491818477cb8498317f40944bd75b46f59879

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ails_cli_tool-1.0.0-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 804b4488467cb58c46aced0041991fd1b32bd1894a91b88d2f43660d6e153558
MD5 9eaa791c3fee60fd20627d1d68b4b237
BLAKE2b-256 1a9f52e17f32cabdb41e21b14a3f0dedbf0fd17443d3a11e0e734dadf61489e4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ails_cli_tool-1.0.0-cp310-cp310-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 da81b2af69b95176bfc7ded489f2b008655e8054c599cdd938089c7a13484095
MD5 39c7adb7341fbfabfc4242b07514fe19
BLAKE2b-256 684891b4480d149e5fc662a1bf763acf5b4e72df416d0e722cc32033efebde48

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ails_cli_tool-1.0.0-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 b264b3208a406a99a6310d13c53c07c49d0de4d6bfd9ee8f21ab18ffa6dd3ed6
MD5 f9e6379b61e2206124af2ac01cf8f74e
BLAKE2b-256 ee433964de05d20f9328915d231cd7cea1b1a362ee678883462583fbd00635bc

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ails_cli_tool-1.0.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 66da625bd1f26e2f2994468dee5f9b9140e74add2d85d893f67163d4c2b1c43c
MD5 5d0ae2f8080f236d1270328e6766eea7
BLAKE2b-256 e0a1d3770e4eb8f990349e228769dcefb5b064c3d8fed52058195b6204b40457

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ails_cli_tool-1.0.0-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 34a3edfe7716ab99064540426623a05c903b7b8f6a95dd0f5b848a9c3875e077
MD5 a1cc5b6d3dfca51e8e5af8cb2e807a3c
BLAKE2b-256 344cda81cd2bad2f991deb1ac6e05cef457f6cc3c3f9df81e387227e390ce0ef

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ails_cli_tool-1.0.0-cp39-cp39-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 a0112b428a3a6abb3673943ca648bc6e2d0f0dca8a07ade38bda7e7701bab9d5
MD5 933f7565da84e0dfa1509821df56d01b
BLAKE2b-256 a0a3a9d93cc099a1bed5af35335e8919b8faaae8196dd0e410dd50d84c18c8d2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ails_cli_tool-1.0.0-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 47cf9520637733149b4de04623385375902e497a8fc841a10e4936d345a38c39
MD5 3457cc90fe6dee3ea509691c671fd86e
BLAKE2b-256 14c7fc1ebff191c5cf32c0225d8af9a857c9b8aad9f7fd791ea8c84642256cc4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ails_cli_tool-1.0.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 3ab32d1648507494e45a54890f288ff10688a614eff6a68f2af8826b60d9fc4b
MD5 2229466d2b938a41edd7fe1cb17cf5ca
BLAKE2b-256 909421661034b64e91b407bfe2d01593c4b4d65730bf1e3c6942124c121b4db0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ails_cli_tool-1.0.0-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 c12c4f0f5eb9a0df14e7231c8b057b185c99fa1e3efb4dbf839d2bd4358b12d1
MD5 ce0ca3ad89a921669a5279acae26f78e
BLAKE2b-256 7bc485cf7b4390844a8a6a157c2961b07bc4f6e2140a32b30f88bf3fd90d58b3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ails_cli_tool-1.0.0-cp38-cp38-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 24822e2e25886e9108993b84c56bbe43b8f7b046de7c9b0c93abc6effd920127
MD5 38a0f6c15a7dd0ccc1fee5d068b684fa
BLAKE2b-256 535c0b34b3d2651ca3b82e63b6686c1382b24df350c3494ca6e5c9d14691b5a9

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