PM

paoloanzn/microcodex

开发工具

本页由 AI 翻译,技术细节请以原文为准。 查看原文

47 stars 质量 61 趋势 22Apache-2.0

MicroCodex 是一种超轻量化编码程序,运行在你的终端中

概览

MicroCodex 是一款超轻量级编码代理,运行在终端本地。MicroCodex 采用 C++23 编写,提供一次性提示、交互式终端界面、本地编码工具、持久对话和自动上下文压缩。 在Mac或Linux上运行以下程序以安装MicroCodex: 然后只需输入microcodex登录登录,再输入microcodex即可开始。 你也可以访问最新的GitHub版本,下载适合你平台的二进制文件。 每个 GitHub 发布都包含以下可执行文件: - macOS - 苹果硅/arm64:microcodex-aarch64-apple-darwin.tar.gz - x86_64:microcodex-x86_64-apple-darwin.tar.gz - Linux - x86_64:microcodex-x86_64-unknown-linux-gnu.tar.gz - arm64:microcodex-aarch64-unknown-linux-gnu.tar.gz 每个档案中包含一个包含平台名称的条目(例如microcodex-aarch64-apple-darwin),所以解压后你可能想将其重命名为microcodex。

概述(AI 翻译)

MicroCodex 是一种超轻量级编码代理,运行在终端本地。

MicroCodex 采用 C++23 编写,提供一次性提示、交互式终端界面、本地编码工具、持久对话和自动上下文压缩。


快速开始

安装和运行微码本

在Mac或Linux上运行以下程序以安装MicroCodex:

然后只需输入 microcodex login 登录,再按 microcodex 开始。

你也可以访问最新的GitHub版本,下载适合你平台的二进制文件。

每个 GitHub 发布都包含以下可执行文件:

  • macOS
  • 苹果硅/arm64:microcodex-aarch64-apple-darwin.tar.gz
  • x86_64:microcodex-x86_64-apple-darwin.tar.gz
  • Linux
  • x86_64:microcodex-x86_64-unknown-linux-gnu.tar.gz
  • arm64:microcodex-aarch64-unknown-linux-gnu.tar.gz

每个归档都包含一条条目,平台本身就包含在名称中(例如,microcodex-aarch64-apple-darwin),所以解压后你可能需要将其重命名为microcodex。

安装程序选择当前架构的原生构建。Linux 需要 libcurl 和 OpenSSL 运行时库。

本页由 AI 翻译,技术细节请以原文为准。

README

以下为原文 README 节选,完整内容请查看原文。

MicroCodex is an ultra-lightweight coding agent that runs locally in your terminal.

MicroCodex is written in C++23 and provides one-shot prompts, an interactive terminal UI, local coding tools, durable conversations, and automatic context compaction.


Quickstart

Installing and running MicroCodex

Run the following on Mac or Linux to install MicroCodex:

curl -fsSL https://github.com/paoloanzn/microcodex/releases/latest/download/install.sh | sh

Then simply run microcodex login to sign in, followed by microcodex to get started.

The installer selects the native build for the current architecture. Linux requires the libcurl and OpenSSL runtime libraries.

To install a specific release, set MICROCODEX_RELEASE:

curl -fsSL https://github.com/paoloanzn/microcodex/releases/latest/download/install.sh | MICROCODEX_RELEASE=v0.1.0 sh

Using MicroCodex with your ChatGPT plan

Run microcodex login and open the displayed URL in your browser. On a remote or headless machine, run microcodex login --device-auth and enter the displayed one-time code at the verification URL. MicroCodex stores the resulting OAuth credentials under $CODEX_HOME, or ~/.codex when CODEX_HOME is unset.

You can then start an interactive session or pass a one-shot prompt:

microcodex
microcodex "Find the failing test, fix it, and run the relevant test suite"

To choose how hard the model thinks, pass --effort or set MICROCODEX_EFFORT (the flag wins when both are given):

microcodex --effort high "Find the failing test, fix it, and run the relevant test suite"

Accepted values are none, minimal, low, medium, high, xhigh, max, ultra, and persistent; the default is medium. Empty or unknown values are rejected with an error. The value is sent to the API as the request’s reasoning.effort field, the same field the official Codex client uses.

[!WARNING] MicroCodex is not a sandbox. Before starting the user’s shell, it applies a simple lexical denylist that blocks forced file removal (rm -f/rm -rf),

在 GitHub 查看完整 README

推荐工具

换一个关键词,或者移除筛选条件。

安装

npx skillfish add paoloanzn/microcodex
新手?先看 mcpskill.org 教程 →