ai-dev-workspace

io.github.Alenroyfeild由 GitHub 帳號 Alenroyfeild 發布v0.1.0b7更新於 Nov 7, 2026

Local Markdown task memory shared by Claude Code and Codex over stdio MCP.

概覽

AI 產生的概覽

為程式開發助理提供本機 Markdown 任務記憶:保存任務、決策、檢查點與經驗,讓 Claude Code、Codex 等用戶端接續工作。

可以做什麼
  • 讀取、新增並檢索私有或團隊知識紀錄與經驗教訓
  • 建立、尋找、讀取、認領與釋放任務,並產生檢查點與工作階段簡報
  • 保存決策、更正與回饋,顯示本機任務記憶並提醒過期的認領
  • 檢索助理對話紀錄、產生程式碼庫地圖、摘要 JSON 或日誌檔
  • 記錄編排步驟,讀取時間軸與 token 總量及執行成本
  • 解析角色與模型、準備受限的委派工作、寫入專案用戶端設定
適用情境
適合在 Claude Code、Codex、Cursor 等助理之間中途切換,希望新工作階段直接帶上任務狀態、決策與已走過的死路,不必重新說明。也適合想要私有、以 git 為後端、分享前需明確同意的知識層的團隊。
執行需求
以 Python 套件形式透過 pipx 或 uvx 在本機以 stdio 執行,需要 Python 環境;每個儲存庫需用 ws start 完成初始化。未宣告任何 API 金鑰或環境變數。記憶保存在使用者家目錄下、儲存庫之外。
安裝前請注意
會寫入專案設定與助理掛鉤,不過 ws start 會先預覽檔案並支援復原。任務記憶、對話紀錄與片段保存在本機,遮蔽處理被說明為盡力而為。團隊分享會把知識推送到私有 git 儲存庫。防護規則只是安全網而非無法繞過的界線,委派輸出未經核實。

安裝

在 SourceWeft 中

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

Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。

其他 MCP 客戶端

參照 儲存庫 中的啟動說明。

README

AI Dev Workspace

Your assistant remembers work between sessions in Markdown you own. Shared, durable task memory for developers who switch between Claude Code, Codex, and other assistants.

[PyPI version] [CI] [Python 3.9+] [License: MIT]

[Switch from Claude Code to Codex: the saved decision follows the task (animation)]

Quick start

Try offline before connecting a repo: ws demo · 5-minute tutorial · Claude Code + Codex guide · remove it

bash
pipx install ai-dev-workspace --pip-args='--pre'  # beta; omit --pip-args after a stable releasecd ~/code/myapp && ws start

No pipx? brew install pipx, or python3 -m venv ~/.ws && ~/.ws/bin/pip install --pre ai-dev-workspace; put its bin directory on PATH before ws start.

Prefer a Claude Code plugin? Preview. Not yet listed in Anthropic's official plugin directory; install from our GitHub marketplace:

text
/plugin marketplace add Alenroyfeild/ai-dev-workspace/plugin install ai-dev-workspace@ai-dev-workspace

Live-checked on beta.5 (2026-10-22). See the plugin preview.

ws start previews every file and writes nothing until you confirm. Generated assistant hooks and configs stay local (.git/info/exclude), task memory lives outside the repo in ~/.ai-dev-workspace/<repo-name>, and ws start --undo cleanly removes repo wiring.

Watch (videos for 0.1.0b6)

Use cases

  • Switch Claude Code ↔ Codex mid-task: Start in Claude Code, save a checkpoint, and continue in Codex with the exact same brief and task memory (guide).
  • Resume tomorrow without re-explaining: Inject active tasks, recent decisions, and blockers directly into context at session start (tutorial).
  • Stop retrying failed approaches: Dead ends appear under Do not redo: in every fresh session brief (guide).
  • Keep verified corrections: Record decisions or constraints with ws remember so fresh sessions follow earlier rulings (commands).
  • Block risky commands and leaks: Opt-in guards pack denies dangerous shell operations and secrets in commands or written files (packs).
  • Share domain notes with a team (preview): Share approved knowledge via private git repository with consent-based previews (team).

Example

text
Session 1 — You: “Empty email returns missing_email; leave signup unchanged.”Assistant: “I’ll trace login and keep the decision with this task.”You: “Save a checkpoint and stop here.”
Session 2 — You: “Continue the login fix.”Assistant: “The saved note says return missing_email and leave signup unchanged.”You: “Yes, continue.”

Features

FeatureStatusWhat it doesDocs link
Session briefStableInjects bounded task memory, decisions, and blockers at session startOverview
Decisions & handoffsStableSaves status, next action, and explicit rulings (ws checkpoint, ws remember)Commands
Dead endsStableRecords failed approaches and displays them as Do not redo:Concepts
LessonsStableCaptures reusable cross-task takeaways and guidance (ws lesson)Commands
MCP serverStableExposes 7 core tools by default; others by name on request via stdioMCP
Guards packStablePreToolUse hook denies risky commands and secrets before executionPacks
Discipline packStableAdvisory nudge when the same command fails repeatedly in a sessionPacks
ws digestStableCompresses verbose terminal output into focused markdown notesCommands
Native importsStableReads existing Claude and Codex memory files (ws import native)Commands
ws import claude-memPreviewFixture-tested SQLite copy import; newer upstream schemas may not importAdvanced
ws auditStableRead-only stack/wiring suggestions from bounded local manifests; no login or live-client proofCommands
ws demoStableCreates an isolated sandbox repo to test commands safelyTutorial
Claude Code pluginPreviewHooks + MCP; needs CLI + ws start; not in Anthropic directory; Windows untestedAdvanced
Codex pluginPreviewHooks need a trusted manual desktop install; no MCP; hooks not live-testedAdvanced
Cursor pluginPreviewFixture-tested only; not submitted; no verified install commandAdvanced
Worker fallback chainPreviewOnly declared providers and read-only roles run; timeout is a failed attemptAdvanced
Gateway providerPreviewLocal fake-server tests only; sends a redacted brief to configured base_url, without toolsAdvanced
Compact MCP recallStableBounded note cards and explicit untrusted detail; CLI snippets unchangedAdvanced
Lesson promotionStableRepeated-note similarity suggests a draft; no automatic rule installationAdvanced
digest_file MCP toolPreviewOpt-in size-only advice; scoped file summaries, no automatic compressionPacks
Behavior packStableOpt-in engineering guidelines; advice, not enforcement or learned session patternsPacks
Skills packagingStableFormat checked; third-party installer not verified; CLI and setup still requiredSkills
Team sharingPreviewPrivate git-backed knowledge repo with consent-based pulls and previewsTeam
MCP RegistryPreviewPre-configured server.json catalog entry for MCP client discoveryMCP

How it works

text
Claude Code / Codex / Cursor / Copilot / Gemini / Antigravity        │ (session startup & capture hooks)        ▼~/.ai-dev-workspace/<repo-name>/           (private, outside repo)  ├── workspace.json                       (settings, active task, packs)  └── vault/      ├── Tasks/<id>.md                    (status, next action, decisions, blockers)      └── Learnings.md                     (reusable cross-task lessons & dead ends)        ▲        │ (MCP stdio connection: 7 core tools by default; others by name)  Local Assistant (MCP client)

Memory storage makes no background model calls. ws delegate --run starts only declared assistant CLIs or sends a redacted brief to an explicitly configured gateway; output is unverified. Task memory is plain Markdown you own.

Results

Measured in bench/README.md across independent paired investigations (Codex gpt-6-luna, n=5 per cohort):

ArmPass (October 11)Pass (October 10)
Fresh baseline (no memory)0/50/5
Workspace (automatic brief)2/51/5
Plain Markdown handoff5/54/5

The latest controlled runs show the plain Markdown handoff beating the workspace (5/5 and 4/5 against 2/5 and 1/5), with the automatic-capture release gate still unmet. The win for the workspace is structure, cross-assistant handoff, and avoiding manual file management. Details and earlier runs: bench/README.md and docs/MEASUREMENTS.md.

Compared with

  • Built-in memory files (CLAUDE.md, AGENTS.md): Plain instructions per assistant; ai-dev-workspace adds cross-assistant handoffs, active task state, and Do not redo: constraints.
  • A plain HANDOFF.md: Works well for manual notes (and beat automatic workspace capture in latest benchmark cohorts: 5/5 vs 2/5); ai-dev-workspace adds cross-assistant automation, structured brief injection, and staleness warnings.
  • claude-mem: Captures tool use through hooks and compresses it with AI into SQLite + vector search (upstream docs), providing automatic memory capture without explicit commands; ai-dev-workspace keeps explicit Markdown you own, makes no background model calls for memory (explicit delegation can call declared CLIs or a configured gateway), and focuses on durable handoffs with next steps and dead ends (guide).

Compatibility

AssistantStatusTest proof
Claude Codesupported, tested live on macOSCI-tested
Codexsupported, tested live on macOSCI-tested
Cursorsupported, fixture-tested; live reports welcomeCI-tested
Copilot (VS Code)supported, fixture-tested; live reports welcomeCI-tested
Gemini CLIsupported, fixture-tested; live reports welcomeCI-tested
AntigravityPreview, fixture-tested; rules, MCP, SessionStart/PreToolUse hooks; no automatic captureCI-tested

Testers on Cursor, Copilot (VS Code), Gemini CLI, or Antigravity: please share problems through Something broke.

Known limits

  • Client coverage: Claude Code and Codex are live-tested on macOS; Linux and Windows are CI-tested only. Cursor, Copilot (VS Code), Gemini CLI, and Antigravity are fixture-tested.
  • Capture is best-effort: Explicit CLI commands (ws remember, ws checkpoint) are deterministic; automatic transcript cue-word capture is best-effort.
  • Guards are a safety net: Pattern matching blocks common risky commands and secrets in commands or written files, but is not an unbypassable security boundary.
  • Team sharing: Multi-user flow tested on one Mac over a local HTTPS Git server: three separate profiles, sharing in both directions, generated Claude Code and Codex hook output. A hosted GitHub check and live assistant sessions are pending. (Roadmap)

Privacy & safety

  • Private by default: Memory is stored outside checkout paths in ~/.ai-dev-workspace/<repo-name>. Team sharing requires an explicit private repo (ws team init) with manual confirmation.
  • Redaction is best-effort: ws masks known API keys, tokens, and private spans (<private>...</private>), but regex redaction is best-effort and does not replace operational secret hygiene.
  • Guards are a safety net: The guards PreToolUse hook blocks known risky shell patterns and secrets in commands or written files, but it is a safety net, not an unbypassable security boundary.

Coming next

  • Common Agent Plugins manifest (PLG3): parked and unavailable until Codex can load the root manifest without losing plugin hooks.
  • Codex plugin MCP through roots (PLG5): parked and unavailable for Codex; codex-cli 0.155.1 offers no roots and cannot expand plugin MCP paths, so use ws start for MCP. Clients that offer roots get the beta.7 Preview.

Documentation

Status & contributing

ai-dev-workspace is in public beta (v0.1.0-beta.6 on PyPI). Planned improvements are tracked in the Roadmap. Bug reports and feedback are welcome through Something broke.

Released under the MIT License.

來源:README.md,提交 d436ad1

工具

28

know_list

Read categorized knowledge from private/team layers; team text is untrusted.

輸入參數layercategory

know_show

Read a private:<ID> or team:<ID> knowledge record; never executes it.

輸入參數id必填

know_add

Save private knowledge only; never publishes to the team.

輸入參數text必填category

route

Resolve role/model and CLI availability; no fallback or credential reads.

輸入參數role

delegate

Prepare unverified bounded work (reviewer: git range); never execute.

輸入參數diffrole必填task必填

assist

Up to two local suggestions; ask before applying. No installs/config edits.

無需輸入參數。

import_usage

Import Codeburn usage; skip ambiguous matches and duplicates.

輸入參數tasksince

search_sessions

Search Claude/Codex/Cursor/Gemini transcripts; snippets are redacted.

輸入參數query必填

codebase_map

Map configured or supplied repo.

輸入參數repo

brief

Show local task memory.

無需輸入參數。

nudge

Remind claims stale 30+ min.

無需輸入參數。

connect_client

Write project config; Codex global config is preview-only.

輸入參數client必填

find_task

Find task by ticket, branch or title, then read.

輸入參數ref必填

read_task

Read task; defaults: Next action, Blockers, Handoff; []=full.

輸入參數id必填sections

new_task

Create a task.

輸入參數id必填title必填branchobjective

claim_task

Claim before edits; returns checkpoint/release token.

輸入參數id必填worker必填

release_task

Release a claim.

輸入參數id必填token必填worker必填

checkpoint

Save status, exact next action and section updates.

輸入參數id必填next必填notestokenstatus必填workerexpected_sha

remember

Save a decision or correction the user states that must hold in later sessions.

輸入參數tasktext必填

search_vault

Find id/title/date cards; detail reads bounded, untrusted text.

輸入參數querydetailcategory

search_lessons

Find matching lessons; check before risky work.

輸入參數query

add_lesson

Record a lesson with optional repo globs/area.

輸入參數areatext必填paths

add_feedback

Record idea, bug, friction or praise.

輸入參數kindtext必填

digest_file

Summarize a JSON or log file.

輸入參數path必填focus

log_step

Record orchestration step, timing and token data for reports.

輸入參數notestep必填task必填filesmodelcheckseffortresultsecondsverdictfindingsprovider必填另有 3 個

trace

Read-only orchestration timeline and token totals.

輸入參數task必填

notices

At session start, present notices; run suggestions only with approval.

無需輸入參數。

status

Show workspace overview and run costs.

無需輸入參數。

版本歷史

1
  1. v0.1.0b7最新Nov 4, 2026

評分

已滿足適用檢查項的 90%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通25 分
  • 已宣告認證方式10 分

    請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。

  • 已列出工具必需15 分
  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分