SuperAPIAI Directory

workfile

github.com · AI agents

🎖️ 📇 🏠 🍎 🪟 🐧 - Backlog, docs, history and memory as Markdown in the repository, versioned with the code, with card claims so parallel agents don't edit the same card.

Open website Alternatives
PricingOpen source开源项目(可免费自部署)
PlatformsLinux

About this tool

Purpose

Workfile is a repository-native protocol for coordinating work items, documents, history, and persistent project memory between humans and software agents. Its core idea is "the repository is the database": the Markdown files in the repository are the authoritative source, and the CLI, HTTP API, and local UI share the same core services, collection registry, indexing, and validation rules, with no exclusive state kept in the browser or a database.

Workfile records work, but it does not configure agents. Configuration tools in the ecosystem (such as gentle-ai) address "how your agent works," whereas Workfile addresses "what was done, who holds it, and what is the basis for it," and the answer is those Markdown files that outlive the agents, sessions, and software packages themselves. The two can be used in combination.

Main capabilities

  • Repository as authority: a card is just a file in a pull request, reviewable in the diff, and when the format is wrong it is reported by workfile doctor . Records remain readable after the package is deleted.
  • Enforced claiming: ownership is validated on change, and if a card is held by another participant, your state transition is rejected with CARD_CLAIM_OWNER_MISMATCH, rather than silently accepted.
  • Evidence-driven completion:review does not equal done,done requires evidence from where the code actually runs, and a merge itself does not count as evidence.
  • Same source for humans and machines: the UI, the rendered changelog, and the release notes are all derived directly from what the agent writes, with no "machine view" and "human view" that need to be synchronized.
  • Deliberate omissions: it does not install or update agents, does not provide persona settings, does not do model routing, and does not maintain a skill catalog; it only syncs its own protocol via workfile agents sync into the instruction files the agent already reads, and exposes all operations via MCP.

Usage

Requires Node.js 22 or later, and can be invoked with npm, pnpm, yarn, or Bun.

One-time initialization:

pnpm dlx @illodev/workfile init

It is recommended to keep the package as a devDependency afterward, so that the project* script that init adds to package.json can resolve (for example, pnpm project opens the UI, andpnpm project:doctor runs checks).

wf is an alias rather than a rename; both names point to the same entry point, so keep the long form in generated or shared content.wf can only resolve after the package is installed, and there is an unrelated wfin the registry, so npx wf may pull in someone else's tool, while npx workfile will fail directly.

Projects are discovered via project.config.mjs , and protocol files are usually stored under .project/ . The configuration is a plain object, and the loader applies defineProjectitself.

Modules

  • Work: managed Markdown records under.project/cards/ , providing hierarchy, dependencies, claiming, scope, state transitions, archiving, assets, and conflict-aware writes.
  • Docs: merges two sources without duplicating existing documentation—index documents discovered from configured globs (which get deterministic PATH-* IDs and are read-only via the protocol), and managed documents stored in .project/docs/ (stable DOC-NNNN IDs, typed frontmatter, revision-aware changes). Managed documents are read recursively, can be grouped by folder, and IDs keep a global order.
  • History: uses atomic change fragments instead of having multiple branches or agents edit the same CHANGELOG.md. On release, selected fragments are consumed, moved under the release directory, and a canonical REL-NNNN records.
  • Memory: a set of typed, atomic, lifecycle-aware records, rather than a single ever-growing conversation log.

workfile doctor detects broken local links, unresolved associations or superseding records, missing scope paths, stale review/provenance relationships, invalid lifecycle states, missing graduation/supersession targets, stale context, and incomplete event resolution metadata.

Indexing and Search

Each module normalizes its files into ProjectRecord entries through a public collection registry. Derived in-process indexes provide weighted full-text search, lookup by stable record ID, outbound references and inbound backlinks across four domains, card provenance links, module health/lifecycle/freshness signals, and module and collection counts. Authoritative state always remains on disk, and server caches are short-lived, invalidatable, and fully rebuildable.

Lexical search remains deterministic and local. Hosts can programmatically inject an optional semantic provider; Workfile itself never chooses a vendor or sends repository content over the network. The first-party local embedding package @illodev/workfile-search-local runs embeddings on-device (onnxruntime-web, ONNX on CPU, Xenova/multilingual-e5-small quantized), and repository content never leaves the machine. The first hybrid search embeds all uncached candidate records, which on a workspace with thousands of records may take several minutes of CPU time; the provider by default limits ONNX to half the core count, persists in batches so it can resume after interruption, and reports progress on stderr.

MCP Server

Workfile includes a local, dependency-free MCP server that uses UTF-8 newline-delimited JSON-RPC over stdio, delegates to the same core services as the CLI and HTTP API, supports both the modern (2026-07-28) and legacy (2025-11-25) protocol revisions, and exposes 32 tools, 4 resources, and 3 prompts.--read-only mode, mutation tools disappear entirely.

Point a client at it without installing:

npx @illodev/workfile mcp

mcp is a subcommand rather than a binary. When the client is started from outside the workspace, append --root PATH, otherwise it searches upward for .project/; append --read-only to expose only read tools.

For Claude Code, the same interface is available as a plugin—the MCP server plus the /claim、/card-context、/next and /done commands, a skill, and hooks that turn card claiming into an enforceable guardrail, without committing generated files to the repository.

Initialization and CI

The initializer can run interactively or deterministically in automation, detecting the package manager, monorepo folders, likely card areas, documentation sources, existing agent environments, and CI providers. A dry run exposes the exact filesystem plan. The generated project.config.mjs exports a plain object, so a workspace initialized via pnpm dlx can still load before the package is installed locally. Existing files are not overwritten unless explicitly --force..project/.cache/ is added to .gitignore, and all canonical protocol files remain tracked.

CI files use the same managed-file contract, can be generated for GitHub Actions, GitLab CI, or a generic shell runner, and the templates run workfile doctor and agent sync checks against a pinned Workfile version.

Demo and Publishing

The UI ships with a demo mode for static hosting (Vercel, GitHub Pages, any file server).npm run build:demo builds the UI using an in-memory API, replaying a seeded workspace snapshot: all views are available, mutations work normally within the session, and reset on refresh. The repository includes vercel.json, import into Vercel for zero-config deployment of the demo. A regular build tree-shakes the demo layer and snapshots out of the package.

Releases go through CI using npm trusted publishing (OIDC); no npm token is stored in the repository. There is no prerelease channel: every published version is available through a single npm install obtain,v*-rc.* tag will cause the release to fail.

Legacy migration

v1's .planning system can be planned and applied through deterministic conflict checks. Valid legacy cards and assets become canonical v2 Work records; legacy proposals, changelogs, learning records, and malformed records remain under .project/sources/legacy-planning/ instead of being silently reinterpreted in an incompatible way.

When to use

  • Multiple AI agents work on tasks in the same repository in parallel and need to avoid edit conflicts.
  • You want work items, documents, change history, and project memory to be versioned and reviewable alongside the code.
  • You need humans and machines to share the same authoritative record without maintaining two sets of views.
  • You want to connect work management capabilities to existing agent clients through MCP.

Limitations

  • Requires Node.js 22 or later.
  • Does not install or update agents, does not provide persona settings, does not do model routing, and does not maintain a skill catalog.
  • Semantic search is optional, has a high first-run cost, and is offline by default.
  • The experimental integration registry is limited in the current RC; vendor-specific issue trackers, deployment systems, and credentials are not part of the canonical package.
  • There is no prerelease channel.
  • Specific information about fees, pricing, platform support, etc. is not yet provided in the materials.
Up/Down to navigate · Enter to open · ESC to closeBrowse all tools