neuron-explorer
Qwen3.5‑4B 전용 조향형 뉴런 탐색기, 모든 MLP 뉴런을 밀어 결과를 보관·탐색
개인 계정의 공개 저장소 소유자는 GitHub로 로그인해 운영자를 확인하고 소개를 직접 관리할 수 있습니다. 관리자 승인은 필요하지 않습니다.
로그인한 뒤 확인 파일을 만들어 이 저장소의 기본 브랜치에 30분 안에 커밋해 주세요. 다른 브랜치나 포크의 파일은 인정하지 않습니다. 파일을 올린 뒤 아래에서 확인하면 관리자 승인 없이 관리할 수 있습니다. 자격을 유지하려면 파일을 남겨 두세요.
로그인이 필요하면 로그인 화면으로 이동합니다. 로그인 후 이곳으로 돌아와 원하는 확인 버튼을 다시 눌러 주세요.
프로젝트 폴더에서 /nomorevibe verify를 실행하면 소유권을 확인하고 소개를 직접 관리할 수 있습니다.
1분 만에 확인하기Git-native memory for coding agents. Repo memory before the diff.
저장소 README에서 가져옴
README 전체를 불러오는 중입니다. 아래는 저장된 발췌입니다.
Git for the AI era.
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.README 전문 보기 ↗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.
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.
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 should not be revived casually.
Git can detect two edits to the same line. It cannot tell when two agents are changing the same product logic in incompatible ways.
If another agent has already started changing a billing rule, there may be no PR yet, but there is already an intent. Other agents can see that intent during preflight and avoid the collision from the start by changing scope, splitting the boundary, or syncing with the teammate first.
Some code looks odd because it carries real history, and comments rarely capture all of it.
An auth middleware path may exist only because a previous cleanup caused a rollback. Mainline can put the rollback reason, module constraints, and related intent in front of the agent before it edits, so the agent understands why that code is not safe to "clean up" blindly.
Reviewers should see more than the code diff. They should see the implementer's original goal, reasoning path, and key decisions.
Review no longer has to start by guessing why a diff exists. The reviewer can read the intent first, then verify whether the implementation matches that intent. The conversation moves earlier, toward direction, risk, and trade-offs, instead of only catching syntax and edge cases at the end.
Mainline's storage and collaboration model is designed around Git.
| Capability | How Mainline Works |
|---|---|
| Data lives in the Git repo | Intent event logs live in Git refs; commit pins live in Git notes |
| Git-native workflow | Intent travels through fetch, branch, merge, and fork workflows |
| Agents read and write automatically | Hooks, the Mainline skill, and the CLI let agents read history, record judgment, and seal intent |
| No vendor lock-in | Codex, Claude Code, Cursor, Pi, Copilot, and internal agents can work from the same repo facts |
| No disruption to your workflow | Keep using your editor, agent, GitHub / GitLab PRs, and CI as usual |
Mainline does not replace Git. It puts the engineering judgment future agents need back into Git.
Mainline is mainly operated by agents. After the initial setup, developers do not need extra daily commands, and their existing AI coding workflow does not change.
It plugs into agent workflows through three pieces:
preflight, start, append, and seal.If an agent does not have a hook integration yet, it can still use Mainline through the skill and CLI. The rule stays the same: read prior judgment from Git before editing, then write the new judgment back to Git when the work is done.
A typical agent run looks like this:
mainline preflight --json
mainline start "clean up old export logic" --json
mainline append "confirmed the legacy CSV route is still used for overnight enterprise reconciliation" --json
mainline seal --prepare --json > .ml-cache/seal.json
mainline seal --submit --json < .ml-cache/seal.json
Those steps map to the agent loop:
append records it.seal turns the work into intent that can be reviewed, synced, and retrieved by future agents.Future agents do not have to search an old chat transcript for clues. They inherit context from the history the repository already carries.
Install the CLI:
curl -fsSL https://raw.githubusercontent.com/mainline-org/mainline/main/install.sh | bash
mainline version
You can also install with Go:
go install github.com/mainline-org/mainline@latest
Downloadable release archives and checksums are published on GitHub Releases.
mainline version only verifies that the CLI is installed and on your PATH.
mainline doctor --setup is a per-repository wiring check and expects to run
inside a Git repository.
Initialize each repo once:
cd your-repo
mainline init --actor-name "alice"
mainline init will:
main HEAD as the coverage baseline for an existing repository.If a repository was initialized before a given agent hook existed, install hooks again:
mainline hooks install
# or only install one agent integration
mainline hooks install --agent pi
Use the skills CLI to update the global skill:
npx --yes skills add mainline-org/mainline --skill mainline --agent codex claude-code cursor pi --global --yes
Most day-to-day commands are run by agents. Humans usually read state, inspect intent, and open Hub.
mainline status --actionable
mainline log
mainline show <intent_id>
mainline gaps
mainline hub open
Hub lets you browse intent history, pending work, file-level context, coverage gaps, risks, and collaboration signals.
For static export:
mainline hub export ./mainline-hub
The public hosted Hub for Mainline is https://mainline.sh/hub/.
The detailed reference covers install variants, recovery rules, hook behavior, webhooks, configuration, static Hub publishing, storage layout, and development commands: docs/reference.md.
For agents working in LayerFS Workspaces, see Mainline for LayerFS for the CLI adapter, host worker launcher and agent skills. Its default tests run without Docker.
Mainline gets its collaboration model from Git.
Teammates, branches, forks, CI, and other agents can all share the same intent history as long as they can reach the same repository. A teammate should not have to ask "why did yesterday's agent do this?" or dig through somebody else's local chat transcript.
Typical collaboration patterns:
mainline log and Hub to catch up on recent project judgment.Fork contributor flows, external PRs, and actor-log import are covered in docs/reference.md.
Use Mainline before agent work that is more than a tiny edit:
Skip it for narrow typo fixes, pure formatting, and one-line obvious syntax repairs.
We ran a controlled eval: 8 scenarios, 3 seeds, 2 modes.
| Mode | Forbidden-list violations | Consistency |
|---|---|---|
| Intent-first | 0 | 0/8 fixtures fail |
| Code-first | 9 | 2/8 fixtures fail consistently |
The wins showed up where code could not reveal the answer: abandoned approaches, superseded decisions, and conventions outside source code.
Read the full methodology and caveats in docs/eval-results.md.
go build -o mainline .
make quick-test
make test
make lint
Core subsystems are covered with property-based tests. The fast PR gate is
make quick-test; broader PBT coverage is documented in
docs/reference.md.
Mainline is in public alpha. The CLI, skill, hooks, Hub, and Git refs / notes storage model are usable today, but the schema, agent workflow guidance, and Hosted Hub experience are still evolving.
Mainline is a good fit for teams that already use agents in real engineering workflows and are starting to worry about context getting lost. Feedback is welcome.
Mainline uses a layered licensing model. The local CLI, agent skills, hooks, adapters, libraries, and protocol specs are intended to be open and embeddable. Docs and examples are licensed for reuse with attribution. Hosted service surfaces and brand assets remain separate.
See docs/reference.md and LICENSE for details.