@markus-global/cli 0.11.2 → 0.11.3-rc.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/commands/start.js +5 -2
- package/dist/commands/start.js.map +1 -1
- package/dist/markus.mjs +1254 -1121
- package/dist/web-ui/assets/{CommentInput-Cgu8208h.js → CommentInput-C-niUbUY.js} +1 -1
- package/dist/web-ui/assets/{ContentRenderer-rzRUDj8T.js → ContentRenderer-DxsnJJRX.js} +2 -2
- package/dist/web-ui/assets/{DeliverableShareModal-BvfmqTNG.js → DeliverableShareModal-DV3TiZx0.js} +1 -1
- package/dist/web-ui/assets/{Deliverables-DKTLnaF8.js → Deliverables-tlLsJnxZ.js} +1 -1
- package/dist/web-ui/assets/{Notifications-CWaO9onn.js → Notifications-4KXYRdkr.js} +1 -1
- package/dist/web-ui/assets/{Search-D_C5Eyed.js → Search-CPFwZv1U.js} +1 -1
- package/dist/web-ui/assets/{Settings-B5Ib6SFf.js → Settings-DIa-_qre.js} +6 -6
- package/dist/web-ui/assets/{Store-D__pfqoc.js → Store-JWjwXfTU.js} +1 -1
- package/dist/web-ui/assets/Team-COBxn96h.js +84 -0
- package/dist/web-ui/assets/{Work-BJ7kXixx.js → Work-BScJUqWL.js} +1 -1
- package/dist/web-ui/assets/{arc-BN0GMYN6.js → arc-DPZmpo1U.js} +1 -1
- package/dist/web-ui/assets/{architectureDiagram-3BPJPVTR-BP5Nnl2Y.js → architectureDiagram-3BPJPVTR-DlOs02JO.js} +1 -1
- package/dist/web-ui/assets/{blockDiagram-GPEHLZMM-nKHUCU_z.js → blockDiagram-GPEHLZMM-C7qsXNUe.js} +1 -1
- package/dist/web-ui/assets/{c4Diagram-AAUBKEIU-DoS0wcHh.js → c4Diagram-AAUBKEIU-Drwp-rtM.js} +1 -1
- package/dist/web-ui/assets/channel-DCChB-1T.js +1 -0
- package/dist/web-ui/assets/{chunk-2J33WTMH-CP54_XNl.js → chunk-2J33WTMH-VgR09Mqk.js} +1 -1
- package/dist/web-ui/assets/{chunk-4BX2VUAB-DMvJaJb7.js → chunk-4BX2VUAB-CuwDpBRL.js} +1 -1
- package/dist/web-ui/assets/{chunk-55IACEB6-DQnZgoOO.js → chunk-55IACEB6-nC7YWJ_i.js} +1 -1
- package/dist/web-ui/assets/{chunk-727SXJPM-B5_3LI53.js → chunk-727SXJPM-Dw6mBsRE.js} +1 -1
- package/dist/web-ui/assets/{chunk-AQP2D5EJ-B5Mh5bI_.js → chunk-AQP2D5EJ-CPhNJbHl.js} +1 -1
- package/dist/web-ui/assets/{chunk-FMBD7UC4-mjYTpuBm.js → chunk-FMBD7UC4-AyhQakG8.js} +1 -1
- package/dist/web-ui/assets/{chunk-ND2GUHAM-BxTrseJg.js → chunk-ND2GUHAM-DgYemv8I.js} +1 -1
- package/dist/web-ui/assets/{chunk-QZHKN3VN-C1do5brE.js → chunk-QZHKN3VN-CLdqxrFB.js} +1 -1
- package/dist/web-ui/assets/classDiagram-4FO5ZUOK-CrNiYfSI.js +1 -0
- package/dist/web-ui/assets/classDiagram-v2-Q7XG4LA2-CrNiYfSI.js +1 -0
- package/dist/web-ui/assets/{cose-bilkent-S5V4N54A-DMn7aSDK.js → cose-bilkent-S5V4N54A-DrOgwDIH.js} +1 -1
- package/dist/web-ui/assets/{dagre-BM42HDAG-CE-tTagY.js → dagre-BM42HDAG-DhoJiA83.js} +1 -1
- package/dist/web-ui/assets/{diagram-2AECGRRQ-BwyvxbJa.js → diagram-2AECGRRQ-BDILSgqK.js} +1 -1
- package/dist/web-ui/assets/{diagram-5GNKFQAL-Nopndxl0.js → diagram-5GNKFQAL-CeXywd1i.js} +1 -1
- package/dist/web-ui/assets/{diagram-KO2AKTUF-CGTjHHnD.js → diagram-KO2AKTUF-Bi4RlMT0.js} +1 -1
- package/dist/web-ui/assets/{diagram-LMA3HP47-DhC3AqLA.js → diagram-LMA3HP47-Cw1yxk8b.js} +1 -1
- package/dist/web-ui/assets/{diagram-OG6HWLK6-BIuzyWJO.js → diagram-OG6HWLK6-Bl857da2.js} +1 -1
- package/dist/web-ui/assets/{docx-preview-ClO_djcO.js → docx-preview-CjoUhrMq.js} +1 -1
- package/dist/web-ui/assets/{erDiagram-TEJ5UH35-Nmfi9Wv0.js → erDiagram-TEJ5UH35-DEiaMhuV.js} +1 -1
- package/dist/web-ui/assets/{flowDiagram-I6XJVG4X-BVAM5QzO.js → flowDiagram-I6XJVG4X-BgKZhO0h.js} +1 -1
- package/dist/web-ui/assets/{ganttDiagram-6RSMTGT7-BGdTbY0A.js → ganttDiagram-6RSMTGT7-Dkx-EaS8.js} +1 -1
- package/dist/web-ui/assets/{gitGraphDiagram-PVQCEYII-BMfug5mp.js → gitGraphDiagram-PVQCEYII-DXaQwA0y.js} +1 -1
- package/dist/web-ui/assets/{index-1X1Ykov8.js → index-C_QhfMcC.js} +72 -72
- package/dist/web-ui/assets/index-DEN_qReg.css +1 -0
- package/dist/web-ui/assets/{infoDiagram-5YYISTIA-DAqSLNMU.js → infoDiagram-5YYISTIA-Dpx9IOkx.js} +1 -1
- package/dist/web-ui/assets/{ishikawaDiagram-YF4QCWOH-Bro4RrlG.js → ishikawaDiagram-YF4QCWOH-BWqWgitQ.js} +1 -1
- package/dist/web-ui/assets/{journeyDiagram-JHISSGLW-CdRHOaID.js → journeyDiagram-JHISSGLW-BBwIZ4k9.js} +1 -1
- package/dist/web-ui/assets/{kanban-definition-UN3LZRKU-9iLNl-rB.js → kanban-definition-UN3LZRKU-C_MRWV8R.js} +1 -1
- package/dist/web-ui/assets/{mermaid.core-BRHCbDDt.js → mermaid.core-BMAh3nnq.js} +5 -5
- package/dist/web-ui/assets/{mindmap-definition-RKZ34NQL-BLm-XQ6W.js → mindmap-definition-RKZ34NQL-B6vJQcat.js} +1 -1
- package/dist/web-ui/assets/{pieDiagram-4H26LBE5-ith90T5A.js → pieDiagram-4H26LBE5-BxdEttqt.js} +1 -1
- package/dist/web-ui/assets/{quadrantDiagram-W4KKPZXB-Cb08oHG7.js → quadrantDiagram-W4KKPZXB-gsNs2VfP.js} +1 -1
- package/dist/web-ui/assets/{requirementDiagram-4Y6WPE33-DzMKi4w8.js → requirementDiagram-4Y6WPE33-BSC9KvC2.js} +1 -1
- package/dist/web-ui/assets/{sankeyDiagram-5OEKKPKP-C0Wv4A7m.js → sankeyDiagram-5OEKKPKP-DktAZfe_.js} +1 -1
- package/dist/web-ui/assets/{sequenceDiagram-3UESZ5HK-C_HL9WB0.js → sequenceDiagram-3UESZ5HK-BIPt8kGU.js} +1 -1
- package/dist/web-ui/assets/{stateDiagram-AJRCARHV-BFfTVEYQ.js → stateDiagram-AJRCARHV-DiXmJWB0.js} +1 -1
- package/dist/web-ui/assets/stateDiagram-v2-BHNVJYJU-COOgTXIX.js +1 -0
- package/dist/web-ui/assets/{timeline-definition-PNZ67QCA-cyPnAADn.js → timeline-definition-PNZ67QCA-LRi7H35g.js} +1 -1
- package/dist/web-ui/assets/{vennDiagram-CIIHVFJN-Cb82-9OZ.js → vennDiagram-CIIHVFJN-DWQ1I022.js} +1 -1
- package/dist/web-ui/assets/{wardley-L42UT6IY-BTW1NXXR.js → wardley-L42UT6IY-BUb6dYqN.js} +1 -1
- package/dist/web-ui/assets/{wardleyDiagram-YWT4CUSO-C_F_dT6n.js → wardleyDiagram-YWT4CUSO-BYE1B3xT.js} +1 -1
- package/dist/web-ui/assets/{xychartDiagram-2RQKCTM6-clcfplhG.js → xychartDiagram-2RQKCTM6-D-pS2-Sa.js} +1 -1
- package/dist/web-ui/index.html +2 -2
- package/docs/README.md +93 -0
- package/docs/api/api.md +353 -0
- package/docs/architecture/agent-runtime.md +341 -0
- package/docs/architecture/architecture-fragility.md +184 -0
- package/docs/architecture/architecture.md +938 -0
- package/docs/architecture/cognitive-architecture.md +322 -0
- package/docs/architecture/concurrent-processing.md +550 -0
- package/docs/architecture/frontend/team-chat.md +312 -0
- package/docs/architecture/learning-loop.md +340 -0
- package/docs/architecture/llm-provider-timeouts.md +60 -0
- package/docs/architecture/mailbox-system.md +1635 -0
- package/docs/architecture/memory-system.md +533 -0
- package/docs/architecture/prompt-engineering.md +1377 -0
- package/docs/architecture/state-machines.md +665 -0
- package/docs/architecture/state-ownership.md +83 -0
- package/docs/architecture/streaming-and-reattach.md +193 -0
- package/docs/architecture/tool-system.md +266 -0
- package/docs/design/deliverable-sharing.md +238 -0
- package/docs/guides/coding-tools.md +765 -0
- package/docs/guides/community.md +104 -0
- package/docs/guides/development.md +179 -0
- package/docs/guides/guide.md +362 -0
- package/docs/guides/release-and-distribution.md +165 -0
- package/docs/guides/remote-access.md +286 -0
- package/docs/guides/skill-ecosystem.md +129 -0
- package/docs/records/agent-platform-friction-2026-10.md +98 -0
- package/docs/records/animation-budget-focus-vs-visibility-2026-10-08.md +110 -0
- package/docs/records/audit-fixes-2026-09.md +173 -0
- package/docs/records/branch-consolidation.md +597 -0
- package/docs/records/file-edit-literal-replacement-fix.md +132 -0
- package/docs/records/message-stop-cancel-fix-plan.md +209 -0
- package/docs/records/platform-hardening-2026-10.md +1365 -0
- package/docs/records/session-identity-plan.md +130 -0
- package/docs/records/settings-model-routing-first-visit-fix.md +101 -0
- package/docs/records/team-chat-stream-transport-vs-turn-2026-10-08.md +152 -0
- package/package.json +2 -1
- package/templates/roles/HANDBOOK.md +12 -7
- package/dist/web-ui/assets/Team-FFbGLcXj.js +0 -84
- package/dist/web-ui/assets/channel-C_kHFvaW.js +0 -1
- package/dist/web-ui/assets/classDiagram-4FO5ZUOK-UF2PuXCi.js +0 -1
- package/dist/web-ui/assets/classDiagram-v2-Q7XG4LA2-UF2PuXCi.js +0 -1
- package/dist/web-ui/assets/index-3PQIqBtv.css +0 -1
- package/dist/web-ui/assets/stateDiagram-v2-BHNVJYJU-DuO1A2q2.js +0 -1
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
# Markus Community Guide
|
|
2
|
+
|
|
3
|
+
Markus's goal is to turn "people who start using it" into "people who stay to build it together." This document is the single source of truth for the community entry point: the channel matrix, how to join, the operating rules, and the launch checklist.
|
|
4
|
+
|
|
5
|
+
> Status legend: 🟢 Live · 🟡 In progress · 🔵 Planned
|
|
6
|
+
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
## 1. Channel Matrix
|
|
10
|
+
|
|
11
|
+
| Channel | Language | Status | Purpose |
|
|
12
|
+
|------|------|------|------|
|
|
13
|
+
| [GitHub Discussions](https://github.com/markus-global/markus/discussions) | EN/Chinese | 🟢 | Q&A, Show & Tell, feature discussions, case-study callouts (the official preferred asynchronous channel) |
|
|
14
|
+
| [GitHub Issues](https://github.com/markus-global/markus/issues) | EN | 🟢 | Bugs and specific feature requests (including good first issue / help wanted) |
|
|
15
|
+
| [Blog](https://markus.global/blog) | EN | 🟢 | Tutorials, release announcements, case stories |
|
|
16
|
+
| **Discord** | EN (global) | 🟡 | Real-time chat, contributor collaboration, release announcements — see the launch plan below |
|
|
17
|
+
| **WeChat group** | Chinese | 🟡 | Chinese-language user chat, beta feedback, localization collaboration — see the launch plan below |
|
|
18
|
+
| X (Twitter) | EN | 🔵 | Product updates, community showcase (the ops team is already working on it) |
|
|
19
|
+
|
|
20
|
+
**Operating principle**: all channels ultimately feed back into GitHub (discussion conclusions → issues; cases that should be public → blog/docs). Discord/WeChat groups are positioned as "real-time entry points" and do not replace the asynchronously visible GitHub discussions.
|
|
21
|
+
|
|
22
|
+
---
|
|
23
|
+
|
|
24
|
+
## 2. Discord (EN / Global) — Launch Plan
|
|
25
|
+
|
|
26
|
+
**Why Discord**: it is mainstream in open-source AI project communities (e.g. LangChain, LlamaIndex, n8n), and it supports real-time collaboration, bot integration, and GitHub linkage (a GitHub bot is available).
|
|
27
|
+
|
|
28
|
+
**Target channel structure** (suggested):
|
|
29
|
+
|
|
30
|
+
```
|
|
31
|
+
#welcome Server rules + role pickup (Contributor / User / Maintainer)
|
|
32
|
+
#general Chit-chat and Q&A
|
|
33
|
+
#show-and-tell Showcasing work
|
|
34
|
+
#contributing Contribution guide, finding collaborators, PR help
|
|
35
|
+
#releases Auto-broadcast of GitHub releases
|
|
36
|
+
#core-runtime In-depth core/org-manager discussion (optional; open later once there is enough activity)
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
**Launch checklist (Markus team internal TODO)**
|
|
40
|
+
|
|
41
|
+
- [ ] Create the Discord server (suggested first team identity → `markus-global`)
|
|
42
|
+
- [ ] Configure server rules and the `welcome` channel (reference our [Code of Conduct](../../CODE_OF_CONDUCT.md))
|
|
43
|
+
- [ ] Generate an invite link (set it to never expire) and fill it into the "Invite link" field below
|
|
44
|
+
- [ ] Wire up the GitHub notification bot (`Github` webhook / Zappier) to broadcast releases and good-first-issue changes
|
|
45
|
+
- [ ] Enable the Discord badge link in the README community section
|
|
46
|
+
|
|
47
|
+
**Invite link:** `<!-- TODO: once the Discord server is created, fill the invite link in here and reference it in the README -->`
|
|
48
|
+
|
|
49
|
+
---
|
|
50
|
+
|
|
51
|
+
## 3. WeChat Group (Chinese) — Launch Plan
|
|
52
|
+
|
|
53
|
+
**Why invite**: Chinese users and contributors make up a large share, and WeChat groups / official accounts are the most natural entry point for the Chinese community. They also carry Chinese documentation localization, beta feedback, and hands-on support for "turning users into contributors."
|
|
54
|
+
|
|
55
|
+
**Launch checklist (TODO)**
|
|
56
|
+
|
|
57
|
+
- [ ] Create the official WeChat group (a maintainer or ops contact creates it; enable "group invite confirmation" to prevent spam)
|
|
58
|
+
- [ ] Generate the group QR code → add it to this document and README.zh-CN.md
|
|
59
|
+
- [ ] Create the "Markus Assistant" reception script: after joining, guide people to read `CONTRIBUTING.md` and pick up good-first-issues
|
|
60
|
+
- [ ] Chinese localization collaboration space: translate `docs/*`, maintain the README, unify the glossary
|
|
61
|
+
|
|
62
|
+
**WeChat group QR code:** `<!-- TODO: group QR code image (keep it up to date to avoid expiry) -->`
|
|
63
|
+
|
|
64
|
+
**Join passphrase convention**: when joining, note "Markus + GitHub username" in the request (if they do not have GitHub, guide them to sign up first, paving the way for contributor conversion).
|
|
65
|
+
|
|
66
|
+
---
|
|
67
|
+
|
|
68
|
+
## 4. Code of Conduct
|
|
69
|
+
|
|
70
|
+
The [Code of Conduct](../../CODE_OF_CONDUCT.md) (Contributor Covenant 2.1) applies to all community channels (GitHub, Discord, WeChat groups, blog). Report misconduct to `conduct@markus.global`.
|
|
71
|
+
|
|
72
|
+
---
|
|
73
|
+
|
|
74
|
+
## 5. The Path from User to Contributor
|
|
75
|
+
|
|
76
|
+
| Stage | User action | What we say |
|
|
77
|
+
|------|---------|--------|
|
|
78
|
+
| Try | Get Markus running, file an issue | README Quick Start → `markus start` |
|
|
79
|
+
| Ask | GitHub Discussion / Discord / WeChat | On-duty responder within 48h, distilled into the FAQ |
|
|
80
|
+
| Feedback | Bug / feature request | Maintainer confirms → converted into issues + labels |
|
|
81
|
+
| **Become a contributor** | Claim a `good first issue` | CONTRIBUTING guide + good-first-issue list; after the first PR is merged, invite them into the Contributor channel/group (Discord role / WeChat group "contributor" note) |
|
|
82
|
+
| Deep involvement | Write adapters / docs / tests | After 3+ merged PRs → fast-track their PRs; invite them to join the Maintainers |
|
|
83
|
+
|
|
84
|
+
**The key conversion point**: the first merge is when retention is highest. Make it explicit in the welcome flow that "you are now a contributor," and give a Role / badge / acknowledgment.
|
|
85
|
+
|
|
86
|
+
---
|
|
87
|
+
|
|
88
|
+
## 6. Maintenance Responsibilities
|
|
89
|
+
|
|
90
|
+
- **Response times**: someone responds to GitHub issues/discussions within 48 hours (automated AI assistant + human rotation); Discord within 2-4h during working hours.
|
|
91
|
+
- **Report handling**: `conduct@markus.global` receives → the maintainer team assesses within 48h → handled per the CoC Enforcement Guidelines.
|
|
92
|
+
- **Content boundaries**: no ads/soft ads; showcases are encouraged but must show genuine usage.
|
|
93
|
+
|
|
94
|
+
---
|
|
95
|
+
|
|
96
|
+
## 7. Milestones
|
|
97
|
+
|
|
98
|
+
- [x] GitHub Discussions / Issues / Blog live
|
|
99
|
+
- [ ] Discord created and connected (clickable in README)
|
|
100
|
+
- [ ] WeChat group established (clickable in README.zh-CN)
|
|
101
|
+
- [ ] First community case study on the README "Real Teams on Markus"
|
|
102
|
+
- [ ] First external contributor PR merged
|
|
103
|
+
|
|
104
|
+
*Document maintenance: PRs to improve this page are welcome (especially channel links and translations).*
|
|
@@ -0,0 +1,179 @@
|
|
|
1
|
+
# Markus Local Development Guide
|
|
2
|
+
|
|
3
|
+
This document is for developers who want to work on the Markus source code (get it running, change code, submit PRs). For the full contribution workflow, see [CONTRIBUTING.md](../../CONTRIBUTING.md) in the repository root.
|
|
4
|
+
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
## 1. Environment Requirements
|
|
8
|
+
|
|
9
|
+
| Dependency | Minimum version | Description |
|
|
10
|
+
|------|---------|------|
|
|
11
|
+
| Node.js | 22.0.0+ | Runtime (LTS recommended; manage with `nvm`/`fnm`) |
|
|
12
|
+
| pnpm | 9.0.0+ | Package manager (`npm install -g pnpm`) |
|
|
13
|
+
| Docker | 24.0+ | Optional; only needed for agent sandbox containers and some integration tests |
|
|
14
|
+
| Git | Any | Version control |
|
|
15
|
+
|
|
16
|
+
> On macOS with Homebrew: `brew install node pnpm`. On Windows, WSL2 or Git Bash is recommended; the core scripts are cross-platform, but `scripts/install.sh` and the like are bash.
|
|
17
|
+
|
|
18
|
+
---
|
|
19
|
+
|
|
20
|
+
## 2. Quick Start
|
|
21
|
+
|
|
22
|
+
```bash
|
|
23
|
+
# 1. Clone
|
|
24
|
+
git clone https://github.com/markus-global/markus.git
|
|
25
|
+
cd markus
|
|
26
|
+
|
|
27
|
+
# 2. Install dependencies (the workspace installs all packages in one shot)
|
|
28
|
+
pnpm install
|
|
29
|
+
|
|
30
|
+
# 3. Build all TypeScript packages
|
|
31
|
+
pnpm build
|
|
32
|
+
|
|
33
|
+
# 4. Start the development environment (API 8056 + Web UI 8057)
|
|
34
|
+
pnpm dev
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
After a successful start:
|
|
38
|
+
|
|
39
|
+
- **Web UI**: http://localhost:8057
|
|
40
|
+
- **API**: http://localhost:8056
|
|
41
|
+
- **First login**: `admin@markus.local` / `markus123`; the onboarding wizard will ask you to set your own credentials
|
|
42
|
+
- **Storage**: SQLite (zero external dependencies); data lives under `~/.markus/` by default
|
|
43
|
+
|
|
44
|
+
> `pnpm dev` runs `pnpm build` first, then starts the API and Vite together. The first start takes a minute or two; when you see both processes (the `api` one in blue, the `ui` one in green), it has succeeded.
|
|
45
|
+
|
|
46
|
+
---
|
|
47
|
+
|
|
48
|
+
## 3. dev Scripts in Detail
|
|
49
|
+
|
|
50
|
+
All commands are defined in the `scripts` section of the root [package.json](../../package.json).
|
|
51
|
+
|
|
52
|
+
| Command | Purpose and internal behavior |
|
|
53
|
+
|------|---------------|
|
|
54
|
+
| `pnpm dev` | **Recommended for day-to-day development**. `pnpm build` → starts the API (`node packages/cli/dist/index.js start`) and the Web UI (Vite, with `/api` `/ws` proxies) together. The UI starts automatically once the API is ready (`scripts/wait-for-api.mjs`) |
|
|
55
|
+
| `pnpm dev:api` | Starts only the API service. **Requires a prior `pnpm build`** (it runs the `dist/` output; pair it with the tsc watcher from `pnpm dev:watch` for hot reload) |
|
|
56
|
+
| `pnpm dev:ui` | Starts only the Web UI Vite dev server (assumes the API is already running on 8056 or on the port specified in `~/.markus/markus.json`) |
|
|
57
|
+
| `pnpm dev:watch` | The ultimate development setup: `pnpm -r --parallel --filter=!@markus/web-ui dev` has every package rebuild in tsc watch mode + starts the API + starts the UI. Editing `packages/*/src` triggers automatic recompile and restart |
|
|
58
|
+
| `pnpm dev:desktop` | Electron desktop development: runs API + Vite + Electron together (`ELECTRON_DEV=1 electron .`, inside `packages/desktop/`) |
|
|
59
|
+
| `pnpm build` | Builds all packages (`pnpm -r build`); output goes to each package's `dist/` |
|
|
60
|
+
| `pnpm test` | Full Vitest test suite |
|
|
61
|
+
| `pnpm typecheck` | `tsc -b` (monorepo referenced build) + a separate `tsc --noEmit` for the Web UI |
|
|
62
|
+
| `pnpm lint` | ESLint over `packages/*/src/` |
|
|
63
|
+
| `pnpm quality` | `typecheck` + `test` combined |
|
|
64
|
+
| `pnpm clean` | Cleans all build output |
|
|
65
|
+
| `pnpm markus` | Runs the CLI directly from source (equivalent to `node packages/cli/dist/index.js`) |
|
|
66
|
+
| `pnpm build:publish` | Full publish build (build + web-ui + cli bundle) |
|
|
67
|
+
| `pnpm build:desktop` | Desktop installer (Electron builder) |
|
|
68
|
+
|
|
69
|
+
### Ports and Configuration
|
|
70
|
+
|
|
71
|
+
- Default ports: API **8056**, Web UI **8057**; change them via `server.apiPort` in `~/.markus/markus.json` (`scripts/wait-for-api.mjs` reads this automatically).
|
|
72
|
+
- LLM configuration: copy `markus.json.example` to `~/.markus/markus.json` and fill in your LLM provider API key (Anthropic / OpenAI / DeepSeek / Ollama / OpenRouter, etc.). You can also configure it on the Web UI settings page.
|
|
73
|
+
- Note: the root `markus.json.example` is a configuration sample — do **not** commit real keys to the repository.
|
|
74
|
+
|
|
75
|
+
---
|
|
76
|
+
|
|
77
|
+
## 4. Project Structure at a Glance
|
|
78
|
+
|
|
79
|
+
The repository is a pnpm workspace monorepo:
|
|
80
|
+
|
|
81
|
+
```
|
|
82
|
+
packages/
|
|
83
|
+
├── shared/ Shared types/constants/utilities
|
|
84
|
+
├── core/ Agent runtime: LLM routing, tools, skills, memory, heartbeat, workspace isolation
|
|
85
|
+
├── storage/ SQLite/PostgreSQL repository layer
|
|
86
|
+
├── org-manager/ REST API + WebSocket + org governance + task lifecycle
|
|
87
|
+
├── web-ui/ React + Vite + Tailwind frontend
|
|
88
|
+
├── desktop/ Electron desktop app
|
|
89
|
+
├── cli/ Command-line entry point (@markus-global/cli)
|
|
90
|
+
├── comms/ Slack / Feishu / WhatsApp / Telegram external bridges
|
|
91
|
+
├── a2a/ Inter-agent communication protocol
|
|
92
|
+
├── gui/ GUI automation (VNC + OmniParser)
|
|
93
|
+
├── remote/ Remote access (Cloudflare Tunnel / Tailscale / FRP / ngrok)
|
|
94
|
+
├── chrome-extension/ Browser extension
|
|
95
|
+
├── scripts/ Build/release/utility scripts
|
|
96
|
+
├── templates/ Agent role (ROLE.md) and skill (SKILL.md) templates
|
|
97
|
+
├── docs/ Design documents (architecture, API, memory, skill ecosystem...)
|
|
98
|
+
└── examples/ Runnable examples
|
|
99
|
+
```
|
|
100
|
+
|
|
101
|
+
**Getting started**: read `docs/architecture/architecture.md` (system architecture) and `docs/architecture/agent-runtime.md` (agent lifecycle) first, then look at the package you want to change.
|
|
102
|
+
|
|
103
|
+
---
|
|
104
|
+
|
|
105
|
+
## 5. Testing
|
|
106
|
+
|
|
107
|
+
- Framework: **Vitest**. The root `vitest.config.ts` defines two projects — `node` (backend packages) and `web-ui` (frontend, `happy-dom`) — so run `pnpm test:node` or `pnpm test:web-ui` to target one side.
|
|
108
|
+
- Run just one package/file (faster for local development):
|
|
109
|
+
```bash
|
|
110
|
+
pnpm test -- packages/core # filter by path
|
|
111
|
+
pnpm test -- src/foo.test.ts # single file
|
|
112
|
+
pnpm test:node # backend (node project) only
|
|
113
|
+
pnpm test:web-ui # frontend (web-ui project) only
|
|
114
|
+
pnpm test:watch # watch mode
|
|
115
|
+
pnpm test:coverage # coverage
|
|
116
|
+
```
|
|
117
|
+
- Always run the full `pnpm test` before committing.
|
|
118
|
+
|
|
119
|
+
> ⚠️ **Known environment-dependent failures**: a handful of cases in the full suite need external resources (local port 8056 in use, search/image API keys, external model calls, etc.); they pass in a clean environment/CI but may fail locally. If you hit a failure before committing, compare against the baseline to confirm whether you introduced it: `git stash && pnpm test -- <failing file> && git stash pop`.
|
|
120
|
+
|
|
121
|
+
### 5.1 Coverage Baseline and CI Gates
|
|
122
|
+
|
|
123
|
+
> Last updated: 2026-09 (evergreen baseline after the v0.9.9 release assessment).
|
|
124
|
+
|
|
125
|
+
- **Backend thresholds** (`packages/core` / `org-manager` / `storage` / combined): **71 / 61 / 73 / 74**.
|
|
126
|
+
The whole repo has roughly **420 test files**; the backend tests are solid and a trustworthy precondition for a release.
|
|
127
|
+
- **CI gate composition** (`.github/workflows/ci.yml`, job `quality`): typecheck → lint → architecture guard →
|
|
128
|
+
tests (`node` project) → tests (`web-ui` project) → skipped-test audit → frontend coverage (blocking) →
|
|
129
|
+
coverage ratchet (the floor must not drop). A second job, `backend-coverage`, builds the compiled `dist`
|
|
130
|
+
(the tests import it) and reports backend coverage behind its own ratchet.
|
|
131
|
+
`MARKUS_*` environment variables are **not** isolated in CI — a known gap.
|
|
132
|
+
- **Frontend coverage history lesson**: it was once shut out entirely (vitest include omitted `.tsx`, exclude ruled out
|
|
133
|
+
`packages/web-ui`), showing up as a fake 0% — a **wrong denominator**, not broken collection. The frontend must explicitly collect
|
|
134
|
+
`.tsx` and configure its own coverage include.
|
|
135
|
+
- **Gap inventory**: roughly 20 high-risk, untested frontend files (the exact list changes over time; defer to the CI gap report).
|
|
136
|
+
|
|
137
|
+
### 5.2 Test Quality Conventions (Preventing Fake Green)
|
|
138
|
+
|
|
139
|
+
- **Assumed green needs reverse verification**: a passing test is not a valid test — introduce a bug on purpose and confirm it turns red.
|
|
140
|
+
- **Behavior-level assertions > text sniffing**: assert on function/semantic results, not on output text fragments.
|
|
141
|
+
- **Environment isolation**: tests must not depend on host environment variables; CI's wui-check / separate configs must isolate explicitly.
|
|
142
|
+
- **Skipped cases need auditing**: `it.skip` / `describe.skip` must have a reason, otherwise treat it as debt.
|
|
143
|
+
- **Coverage ratchet**: only up, never down; guards against fake 0% green / silent failure (a broken coverage config must be able to raise an alarm).
|
|
144
|
+
- **Real defect patterns to remember** (past fixes, to prevent recurrence): Gemini reasoning content silently dropped, async transaction callbacks
|
|
145
|
+
not rolling back, provider timeouts with no fallback, watchdog with no signal — regress against these patterns when fixing.
|
|
146
|
+
|
|
147
|
+
### 5.3 Notes on vitest Multi-project Configuration
|
|
148
|
+
|
|
149
|
+
- `coverage.include` / `exclude` are **project-level** settings; root-level settings are not automatically inherited by child projects —
|
|
150
|
+
an omission makes a child project's coverage silently 0 or makes it run the wrong file set (one root cause of the frontend's fake 0%).
|
|
151
|
+
- When adding a project, you must check all of the following at the same time: whether include covers the target extension (`.tsx`),
|
|
152
|
+
whether exclude accidentally kills the target package, and whether the coverage gate is in effect (deliberately lower the threshold to confirm it turns red).
|
|
153
|
+
|
|
154
|
+
---
|
|
155
|
+
|
|
156
|
+
## 6. Debugging and Common Issues
|
|
157
|
+
|
|
158
|
+
| Problem | Solution |
|
|
159
|
+
|------|---------|
|
|
160
|
+
| Port 8056 is in use | Find the process holding it (`lsof -i :8056`), or change `server.apiPort` in `~/.markus/markus.json`; the UI proxy follows along |
|
|
161
|
+
| Changes to `packages/*/src` have no effect | Use `pnpm dev:watch` (tsc watch); under plain `pnpm dev`, changing the API requires restarting the API process |
|
|
162
|
+
| Frontend changes don't refresh | Vite usually hot-reloads; if you changed `locales` or constants, just refresh the browser |
|
|
163
|
+
| `pnpm install` reports a peer conflict | Use `pnpm install --fix-lockfile` (do not delete the lockfile) |
|
|
164
|
+
| Development data got dirty | Delete and recreate the corresponding database file under `~/.markus/` (acceptable during development; back up production data first) |
|
|
165
|
+
| Want to connect a real LLM | Configure a provider key in `~/.markus/markus.json` or on the Web UI settings page |
|
|
166
|
+
| Debugging the API | `curl http://localhost:8056/api/health` to check liveness; for REST endpoints see `docs/api/api.md` |
|
|
167
|
+
|
|
168
|
+
---
|
|
169
|
+
|
|
170
|
+
## 7. Pre-commit Checklist
|
|
171
|
+
|
|
172
|
+
```bash
|
|
173
|
+
pnpm typecheck # all types pass
|
|
174
|
+
pnpm lint # no new warnings/errors
|
|
175
|
+
pnpm test # all tests green (compare against the baseline first to rule out environment failures)
|
|
176
|
+
git commit -s # DCO-signed commit (important! see CONTRIBUTING.md)
|
|
177
|
+
```
|
|
178
|
+
|
|
179
|
+
For more workflow (PR conventions, code standards, License and DCO), see [CONTRIBUTING.md](../../CONTRIBUTING.md).
|
|
@@ -0,0 +1,362 @@
|
|
|
1
|
+
# Markus User Guide
|
|
2
|
+
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
## Table of Contents
|
|
6
|
+
|
|
7
|
+
- [Prerequisites](#prerequisites)
|
|
8
|
+
- [Local Development Setup](#local-development-setup)
|
|
9
|
+
- [Environment Variables](#environment-variables)
|
|
10
|
+
- [First Login](#first-login)
|
|
11
|
+
- [Web UI Usage](#web-ui-usage)
|
|
12
|
+
- [REST API Reference](#rest-api-reference)
|
|
13
|
+
- [Custom Role Templates](#custom-role-templates)
|
|
14
|
+
- [Remote Access](#remote-access)
|
|
15
|
+
- [FAQ](#faq)
|
|
16
|
+
|
|
17
|
+
---
|
|
18
|
+
|
|
19
|
+
## Prerequisites
|
|
20
|
+
|
|
21
|
+
| Dependency | Minimum Version | Purpose |
|
|
22
|
+
|------------|-----------------|---------|
|
|
23
|
+
| Node.js | 22.0.0+ | Runtime |
|
|
24
|
+
| pnpm | 9.0.0+ | Package manager |
|
|
25
|
+
| Docker | 24.0+ | Agent sandbox containers (optional) |
|
|
26
|
+
|
|
27
|
+
---
|
|
28
|
+
|
|
29
|
+
## Local Development Setup
|
|
30
|
+
|
|
31
|
+
### 1. Install Dependencies
|
|
32
|
+
|
|
33
|
+
```bash
|
|
34
|
+
git clone <repo-url> markus
|
|
35
|
+
cd markus
|
|
36
|
+
pnpm install
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
### 2. Build All Packages
|
|
40
|
+
|
|
41
|
+
```bash
|
|
42
|
+
pnpm build
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
You should see 12 workspace packages compile successfully.
|
|
46
|
+
|
|
47
|
+
### 3. Configure
|
|
48
|
+
|
|
49
|
+
```bash
|
|
50
|
+
cp markus.json.example ~/.markus/markus.json
|
|
51
|
+
# Edit ~/.markus/markus.json and add your LLM API key
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
### 4. Start the Backend Service
|
|
55
|
+
|
|
56
|
+
In a **first terminal**, run:
|
|
57
|
+
|
|
58
|
+
```bash
|
|
59
|
+
node packages/cli/dist/index.js start
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
When the backend API is ready, it will display `API server listening on 0.0.0.0:8056 (HTTP + WebSocket)`.
|
|
63
|
+
|
|
64
|
+
### 5. Start the Frontend Dev Server
|
|
65
|
+
|
|
66
|
+
In a **second terminal**, run:
|
|
67
|
+
|
|
68
|
+
```bash
|
|
69
|
+
pnpm --filter @markus/web-ui dev
|
|
70
|
+
```
|
|
71
|
+
|
|
72
|
+
Default ports:
|
|
73
|
+
- Web UI: `http://localhost:8057` (Vite dev server; proxies `/api` to the backend)
|
|
74
|
+
- API Server: `http://localhost:8056`
|
|
75
|
+
|
|
76
|
+
> **Note:** The frontend Vite dev server is a separate process and must be started independently. `node packages/cli/dist/index.js start` runs only the backend API, not the frontend.
|
|
77
|
+
|
|
78
|
+
---
|
|
79
|
+
|
|
80
|
+
## Environment Variables
|
|
81
|
+
|
|
82
|
+
| Variable | Required | Description |
|
|
83
|
+
|----------|----------|-------------|
|
|
84
|
+
| `OPENAI_API_KEY` | Recommended | OpenAI API key (primary LLM) |
|
|
85
|
+
| `ANTHROPIC_API_KEY` | Optional | Anthropic API key |
|
|
86
|
+
| `DEEPSEEK_API_KEY` | Optional | DeepSeek API key (fallback) |
|
|
87
|
+
| `DATABASE_URL` | Optional | SQLite path override (default: `~/.markus/data.db`, format: `sqlite:/path/to/db`) |
|
|
88
|
+
| `JWT_SECRET` | Recommended for production | JWT signing secret |
|
|
89
|
+
| `AUTH_ENABLED` | Optional | Enable login (default: true) |
|
|
90
|
+
|
|
91
|
+
Ports and the default LLM provider/model are **not** environment variables. They are set in
|
|
92
|
+
`markus.json` (`server.apiPort` / `server.webPort`, and the `llm` section) or through the Settings UI.
|
|
93
|
+
|
|
94
|
+
---
|
|
95
|
+
|
|
96
|
+
## First Login
|
|
97
|
+
|
|
98
|
+
Initial credentials (before onboarding):
|
|
99
|
+
- Email: `admin@markus.local`
|
|
100
|
+
- Password: `markus123`
|
|
101
|
+
|
|
102
|
+
**On first login, the onboarding wizard will guide you to set your real name, email, and a new password.** You should complete the profile setup step to replace these default credentials.
|
|
103
|
+
|
|
104
|
+
After onboarding, you can add more human members or hire AI agents from the Team page.
|
|
105
|
+
|
|
106
|
+
---
|
|
107
|
+
|
|
108
|
+
## Multi-User Collaboration
|
|
109
|
+
|
|
110
|
+
Markus supports small team collaboration with multiple human users and AI agents.
|
|
111
|
+
|
|
112
|
+
### Inviting Users
|
|
113
|
+
|
|
114
|
+
1. Go to **Settings > User Management**
|
|
115
|
+
2. Click **Create User** — provide name, email, and role (`admin`, `member`, or `guest`)
|
|
116
|
+
3. The system generates an **invite link** (valid for 7 days)
|
|
117
|
+
4. Share the link with the new user — they set their own password via the link
|
|
118
|
+
5. Once joined, the invite button disappears and the user shows as active
|
|
119
|
+
|
|
120
|
+
### Roles & Permissions
|
|
121
|
+
|
|
122
|
+
| Role | Manage Users | Manage Agents | Manage Teams | View All Data |
|
|
123
|
+
|------|-------------|--------------|-------------|--------------|
|
|
124
|
+
| `owner` | Yes | Yes | Yes | Yes |
|
|
125
|
+
| `admin` | Yes | Yes | Yes | Yes |
|
|
126
|
+
| `member` | No | No | No | Yes |
|
|
127
|
+
| `guest` | No | No | No | Limited |
|
|
128
|
+
|
|
129
|
+
### Communication Channels
|
|
130
|
+
|
|
131
|
+
| Channel | How to Access | Description |
|
|
132
|
+
|---------|--------------|-------------|
|
|
133
|
+
| **Agent Chat** | Team page > click agent | One-on-one conversation with an AI agent (session isolated per user) |
|
|
134
|
+
| **Agent DM (A2A)** | Automatic between agents | Agent-to-agent DMs with persistent history via `agent_send_message` |
|
|
135
|
+
| **DM** | Team page > People > click user | Private messages between two humans |
|
|
136
|
+
| **Team Group** | Team page > select team channel | Group chat for all team members (auto-created per team) |
|
|
137
|
+
| **Custom Group** | Team page > Create Group Chat | Manually managed group with selected humans and agents |
|
|
138
|
+
| **@Mention** | Task/Requirement comments | Mention humans or agents in comment threads — triggers bell notification |
|
|
139
|
+
|
|
140
|
+
### Notification Bell
|
|
141
|
+
|
|
142
|
+
The notification bell (top-right) shows:
|
|
143
|
+
- **Agent reports**: Proactive messages from agents (`notify_user`)
|
|
144
|
+
- **DM notifications**: New direct messages from other humans
|
|
145
|
+
- **Group messages**: New messages in group chats you belong to
|
|
146
|
+
- **@Mentions**: When someone mentions you in task/requirement comments
|
|
147
|
+
- **Approval requests**: Pending items requiring your decision
|
|
148
|
+
- **Task updates**: Status changes on tasks you're involved with
|
|
149
|
+
|
|
150
|
+
Click any notification to navigate directly to the relevant page.
|
|
151
|
+
|
|
152
|
+
### Chat Session Isolation
|
|
153
|
+
|
|
154
|
+
Each human user has their own private chat sessions with agents:
|
|
155
|
+
- Your conversations with an agent are not visible to other users
|
|
156
|
+
- Agent "Activity Logs" (main sessions) are shared — visible to all users
|
|
157
|
+
- Group chats and channel messages are visible to all channel members
|
|
158
|
+
|
|
159
|
+
---
|
|
160
|
+
|
|
161
|
+
## Web UI Usage
|
|
162
|
+
|
|
163
|
+
### Chat Page
|
|
164
|
+
|
|
165
|
+
The left sidebar lets you choose a conversation target:
|
|
166
|
+
- **Smart Route** — System routes messages to the most suitable Agent
|
|
167
|
+
- **#Channels** — Send to a public channel; you can @mention specific Agents
|
|
168
|
+
- **Agent List** — Direct conversation with a specific Agent
|
|
169
|
+
- **People** — My Notes (personal scratchpad) or DM other human users
|
|
170
|
+
|
|
171
|
+
### Agents Page
|
|
172
|
+
|
|
173
|
+
- Click an Agent row to open the Profile panel on the right
|
|
174
|
+
- In the Profile you can view role, status, memory, and tools
|
|
175
|
+
- Start / Stop buttons switch based on state (only one is visible at a time)
|
|
176
|
+
- **Mind tab** — view attention state, mailbox, and the agent's **Notebook** (persistent cognitive workspace)
|
|
177
|
+
|
|
178
|
+
### Agent Notebook, Memory & Goals
|
|
179
|
+
|
|
180
|
+
**Notebook** — Agents maintain a persistent notebook (`NOTEBOOK.md`) as their cognitive workspace. Keyed entries survive restarts and are injected into every turn. View entries in the **Notebook** section on the Mind tab of the Agent Profile page.
|
|
181
|
+
|
|
182
|
+
**Memory** — Long-term knowledge lives in a unified `MEMORY.md` file containing both curated knowledge sections and a raw `## _observations` buffer. The dream cycle automatically consolidates observations into distilled knowledge.
|
|
183
|
+
|
|
184
|
+
**Goals** — Agents can pursue persistent objectives backed by requirements with `GoalConfig`. Goals have completion criteria and iteration tracking; heartbeat periodically checks progress. Create a goal by typing `/goal <description>` in agent chat.
|
|
185
|
+
|
|
186
|
+
**Slash Commands** — Type `/` in the chat input to open the command menu:
|
|
187
|
+
|
|
188
|
+
| Command | Action |
|
|
189
|
+
|---------|--------|
|
|
190
|
+
| `/goal [description]` | Create a standing goal |
|
|
191
|
+
| `/status` | Request a concise status update |
|
|
192
|
+
| `/notebook` | View notebook snapshot |
|
|
193
|
+
| `/task [description]` | Create a task |
|
|
194
|
+
|
|
195
|
+
**A2A Communication** — Agents communicate with each other via DM channels with persistent conversation history (deterministic `dm:a2a:{sorted_ids}` routing). Use group chat or agent messaging; substantial work should go through requirements and tasks.
|
|
196
|
+
|
|
197
|
+
### Settings Page
|
|
198
|
+
|
|
199
|
+
- **Agent settings** include a **Concurrent Processing** block:
|
|
200
|
+
- **Enable concurrent processing** (default on) — let the agent work several *independent* items at once via isolated worker sessions.
|
|
201
|
+
- **Max workers** (1–10, default 3) — `1` means strictly serial (one item at a time), identical to disabling concurrency.
|
|
202
|
+
- **Conflict policy** — *Auto* (requeue & retry when an entity is busy) or *Report* (escalate/emit a conflict event).
|
|
203
|
+
- Note: concurrency only ever applies **between** different entities. The same task, requirement, conversation, or user is never processed by two workers at once — see [concurrent-processing.md](../architecture/concurrent-processing.md).
|
|
204
|
+
|
|
205
|
+
### Tasks Page
|
|
206
|
+
|
|
207
|
+
- Kanban view with columns by status (pending, assigned, in_progress, review, revision, accepted, completed, archived, etc.)
|
|
208
|
+
- Click a task card for details, progress notes, and subtasks
|
|
209
|
+
- In the task detail you can run governance actions: Submit for Review, Accept, Request Revision, Archive
|
|
210
|
+
- Tasks can be created manually; Agents can also create them (subject to governance policy approval)
|
|
211
|
+
|
|
212
|
+
### Governance Page
|
|
213
|
+
|
|
214
|
+
- **System Status** — See whether the system is in pause or emergency-stop mode
|
|
215
|
+
- **Global Controls** — Pause all Agents, Resume, or Emergency Stop
|
|
216
|
+
- **Governance Policy** — Configure default approval levels, **max concurrent tasks** (the task-execution cap, distinct from the agent-level Concurrent Processing worker count), approval rules
|
|
217
|
+
- **Announcements** — Create and view system-wide broadcast messages
|
|
218
|
+
|
|
219
|
+
### Projects Page
|
|
220
|
+
|
|
221
|
+
- Left panel lists all projects; right side shows the selected project details
|
|
222
|
+
- Create projects (name, description, repository URL)
|
|
223
|
+
- View project status, requirements, and linked Teams
|
|
224
|
+
|
|
225
|
+
### Knowledge Page
|
|
226
|
+
|
|
227
|
+
- Browse and search project knowledge bases
|
|
228
|
+
- Filter by scope (org, project, personal)
|
|
229
|
+
- View knowledge entry details (Markdown rendering)
|
|
230
|
+
- Create entries (title, content, category, tags, scope)
|
|
231
|
+
|
|
232
|
+
### Reports Page
|
|
233
|
+
|
|
234
|
+
- View generated reports (daily/weekly/monthly)
|
|
235
|
+
- Manually trigger report generation (choose type and range)
|
|
236
|
+
- View report details: metrics, task summary, cost summary
|
|
237
|
+
- Approve or reject work plans
|
|
238
|
+
- Add feedback on reports (comments, instructions, annotations)
|
|
239
|
+
|
|
240
|
+
### Team Page
|
|
241
|
+
|
|
242
|
+
The Team page serves dual purposes: team management and communication hub.
|
|
243
|
+
|
|
244
|
+
**Sidebar (left):**
|
|
245
|
+
- **Smart Route** — System routes messages to the most suitable Agent
|
|
246
|
+
- **People** — Human users list (DM and notes)
|
|
247
|
+
- **Agents** — All AI agents with online status indicators
|
|
248
|
+
- **Group Chats** — Team channels and custom group chats (create, manage members)
|
|
249
|
+
|
|
250
|
+
**Team Management:**
|
|
251
|
+
- Displays all teams and their members (humans and AI Agents) as cards
|
|
252
|
+
- Members without a team appear in the "Ungrouped" area
|
|
253
|
+
- Owners and Admins can:
|
|
254
|
+
- Create or delete teams
|
|
255
|
+
- Hire new AI Agents in a team (specify role and position: Worker or Manager)
|
|
256
|
+
- Set a Manager for a team (via the member `...` menu)
|
|
257
|
+
- Remove a member from a team or from the org entirely
|
|
258
|
+
|
|
259
|
+
**Group Chat Management:**
|
|
260
|
+
- Each team automatically gets a group channel
|
|
261
|
+
- Create custom group chats with any combination of humans and agents
|
|
262
|
+
- Add or remove members from custom group chats (via the member management panel)
|
|
263
|
+
- Creator is automatically added as a member
|
|
264
|
+
|
|
265
|
+
---
|
|
266
|
+
|
|
267
|
+
## REST API Reference
|
|
268
|
+
|
|
269
|
+
For the full REST API reference (all endpoints, request/response formats, and WebSocket events), see **[api.md](../api/api.md)**.
|
|
270
|
+
|
|
271
|
+
---
|
|
272
|
+
|
|
273
|
+
## Custom Role Templates
|
|
274
|
+
|
|
275
|
+
Built-in roles are in `templates/roles/`:
|
|
276
|
+
- `org-manager` — Organization lead; handles routing and coordination
|
|
277
|
+
- `developer` — Software development engineer
|
|
278
|
+
- `product-manager` — Product manager
|
|
279
|
+
- `operations` — Ops/DevOps
|
|
280
|
+
|
|
281
|
+
### Creating a Custom Role
|
|
282
|
+
|
|
283
|
+
Create a directory under `templates/roles/`:
|
|
284
|
+
|
|
285
|
+
```
|
|
286
|
+
templates/roles/my-role/
|
|
287
|
+
├── ROLE.md # Required: role definition and system prompt
|
|
288
|
+
├── SKILLS.md # Optional: skills and tool permissions
|
|
289
|
+
├── HEARTBEAT.md # Optional: scheduled proactive tasks
|
|
290
|
+
└── POLICIES.md # Optional: behavior rules
|
|
291
|
+
```
|
|
292
|
+
|
|
293
|
+
Example `ROLE.md`:
|
|
294
|
+
|
|
295
|
+
```markdown
|
|
296
|
+
# Legal Advisor
|
|
297
|
+
|
|
298
|
+
You are a legal assistant focused on corporate compliance and contract review for companies.
|
|
299
|
+
|
|
300
|
+
## Responsibilities
|
|
301
|
+
- Review contract terms and flag risk areas
|
|
302
|
+
- Answer compliance questions from employees
|
|
303
|
+
- Track important compliance deadlines
|
|
304
|
+
|
|
305
|
+
## Principles
|
|
306
|
+
- For uncertain legal issues, state clearly: "Consult a qualified lawyer"
|
|
307
|
+
- Do not provide final legal opinions on specific cases
|
|
308
|
+
```
|
|
309
|
+
|
|
310
|
+
After creating the role, you can hire Agents with that role via the API or the Web UI "Hire Agent" button.
|
|
311
|
+
|
|
312
|
+
---
|
|
313
|
+
|
|
314
|
+
## Remote Access
|
|
315
|
+
|
|
316
|
+
To access Markus from the internet (remote teams, external agents, mobile), see the dedicated **[Remote Access Guide](./remote-access.md)** which covers Cloudflare Tunnel, Tailscale, FRP, ngrok, and security best practices.
|
|
317
|
+
|
|
318
|
+
---
|
|
319
|
+
|
|
320
|
+
## FAQ
|
|
321
|
+
|
|
322
|
+
**Q: Data is lost after restarting the service?**
|
|
323
|
+
A: Data is stored in SQLite at `~/.markus/data.db` by default. If that directory is missing or unwritable, the system may fall back to in-memory mode.
|
|
324
|
+
|
|
325
|
+
**Q: Agent is not responding?**
|
|
326
|
+
A: Check that the LLM API key is correctly configured and that the Agent is in `online` status (green dot).
|
|
327
|
+
|
|
328
|
+
**Q: Can I use the system without logging in?**
|
|
329
|
+
A: Set `AUTH_ENABLED=false` in the environment variables to disable auth (suitable only for trusted internal networks).
|
|
330
|
+
|
|
331
|
+
**Q: How do I view an Agent's work logs?**
|
|
332
|
+
A: Open the Agents page, click an Agent row, and use the Profile panel on the right. You can also @mention the Agent in the `#general` channel to have it report its current state.
|
|
333
|
+
|
|
334
|
+
**Q: How do I give an Agent scheduled tasks?**
|
|
335
|
+
A: Create a `HEARTBEAT.md` file in the Agent's role directory describing what the Agent should do on a schedule. The heartbeat interval can be configured at startup.
|
|
336
|
+
|
|
337
|
+
**Q: How do I pause all Agents?**
|
|
338
|
+
A: On the Governance page, click "Pause All Agents", or call `POST /api/system/pause-all`. Use "Emergency Stop" for critical situations.
|
|
339
|
+
|
|
340
|
+
**Q: Does the paused state persist after restarting Markus?**
|
|
341
|
+
A: Yes. Individual agent, team-level, and global pause states are all persisted in the database. When Markus restarts, paused agents remain paused and the UI correctly reflects the paused state. You can also pause/resume individual agents or teams from the Team page.
|
|
342
|
+
|
|
343
|
+
**Q: Do tasks created by Agents need approval?**
|
|
344
|
+
A: This depends on the governance policy. By default, standard tasks need Manager approval and high-priority tasks need human approval. Configure this on the Governance page.
|
|
345
|
+
|
|
346
|
+
**Q: What happens when I (a human) create a task?**
|
|
347
|
+
A: Human-created tasks start in `pending` status. You will not receive a self-notification or approval request. Click "Start Execution" in the task detail page to begin execution. This differs from agent-created tasks, which show an "Approve" button and go through the HITL approval flow.
|
|
348
|
+
|
|
349
|
+
**Q: How do Agents share knowledge?**
|
|
350
|
+
A: Agents contribute via the `knowledge_contribute` tool to the project knowledge base; other Agents search with `kb_search`. Humans can view and manage entries on the Knowledge page.
|
|
351
|
+
|
|
352
|
+
**Q: How do I assign Agents to different projects?**
|
|
353
|
+
A: Create projects on the Projects page and link them to Teams. When Agents are assigned to tasks within a project, they automatically get project context and isolated workspaces.
|
|
354
|
+
|
|
355
|
+
**Q: Can other users see my conversations with an Agent?**
|
|
356
|
+
A: No. Each user's chat sessions with agents are private, scoped by your user ID. Only the agent's "Activity Log" (main session) is shared across all users.
|
|
357
|
+
|
|
358
|
+
**Q: How do I add someone to a group chat?**
|
|
359
|
+
A: Open the group chat, click the member management icon, and add or remove humans and agents. Team group chats include all team members automatically; custom group chats allow manual member management.
|
|
360
|
+
|
|
361
|
+
**Q: How do Agents know who they're talking to?**
|
|
362
|
+
A: The system injects the current user's identity into the agent's context. Agents also have access to per-user profile files (`USER.md`) maintained by the Secretary, allowing personalized interactions.
|