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.1.tar.gz (120.2 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.1-py3-none-any.whl (146.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: mentask-0.20.1.tar.gz
  • Upload date:
  • Size: 120.2 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.1.tar.gz
Algorithm Hash digest
SHA256 2e7015f5ef878b63e58145156328ecbb96f79beac1c50348a6a6c17e352c9387
MD5 56437e82a152c6e2697575fb102389b4
BLAKE2b-256 c45b2fcdf66be1ebc79bf2c8864700fefb7cefb9772fafba4a9374c6fc62997b

See more details on using hashes here.

Provenance

The following attestation bundles were made for mentask-0.20.1.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.1-py3-none-any.whl.

File metadata

  • Download URL: mentask-0.20.1-py3-none-any.whl
  • Upload date:
  • Size: 146.7 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 b0a384e2812f4a82be7a742cb6ffc2dbdf20d594db6637b89bc12570773f58b3
MD5 cddf6002bdb8062d587374bd82deab2d
BLAKE2b-256 fa14d2cc3357881b4db80e3d12a558edc9c293b5de572f9d0bebb1620f05b986

See more details on using hashes here.

Provenance

The following attestation bundles were made for mentask-0.20.1-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