Workfile
Provides CI integration with GitHub, enabling automated release and verification workflows.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Workfileshow open cards in the api area"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
@illodev/workfile is a repository-native protocol for coordinating Work, Docs,
History and durable project Memory between humans and software agents.
Markdown files in the repository are canonical. The CLI, HTTP API and local UI use the same core services, collection registry, index and validation rules. No exclusive state is kept in the browser or in a database.
Work, Docs, History and Memory share the common
ProjectRecordindex. The core, CLI, HTTP server and MCP runtime are authored in TypeScript and distributed as compiled ESM with public declarations. The local UI is precompiled and included in the package, and semantic search runs on-device through the optional@illodev/workfile-search-localworkspace package.
Try the live demo — it replays this repository's own workspace: the real cards, releases, incidents and learnings of Workfile's development. Mutations work per browser session and reset on reload.
https://github.com/user-attachments/assets/eb3ae94b-6635-4faa-bd58-33197a6d9abc
Used by
Related MCP server: elefante
Requirements
Node.js 22 or newer.
npm, pnpm, yarn or Bun may invoke the package.
Install
Every workfile … command in this README requires the package to be installed —
pnpm dlx / npx one-offs run a command and discard the binary afterwards:
pnpm add -D @illodev/workfile # per repository (recommended)
pnpm workfile doctor # dependency bins run through pnpm / npx
pnpm add -g @illodev/workfile # or globally: `workfile` lands on your PATH
workfile doctorpnpm dlx @illodev/workfile init is fine for one-shot initialization, but keep the
package as a devDependency afterwards: that is what makes the project scripts that
init adds to package.json resolve.
TypeScript API
The published surface exposes JavaScript and declarations through conditional package exports. TypeScript consumers receive typed configuration, workspace, record, search and integration contracts from the root package and every documented subpath:
import {
defineProject,
type CardStatus,
type ProjectConfig,
type ProjectRecord
} from "@illodev/workfile";
import { createSemanticSearchProvider } from "@illodev/workfile/search";
const config: ProjectConfig = defineProject({
schemaVersion: 2,
name: "Billing",
cards: {
areas: ["api", "web"]
}
});
const status: CardStatus = "doing";The CLI and UI do not require TypeScript in consuming projects. React, Primer, Vite and the
UI type packages are build-only dependencies; the installed package serves bundled browser
assets from dist/ui.
Workspace
A project is discovered through project.config.mjs and normally stores protocol-owned
files under .project/:
project.config.mjs
.project/
├── VERSION
├── cards/
│ └── archive/
├── assets/
├── docs/
├── changelog/
│ ├── unreleased/
│ └── releases/
├── memory/
│ ├── learnings/
│ ├── decisions/
│ ├── incidents/
│ ├── conventions/
│ └── context/
├── agents/
└── .cache/Minimal configuration — a plain object, not defineProject(...). The loader
applies defineProject itself, and an import here is a bare specifier the file
can only resolve with node_modules present, which breaks the two consumers
that run without one: a pnpm dlx-initialized workspace before the package is
installed, and the generated CI job's npx run on a clean clone. The JSDoc
annotation keeps editor typing without a runtime import:
/** @type {import("@illodev/workfile").ProjectConfigInput} */
export default {
schemaVersion: 2,
name: "My project",
language: "es",
cards: {
areas: ["api", "web", "infra", "docs"]
},
docs: {
sources: [
"README.md",
"docs/**/*.md",
"apps/*/README.md",
".project/specs/**/*.md"
]
},
changelog: {
releaseStrategy: "semver",
defaultVisibility: "public"
},
memory: {
collections: [
"learnings",
"decisions",
"incidents",
"conventions",
"context"
]
},
agents: {
targets: ["agents-md", "cursor"]
},
ci: {
targets: ["github"]
},
mcp: {
allowMutations: true
},
search: {
semanticWeight: 0.35,
maxProviderRecords: 500
}
};Project-specific areas, paths and vocabularies are resolved at runtime and exposed through the effective schema. The eight Work statuses and the schema-v2 memory collection semantics remain protocol contracts.
Work
Cards are managed Markdown records under .project/cards/. The Work module provides
hierarchy, dependencies, claims, scope, status transitions, archives, assets and
conflict-aware writes.
workfile card list --json
workfile card show T-0042 --json
workfile card create --title "Implement runtime schema" --area infra
workfile card claim T-0042 --actor agent-56a30d1b --scope apps/api,packages/sdk
workfile card transition T-0042 review --actor agent-56a30d1b
workfile card patch T-0042 --json-input changes.json --expected-revision sha256:...
workfile card archive T-0042
workfile card reopen T-0042 --status backlogDocs
Docs combines two sources without copying existing documentation:
Indexed documents discovered from configured globs. They receive deterministic
PATH-*IDs and remain read-only through the protocol.Managed documents stored in
.project/docs/with stableDOC-NNNNIDs, typed frontmatter and revision-aware mutations.
Managed documents are read recursively, so they can be grouped in folders — including
folders you create by hand. IDs stay global and sequential: a folder is organization,
not identity. New documents follow docs.layout (kind, the default, groups them by
document kind; flat writes them to the managed root) and --folder overrides it.
workfile doc list --query billing
workfile doc show DOC-0012 --json
workfile doc create --title "Deployment runbook" --kind runbook --status current
workfile doc create --title "Rate limiting" --folder architecture/billing
workfile doc move DOC-0012 --folder architecture
workfile doc patch DOC-0012 --json-input changes.json --expected-revision sha256:...The doctor detects broken local links, unresolved related or superseded records, missing scope paths and stale review/source relationships.
History
History uses atomic change fragments rather than asking multiple branches or agents to
edit one shared CHANGELOG.md.
Unreleased fragment:
---
id: CHG-0042
title: Add portable history workspace
type: added
area: infra
visibility: public
cards: [T-0042]
created: 2026-07-28
updated: 2026-07-28
---A release consumes selected fragments, moves them beneath the release directory and
creates a canonical REL-NNNN record. Public or internal changelogs are derived output.
workfile changelog list --unreleased
workfile changelog add --title "Add portable history" --type added --area infra
workfile changelog preview
workfile changelog release 0.4.0 --title "History and Memory"
workfile changelog render --visibility public
workfile changelog render --visibility public --write
workfile changelog verifyRelease versions can use semver, calendar or freeform validation according to
configuration. Fragments and releases participate in the same workfile search and backlink
graph as cards, docs and memory.
Memory
Memory is a set of typed, atomic and lifecycle-aware records rather than a single growing conversation transcript:
Collection | Prefix | Purpose |
Learnings |
| Reusable observations with confidence and occurrence signals |
Decisions |
| Proposed, accepted, rejected or superseded decisions |
Incidents |
| Operational events, severity, timing and corrective actions |
Conventions |
| Durable rules followed by humans and agents |
Context |
| Useful but potentially expiring project state |
workfile memory list --collection learnings --status active
workfile memory add learning --title "Atomic fragments avoid merge conflicts" \
--confidence high
workfile memory add decision --title "Keep Markdown canonical" --status accepted
workfile memory add incident --title "Release pipeline stalled" --severity high
workfile memory graduate LRN-0004 --to CONV-0002,DOC-0012
workfile memory supersede ADR-0003 --by ADR-0009
workfile memory patch CTX-0002 --json-input changes.json --expected-revision sha256:...
workfile memory verifyThe doctor checks invalid lifecycle states, missing graduation/supersession targets, expired context and incomplete incident resolution metadata.
Unified index
Every module normalizes its files as ProjectRecord entries through a common collection
registry. The derived process-local index provides:
weighted full-project text search;
lookup by stable record ID;
outgoing references and incoming backlinks across all four domains;
card
source:links and local Markdown links;module-specific health, lifecycle and freshness signals;
module and collection counts.
Canonical state always remains on disk. The server cache is short-lived, invalidatable and fully rebuildable.
workfile search "billing architecture"
workfile search release --kind change,release,memory --limit 25 --jsonInitialization
The initializer can run interactively or deterministically in automation. It detects the package manager, monorepo folders, likely card areas, documentation sources, existing agent environments and CI providers. A dry run exposes the exact filesystem plan.
pnpm dlx @illodev/workfile init
pnpm dlx @illodev/workfile init --yes --language es \
--agents agents-md,claude,cursor,copilot --ci github
workfile init --dry-run --jsonThe generated project.config.mjs exports a plain object, so a workspace initialized via
pnpm dlx remains loadable before the package is installed locally. Existing files are not
overwritten unless --force is explicit. .project/.cache/ is added to .gitignore; all
canonical protocol files remain tracked.
Hosted demo
The UI ships with a demo mode for static hosting (Vercel, GitHub Pages, any file server).
npm run build:demo builds the UI with an in-memory API that replays a snapshot of a seeded
workspace: every view works and mutations behave normally for the session, then reset on
reload. The repository includes a vercel.json, so importing it into Vercel deploys the
demo with zero configuration.
pnpm run demo:data # reseed and resnapshot packages/workfile/ui/src/demo-data.json
pnpm run build:demo # static demo build into packages/workfile/dist/demoRegular builds tree-shake the demo layer and snapshot out of the bundle.
Releasing
Releases publish from CI via npm trusted publishing (OIDC) — no npm token is stored in the repository. The circuit:
Cut the changelog:
workfile changelog release <version>andworkfile changelog render --write.Bump and tag:
npm version <version>thengit push && git push --tags. The version hook carries everypackages/*package inside the same bump — workspace packages always ship the core's version.The
Releaseworkflow verifies the tag matchespackage.json(and that no workspace version drifted), runscheck:release(build, typechecks, tests, audit and a packaged-tarball smoke) with pnpm, and publishes the core and every workspace package with the npm CLI — prereleases (x.y.z-*) under thenextdist-tag, stable versions underlatest.
Agent Protocol
Canonical instructions and workflows live under .project/agents/. Compact managed blocks
are synchronized into supported environments without replacing unrelated user content:
AGENTS.md
CLAUDE.md
.cursor/rules/workfile.mdc
.github/copilot-instructions.mdworkfile agents sync
workfile agents sync --targets agents-md,claude,cursor,copilot
workfile agents check
workfile agents context --card T-0042Managed blocks carry the package version and a SHA-256 digest. agents check and
workfile doctor report missing, unmanaged or stale generated instructions. Agent context is
bounded and prioritizes the selected card, direct relationships, active conventions,
unresolved incidents and non-expired context instead of loading all workfile memory.
Model Context Protocol
Workfile includes a local, dependency-free MCP server using UTF-8,
newline-delimited JSON-RPC over stdio. It delegates every operation to the same core
services used by the CLI and HTTP API, speaks both the modern (2026-07-28) and legacy
(2025-11-25) protocol revisions, and exposes 30 tools, four resources and three
prompts. Mutation tools disappear entirely in --read-only mode.
workfile mcp
workfile mcp inspect --json
workfile mcp config --read-only --jsonFor Claude Code the same surface ships as a plugin — the MCP server plus
/claim, /context, /next and /done commands, a skill, and hooks that
turn card claims into an executable guard rail — with no generated files
committed to the repository:
/plugin marketplace add illodev/workfile
/plugin install workfile@illodevThe full contract — tool inventory, resources, prompts, process hygiene and the
plugin's surface — is documented in docs/mcp.md.
Search integrations
Lexical search remains deterministic and local. Hosts may inject an optional semantic provider programmatically; Workfile never selects a vendor or sends repository content over the network by itself.
First-party: local embeddings
@illodev/workfile-search-local runs embeddings on-device (transformers.js,
ONNX on CPU, Xenova/multilingual-e5-small quantized) — repository content
never leaves the machine. Declare it in project.config.mjs with a guarded
import, because the config must also load where the package cannot resolve
(the generated CI job runs npx on a clean clone):
export const integrations = await (async () => {
try {
const { localSearchIntegration } = await import(
"@illodev/workfile-search-local"
);
return [localSearchIntegration()];
} catch {
return []; // package absent: search stays lexical
}
})();
export default {
// …
search: { provider: "local-embeddings" }
};Know the cost model before wiring it: the first hybrid search embeds every
uncached candidate record — minutes of sustained CPU on a few-thousand-record
workspace, triggered by whichever surface searches first (CLI, board UI, or
the MCP server an agent loads). The provider caps ONNX at half the cores by
default, persists per batch so an interrupted pass resumes instead of
restarting, and reports progress on stderr; sizing search.maxProviderRecords
to your corpus makes every record eligible. Details and options in
packages/search-local/README.md.
Bring your own
import {
createSemanticSearchProvider,
searchProjectRecordsHybrid
} from "@illodev/workfile/search";
const provider = createSemanticSearchProvider({
id: "company-embeddings",
async search({ query, records }) {
// Return [{ id, score }] with scores between 0 and 1.
return rankWithYourApprovedProvider(query, records);
}
});
const result = await searchProjectRecordsHybrid(index.records, query, {
provider,
semanticWeight: 0.35
});The adapter boundary makes external data disclosure an explicit host decision and keeps the canonical Markdown/index implementation provider-independent.
Experimental integration registry
Programmatic hosts can group approved semantic search and health adapters in a small, vendor-neutral registry:
import {
createIntegrationRegistry,
defineProjectIntegration
} from "@illodev/workfile/integrations";
const integrations = createIntegrationRegistry([
defineProjectIntegration({
id: "company.platform",
semanticSearchProvider: provider,
async healthCheck({ workspace, index }) {
return [];
}
})
]);The registry is accepted by the MCP server and doctor APIs. It is intentionally limited in the current RC: vendor-specific issue trackers, deployment systems and credentials are not part of the canonical package. The boundary can mature from real integrations without committing the schema to GitHub, GitLab, Jira or a deployment provider.
CI templates
CI files use the same managed-file contract and can be generated for GitHub Actions, GitLab CI or a generic shell runner:
workfile ci sync --targets github,gitlab,generic
workfile ci checkTemplates run both the workfile doctor and agent synchronization check against the pinned Workfile version.
Legacy migration
The v1 .planning system can be planned and applied with deterministic collision checks:
workfile migrate plan --source .planning
workfile migrate apply --source .planning --mode copy
workfile migrate apply --source .planning --mode moveValid legacy cards and assets become canonical v2 Work records. Old proposals, changelogs,
learnings and malformed records are preserved under .project/sources/legacy-planning/
rather than being silently reinterpreted with an incompatible schema. Every applied
migration writes .project/migrations/legacy-planning.json with source, destination, digest
and result metadata.
General CLI
workfile init
workfile schema --json
workfile doctor --json
workfile uiCommands return stable machine-readable errors with --json. A stale revision exits with
code 3; configuration errors exit with code 2; validation and not-found errors exit
with code 1. The complete command surface is documented in
docs/cli.md.
HTTP API
workfile ui starts the local server, normally at http://127.0.0.1:4747. The versioned
/api/v2/* surface covers the workspace, unified search, and every collection — cards,
docs, changelog (including release preview/assembly/render), memory lifecycle, agents and
CI sync. Managed record reads expose an ETag, writes accept If-Match, and errors use
stable codes. The endpoint reference lives in docs/http-api.md.
Local UI
Navigation is a collapsible sidebar grouped by domain:
Work: Explorer, Triage, Flow, Epics and a Gantt Timeline (status-colored bars, month scale, today marker).
Knowledge: Docs (search, Markdown, metadata, freshness, scope, backlinks) and Memory (typed collections, lifecycle warnings, graduation and supersession).
Project: History (fragments, releases, release preparation, rendered changelog preview) and Health.
Health issues can navigate to records in any domain. Runtime configuration drives card
areas, change vocabularies and memory collection statuses; these values are not compiled
into the views. File links open the local editor, or the repository web UI when the
server provides a repoUrl (as the hosted demo does).

The Overview answers "how are we doing" in a sentence chosen worst-first — doctor errors, hanging claims, colliding scopes, blocked cards, work in flight — above the trail of every move the agents wrote while you were away.
Explorer with the inspector open | Gantt timeline |
|
|
History with releases | Memory (dark theme) |
|
|
Development
The repository is a pnpm workspace: the root is a private shell that holds the
version and delegator scripts, while everything published lives under
packages/ — the core in packages/workfile, providers
like packages/search-local beside it, all shipping
in version lockstep. pnpm is pinned via the packageManager field
(corepack enable picks it up automatically):
pnpm install
pnpm run check
pnpm run smoke:package
node ./packages/workfile/dist/bin/workfile.js mcp inspect --root ./packages/workfile/test/fixtures/workspace --json
node ./packages/workfile/dist/bin/workfile.js schema --root ./packages/workfile/test/fixtures/workspace --json
node ./packages/workfile/dist/bin/workfile.js doctor --root ./packages/workfile/test/fixtures/workspace --json
node ./packages/workfile/dist/bin/workfile.js ui --root ./packages/workfile/test/fixtures/workspacepnpm run check compiles the TypeScript runtime and declarations, checks the strict public
consumer contract, typechecks and bundles the React UI, and runs the complete test suite.
pnpm run smoke:package packs and installs the actual tarball in a temporary project before
exercising initialization, all four domains, MCP and the packaged UI — the smoke installs
with npm on purpose, exercising the npm consumer path.
prepack rebuilds the runtime declarations and UI so a future published package contains
only compiled runtime artifacts under dist/, never development TypeScript or a copied UI
source tree.
Current guarantees
restricted frontmatter codec with byte-stable scalar/list round trips;
preservation of unknown frontmatter fields and body bytes;
atomic file replacement, per-record locks and collision-safe ID reservations;
SHA-256 revision tokens and stale-write rejection;
atomic Work claims, transitions, archive and reopen operations;
managed Docs, History fragments and typed Memory mutations;
release assembly with canonical fragment consumption and derived rendering;
configurable repository-safe paths and runtime vocabularies;
common normalization, search, references and backlinks across all domains;
health diagnostics for Work, Docs, History and Memory;
compiled ESM and
.d.tsdeclarations for the public package and subpath exports;executable packaged CLI/MCP binaries verified from a clean tarball installation;
versioned API plus a compatibility adapter for the original board.
Documents
docs/getting-started.md— install, initialize and the daily loop.docs/cli.md— complete CLI reference for every module.docs/http-api.md— endpoint reference, conventions and errors.docs/mcp.md— MCP server contract: tools, resources, prompts.docs/security.md— threat model of the local server, request guard, asset handling and what is deliberately out of scope.docs/ui.md— the interface: its build, the zero-dependency guarantee and how the shadcn migration coexists with the design system.docs/SPEC.md— the normative protocol specification: data model, record contracts, revision semantics and the MCP integration contract.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseAqualityAmaintenanceAn MCP server that gives AI agents structured read/write access to a story-based project backlog. Agents can list stories, read content, update status, and append notes — all backed by plain markdown files that live inside your project repository. There is no shared server. The backlog files live in your repo under requirements/, committed and versioned alongside your codeLast updated163The Unlicense
- Alicense-qualityCmaintenanceOpen, Git-native memory protocol for MCP agents: stores memories as Markdown files in a Git repo, enabling portability, auditability, and human-editable memory across different AI agents.Last updated10515MIT
- AlicenseAqualityAmaintenanceLocal, searchable project memory for AI coding agents. Markdown source of truth, MCP interface, safe structured updatesLast updated37Apache 2.0
- Flicense-qualityDmaintenanceGit-native MCP server for managing AI context across sessions. Enables LLMs to access project and feature context via markdown files, preserving decisions and constraints.Last updated1
Related MCP Connectors
Secure, user-owned long-term memory for AI agents over OAuth-protected remote MCP. Save, search, recall, update, and govern preferences, project context, decisions, and task state across ChatGPT, Claude, Copilot, IDEs, and CLIs.
A MCP server built for developers enabling Git based project management with project and personal…
Person-owned, portable AI memory as a remote MCP server, readable and writable by any MCP client.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/illodev/workfile'
If you have feedback or need assistance with the MCP directory API, please join our Discord server



