Skip to main content

Coding Agent for Mac

Project description

mlx-code

Link

A lightweight, powerful Coding Agent for Mac. Built on top of Apple's MLX framework, mlx-code provides fast, local inference with built-in prompt caching and robust tool-calling capabilities.

It features a multi-provider local server, a terminal-based chat REPL, and a dedicated TUI for inspecting logs.

Features

  • Local MLX Inference: Powered by mlx-lm for optimized performance on Apple Silicon. Includes intelligent prompt caching.
  • Multi-Provider Compatibility: Seamlessly translates and handles requests formatted for Claude, Gemini, Codex, DeepSeek and standard OpenAI APIs.
  • Built-in REPL & Tools: Comes with pie, a fully-featured chat REPL with tool execution and reasoning token support.
  • TUI Log Viewer: Includes a Curses-based Terminal UI for filtering, inspecting, and tracking JSON logs in real-time.
  • Server Mode: Easily spin up a local server compatible with standard LLM tooling.

Quick Start

Install via pip and launch the agent immediately:

pip install mlx-code
mc

Command Line Interfaces

The package installs three primary command-line tools:

  • mc (Main Agent/Server): Runs the core agent and local API server (defaults to 127.0.0.1:8000).
  • me (REPL): Launches the interactive pie chat REPL.
  • md (Diagnostics/Logs): Opens the TUI viewer to navigate and filter JSON logs generated by the agent.

Options

You can customize the model, server, and behavior using command-line flags.

# Use Gemini CLI as the harness
mc --harness gemini 

# Use a custom local LLM backend
mc --model mlx-community/Qwen3.5-4B-OptiQ-4bit

# Use DeepSeek V4 Flash API
me --deepseek

# Run the server only
mc --nocc

# General shell piping and chaining works too
echo "explain symgraph.py" | mc | cat - PLAN.md | mc

(For a full list of mc server arguments, run mc --help)

Credits

  • main.py: Built on MLX and MLX LM by Apple.
  • pie.py: Adapted from pi by Mario Zechner (MIT License).

Licence

Apache License 2.0 — see LICENSE for details.

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

mlx_code-0.0.4.tar.gz (40.1 kB view details)

Uploaded Source

Built Distribution

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

mlx_code-0.0.4-py3-none-any.whl (40.0 kB view details)

Uploaded Python 3

File details

Details for the file mlx_code-0.0.4.tar.gz.

File metadata

  • Download URL: mlx_code-0.0.4.tar.gz
  • Upload date:
  • Size: 40.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.8

File hashes

Hashes for mlx_code-0.0.4.tar.gz
Algorithm Hash digest
SHA256 d80c4ab5938c6c6208d869214266c7c75ab53ff09d7f2fb0f4bcf6b9f3214b13
MD5 13461042515f2ce071e4ba26fc3cb0b2
BLAKE2b-256 e00dd45e062c90a3da4300362ff3a32fa62dcd827d3ab63c985d6bc241632024

See more details on using hashes here.

File details

Details for the file mlx_code-0.0.4-py3-none-any.whl.

File metadata

  • Download URL: mlx_code-0.0.4-py3-none-any.whl
  • Upload date:
  • Size: 40.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.8

File hashes

Hashes for mlx_code-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 0cac6c5a95cacb5202628c6d836b4ff883928bfa6a85baf34b9c7f427c9c4b98
MD5 5aee4ae53aa62ee8355164a230f5f639
BLAKE2b-256 db0ba825ace9b6e964623b2c8fbdc5fd4fc6d3d13f498537d127a792488a459e

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