Skip to main content

MentAsk: Universal AI Coding Agent with multi-provider support via models.dev

Project description

mentask logo

mentask

Autonomous AI Coding Agent for the Terminal

PyPI version Python 3.10+ License: MIT Powered by models.dev Code style: ruff
Security Scan CD - Release


v0.20.0: THE SPICE MUST FLOW | Level 4 Autonomy: Self-Evolving Tooling Architecture


mentask is a professional, autonomous coding agent designed for complex software engineering. Powered by an advanced asynchronous reasoning loop and a multi-layer orchestration engine, it doesn't just edit code — it evolves its own capabilities to match the specific needs of your codebase.

No GUI. No cloud sync. No bloat. Just a high-performance terminal agent with hardened security and autonomous tool-forging capabilities.


What's New in v0.20.0: Level 4 Autonomy

The "The Spice Must Flow" update introduces a paradigm shift in AI agent capabilities: Self-Evolving Tooling. mentask is no longer limited by its pre-programmed toolset.

1. 3-Layer Plugin Architecture

A specialized hierarchy for total extensibility without compromising core stability:

  • Layer 1: Core Tools (Native, Immutable) – The foundational "instincts" (File I/O, Shell, Security).
  • Layer 2: Community Plugins (MCP) – Modular integrations with third-party services via the Model Context Protocol.
  • Layer 3: Autonomous Plugins (Evolved) – Project-specific tools created and injected by the agent on-the-fly to solve repetitive tasks with native efficiency.

2. Autonomous "Forge" Capability (forge_plugin)

The agent can now architect, validate (via AST), and hot-reload its own Python modules. If a task requires repetitive specialized logic (e.g., massive audio demixing, complex CSV restructuring), mentask will forge a native tool to handle it, saving context tokens and increasing execution speed by orders of magnitude.

3. Persistent Hot-Reloading

New tools are saved to .mentask/plugins/ and immediately available in the agent's schema without restarting the session. These tools persist across sessions and remain isolated from the core application source code.


How it works

mentask operates via a Thinking -> Action -> Observation cycle managed by the AgentOrchestrator:

  1. Environmental Awareness: Performs a recursive Project Blueprint scan to build a proactive system instruction.
  2. Cognitive Loop: Processes intent using advanced multi-model providers (Gemini, DeepSeek, OpenAI).
  3. Tool Evolution: If current tools are insufficient, the agent invokes the Forge Engine to expand its own capabilities.
  4. Security Centinel: Every action passes through a TrustManager and Safety Layer (Path Traversal protection, MASS_DELETION guards).
  5. Atomic Execution: File modifications use a temporary-write + rename strategy with automatic backups.

Features

Advanced Agentic Engine

Feature Description
Self-Forging Tools Agent creates and hot-reloads its own Python plugins (forge_plugin).
Autonomous Delegation Spawns specialized sub-agents (Explorer, Verifier) for parallel research.
LSP Integration Real-time syntax verification and self-correction via Ruff LSP.
Multimodal Intelligence Native analysis of images, audio, and video demos.
Context Optimization Proactive "Context Snapping" (summarization) to manage long-turn sessions.
MCP Support Connect to any external MCP server for database, cloud, or API tools.

Installation

Prerequisites

  • Python 3.10+
  • A Google API Key (or OpenAI-compatible key for other models).

From Source

git clone https://github.com/julesklord/mentask
cd mentask.py
pip install -e ".[dev]"

Safety & Security

mentask implements a Hardened Trust Model:

  • Path Isolation: The agent is restricted to whitelisted directories (TrustManager).
  • Risk Analysis: Commands are categorized (SAFE, NOTICE, WARNING, DANGEROUS).
  • Critical Asset Protection: Native protection for .git, .env, and lockfiles.
  • Atomic Writes: Zero-risk file editing with automatic .bkp snapshots.

Architecture

flowchart TD
    CLI(["mentask CLI"]) --> Orchestrator(AgentOrchestrator)
    Orchestrator --> PluginLoader(PluginLoader)
    PluginLoader -. scan .-> UserPlugins[(.mentask/plugins/)]
    
    subgraph Tool_Hierarchy [3-Layer Toolset]
        Core[Core Tools]
        MCP[Community MCP]
        Dynamic[Evolved Plugins]
    end

    Orchestrator <--> Tool_Hierarchy
    Orchestrator <--> LLM[Gemini / DeepSeek / models.dev]

Contributing

Licensed under the MIT License. Built with precision for the modern engineer.

Created by julesklord.

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

mentask-0.20.0.tar.gz (119.4 kB view details)

Uploaded Source

Built Distribution

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

mentask-0.20.0-py3-none-any.whl (145.8 kB view details)

Uploaded Python 3

File details

Details for the file mentask-0.20.0.tar.gz.

File metadata

  • Download URL: mentask-0.20.0.tar.gz
  • Upload date:
  • Size: 119.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for mentask-0.20.0.tar.gz
Algorithm Hash digest
SHA256 4e98d8b59dceeae199e032df8012b4d6970953bc85019c16510c14a2c64021cc
MD5 e4310f80da47e8258db79bb98e48050d
BLAKE2b-256 b00b41f98687a3068e3a314f428d4078c4fe681279cec8764db79efb88ca1f6c

See more details on using hashes here.

Provenance

The following attestation bundles were made for mentask-0.20.0.tar.gz:

Publisher: release.yml on julesklord/mentask.py

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file mentask-0.20.0-py3-none-any.whl.

File metadata

  • Download URL: mentask-0.20.0-py3-none-any.whl
  • Upload date:
  • Size: 145.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for mentask-0.20.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4440e2771bab639761042f3f263df666b0adbc5b3d4c02ef0f78c7b5d1e4a15a
MD5 9d404dc09fa402ac7844a00d88169b04
BLAKE2b-256 dfb9052fbf07ba19f9b32b70d1f2772e44619f7978b580b33d2f3907bdc17ee3

See more details on using hashes here.

Provenance

The following attestation bundles were made for mentask-0.20.0-py3-none-any.whl:

Publisher: release.yml on julesklord/mentask.py

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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