Atomicreps

io.github.atomicrepsv0.1.0更新於 Oct 1, 2026

Retrieval practice in your coding agent: one short question about what you just built.

已驗證Streamable HTTP可網頁執行Developer ToolsProductivity & WorkflowKnowledge & Memory

概覽

AI 產生的概覽

為編碼助理加入檢索練習:任務結束後,助理就你剛建置的內容問一個簡短問題。

功能
當編碼助理完成任務時,會呼叫一次 rep 並附上幾句關於變更內容的說明;伺服器挑選一個問題或什麼都不選,助理原樣顯示給你(R18、R19)。工具包括 rep、answer、me 與 settings:rep 提供問題、洞見或空結果,answer 傳回判定與解釋,me 報告 summary、skills、reps、streak 或 mutes,settings 控制頻率、主題、難度範圍、偏好領域、靜音與對話框(R33-R40)。伺服器自行控制節奏,設有最小間隔、每日上限、靜音與關閉,拒絕在提問後幾秒內輸入的答案,且從不包含答案(R27-R30)。
適用情境
適合想在你已使用的編輯器內,針對剛寫的程式碼進行輕量間隔檢索練習的開發者,不必離開聊天。適合想就 React、Swift 等主題偶爾收到簡短問題並自行控制出現頻率的人。它不是程式碼審查、文件或搜尋工具。
執行需求
需要 Node 24+ 與免費帳號(R4)。以本機 stdio 程序執行,透過 npx atomicreps mcp 啟動,或使用 atomicreps.com 遠端端點;清單未宣告任何環境變數或標頭。登入需在 atomicreps.com/connect 輸入終端顯示的代碼(R56、R57)。可用於 Claude Code、GitHub Copilot、Cursor、Codex 或任何 MCP 用戶端(R3)。
安裝前請注意
登入會產生權杖,儲存在 ~/.config/atomicreps/config.json(權限 0600),並隨每則 JSON-RPC 訊息轉送給 Atomic Reps 伺服器(R52、R58);可從帳號頁面撤銷(R59)。ATOMICREPS_API 僅在指向 Atomic Reps 或回送位址時生效,設定 ATOMICREPS_UNSAFE_ORIGIN=1 可覆寫該檢查(R54、R55)。呼叫 rep 時會送出帶小權重的目錄代號,以及公開目錄已知的套件、副檔名與資料夾名稱;touched 詞彙在本機比對、本身不會送出,私有名稱以公開別名送出(R45-R49)。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 Atomicreps,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Web executable,透過 Streamable HTTP。 遠端服務在工作區中設定後即可從網頁執行環境執行。

其他 MCP 客戶端

把它新增到你客戶端的 mcpServers 設定中。

{
  "mcpServers": {
    "atomicreps": {
      "type": "http",
      "url": "https://atomicreps.com/mcp"
    }
  }
}

README

atomicreps

One short question about the thing you just built. Works inside Claude Code, GitHub Copilot, Cursor, Codex, or any MCP client.

Requires Node 24+ and a free account. On an older Node, every command prints the version it needs instead of starting.

npx atomicreps            the terminal screen: you, this session, topics, mutes, ratenpx atomicreps setup      first-run wizard: areas, topics, how often, how hardnpx atomicreps login      sign in from a browser with a typed codenpx atomicreps connect    register the server with your editornpx atomicreps connect --pin   pin the launch args to this installed version, for a command you can commitnpx atomicreps mcp        the stdio MCP server process (what the editor launches)npx atomicreps doctor     token, server ping, version, when the next rep may come, allowlistnpx atomicreps logout     forget the token on this machinenpx atomicreps logout --purge   also forget your reps and status, and offer to undo connect

Add --alpha to any command to use staging. It keeps its own token and cache, so you can be signed in to both staging and production at once.

Plain connect writes npx -y atomicreps mcp, which always resolves to whatever is latest at launch. connect --pin writes npx -y atomicreps@<version> mcp instead, the version this CLI is running, so an organisation can review one exact command and commit it rather than trusting npx to fetch the same thing twice.

GitHub Copilot

npx atomicreps connect offers VS Code and Copilot CLI as rows. Without it:

code --add-mcp '{"name":"atomicreps","type":"stdio","command":"npx","args":["-y","atomicreps","mcp"]}'copilot mcp add atomicreps -- npx -y atomicreps mcp

Copilot in JetBrains, Visual Studio, Xcode and Eclipse reads the same entry from its own mcp.json (Settings, then MCP). A team can commit it as .vscode/mcp.json so every clone has it:

json
{  "servers": {    "atomicreps": { "type": "stdio", "command": "npx", "args": ["-y", "atomicreps", "mcp"] }  }}

Copilot reads the server's instructions and calls rep when a task ends, the same as Cursor and Codex. Approve the four tools once and they stay approved.

How a rep is served

When your coding agent finishes a task, it calls rep once with a few words for what changed. The server picks one question, or nothing, and your agent shows it to you unchanged. Reply with a letter, or ignore it.

Under the verdict, one line names up to three other things the session touched. A number asks about one of them. "Never Swift" mutes a topic permanently. "Not this topic" mutes it for thirty days. "Unmute Swift" removes the mute. "How am I doing" prints your summary.

The server enforces the pace, not the agent. It sets a minimum gap between automatic reps, a daily cap, and mute and off. It refuses an answer typed within seconds of the question. It never includes the answer key in a rep. Every failure returns no rep rather than an error; doctor says why.

Tools

toolwhat it does
rep({ touched?, ask?, topic?, kind?, exclude? })one question, one insight, or nothing; ask takes a handle from an offer
answer({ pick, id? })the verdict, the explanation, and the offer line
me({ show? })summary, skills, reps, streak or mutes
settings({ intensity?, topics?, levels?, prefer?, mute?, muteMinutes?, days?, unmute?, dialog? })the rate, the pinned topics, the difficulty range, the preferred areas, mutes, the dialog

Handles are topic or topic.subskill (react.hooks_core). Fifty sub-skill slugs repeat across topics, so the topic is always part of the name.

settings({ dialog: true }) asks for the letter in your editor's native dialog instead of the chat. It blocks the turn, so it is a setting, never the default.

Privacy

What leaves your machine on a rep call: catalog handles with small weights. Also package, file extension and folder names the public catalog already knows. Your agent's touched words are matched to handles on your machine; the words themselves are never sent. An unknown package name is dropped. A private name (@acme/react-internal) is sent as its public alias (react). We never send your code, a file's contents, or a prompt. npx atomicreps setup prints the exact payload for your repo, before you sign in.

npx atomicreps mcp forwards each JSON-RPC message from your editor to the Atomic Reps server with your token. The answer comes back the same way. ATOMICREPS_API is honoured only for an Atomic Reps or loopback address, since your token goes wherever it points. Anything else is ignored and reported by doctor; set ATOMICREPS_UNSAFE_ORIGIN=1 to override.

Login

npx atomicreps prints a code. Type it at atomicreps.com/connect while signed in; a forwarded link approves nothing. The token is saved in ~/.config/atomicreps/config.json (mode 0600), prefixed arep_ so secret scanners find it. You can revoke it from your account page. logout forgets it; logout --purge also deletes the reps and status this machine cached, then lists every editor entry connect wrote (both channels) and removes the ones you leave ticked.

The trust boundary, and how to report a vulnerability: SECURITY.md.

Check it yourself

dist/cli.js is built from these files and nothing else. The package has no runtime dependencies.

npm installnpm run build    # writes dist/cli.js from srcnpm test         # the behaviour described above, as tests

To compare with what npm serves: npm pack atomicreps, then read its dist/cli.js beside the one you just built. Everything the client sends is in src/api.ts. Everything it reads from your repository is in src/infer.ts.

MIT.

來源:README.md,提交 df3660b

工具

0
工具後設資料尚未被收錄。

版本歷史

1
  1. v0.1.0最新Oct 1, 2026