askme-ai-cli
askme-ai-cli is a professional-grade, iterative CLI AI agent designed to act as a "doer" in your local development environment. Powered by Ollama, it combines advanced reasoning with the ability to execute shell commands, analyze project structures, and modify files directly.
Key Features
- Iterative Reasoning (ReAct Pattern): The agent doesn't just provide one-shot answers. It analyzes requests, plans actions, observes command outputs, and refines its steps until the goal is achieved.
- Local & Private: Runs entirely on your local machine or private infrastructure using Ollama models (Gemma, Llama 3, Mistral, etc.).
- Smart Execution Suite:
<execute>: Handles standard commands safely.<execute_shell>: Supports complex shell operations including pipes (|) and redirects (>).<patch>: Applies unified diffs to files for precise code modifications without overwriting entire files.
- Context Awareness: Automatically generates directory trees and maintains a "State of the Project" summary to keep the LLM focused.
- Security Shield: Built-in protection against destructive commands (like
rm -rf /) and unauthorized directory traversal. - Rich UI: A clean, professional terminal interface powered by the
richlibrary, featuring live output streaming and session metadata.
Installation
Ensure you have Python 3.12+ installed, then install via pip:
pip install askme-ai-cli
Requirements
- Ollama: You must have Ollama installed and running on your system.
- Models: By default, the agent looks for
gemma2:9b(or your configured default). You can pull it using:ollama pull gemma2:9b
- API Key: Set your
OLLAMA_API_KEYin your environment or enter it when prompted.
Usage
Interactive Mode
Simply run the command to start a conversation with the agent:
askme
One-Shot Task
Provide a prompt directly from the terminal:
askme -p "Create a new python script that fetches crypto prices and save it to crypto.py"
Options
-m, --model: Specify a custom Ollama model.-s, --session: Load or save a specific session history.-d, --dry-run: View proposed commands without executing them.
License
This project is licensed under the MIT License.
Metadata
Release files for askme-ai-cli 0.5.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| askme_ai_cli-0.5.0.tar.gz | 40.1 kB | Without provenance | Details for askme_ai_cli-0.5.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| askme_ai_cli-0.5.0-py3-none-any.whl | Python 3 | none | any | Details for askme_ai_cli-0.5.0-py3-none-any.whl |
Total release size: 79.1 kB
Release files / askme_ai_cli-0.5.0.tar.gz
| Download URL | askme_ai_cli-0.5.0.tar.gz |
|---|---|
| Size | 40.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
feb90e3d16cd07e7862406ba9882cf5e840b9ddf1880032fd978b47fbf899b8e
|
|
BLAKE2b-256 checksum How to use checksums |
af4e293304ccc57bc90b6adf7361815fd55cc1248d1d5e458e5b60125e54a372
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.3
|
Release files / askme_ai_cli-0.5.0-py3-none-any.whl
| Download URL | askme_ai_cli-0.5.0-py3-none-any.whl |
|---|---|
| Size | 39.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a27336cb99191e34868e6e3f1e2da6771ef4c10c01cc5c4aa6fba8bb1687c00f
|
|
BLAKE2b-256 checksum How to use checksums |
8dfe5921446a63344df5e02b084fa39447fcaf5d03297faa017d40b9220a115a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.3
|
Security for askme-ai-cli 0.5.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.