Skip to main content
Glama

MileStack

简体中文 | English

不用翻找过期的 TODO 和历史对话,也能让开发者与编程 Agent 始终知道项目做到哪了、接下来该做什么。

MileStack 把项目进度和任务上下文统一保存在本地,让开发者与编程 Agent 始终基于同一份项目状态协作。它让每个新会话都能可靠回答三个问题:项目目前进展如何?现在正在做什么?下一步该做什么?

MileStack 目前处于早期 V0 阶段,面向本地开发工作流。项目数据始终保存在你自己的机器上。

MileStack 项目状态面板

MileStack 解决什么问题

开发者通常会先与擅长深度推理的模型讨论需求和方案,但讨论结论很容易停留在对话里。随着项目在不同会话、模型和开发者之间切换,真实进度又会继续散落到 TODO、计划文档和交接记录中。这些信息很快就会互相矛盾,新的 Agent 必须先重新拼凑项目上下文,开发者也得反复确认哪份计划才是最新的。

MileStack 用一个共享、结构化的事实源代替这些临时进度文档:

  • 开发者可以在一个页面看到当前工作、待办顺序、阻塞、审核项和最近完成的任务;

  • 编程 Agent 有任务 ID 时直接读取指定任务;没有任务 ID 时通过 MCP 查询项目状态并选择队列中第一个可领取任务,然后建立本轮执行权、记录进展并留下交接信息;

  • 任务依赖和执行凭证明确展示哪些工作可以开始,并避免两个会话同时执行同一任务;

  • 每轮审核都绑定到确切的 Git commit,高风险工作仍由开发者把关;

  • 所有数据都保存在项目本地的 SQLite 数据库中,不需要账号、云服务或远程数据库。

Related MCP server: AgentTasker

它如何融入开发流程

flowchart LR
    D[开发者与深度推理模型敲定需求和方案] --> T[AI 将共识创建为 MileStack 任务]
    T --> C[开发者确认风险与顺序]
    C --> I[开发者指定任务 ID,或 Agent 读取下一可领取任务]
    I --> W[执行 Agent 建立执行权、实施并提交]
    W --> Q[开发者把任务 ID 发给审核 Agent]
    Q --> R[审核与交接留在 MileStack]
    R --> N[下个会话从最新状态继续]

一个项目通常按下面的闭环推进:

  1. 开发者与擅长深度推理的模型讨论需求和方案,直到双方确认目标与边界。

  2. AI 调用 MileStack,将已经确认的结论整理成结构化任务,并可在草稿阶段直接修正任务定义,而不是让开发者逐条手工录入。创建前先问清目标效果、明确不做什么和验证方式;未确认内容以明确标注的假设写入任务。

  3. 开发者检查 AI 创建的草稿任务,确认风险、依赖和执行顺序。

  4. 有任务 ID 时,实施 Agent 直接读取指定任务;没有任务 ID 时,它先查询项目状态,选择 next 中第一个 runnable = true 的任务,再通过 start_task 建立本轮执行权。

  5. 实施 Agent 记录阶段成果、阻塞和交接上下文,并以固定 Git commit 提交。

  6. 开发者将任务 ID 发送给独立审核 Agent;审核 Agent 通过 start_review 建立审核权,独立复现关键验证,并检查提交边界与项目 AGENTS.md。

  7. 审核结果进入 MileStack,页面和下一个被分派的 Agent 会话随即看到最新状态。

三分钟开始使用

MileStack 需要 Node.js 22 或更高版本,以及请确保项目已初始化为 Git 仓库。

npm install -g milestack

cd /你的项目绝对路径
milestack init --client codex
milestack serve

默认地址是 http://127.0.0.1:7331;该端口被占用时,serve 会依次改用 7332 到 7350 中第一个可用的端口,请以终端输出的地址为准。本项目的 serve 已在运行时,会提示已有地址。--port 显式指定的端口被占用时会直接报错,不会换端口。

如需配置其他支持项目级 MCP 的客户端,可以把 codex 替换为 claude、cursor、grok 或 opencode;也可以重复传入 --client,一次配置多个客户端。AGY(Gemini CLI)使用动态项目发现,需要进行一次手动全局注册,详见用户指南。

最后,在项目根目录的 AGENTS.md 中加入下面这行,让编程 Agent 读取 MileStack 生成的工作流规则:

Before working on tasks, read and follow `.milestack/agent-instructions.md`; if it is missing, call the MileStack MCP tool get_agent_instructions.

初始化完成后重启编程客户端,并让它在开始工作前先查看 MileStack 项目状态。

你会得到什么

能力

带来的变化

统一的项目视图

当前任务、下一步、阻塞、草稿箱、待审核和已完成工作不再分散在多份文档里。

跨会话接续

新 Agent 会话直接读取结构化任务上下文和语义历史,不必重放旧对话。

感知依赖的队列

开发者决定执行顺序,MileStack 明确显示哪些任务现在真正可以开始。

明确的选择与执行权

Agent 优先处理开发者指定的任务;未指定时按队列选择下一可领取任务,并原子建立执行权。

可审核的交付

每轮审核对应一个确切的 Git commit,执行权与审核权彼此分离。

稳定的 Vibe Coding 心流

新需求先进入草稿箱,不会突然打断当前任务,当前进度和下一步都被保留下来,可以接着推进。

清楚的多项目切换

每个项目都有独立的可视化进度页面,切换项目后也能迅速看清现状并下发任务,不必全靠大脑记忆。

更小的 AI 实现偏差

AI 将讨论结论整理成包含目标、约束和验收条件的结构化任务,相当于补全并增强了实施提示词,比临时在对话框中描述更完整。

支持的使用方式

  • Web UI:管理待办队列、草稿箱、阻塞、审核和已完成任务。

  • MCP:让编程 Agent 读取指定任务或查询下一可领取任务、建立执行或审核权、更新进度,并提交审核结果。

  • CLI:初始化项目、查询状态、启动 MCP 和本地 Web 服务。

  • HTTP API:供 Web UI 使用,并与 CLI、MCP 共享同一套任务行为。

目前,MileStack 的初始化流程已适配 Claude Code、Cursor、Grok、Codex、OpenCode 和 AGY;其他支持 MCP 的客户端可参考各自文档手动接入 MileStack。

进一步了解

  • 用户指南:安装方式、客户端接入、日常使用、数据位置和常见问题

  • 开发指南:源码构建、Web UI 开发、安装包测试、架构和验证方式

许可证

MileStack 源码采用 Apache License 2.0 授权。

Available Tools

15 tools
approve_reviewA

Pass the claimed review with a summary, structured findings, finding closures, and verification evidence. Every new finding records issue, suggestion, severity, trigger, impact, and evidence, plus a location when one can be identified. When the previous round requested changes, record a closure status for every previous finding; unresolved or partially fixed findings and not_met or unverifiable delivery results block passing. The reviewRunId must own the current review; low-risk tasks may complete automatically while medium- and high-risk tasks wait for developer approval.

Inputs: taskId (required), summary (required), findings (required), reviewRunId (required), +3 more.

check_task_integrationB

Retry the local read-only Git integration check for an already accepted latest review. Supply the expected review id from get_task. This never merges, fetches, pushes, or substitutes another commit SHA.

Inputs: taskId (required), expectedReviewId (required), actorLabel.

complete_reviewA

Record a passed or changes-requested AI review with structured findings, finding closures, and verification evidence. Passing is rejected when submitted acceptance criteria are not met or unverifiable, or when a previous-round finding remains not_fixed or partially_fixed. Completion also requires the fixed review commit to be present on the developer-confirmed local target branch; low-risk tasks may complete automatically only after that check, while medium- and high-risk tasks wait for developer approval.

Inputs: taskId (required), summary (required), decision (required), findings (required), +4 more.

create_taskA

Record one newly discovered task in the project's inbox. Optionally include the model label. Agent-created tasks are not ready until a developer confirms and orders them. Before creating a task, confirm you can state the observable outcome, explicit exclusions, and verification. If unclear requirements prevent that, ask the developer instead of filling it in. When creating a task, check that each acceptance criterion describes one independently verifiable delivery result, has a corresponding verification, and does not smuggle in an unconfirmed implementation restriction.

Inputs: title (required), dependencyIds (required), acceptanceCriteria (required), objective, +3 more.

create_tasksA

Record several newly discovered inbox tasks atomically, optionally including model labels. If one input is invalid, the complete batch is rolled back. Before creating a task, confirm you can state the observable outcome, explicit exclusions, and verification. If unclear requirements prevent that, ask the developer instead of filling it in. When creating a task, check that each acceptance criterion describes one independently verifiable delivery result, has a corresponding verification, and does not smuggle in an unconfirmed implementation restriction.

Inputs: tasks (required).

edit_inbox_taskA

Correct the definition of an inbox task created by you or another agent. Call get_task first and pass the task's latest updatedAt with the complete title, objective, acceptance criteria, and dependencyIds. The edit is rejected if the task changed since it was read, cannot change risk level or risk confirmation, and only works while the task is in inbox. Use update_task for run-scoped progress instead.

Inputs: title (required), taskId (required), dependencyIds (required), expectedUpdatedAt (required), +3 more.

get_agent_instructionsA

Read-only. Returns the full MileStack agent instructions, identical to the .milestack/agent-instructions.md that milestack init generates for this version. Call it when that file is missing in the current checkout.

Inputs: no named parameters.

get_project_statusA

Use this when no taskId is known to read the current project work and ordered ready queue. Choose only ready tasks with runnable=true; waiting tasks include their unfinished dependencies. Results contain task summaries only, without each task's objective or acceptance criteria; call get_task for the full definition.

Inputs: view.

get_taskA

Read a known taskId's definition and the context for its current phase. The default working view returns the phase (implementation or review), dependency state, the current run's progress, every acceptance criterion with its stable id and full text, the latest submission with per-criterion delivery results, previous-round findings awaiting closure, and unclosed findings from changes-requested rounds. Pass view='full' to retrieve the complete immutable event and review histories. This does not require get_project_status first.

Inputs: view (required), taskId (required).

list_tasksA

Read one task status section with a bounded limit and opaque cursor. Results use the existing ready-queue or recent-completion ordering. Each task is a summary without its objective or acceptance criteria; call get_task for the full definition.

Inputs: limit (required), status (required), cursor.

request_changesA

Return the claimed review for rework with actionable findings and finding closures. Findings require trigger, impact, and evidence; a re-review must close every finding from the previous changes-requested round. The reviewRunId must own the current review; the task returns to ready and requires a new execution runId.

Inputs: taskId (required), summary (required), findings (required), reviewRunId (required), +2 more.

start_reviewA

Use this when the developer sends a task ID for independent review. Call get_task first and confirm phase=review, then atomically claim the latest pending review and save the returned reviewRunId before inspecting the submitted artifact. Review the exact commit in the latest submission. Do not accept the submitter's criteriaResults as evidence: independently reproduce the key verification for each acceptance criterion, inspect the diff for changes outside the task objective and acceptance criteria, and check the work against the repository root AGENTS.md. When a previous round requested changes, close every previous finding. Record low, medium, or high severity for each finding, but severity does not permit a pass: a review cannot pass while any submitted criterion is not_met or unverifiable, or any previous finding remains not_fixed or partially_fixed. Conclude with approve_review, request_changes, or complete_review using the reviewRunId.

Inputs: taskId (required), actorLabel.

start_taskA

After get_task, atomically claim a runnable ready task. Optionally include the model label. Save the returned runId and include it in every subsequent execution update.

Inputs: taskId (required), actorLabel.

submit_for_reviewA

Submit a running task for review with a completion summary, an exact 40-character commit SHA, and exactly one delivery result per acceptance criterion, filed under the criterion id returned by get_task (met, not_met, or unverifiable; met requires recorded evidence). The task changes to in_review and the runId becomes invalid after submission.

Inputs: runId (required), taskId (required), summary (required), commitSha (required), +5 more.

update_taskB

Record run-scoped progress for a running task. The runId must belong to the current execution. Use edit_inbox_task to correct an inbox task definition instead.

Inputs: runId (required), taskId (required), summary (required), completedWork (required), +6 more.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.7/5.0

    Scored across 15 tools

    Disambiguation3/5

    Most tools map to a distinct lifecycle step, but the review-conclusion trio (approve_review, request_changes, complete_review) is genuinely hard to separate: approve_review and complete_review both describe recording a pass with structured findings, closures, and evidence. get_project_status vs list_tasks vs get_task are saved by descriptions that explicitly say when to use which, but the agent still must reason about overlapping read views.

    Naming Consistency5/5

    Uniform snake_case verb_noun pattern throughout (get_, list_, create_, edit_, start_, update_, submit_, approve_, request_, check_), including the predictable singular/plural pair create_task/create_tasks. No casing or style deviations.

    Tool Count4/5

    15 tools sits at the top of the well-scoped range, but each covers a real lifecycle stage (intake, execution, submission, review, integration) rather than a redundant variant. A couple of review tools could plausibly be folded together to tighten the set.

    Completeness3/5

    Core lifecycle is well covered (create single/batch, read, claim, progress, submit, review, approve/changes, integration retry, instructions), but notable gaps remain: no delete/cancel/abandon operation, no way to list pending reviews or fetch a review without a developer-supplied task ID, and task definitions are only editable while in inbox.

    Maintenance

    ActivityNo data
    ResponsivenessOutdated data

    Related MCP Connectors

    Related MCP Servers

    • F
      license
      A
      quality
      B
      maintenance
      Enables coding agents to track and coordinate project work through a shared SQLite ledger, including task plans, session ancestry, claims, work locations, blockers, and commits via MCP tools.
      9
      -
    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables AI agents to create, query, update, claim, hand off, and complete tasks on a local SQLite-backed, project-namespaced kanban board through stdio MCP tools, including filtering for ready/blocked/stale work and exchanging task attachments. It also lets agents list projects and manage statuses, ownership, and evidence without any server or accounts.
      MIT
    • A
      license
      A
      quality
      B
      maintenance
      Enables multiple AI coding agents to work concurrently on the same repository by coordinating task ownership, file locks, architectural decisions, investigation gaps, handoffs, and audit activity through a local SQLite-backed MCP interface.
      14
      MIT
    • A
      license
      B
      quality
      B
      maintenance
      Lets multiple AI agents and parallel coding sessions share one memory and task ledger, so they can claim work instead of duplicating it, resume each other's handoffs and reasoning, and use credentials without ever seeing the keys. Connects assistants such as Claude Code, Codex, Cursor, Gemini, ChatGPT and custom agents over MCP, backed by a single local SQLite file or a self-hosted Postgres hub.
      41
      2
      MIT