dsh-team-ops: Equipping DeepSeek Harness with a Named-Role Team

Introduction

The plugin-based design of DeepSeek Harness (DSH) allows features to be stacked on demand. But opening a few more chat windows still leaves you with a bunch of isolated contexts — state scattered across different sessions, making it hard to know “who’s doing what,” “who picked up what,” or “who to call next.” This is especially painful in team collaboration and role-based workflows, where the lack of a unified dashboard and queryable state easily leads to duplicate task assignments, unclaimed work, or unclear ownership.

dsh-team-ops exists to solve exactly these problems: it equips DSH with a named-role team that you can call, query, and wrap up. It doesn’t rely on presets — it simply provides role definitions, a task board, a member roster, and state files. All state lives in the .ops/ directory under the workspace: readable, queryable, and backup-friendly.

What It Is

dsh-team-ops is a DeepSeek Harness plugin maintained by TinTongogo. Its core idea is to pull “roles” and “tasks” out of the conversation stream and consolidate them into a single readable state: a set of named roles (architect, developer, tester, marketer, legal…), a shared task board, and members that persist after they finish, stop getting new work when idle, and simply vote yes or no.

The biggest difference from “opening a few more chat windows” is that the team’s state is readable and traceable. The task board and members live in DSH’s native Agent Teams (the panel and tools read from the same source). The role list, every judgment you’ve made, and role toggles all land in workspace files that the next session can read. Who’s doing what, what’s blocked, who’s picking it up — one question and you get an answer.

Installation & Activation

Before installing, make sure DeepSeek Harness is already installed and you know the profile you’re using (the default is usually desktop).

# Install
pnpm --dir ~/.dsh/profiles/desktop add 'git+https://github.com/TinTongogo/dsh-team-ops.git'

# Update later
pnpm --dir ~/.dsh/profiles/desktop update dsh-team-ops

After installation, restart DSH (or refresh the page). To confirm the install succeeded: ~/.dsh/profiles/desktop/package.json must list dsh-team-ops under dependencies, and dsh.profile.bundles must include it as well.

node -e "console.log(require(process.env.HOME + '/.dsh/profiles/desktop/node_modules/dsh-team-ops/package.json').version)"

The version number should match the one in the repository’s package.json.

Core Features

Team Status Bar

The chat page gains a “Team Status” bar with four sections: Members, Roles, Skills, and Task Board. This bar reads from the same state source as the tools, so you can check the current team configuration and task progress at any time.

Role Mentioning

A “Roles” button appears to the left of the input field. Click it, select a role, and @roleName is automatically inserted into the input. This is essentially a named call-out — handing that specific task to the corresponding role. Write multiple @ mentions to dispatch to multiple roles simultaneously.

Polish Button

A “Polish” button appears on the right side of the input field (next to the send key). One click rewrites your current draft into a more specific, directly actionable request (it only rewrites the request itself — it doesn’t answer on your behalf; it doesn’t inject project context; output is ~800 characters max, in the same language as the input, with code/links/paths/@mentions preserved verbatim). After rewriting, the text in the input is replaced and the button changes to “Undo” — click once to restore the original. After undoing, clicking Polish again forces a fresh regeneration (bypasses the 3-minute result cache). Empty drafts are ignored; on failure, a confirmation popup appears and the button briefly shows a failed state (recovers after 4 seconds; click to retry).

Role Management

In the panel’s “Roles” section, you can add, modify, or retire roles. Each role can be bound to “exclusive skills” — multi-select from the skill catalog. The skill catalog is resolved per session, so it may differ when you switch sessions. When you delete a skill, any user-level root role that declared it gets that line removed synchronously; in-package roles are read-only (the published surface is not modified), and the receipt will name-list any in-package roles still declaring it.

Skill Management

In the panel’s “Skills” block, you can import skills (drag a skill folder in) or create a new skill. User-level skills are available to all sessions; project-level skills apply only to this workspace.

Member Management

Each card in the panel’s “Members” section has “Suspend / Resume / Interrupt” buttons. “Suspend” means this plugin stops dispatching work to that member and frees up the role slot (at least 1 non-suspended member must remain per tier; can resume at any time). “Interrupt” only breaks that member’s current turn (inbox is preserved; the two-message cap remains unchanged). “Suspend” only takes effect at this plugin’s dispatch layer — a suspended member can still open conversations in the host’s native UI (the host has no API for removing/suspending members; the native roster is append-only). To fully isolate a member from a session, you must start a new session.

The plugin enforces two hard limits: role slots ≤ 3 (count of same-role members who are not suspended and not failed), and total members present ≤ 24 (roster row count, including failed and suspended; same value as the host’s maxMembers).

Task Board

Task board cards display the task ID, handling member, a two-line description summary, plus tags like “Handoff” (who → who / who dispatched) and “Conflicting task ID” (taken from the write-surface overlap warning verbatim). Completion counts are tallied per column; the aggregate number doesn’t occupy its own row. Full descriptions, dependencies, write-surface, warnings, and other details are available in a popover.

Before dispatching, board_task reassign validates: an assignee (assignee / owner) must be specified along with expected_revision. If a task already has an owner, duplicate assignments and misdirected assignments are blocked (the receipt conflict field explains why); if you truly need to reassign, include handover: true. A successful receipt includes assignment (owner / lock status) and risks (unresolved dependencies, write-surface overlap, member not present, parallel load, and other potential risks). The panel card displays “Owner: X” and “Locked / Unlocked.”

State Files

A .ops/ directory appears in the workspace root on demand, containing several plain-text state files (readable, queryable, backup-friendly):

  • .ops/human.json: your judgments
  • .ops/roles.json: role toggles
  • .ops/roster.json: role retirement; after retirement, member_defaults won’t list it and member_spawn will refuse; the panel can restore it
  • .ops/member-flags.json: member suspension
  • .ops/handoff.json: handoff snapshot (see “Cross-Session Continuity” below)
  • .ops/checkpoints/: raw dumps from auto-compaction

Board, roster, and inbox reads all go through DSH’s native Agent Teams. The old board.json / members.json are deprecated legacy files: the panel no longer reads or writes members.json; board.json is no longer read either (/status only reads the native task board, and if it can’t read it, it says so honestly). Both files can simply be deleted. Old .company-gate.* files are automatically migrated into .ops/ with the prefix stripped on first read/write (if the new file already exists, the old one is left untouched).

Cross-Session Continuity

The task board and members live in DSH’s native Agent Teams, and the native team is scoped per session (TeamId = SessionId) — once context hits the limit and you open a new session, the native board starts from scratch. The plugin therefore keeps a .ops/handoff.json (handoff snapshot) in the workspace:

  • Automatically updated by board_task changes and native team_task_* team/task events (claim / close / reassign / field change / set dependency / reopen / delete all count; 250 ms debounce on the event path). Contents include at (timestamp), sessionId (which session left it), a tri-state task list (ID / title / status / owner role / version number), and which roles were used in this tier;
  • At the start of a new session, you can run node lib/ledger-digest.js --text to read it (output looks like Snapshot @<timestamp> (not real-time): …, with a trailing Checkpoint N or Missing checkpoint: task-X completed). The plugin does not auto-inject the handoff summary (the hook bridge has been permanently removed) — if you want to read it, run that command manually.

Checkpoints

Session compaction compresses early turns into summaries and keeps only the head and tail of tool results — if details aren’t persisted to disk, they’re truly lost. The plugin provides two persistence points:

  • Structured: the team_checkpoint tool appends “facts / decisions / artifact paths / open items / next steps” to docs/team/checkpoints/<task>--<session-short-label>.md (committable, human-readable; append-only with 512 KB rotation; write once before closing). Session-isolated: native task IDs are only unique within a session (TeamId = SessionId), and the short label is the first 8 characters of the session UUID, so task-1 in two different sessions won’t overwrite each other. Old files from before session isolation live in docs/team/checkpoints/legacy/ and no longer participate in evaluation. Old tasks in the current session (e.g., task-1 through task-6) will show “Missing checkpoint” — this is expected; no backporting of old content, no fabricating ownership. The summary will show Checkpoint N; if a completed task has no checkpoint, it shows Missing checkpoint: task-X completed.
  • Automatic: when DSH performs auto-compaction, lib/session-watch.js writes the summary text and the compacted event originals to .ops/checkpoints/compaction/<session>/<compaction>.md (derived, deletable, already gitignored; keeps 5 per session, single file truncated by byte size). Only writes to disk when there are actual teammates present in a session-scoped team.

Two things you must remember:

  1. It’s a snapshot, not a real-time board — for live data, trust team_status / board_task query;
  2. Members can’t carry over across sessions (roster is per-session): the snapshot only records “which roles to call.” In a new session, you must member_spawn role=<id> to re-invoke them. The name will be something like <role>-1 (the host’s roster never reuses already-used numbers) — it doesn’t inherit the old name.

Roles (On-Site Enumeration)

The package ships with 19 default roles: ai-engineer, analyst, architect, backend-engineer, ceo, content-editor, customer-success-manager, data-engineer, devops-engineer, finance, frontend-engineer, legal, marketer, product-owner, qa, reviewer, sales, security, ux-designer. For the specific duties of each role, read its own team/roles/<id>/ROLE.md.

The 19 in-package default roles don’t bind skills (no skills: line in ROLE.md). To bind, multi-select in the panel’s “Roles” editor, which writes to the skills: line in the workspace/user copy. In-package is read-only. When no skills are bound, a member’s first activation will honestly say “no permanent exclusive skills” and point to the session’s skill catalog, loading on demand.

Role & Skill Scopes

The host’s native skill roots are prioritized:

Priority Source Path Scope
100 project-dsh <project-root>/.dsh/skills This project only
200 project-agents <project-root>/.agents/skills This project only
400 user-dsh ~/.dsh/skills Shared across all workspaces

Roles are a concept of this plugin (the host doesn’t recognize them), and their roots are similarly prioritized:

Priority Source Path Scope
High Workspace role root <workspace>/.dsh/team-ops/roles/ This project only
Medium User role root ~/.dsh/team-ops/roles/ Shared across all workspaces
Low In-package The plugin’s bundled team/roles/ Ships with the plugin (upgrades overwrite)

On name conflicts, higher priority wins (workspace root > user root > in-package). The single source of truth for enumeration order is lib/roster.js.

  • Project-specific pitfall notes / behavioral constraints ⇒ should go in <project-root>/.dsh/skills (affects only that project).
  • Cross-project reusable procedures ⇒ go in ~/.dsh/skills (affects all workspaces).
  • skill_define defaults to the project root: default scope: "workspace" ⇒ writes to <project-root>/.dsh/skills (affects only this project); to place it globally (~/.dsh/skills, visible to all workspaces), explicitly set scope: "user".
  • Roles default to the workspace role root <workspace>/.dsh/team-ops/roles/<id>/ROLE.md (affects only this project); for cross-project reuse, explicitly select scope: "user" and it writes to ~/.dsh/team-ops/roles/<id>/ROLE.md (shared across all workspaces). On name conflicts, the workspace copy wins.

Only two paths can write skills / roles (no auto-writes): the panel (your clicks for “New Skill / Import Skill / Delete Skill,” plus role add/edit/remove) and the coordinator’s skill_define / role_define.

How to Use

  1. Want something done: just say it. The coordinator decides whether to break it down, logs it to the board, calls the right roles, then reports back with a conclusion.
  2. Call by name: @architect take a look at this proposal ⇒ the task is dispatched to the architect (write multiple @ to dispatch to each).
  3. Ask for progress: “Where are we now?” ⇒ a one-line status + what’s blocked.
  4. Add a role: npm run role:new -- <role-id> (generates a roles/<id>/ROLE.md skeleton), edit the content, then run npm run roster:write. You can also add / edit / retire roles in the panel’s “Roles” section.
  5. Add a skill: use “Import Skill” (drag a skill folder in) or “New Skill” in the panel’s “Skills” block. User-level skills work in all sessions; project-level skills work only in this workspace.
  6. Manage members: each card in the panel’s “Members” section has “Suspend / Resume / Interrupt.”

Use Cases & Caveats

Ideal for team collaboration scenarios that need clear role division, task boards, and state tracking — especially for solo operators or small teams who want to turn “opening a few more chat windows” into a queryable, wrap-able team.

Before using, verify the current DSH process permissions. It’s recommended to review the source code and license before installing. The plugin runs with the current DSH process’s permissions; installation and updates both go through pnpm via the local profile. Upgrades will overwrite in-package roles and configurations.

Closing

dsh-team-ops makes collaboration in DeepSeek Harness readable, queryable, and wrap-able through roles, boards, member management, and state files. If you want to give DSH a named-role team, start here: Directory Page | GitHub

羽毛球分组比赛记分
小程序二维码

欢迎使用《羽毛球分组比赛记分》微信小程序

Xiaoye