MkAgent is a cross-platform, local-first AI agent workspace derived from Craft Agents OSS, selectively synchronized through v0.15.6. The current runtime is Pi-only: the agent kernel (@earendil-works/pi-durable) runs in a dedicated Bun subprocess and serves the Electron app, WebUI, CLI, and headless server through one RPC contract. The kernel loads user-configured MCP servers from mcp.json in its agent directory. MkAgent supports API-key connections, custom OpenAI/Anthropic-compatible endpoints, Ollama, and the retained ChatGPT Plus / Claude Pro/Max subscription flows. It does not include the Claude Agent SDK, GitHub Copilot, external messaging, product automations, Projects/Kanban, Craft's Sources UI, or Viewer/public sharing. With codemode enabled, MkAgent can call models.generateImages() when a compatible image model and credentials are available. There is no separate image-generation UI.
This directory is the English-language user documentation. A Chinese translation lives under zh/ and is kept in sync with the English source.
The first direct switch to pi-durable exposed Coding and Pi plugin gaps. The correction keeps the Pi coding agent layer used by MkAgent and attempts to replace its execution base with durable. Use the original MkAgent/Coding integration as the behavior reference, while preserving later confirmed features and existing data. Prefer reusable official SDKs to reduce source-by-source maintenance on future Coding and durable releases. Use durable built-ins first, then public APIs from separate official Pi SDK packages. Add a thin adapter or retain source only for a demonstrated gap. pi-agent-core and the public pi-coding-agent SDK are allowed in production; do not start the original CLI. Delete source copies that the SDK covers and redundant direct dependencies; retain only adapters for confirmed gaps. Replacing third-party assets, reducing line counts, and copying all source reachable from the original CLI are not migration goals. The capability spec and implementation plan define current work and replace earlier migration limits.
| Topic | Document |
|---|---|
| Overall architecture | architecture.md |
| Pi-durable kernel specifications and validation | pi-durable/README.md |
| Attachments | attachments.md |
| Browser pane | browser.md |
| Command-line interface | cli.md |
| Connections and models | connections.md |
| Comparison with Craft (current) | comparison-with-craft.md |
| Data directory | data-directory.md |
| Development environment | development.md |
| Document tools | document-tools.md |
| Features | featues.md |
| Network proxy | network-proxy.md |
| Ollama | ollama.md |
| Permissions | permissions.md |
| Releases, updates, and telemetry | releases.md |
| Sessions | sessions.md |
| Skills | skills.md |
| Testing | testing.md |
| Upstream synchronization | upstream-sync.md |
| Workspaces | workspaces.md |
For a clean start, read development.md, then use connections.md, permissions.md, and sessions.md. The migration/ directory is an implementation archive: its plans and audit snapshots are historical unless a section explicitly says it describes the current code.
- Markdown headings, links, and code remain in English. Explanatory prose is localized.
- "Lite" is rendered as "精简版 / 精简发行版" in narrative Chinese and kept in English inside product names, config keys, file names, and code.
- "Craft Agent" and "Craft" are preserved or paraphrased as "上游 Craft" depending on context.
- Commands, file names, JSON fields, protocol headers, and variable names stay in English so they can be copy-pasted directly.
- If the Chinese translation diverges from English, treat the English source as authoritative and file a revision.