# Mainline

AI coding 有时候会遇到问题： agent 经常不知道以前为什么放弃过某个方案，也不知道别人正在用 agent 做些什么。结果就是它可能把历史上已经否掉的方案重新做回来，或者提交代码后才发现和别人的 agent 写的东西有逻辑冲突。 我把这个问题叫 coding agent 的决策冲突：它不是代码层面的冲突，而是“意图（ intent ）”的冲突。 Mainline 的思路是把这些 intent / decision 记录到 Git 里。agent 开始改之前先读相关历史和当前 intent ，改完以后再留下一条新的记录。 这个项目自己也是这么自举出来的。中途加入的小伙伴把代码 clone 下来，看一下本地生成的 Hub…

- Canonical URL: https://meetnewai.com/products/p~cHJvZHVjdF82N2IwM2IzOGQwODJiODBmYWFkY2VmNGU
- Official website: https://mainline.sh
- Category: [Agent Tools & MCP Servers](https://meetnewai.com/categories/agent-tooling)
- Pricing model: Free
- Estimated monthly visits: 1,262 (2026-10)
- Screenshot captured: 2026-11-03
- Record updated: 2026-11-03

## Overview

Mainline lets agents automatically save developer intent and decisions alongside code in your Git repo.

## Use cases

- Clean up old export
- Read repo history, decisions, and risks first
- Write this judgment back to Git
- Do not repeat abandoned paths
- Find logic conflicts before Git conflicts
- Read module constraints before editing

## Sources

- [Mainline: Git for the AI era](https://mainline.sh/) (home)
- [Mainline pricing | Mainline](https://mainline.sh/pricing/) (pricing)
- [Mainline Intent Record Spec | Git-native agent memory](https://mainline.sh/spec/) (features)

## Related alternatives

- [REA](https://meetnewai.com/products/p~cHJvZHVjdDpwcm9kdWN0X2h1bnQ6MTI3NTAxNA) — Ask your coding agent about an app, a game or a website. REA gives it the tools to inspect the code behind the answer.
- [Desktop Commander](https://meetnewai.com/products/p~cHJvZHVjdDpwcm9kdWN0X2h1bnQ6OTQ4ODU0) — MCP+Claude= Local Automation with AI for a fixed flat price
- [Browser Use](https://meetnewai.com/products/browser-use) — Hosted web agents for any website. Send a task in plain English, get JSON back.
- [TinyFish](https://meetnewai.com/products/p~cHJvZHVjdF81MjkxYmY0YTQwZjUxMjhjY2YyNmYzOGQ) — Search, extract, browse, and act on the web with one platform.
- [Capafy](https://meetnewai.com/products/p~OTY2NjBhMWItY2ZhZS00YmZjLWI3MmYtZmMzM2YxZjE4NGVh) — Capafy is a Skill-based Agent marketplace. Publishers package their expertise into Skills - reusable AI capability packages - and list them as finished Agents you can use right away.
- [ego lite](https://meetnewai.com/products/p~cHJvZHVjdDpwcm9kdWN0X2h1bnQ6MTIwNDMwMw) — ego(lite) is the agent browser built to share with your AI agents, like Codex or Claude Code. Zero cost, zero config.
