@askexenow/exe-os

中文文档
0.9.415发布于 2026/10/28SEE LICENSE IN LICENSEES Module近 30 天下载 4716

AI employee operating system — persistent memory, task management, and multi-agent coordination for Claude Code.

原始使用文档
文档目录10 节
  1. What this repo is for
  2. Architecture at a glance
  3. Repo map
  4. Key commands
  5. Development workflow
  6. Test and CI notes
  7. Publish and release
  8. Operational gotchas
  9. Security checklist for reviews
  10. License

exe-os

AI employee operating system for AskExe: local-first memory, identity, task orchestration, and runtime glue for managing AI teammates through Claude Code, Codex, OpenCode, and the emerging desktop/runtime stack.

Current npm package: @askexenow/exe-os v0.9.341. Node.js >=20 required.

What this repo is for

exe-os lets a founder run an AI org instead of a single chat session:

  • A coordinator agent owns the founder conversation and delegates through tracked tasks.
  • Specialists run in isolated tmux/worktree sessions with persistent identity, behaviors, and memory.
  • The local daemon, MCP server, hooks, and CLI keep sessions, reminders, reviews, cloud sync, and diagnostics connected.
  • Customer data stays local-first and encrypted; cloud sync is end-to-end encrypted when enabled.

Hard constraints for every change:

  • MCP is the only data interface. Never access the SQLCipher DB directly.
  • Preserve customer data sovereignty. Updates must not overwrite identities, behaviors, procedures, rosters, local memory, or user config.
  • No secrets in code, logs, tests, telemetry, or bug reports.
  • No require() in runtime ESM TypeScript under src/lib, src/mcp, or src/tui; use ESM imports.
  • Every task/review/message/notification query must filter by session_scope.
  • No hardcoded employee names. Use role/config resolution, not AskExe's local roster.

Architecture at a glance

User / founder
  -> coordinator agent session
     -> managers / specialists via task DB + tmux sessions

Claude Code / Codex / OpenCode
  -> hooks + MCP tools
     -> exe daemon
        -> encrypted local memory/tasks/identity/behavior store
        -> optional E2EE cloud sync
        -> gateway / stack integrations

Key pieces:

  • MCP server (src/mcp) exposes the supported tool surface for memory, tasks, identity, behavior, support, diagnostics, config, documents, CRM/raw data, and gateway actions.
  • Daemon (src/lib, src/services) supervises sessions, timers, task enforcement, intercom delivery, sync, diagnostics, and local state.
  • Adapters (src/adapters) integrate with Claude Code, Codex, and OpenCode through hooks and launcher behavior.
  • CLI commands (src/bin, src/commands) install, launch, diagnose, update, release, preflight, sync, and operate the stack.
  • Runtime/TUI (src/runtime, src/tui) are legacy/current terminal runtime surfaces; the architecture doc notes the legacy Ink TUI is frozen while the product direction moves toward the native exe-build/desktop chat runtime.
  • Stack deploy (deploy) contains compose, manifests, observability, registry proxy, nginx, migrations, and customer VPS deployment assets.

Cognition layers used by agents:

  1. Company procedures: org-wide rules.
  2. Identity: role definition and non-negotiables.
  3. Behaviors/expertise: learned corrections and skills.
  4. Experience/memory: searchable history and decisions.
  5. Prospective items: future-condition memory/reminders surfaced at boot.

Repo map

PathPurpose
src/lib/Core daemon/runtime libraries: memory, tasks, identity, behaviors, search, sync, config, orchestration.
src/mcp/Consolidated MCP server and tool implementations. This is the supported data/control boundary.
src/adapters/Claude/Codex/OpenCode integration hooks and adapter glue.
src/bin/CLI entrypoints published through package.json#bin.
src/commands/Command implementations for exe-os, setup/update/release flows, diagnostics, etc.
src/runtime/Agent runtime/tool registry pieces.
src/tui/Legacy Ink TUI surface; avoid new product investment unless explicitly tasked.
src/gateway/Gateway/provider adapters and external messaging integration code.
deploy/Customer stack compose files, manifests, migrations, nginx, observability, registry proxy, Ansible.
deploy/stack-manifests/Customer-facing stack manifests; images must be digest-pinned.
packages/Shared UI/theme/health/error-page packages.
tests/Vitest suites, smoke tests, deploy tests, integration tests, orchestration tests.
scripts/Build locks, guards, schema checks, stack simulation, preflight helpers.
.planning/ARCHITECTURE.mdSource of truth for current architecture and shipped progress. Future roadmap belongs in MCP support feature records, not markdown.
release-notes.jsonCurrent npm release notes shown after updates.
stack.release.jsonStack release descriptor for customer/VPS participation.

Key commands

Customer/operator commands published by this package:

CommandUse
exeLaunch the configured coordinator agent.
exe-osMain CLI/dashboard entry.
exe-os setupFirst-time setup wizard: encryption, license, team, hooks, MCP, daemon.
exe-os updateRecommended interactive update path for installed systems.
exe-os healthcheck / exe-healthcheckHealth check for daemon, memory, cloud/sync, retrieval, and runtime state.
exe-doctorDeeper diagnostics.
exe-pending-reviewsShow review queue; use before claiming work is idle/done.
exe-pending-messagesShow pending inter-agent messages.
exe-config-dumpRead-only effective config dump with secret redaction.
exe-timersTimer health dashboard.
exe-search-qualityRetrieval quality/latency telemetry.
exe-stack-updateCustomer stack image update flow. Run only with explicit approval.
exe-preflightStack/client production preflight checks.
exe-cloudCloud sync/linking commands. Never print recovery phrases in agent output.

Useful local checks:

npm run typecheck
npm run lint
npm test
npm run test:daemon-smoke
npm run test:stack-sim
npm run guard:esm-require
npm run check:schema-version
npm run build

Development workflow

Install dependencies:

npm install

Before coding:

  1. Read the task brief and source docs.
  2. Use code-context/MCP search when available before broad manual grep.
  3. Keep diffs surgical; do not reformat unrelated files.
  4. Do not touch customer-local data, identities, behaviors, procedures, or rosters.

Standard validation:

npm run typecheck
npm test
npm run build

Targeted validation is acceptable for small changes, but release/merge gates require the relevant full checks. For runtime/daemon-critical work, also run:

npm run guard:esm-require
npm run test:daemon-smoke

Build details:

  • npm run build uses scripts/build-lock.sh, then copies runtime assets into dist/ and generates hook manifests when possible.
  • npm run deploy builds, installs this checkout globally, and restarts/re-registers pieces. It disrupts active MCP sessions; do not run it casually.
  • postinstall runs command-only install behavior so global installs expose CLIs without overwriting customer data.

Test and CI notes

  • Main test runner: vitest run.
  • test:publish is the required publish gate subset plus selected serialized stress/gateway tests.
  • Tests that touch support/bug/feature upstream paths must mock fetch; never create live support records from tests.
  • Docker/live-DB tests may be quarantined in test:publish; read the script comments before assuming a missing test is accidental.
  • CI must be green on the exact commit before merge/release.

Publish and release

NPM publish gate:

npm run prepublishOnly

That runs typecheck, build, orphan chunk pruning, ESM require() guard, schema version check, customer-readiness, and pre-publish checks.

Normal local package update path for users:

npm install -g @askexenow/exe-os@latest
# or use the interactive path
exe-os update

Customer stack releases are separate from npm package releases:

  • release-notes.json currently tracks npm v0.9.341.
  • stack.release.json currently describes stack/source v0.9.312 and includes TODO notes for private GHCR app image digest resolution.
  • Customer stack manifests/images must be SHA256 digest-pinned. Do not promote tag-only app images to customer releases.
  • Production stack updates must preserve named Docker volumes and customer state; never use docker compose down -v or remove data volumes.
  • Stack image release should go through the documented exe-os release --stack flow, Bob/customer-readiness audit, preflight, pinned images, and health verification.

Operational gotchas

  • MCP only. If MCP is disconnected, reconnect it; do not bypass with direct DB reads or ad-hoc scripts against SQLCipher.
  • Session scope matters. Cross-session task/review/message leakage is a P0 class bug. Query filters must include session_scope where applicable.
  • Data is immutable unless the user changes it. Installers, updates, imports, starter packs, and stack updates must be additive/check-exists-first.
  • Cloud endpoint is https://api.askexe.com. Do not introduce legacy cloud domains.
  • Key material belongs in Keychain/secret-tool. Never log, print, or commit recovery phrases or master keys.
  • Runtime TypeScript is ESM. require() in daemon/MCP/TUI runtime paths will break after build.
  • Stack state needs volumes. WhatsApp auth, Postgres, wiki/CRM/gateway data, monitor data, and other stateful services need named volumes before image swaps.
  • Health before claims. Verify daemon health, pending reviews, pending messages, task status, and tmux state before reporting an agent is idle/done/stuck.
  • Build after merges. A clean git merge is not a build check; run npm run build after merged work that affects shipped code.
  • No :latest in manifests/compose. Release images must be versioned and digest-pinned for customer deploys.

Security checklist for reviews

  • No secrets, PII, API keys, recovery phrases, or tokens in code/test fixtures/log output.
  • Auth middleware and permission checks preserved.
  • External network connections use TLS unless explicitly local-only.
  • Telemetry/bug-report egress redacts secrets and mnemonics.
  • No direct DB access paths added; all agent-facing data flows through MCP tools.
  • No hardcoded AskExe employee names, local paths, or private roster assumptions.
  • Compose services have healthchecks and stateful services have durable volumes.

License

Proprietary. See LICENSE.

版本与发布记录

@askexenow/exe-os 共发布 483 个版本,首次发布于 2026/04/17;过去 12 个月发布了 483 个版本。

版本发布日期距今
0.9.415latest2026/10/2810 天前
0.9.4142026/10/1523 天前
0.9.4132026/10/1523 天前
0.9.4122026/10/1524 天前
0.9.4112026/10/1326 天前
0.9.4102026/10/031 个月前

关于 @askexenow/exe-os 的常见问题

@askexenow/exe-os 是什么?

AI employee operating system — persistent memory, task management, and multi-agent coordination for Claude Code.

如何安装 @askexenow/exe-os?

在项目目录运行 npm install @askexenow/exe-os,或使用 pnpm add / yarn add / bun add。它还提供命令行工具 exe、exe-os、exe-glm、exe-cicd、exe-kill、exe-kimi、exe-muse、exe-agent、exe-cloud、exe-codex、exe-grant、exe-doctor,可以用 npx exe 直接运行。

@askexenow/exe-os 支持 TypeScript 吗?

该包的 package.json 没有声明类型入口。需要类型提示时,可以在 npm 上查找社区维护的 @types/askexenow__exe-os 是否存在。

@askexenow/exe-os 支持 ESM 还是 CommonJS?

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

@askexenow/exe-os 需要什么版本的 Node.js?

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

@askexenow/exe-os 可以商用吗?

@askexenow/exe-os 使用 SEE LICENSE IN LICENSE 许可。许可条款写在包内的独立文件中,请阅读该文件确认可否商用。以上为概括,不构成法律意见,请以许可原文为准。

@askexenow/exe-os 的下载量有多少?

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

@askexenow/exe-os 还在维护吗?

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