Catalog PyPI
PACKAGE EXPLORERView in registry

ai-cortex

PyPI

An agentic CLI coding assistant powered by local LLMs via Ollama

agentaiclicoding-assistantllmollama
Versions collected1
Direct dependencies4From release 0.1.0
Last observed21 Oct, 10:19 UTC

README

Version 0.1.0 documentation

AI-Cortex

An agentic CLI coding assistant powered entirely by local LLMs via Ollama.

AI-Cortex gives you an agentic coding assistant that runs 100% locally — no API keys, no cloud, full privacy. It uses a local LLM (default: qwen3.5:9b) and an agentic loop that decides which tools to call, executes them, and feeds results back to the model until the task is done.

Features

  • Agentic loop — model autonomously decides which tools to call and chains them together
  • 6 built-in tools — read_file, write_file, run_bash, list_dir, search_files, fetch_url
  • Streaming output — responses appear token by token
  • Permission prompts — asks before running bash commands or writing files
  • Loop detection — catches the model repeating the same action
  • Error handling — retries on failures, catches malformed tool calls
  • Configurable — model, host via ~/.ai-cortex/config.yaml or CLI flags

Prerequisites

  • Ollama installed and running
  • A local model pulled (e.g. ollama pull qwen3.5:9b)

Install

pip install ai-cortex

Or install from source:

git clone https://github.com/hasanjawad001/ai-cortex.git
cd ai-cortex
uv venv --python 3.12
source .venv/bin/activate
uv pip install -e .

Usage

# Start ai-cortex
ai-cortex

# Skip permission prompts
ai-cortex --yolo

# Use a different model
ai-cortex --model=llama3:8b

Example

you> read pyproject.toml and tell me the project name
  → read_file({"path": "pyproject.toml"})
  [project]
  name = "ai-cortex"
  ...
ai-cortex> The project name is "ai-cortex", version 0.1.0.

Configuration

AI-Cortex creates ~/.ai-cortex/config.yaml on first run:

model: qwen3.5:9b
host: http://localhost:11434

How It Works

  1. You type a request
  2. The LLM decides which tool(s) to call
  3. AI-Cortex executes the tool and feeds the result back
  4. The LLM either calls another tool or responds with a summary
  5. Repeat until done (max 15 turns)

License

MIT

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Versions 1

Collected releases
VersionPublishedDirect dependenciesOpen version
0.1.020 Apr 20264

Package advisories

0
No matching advisories collected

This describes our collected data; it is not a security assessment.

Repository

PENDING
hasanjawad001/ai-cortex

Shared repository data · GitHub

License detected in repository
Not collected

Metadata history

Meaningful changes
Current collected state Current

Observed since 21 Oct, 10:19 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package:e066a533b60d2907dcfdabf0657a518f5564e3809628a6d466cf4d7a20e08f66