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 分