Skip to main content

AI complete me.

Project description

aicm - AI Complete Me

WIP Python License

A local-first, privacy-focused code completion CLI tool for developers who want AI assistance without sending their code to the cloud.

๐Ÿšง Work In Progress

This project is in active development. Core features are being implemented and APIs may change. Follow the progress and contribute!

๐ŸŽฏ Concept & Vision

acim is designed to be the Unix-philosophy code completion tool:

  • Local-only: Your code never leaves your machine
  • Lightweight: Optimized for Apple Silicon and modern hardware
  • Composable: Works with pipes, files, and editor integrations
  • Hackable: Simple Python codebase, easy to customize

Philosophy

$ echo "def quick_osrt(arr):" |acim
def quick_sort(arr):
    if len(arr) <= 1:
        return arr
    else:
        pivot = arr[len(arr) // 2]
        left = [x for x in arr if x < pivot]
        middle = [x for x in arr if x == pivot]
        right = [x for x in arr if x > pivot]
        return quick_sort(left) + middle + quick_sort(right)

Just like cat, grep, or sed โ€” acimdoes one thing well: complete your code.

โœจ Planned Features

Core

  • Pipe-based input (echo "..." |acim)
  • Fill-in-the-middle (FIM) completion
  • Single-line suggestions
  • simple indent handle
  • Daemon mode (persistent model in memory)
  • Configuration file support

Models

  • Qwen2.5-Coder-1.5B (default)
  • Qwen2.5-Coder-0.5B (lightweight option)
  • Custom GGUF model support
  • Automatic model downloading

Integrations

  • (Neo)vim plugin
  • VSCode extension
  • LSP protocol support

๐Ÿ—๏ธ Architecture (Conceptual)

โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚   Input Source  โ”‚  stdin / file / editor
โ”‚  (stdin/file)   โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
         โ”‚
         โ–ผ
โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚  acimCLI        โ”‚  Argument parsing, context detection
โ”‚  (entry point)  โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
         โ”‚
         โ–ผ
โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”     โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚  CodeComplete   โ”‚โ”€โ”€โ”€โ”€โ–ถโ”‚  llama-cpp-python โ”‚
โ”‚  Engine         โ”‚     โ”‚  (local inference) โ”‚
โ”‚                 โ”‚โ—€โ”€โ”€โ”€โ”€โ”‚                   โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜     โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
         โ”‚
         โ–ผ
โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚   Post-process  โ”‚  Indentation fix, deduplication
โ”‚                 โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
         โ”‚
         โ–ผ
โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚   Output        โ”‚  stdout / editor
โ”‚                 โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜

๐Ÿ›ค๏ธ Roadmap

Phase 1: Foundation (Current)

  • Basic completion via stdin
  • Model loading and inference
  • Indentation handling
  • Configuration system
  • Error handling & logging
  • Lanuch PYPI for install

Phase 2: Usability

  • Daemon mode for instant response
  • Model management (download, switch)
  • Shell completions

Phase 3: Ecosystem

  • Editor plugins
  • LSP server mode
  • Multi-language support beyond Python
  • Fine-tuning capabilities

๐Ÿ’ก Use Cases

Quick prototyping

# Start a new function
echo "def calculate_fibonacci(n):" |acim

๐Ÿ–ฅ๏ธ System Requirements

  • macOS: Apple Silicon (M1/M2/M3) or Intel
  • Linux: x86_64 or ARM64
  • RAM: 4GB+ (for 1.5B model), 2GB+ (for 0.5B model)
  • Python: 3.10+
  • Storage: ~1.5GB for models

๐Ÿค Contributing

This is a passion project. Contributions, ideas, and feedback are welcome!

๐Ÿ“„ License

MIT License - see LICENSE for details.


Made with for the local-first AI movement.

Project details


Download files

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

Source Distribution

aicm-0.1.0.tar.gz (4.9 kB view details)

Uploaded Source

Built Distribution

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

aicm-0.1.0-py3-none-any.whl (5.0 kB view details)

Uploaded Python 3

File details

Details for the file aicm-0.1.0.tar.gz.

File metadata

  • Download URL: aicm-0.1.0.tar.gz
  • Upload date:
  • Size: 4.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.8.9

File hashes

Hashes for aicm-0.1.0.tar.gz
Algorithm Hash digest
SHA256 5ff1b4cc0afd7edc52a6216e404d5bbc68cd49757106f8fa8c5ad7b94fa14f22
MD5 d715bbb659430781d46c1760348e2c58
BLAKE2b-256 164d03f8dfe8648055da8324ef028ba43bff5144128018f30155fd491410dde5

See more details on using hashes here.

File details

Details for the file aicm-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: aicm-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 5.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.8.9

File hashes

Hashes for aicm-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c19f473e55ddb313b611476568fb982d98d0fff7f0dfa5421dba443e9c02039a
MD5 7bfda926dc46b6508fd400f822f021c1
BLAKE2b-256 5b054aff7a1064989db29decbd4e0eeabc7b17f0f8a59724564cf06fa04d9bba

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