mex Agent工作流 是 AI Skill Hub 本期精选Agent工作流之一。综合评分 8.2 分,整体质量较高。我们强烈推荐将其纳入你的 AI 工具库,帮助提升工作效率。
为AI编码代理提供持久化项目记忆和结构化上下文管理。通过漂移检测和智能脚手架,帮助开发者在Cursor和Claude中维护长期项目知识,提高AI代码生成的准确性和连贯性。适合使用AI辅助编程的开发团队。
mex Agent工作流 是一套完整的 AI Agent 自动化工作流方案。通过可视化的节点编排,将复杂的多步骤任务拆解为清晰的自动化流程,实现全程无人值守的智能处理。支持与数百种外部服务和 API 无缝集成,适合构建数据处理管线、业务自动化和 AI 辅助决策系统。
为AI编码代理提供持久化项目记忆和结构化上下文管理。通过漂移检测和智能脚手架,帮助开发者在Cursor和Claude中维护长期项目知识,提高AI代码生成的准确性和连贯性。适合使用AI辅助编程的开发团队。
mex Agent工作流 是一套完整的 AI Agent 自动化工作流方案。通过可视化的节点编排,将复杂的多步骤任务拆解为清晰的自动化流程,实现全程无人值守的智能处理。支持与数百种外部服务和 API 无缝集成,适合构建数据处理管线、业务自动化和 AI 辅助决策系统。
# 方式一:npm 全局安装 npm install -g mex # 方式二:npx 直接运行(无需安装) npx mex --help # 方式三:项目依赖安装 npm install mex # 方式四:从源码运行 git clone https://github.com/theDakshJaitly/mex cd mex npm install npm start
# 命令行使用
mex --help
# 基本用法
mex [options] <input>
# Node.js 代码中使用
const mex = require('mex');
const result = await mex.run(options);
console.log(result);
# mex 配置说明 # 查看配置选项 mex --config-example > config.yml # 常见配置项 # output_dir: ./output # log_level: info # workers: 4 # 环境变量(覆盖配置文件) export MEX_CONFIG="/path/to/config.yml"
Shared project memory for engineers and their coding agents.
npx mex-agent@0.8.4 setup
Setup includes the official Inbox and Relay skills for your selected Claude Code or Codex integration. Standalone skill installation is an alternative for existing MEX projects.
MEX keeps your team's architecture, decisions, requirements, and handoffs alongside the code. Engineers and their agents can build on shared context, review proposed changes, and carry work between sessions and teammates—with Git as the sharing layer.
English | 简体中文 | Español | Português (Brasil)
Team memory · A teammate-handoff example · Project Hub · Quick start · How it works · Command map
</div>
---
One engineer knows why a constraint exists. Another has the debugging history. A coding agent found an important edge case in a session nobody else will read. The next teammate has to piece it together again.
What one engineer and their agent learn should become context the next teammate can use. MEX gives that knowledge a durable home in the repository: readable Markdown, code-linked explanations, reviewed knowledge contributions, and structured handoffs. People explore and review it in a local Hub; agents retrieve and help maintain it through project instructions and the CLI.
[!IMPORTANT] MEX 0.8.4 starts setup in a new terminal HUD, hands the terminal to your agent, and finishes with review in the Hub. Setup errors now keep their recovery guidance. The release also speeds up graph refresh and retrieval and writes smaller grounding fingerprints; upgrade the whole team before sharing the new format.
💬 Join the MEX community on Discord — discuss ideas, get help, share feedback, and show what you're building.
Run from the repository root:
npx mex-agent@0.8.4 setup
This opens a keyboard-driven terminal HUD with a cyan ASCII mex banner. Highlight a tool with the arrow keys and press Enter to select it and begin. Space optionally selects additional integrations; the Continue row starts with your checked choices or without an agent. Long steps show an animated activity indicator, elapsed time, and the latest reported work; graph parsing also shows real file counts. When a selected Claude Code or Codex CLI is available, its normal interactive session takes over the terminal; exit that session to return to MEX. MEX checks the scaffold before continuing. Incomplete work can be reopened, populated manually, or left for later. Existing instructions are preserved.
After validation, setup opens the Hub for completion. Review the exact setup-file diff and choose Commit setup to create a local commit. A manual Git checkpoint remains available. MEX preserves unrelated staged work and never pushes or pulls.
The completion screen explains how to start a fresh agent session and verify that it reads your project memory. It also offers two optional steps: install the mex command globally at the version running setup, and leave an email (plus an optional name) for follow-up about MEX. Contact details are sent through the embedded Web3Forms service and stay out of the repository and usage telemetry. Only a submitted/skipped preference is remembered on this computer. Choose Open Hub when ready; the Hub's introductory tour starts there.
Connected agents have their own installation, account, and network requirements. Keep the setup terminal running while using the finishing Hub; press q or Ctrl+C to stop it. Use npx mex-agent@0.8.4 setup --no-open to show the finishing link without opening a browser; add --port <n> to choose a loopback port. Press d in the HUD to read longer status or error details.
Expected setup errors include specific recovery instructions, such as correcting malformed configuration or an ignore rule that hides the scaffold. An incomplete agent session returns to recovery choices; a successful agent exit alone does not mark setup complete.
Prefer browser setup?
npx mex-agent@0.8.4 setup --browser
The browser runs the same setup engine with a background Claude Code or Codex session and manual population fallback. --browser --no-open prints its link without launching a browser. The existing --cli flag remains an alias for the default terminal flow. --tool, --yes, and --dry-run are terminal-only, so --browser cannot be combined with them or with --cli; setup stops with an error naming the conflicting option. mex setup --help summarizes both modes.
For scripts, use --yes with repeatable --tool <name> flags (or --tool none). Piped input/output and CI also use plain output. These runs reuse saved choices, default to no integrations when none are saved, and never launch an agent or browser or wait for input. Exit codes are 0 for completed preparation or a successful dry run, 2 when population is still required, 1 for failure, and 130/143 for interruption. After a population checkpoint, rerun mex setup to continue. Once preparation is complete, mex setup --browser opens the commit and completion page.
mex setup --dry-run remains a terminal preview without changes. Once installed, bare mex opens the Hub for an established code project or terminal setup for an incomplete project. mex hub explicitly opens the browser, while mex tui opens the terminal dashboard.
[!NOTE] The full Hub opens when the current.mex/config.jsonis committed atHEAD. Its setup wizard can commit the reviewed setup files on your explicit request, preserving unrelated staged work. Repositories with unsupported Git hooks or content filters keep the manual checkpoint. MEX never pushes or pulls.
Push the reviewed setup commit through your team's normal Git workflow so teammates receive the same project memory and selected agent instructions. In Hub's Team/Members page, add the people who will participate and choose your local identity. Review and apply those actions explicitly; commit and push new Member records too. Your current-member selection stays local.
For an existing MEX project, you can manage the official Inbox and Relay skills with skills.sh instead of MEX's skill installer:
npx skills add mex-memory/mex
This installs agent skills only; it does not install the mex CLI or initialize project memory. The skills still need an available MEX CLI and a configured MEX project.
Choose one installer for each agent integration. If mex setup or mex skills sync already manages its skills, keep using mex skills sync; do not run skills add over them. The external installer replaces MEX's managed directories, causing later setup or sync operations to report ownership or path conflicts.
<a id="mcp-server"></a> <details> <summary><strong>MCP server — source only</strong></summary>
The repository includes an MCP workspace for local development. It is not published with MEX 0.8; the released agent interface is the mex-agent CLI and its project instructions and skills.
</details>
MEX requires Node.js 22.5 or newer, SQLite FTS5 support in that Node build, and a Git repository. See runtime compatibility. The normal npm flow works on macOS, Linux, Windows Command Prompt, PowerShell, and WSL.
These workflows help a team decide what becomes durable knowledge and preserve enough context for someone else to continue. They sit alongside your existing code-review and issue-tracking tools.
| Feature | What it is | Sharing boundary |
|---|---|---|
| **Members** | Stable contributor records plus a checkout-local “current member” for attribution | Member records use Git; current selection stays local |
| **Workstreams** | Durable context around an area of work and its state | Canonical Markdown through Git |
| **Specs** | Structured product requirements, constraints, and acceptance criteria | Canonical Markdown through Git |
| **Inbox** | Proposals for one project-knowledge addition or correction; existing Spec proposals remain supported | Draft local; published proposal and decisions through Git |
| **Relays** | Agent-prepared, human-published context handoffs | Draft local; published/taken/closed record through Git |
| **Activity** | Accepted MEX workflow history and custom records | Canonical records through Git |
Members provide attribution and provenance. They are not accounts, authentication, role-based access control, or repository permissions.
Mex创新解决AI编码的记忆与上下文管理痛点,结构化设计优秀,社区活跃度高,是提升AI编程效率的实用工具。
AI Skill Hub 为第三方内容聚合平台,本页面信息基于公开数据整理,不对工具功能和质量作任何法律背书。
建议在沙箱或测试环境中充分验证后,再部署至生产环境,并做好必要的安全评估。
✅ MIT 协议 — 最宽松的开源协议之一,可自由商用、修改、分发,仅需保留版权声明。
经综合评估,mex Agent工作流 在Agent工作流赛道中表现稳健,质量优秀。如果你已有明确的使用需求,可以直接上手体验;如果还在评估阶段,建议对比同类工具后再做决策。
| 原始名称 | mex |
| 原始描述 | 开源AI工作流:Persistent project memory for AI coding agents. Structured scaffold + drift dete。⭐714 · TypeScript |
| Topics | 项目记忆管理AI编码代理上下文管理Cursor插件Claude集成 |
| GitHub | https://github.com/theDakshJaitly/mex |
| License | MIT |
| 语言 | TypeScript |
收录时间:2026-05-16 · 更新时间:2026-05-19 · License:MIT · AI Skill Hub 不对第三方内容的准确性作法律背书。
选择 Agent 类型,复制安装指令后粘贴到对应客户端