{"repo":"mainline-org/mainline","free":true,"listed":false,"github":"https://github.com/mainline-org/mainline","clone":"git clone https://github.com/mainline-org/mainline.git","description":"Git-native memory for coding agents. Repo memory before the diff.","language":"Go","stars":184,"topics":["agent-memory","ai-agents","ai-code-review","claude-code","coding-agents","developer-tools","git","software-engineering","agent-context","ai-coding"],"license":null,"category":"ai-agents","readme_excerpt":"Mainline - Website: https://mainline.sh - Hosted Hub: https://mainline.sh/hub/ - Detailed reference: docs/reference.md - 中文版本: README.zh.md Git for the AI era. https://github.com/user-attachments/assets/75826aba-0016-448c-b889-eb2dea83ca36 Mainline lets agents save developer intent and decisions to Git alongside the code. Git already records the history of the code. Mainline adds the engineering judgment behind agent work to the same collaboration layer: the original goal, reasoning path, key decisions, trade-offs, validation, explicit constraints, abandoned routes, and the commit that eventually carried the work. Teams do not need to keep long AI transcripts around, and they do not need to invent a separate shared memory service. Agents read prior judgment from Git, do the work, and write the new judgment back to Git. Why It Matters Agents can move fast, but code alone does not carry the full history. Mainline is not another knowledge base for humans to maintain; it is a tool agents can read and write as naturally as they use Git. Stop Repeating Abandoned Paths Some approaches were tried, rejected, and then disappeared from the code. Maybe the team once tried to process billing events through a Redis queue, then abandoned it after replication lag caused duplicate charges. The next agent may grep its way to a half-finished TODO and decide it only needs to complete the work. Mainline tells the agent before it edits: this path was already tried, where it failed, and why it shou","default_branch":null,"files":null,"tree":[],"storefront":"/r/mainline-org","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/mainline-org/mainline/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}