OpenViSTAI · Agents · Blockchain · Crypto
Menu
Agent Memory & RAG

Mainline

Mainline is a Git-native memory tool for coding agents and engineering teams. It stores project intent, decisions, tradeoffs and constraints as repository-owned memory, with a CLI for human inspection and an agent protocol for retrieving context before edits and recording durable intent afterward.

Independent OpenViST project profile, based on linked sources.

Mainline — Repository-scoped decisions that should remain available to future agent work
OpenViST project illustration. See the linked sources for product details.
Understand the project

Practical overview

When it fits

Use Mainline when an agent is preparing for a consequential change such as a refactor, migration, authentication work, permissions change, release or cross-file behavior update. Its guidance allows skipping context for narrow typo fixes, formatting-only work, obvious one-line syntax fixes and explicitly requested read-only inspection of one file.

Who it is for

  • Engineering teams that want coding agents to consult repository-specific decisions before consequential changes.
  • Developers who want to inspect recorded intent and identify commits that still need coverage.
  • Teams seeking local, Git-owned memory rather than memory stored as code or chat logs.

Documented uses

  • Retrieve relevant repository context before an agent makes a non-trivial edit.
  • Record the reasoning and intent behind meaningful agent work.
  • Inspect decisions and find commits that lack associated intent coverage.
Before you choose

Requirements & limits

The core is described as open source, free and intended for local repository use. The pricing page says hosted layers are only planned. The documented primary workflow uses a local CLI and repository protocol and does not require an account.

  • Mainline records engineering intent and decisions, not code or chat logs.
  • Repository initialization configures Git refs and installs agent guidance in addition to writing .mainline/config.toml.
  • The documented human CLI supports browsing recent intent, viewing an intent by ID and finding commits that need coverage.
  • The core is local and repo-owned; hosted layers are described as planned rather than part of the documented current workflow.

Check current requirements in the official documentation. Source-based guidance does not mean OpenViST has run or independently tested this project.

Source-based practical guide

Install Mainline and initialize a repository

Set up repository-owned memory and configure Mainline for a repository.

Before you start

  • A shell environment for the documented installer.
  • A repository where Mainline can write configuration and Git refs.

Steps

  1. Run the documented installer: the command below.

    Documented command
    curl -fsSL https://raw.githubusercontent.com/mainline-org/mainline/main/install.sh | bash
  2. Run mainline doctor --setup.

  3. Change to the repository and run mainline init --actor-name "alice", replacing the example actor name as appropriate.

Expected outcome

The repository receives `.mainline/config.toml`, configured Git refs, an actor identity and agent guidance.

Guide limitations

  • These steps cover installation and repository initialization, not a complete agent workflow.
  • The installer downloads the latest GitHub Release archive and verifies it against checksums.
Source-based practical guide

Inspect repository intent with the human CLI

Browse recorded intent, inspect a decision, and locate commits that need coverage.

Before you start

  • Mainline initialized in the repository.
  • A recorded intent ID to inspect a specific decision.

Steps

  1. Run mainline hub open to browse recent intent.

  2. Run mainline log to inspect the intent log.

  3. Run mainline show to inspect a decision.

  4. Run mainline gaps to find commits that still need coverage.

Expected outcome

The CLI provides views for recent intent, individual decisions and commits that lack coverage.

Guide limitations

  • The documented commands describe inspection; they do not specify how to create or complete a particular decision record.
COMPARE OPTIONS

Compare options for AI coding assistance

These projects document a common task and share a project role. This is a source-based comparison, not an execution benchmark or a guarantee of interchangeability.

ProjectDocumented purposePlatformAccess and requirements
MainlineRetrieve relevant repository context before an agent makes a non-trivial edit.CLI, Self-hostedThe core is described as open source, free and intended for local repository use. The pricing page says hosted layers are only planned. The documented primary workflow uses a local CLI and repository protocol and does not require an account.
cass-memoryRetrieve relevant rules and historical examples before a coding task.Linux, macOS, WindowsThe README lists Linux, macOS and Windows, with installation instructions for Homebrew, Scoop and a Linux/macOS script. It identifies Bun as the runtime and labels the project alpha.
OpenCode MemoryAdd, search and list project memories for an OpenCode coding agent.CLI, Self-hostedThe README recommends Bun and a standard OpenCode plugin environment. The default local embedding model downloads on first use and needs internet access then. Linux, Windows and Apple Silicon Mac are listed as CI-tested; Intel Mac (darwin/x64) is explicitly unsupported.
Evidence and transparency

Sources & review

Source record details
Source availability
Active
Sources checked
20 November 2026
Original website title
Mainline - Git for the AI era · Official homepage title · retained in its source language