Do not repeat abandoned paths
Tried-and-abandoned approaches may never show up in code. Mainline records them, so the next agent sees the trap before walking into it.
Git-native intent records
Mainline lets agents automatically save developer intent and decisions alongside code in your Git repo.
curl -fsSL https://raw.githubusercontent.com/mainline-org/mainline/main/install.sh | bash $ mainline preflight --json
# Read repo history, decisions, and risks first
$ mainline start "Clean up old export"
$ mainline append "Keep legacy CSV until customer migration finishes"
$ mainline seal
# Write this judgment back to Git Data stays in your Git repo
Agent intent, tradeoffs, and no-go zones are saved with code.
Team members get the same decision history through Git.
Future agents see old traps and high-risk boundaries before editing.
Chat logs are too long, PR descriptions come too late, and code comments are too local. Mainline compresses the engineering judgment future agents need into intent records inside the repo.
Tried-and-abandoned approaches may never show up in code. Mainline records them, so the next agent sees the trap before walking into it.
Another agent may already have changed product behavior and recorded an intent before a PR exists. Other agents can see that intent early and avoid the conflict from the start.
Some code looks odd and comments are incomplete. Mainline tells agents the explicit constraints each module carries.
Reviewers see not just the code diff, but the original goal, reasoning path, and key decisions behind the change.
Mainline reuses Git's mature collaboration model. No new memory database, no platform lock-in, and no need to put every agent transcript into the repo.
Fetch Receive sealed intents from the team and other agents.
Branch Record this task's goal, pivots, and validation on the current branch.
Merge Bind merged commits to the decisions that produced them.
Fork External contributors can bring their own intents into upstream review.
Mainline uses agent hooks, skills, and the CLI to read and write intent. Users keep their existing AI coding workflow: ask for work, inspect the diff, and review as usual.
Self-dogfood
This is the Mainline Hub generated by the Mainline project itself, showing real intent records from day-to-day development. After your project adopts Mainline, it can use the same view to inspect historical decisions, risks, and work in progress.
236 merged intents explain why the code became what it is now.
0 risk and constraint signals help agents avoid known traps before editing.
4 proposed intents show what the team and agents are working on now.
Core position
Code history already lives in Git. Mainline puts each agent's important engineering judgment into the same shared history.
Teams do not need to save entire conversations or invent a separate shared service. Agents read prior decisions from Git, finish the work, then write the new judgment back to Git.
If today's agent abandons a plan, another agent three weeks later should know why.
Turn agent progress, historical constraints, and review logic into repo facts everyone can fetch.
Public alpha
Mainline is for teams already using agents in real engineering workflows and starting to worry about broken context. Feedback is very welcome.