@agentic-workspace/workspace-cli

中文文档
1.19.1发布于 2026/11/07MITTypeScriptES Module零依赖构建来源已验证近 30 天下载 2187

Persistent operating context and dynamic control for coding agents.

原始使用文档
文档目录10 节
  1. Why AW?
  2. How it works
  3. Trust and support
  4. Get started
  5. Your repository, your rules
  6. Add structure where it helps
  7. Works with agents rather than replacing them
  8. Learn more
  9. Contributing
  10. Licence

Agentic Workspace

PyPI npm crates.io

Persistent, task-relevant project context for coding agents.

Agentic Workspace (AW) is an open-source developer tool you add to a Git repository to give coding agents persistent, task-relevant project context across sessions.

AW provides skills and command-line tools for finding project guidance, saving unfinished work and lessons, and checking whether earlier verification still applies.

Keep your existing coding agent, editor, source tree, tests and review process. Your project can use any programming language or framework.

Get started · Customise repository behaviour · Everyday use · Documentation · Releases

Why AW?

Knowledge about a repository belongs with the repository. Useful project knowledge should survive a change of session, developer or agent provider, rather than remain trapped in private conversations.

Not everything about a repository is relevant all the time. Loading all accumulated guidance and state into every session replaces rediscovery with context overload.

Scoped instructions and on-demand skills are useful foundations. Instructions set rules; skills explain reusable procedures. Neither an ever-longer instruction file nor a growing skill catalogue, by itself, keeps track of where a task stopped or whether earlier evidence still applies.

AW builds on both with saved task records, lessons and verification evidence, plus tools for reading and updating them. The aim is to reduce the cost of completing and maintaining work:

Team benefitHow AW helps
Less repeated investigationFind relevant rules, sources and reusable procedures without loading unrelated guidance.
Cheaper continuation and handoffsPreserve intent, accepted progress and remaining work; give the receiving agent the relevant constraints and expected result.
Fewer repeated explanationsSave project corrections as scoped instructions and useful lessons as advice for later work.
More focused verificationFind relevant checking procedures, reuse evidence when it still applies and identify what remains unverified.
Less dependence on one agent providerKeep shared project context in the repository rather than one provider's conversation history.

Small tasks stay small. A typo fix does not need Planning, Memory, Verification, delegation, or another artefact merely because those capabilities are available.

How it works

A small entry in AGENTS.md points to the repository's workspace-startup skill. It teaches the agent when to read project sources, load a specialised procedure or query AW's tools.

The Rust-backed runtime reads applicable rules and saved records, reports relevant requirements and available operations, and checks current sources and permissions before supported updates. The agent still makes implementation decisions and uses its ordinary development tools.

Find the relevant context → Do the work → Update what matters

Source code, documentation, tests and decisions stay in their existing homes. AW points agents to those sources and saves useful working context alongside them, rather than copying the repository or the conversation into a second knowledge system.

Everyday examples · Product model · Architecture

Trust and support

AW is not a sandbox. Repository-configured commands run with the caller's filesystem access and credentials. Review the repository and the commands it can run before allowing them to execute. Credentials belong in the agent host or environment's credential facilities, not in checked-in AW files.

AW's controlled operations and checking support do not replace human judgement, independent review, or existing security controls.

Exact package identities, installation commands, runtime versions, operating-system support, and prerelease/stable status live with the selected release and generated references instead of being copied into this landing page.

Installation and setup · Threat model · Evidence and support

Get started

Use a Git working tree and an agent that can read repository instructions and run commands. The machine must be able to run a supported AW distribution; your project's language and build system need not match it.

  1. Install AW through npm, Python/uv, Cargo or a standalone release, either per repository or as a shared tool. Standalone binaries do not require a language toolchain. See the Getting started guide for platform requirements and installation commands.
  2. From the Git working-tree root, run agentic-workspace setup using that installation and authorise the proposed integration. For a repository-local npm installation, use npm exec --no -- agentic-workspace setup.
  3. Give your agent an ordinary task, such as correcting a documentation error.

Installation supplies the runtime; setup adds the .agentic-workspace/ directory and a small AGENTS.md pointer. Review and commit the shared integration files, leaving ignored local state alone. Project rules and checking procedures still need to be defined; setup does not infer them.

Your repository, your rules

AW is designed to fit around the project rather than reorganise it.

A simplified repository using AW looks like this:

your-repository/
├── AGENTS.md              # Small AW-managed entry point inside your project file
├── src/, docs/, tests/    # Existing project contents
└── .agentic-workspace/    # AW integration plus optional saved component state

AW setup deliberately adds only a small set of files. Package-managed skills and setup metadata stay separate from your project's configuration, component records, machine-local data, and any output deliberately written back into the repository.

You can express a repository-wide correction in ordinary language:

For this repository, read the API contract before changing public response fields.

Or make the scope explicitly local:

Only on this machine, use this executable path when invoking AW.

The agent can save the change in the appropriate instruction or configuration file and verify that it was retained. A promise in chat is not a saved rule, and a local preference should not silently become shared repository policy.

Reusable methods belong in skills. Binding rules belong in instructions or configuration. Current work and evidence stay with the components that maintain them.

Setup, refresh, and removal use the same declared file set. Removing AW deletes only integration files that AW can verify it owns, preserves project configuration and saved component records, and refuses to erase edited or unrelated content merely because it sits under an AW path.

Configuration reference · Repository files

Add structure where it helps

AW includes optional first-party capabilities for recurring coordination costs:

Planning preserves unfinished work: intended outcome, constraints, progress, blockers, and next action.

Memory retains useful observations and lessons that would otherwise be expensive to rediscover. Advice can be reconsidered when its dependencies change; a note is not automatically policy.

Verification makes checking procedures, evidence, and known gaps reusable. Passing a check supports the claim it actually tests, not every claim about the finished work.

These are optional components, not mandatory workflow stages. Repositories can use what repays its cost and leave unrelated capabilities out of the current task's context.

Repository-specific rules and procedures do not require a new module. Modules are for distinct capabilities with their own responsibilities, including read-only facts; saving state is optional.

Modules and extensions →

Works with agents rather than replacing them

Agentic Workspace is not an autonomous coding agent. It gives the agent already working in the repository better project context and controlled ways to read or update AW-managed information.

An agent with runtime access can query the current records maintained by AW components and use supported operations. A repository-only reviewer can follow the same startup skill and generated read profile to recover recorded goals, constraints, progress, and advice, while live machine state, current test results, and permission to make changes remain unknown.

The product's shared behaviour lives in one Rust core. Native, Python, TypeScript, and JSON interfaces call that same implementation instead of defining separate workflow behaviour. The host project's implementation language does not need to match AW's runtime implementation.

Host integrations still differ. Provider independence does not mean every agent host discovers skills identically or every model follows repository guidance perfectly; current support and evidence remain release- and environment-bound.

Evidence and support →

Learn more

Use AW: Installation and adoption · Everyday use · Configuration

Understand AW: Product overview · Architecture · Design principles · Modules

Look up details: CLI reference · Installed surfaces · Full documentation

Contributing

For changes to Agentic Workspace itself, start with the contributor playbook. Use the repository's issue templates to report a problem or propose a change.

Contributions should make useful work easier to complete, continue, or verify while keeping unnecessary context, framework surface, and repository residue low.

Licence

MIT.

版本与发布记录

@agentic-workspace/workspace-cli 共发布 40 个版本,首次发布于 2026/09/18;过去 12 个月发布了 40 个版本。最新版本附带 npm provenance 构建来源证明,可追溯到公开的 CI 构建记录。

版本发布日期距今
1.19.1latest2026/11/071 天前
1.19.02026/11/061 天前
1.18.02026/11/035 天前
1.17.02026/10/308 天前
1.16.12026/10/2810 天前
1.16.02026/10/2316 天前

其他发布通道:rc → 1.0.0-rc.7。

关于 @agentic-workspace/workspace-cli 的常见问题

@agentic-workspace/workspace-cli 是什么?

Persistent operating context and dynamic control for coding agents.

如何安装 @agentic-workspace/workspace-cli?

在项目目录运行 npm install @agentic-workspace/workspace-cli,或使用 pnpm add / yarn add / bun add。它还提供命令行工具 agentic-workspace,可以用 npx agentic-workspace 直接运行。

@agentic-workspace/workspace-cli 支持 TypeScript 吗?

支持。包内自带 TypeScript 类型声明(package.json 声明了 types 入口),安装后即可获得类型提示,无需再安装 @types 包。

@agentic-workspace/workspace-cli 支持 ESM 还是 CommonJS?

以 ES Module 形式发布,推荐使用 import 引入。在 CommonJS 项目中,Node.js 20.19+ / 22.12+ 可以直接 require() 不含顶层 await 的 ES Module,更早的版本需要改用动态 import()。

@agentic-workspace/workspace-cli 需要什么版本的 Node.js?

package.json 的 engines 字段要求 Node.js >=20。版本不符时 npm 默认只给出警告,开启 engine-strict 后会拒绝安装。

@agentic-workspace/workspace-cli 可以商用吗?

@agentic-workspace/workspace-cli 使用 MIT 许可。宽松许可:允许商业使用、修改和再分发,通常只需在分发时保留原版权与许可声明。以上为概括,不构成法律意见,请以许可原文为准。

@agentic-workspace/workspace-cli 的下载量有多少?

根据 npm 官方下载统计,@agentic-workspace/workspace-cli 在 2026/10/05 – 2026/11/03 这 30 天内被下载 2,187 次,日均约 73 次。下载量会把 CI 构建、镜像同步和作为其他包依赖的安装一并计入,适合横向比较热度,不能直接等同于使用人数。

@agentic-workspace/workspace-cli 还在维护吗?

最新版本 1.19.1 发布于 2026/11/07(1 天前);至今共发布 40 个版本,其中过去 12 个月发布了 40 个;首次发布于 2026/09/18。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。