Skip to content

Latest commit

 

History

759 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

QM

A multiplayer agent harness for work. In Slack and on the web.
Run it in your own cloud, with your own models and keys.

CI license node npm

Deploy · How it works · Security model · Customize · Contribute · Documentation

Overview

Most agents are designed like personal assistants. You can make one work for a whole company, but it quickly gets complex. QM is designed for startups. Employees each get their own isolated workspace, and can also collaborate with the agent in channels, group messages, and projects.

Each person and each room has its own scoped memory, files, keychain view, permissions, crons, web apps, and durable sandbox.

It's built with open source in mind. Pick your own harness and model and switch between them. Pi, OpenCode, Codex, and Claude Code all drive the same core, so a deployment isn't tied to any single vendor.

Setup

Tell your coding agent of choice Let's deploy https://github.com/yc-software/qm. From here, it should follow the deployment guide in this repo.

You can also try out a 3rd-party hosted version of QM here.

If you're an infra provider interested in offering a hosted version of QM, feel free to reach out.

Features

  • Personal and shared scopes. People customize the agent to be theirs, and still work with it collaboratively in Slack channels and projects.
  • Slack and web. The same identity and configuration carries between Slack and the web app.
  • Admin control. Set org-level configuration, security and sharing postures. Choose which harnesses and models are available.
  • Web apps. Spin up custom internal apps and publish them to the right people.
  • Shared skills. Skills are scope-owned and shareable by grant, with admin-gated promotion to the whole org and skill packs imported from git repositories.
  • Background work. Crons, watches, and inbound webhooks work while you're away.

What you can do with it

  • Search internal notes, email, documents, databases, and the web together
  • Build internal apps, publish them to the right people, and keep their data current
  • Learn your writing voice from past sends, then triage your inbox on a schedule — labels and reply drafts included
  • Work in an existing repository: run tests, open PRs, monitor CI, check system logs
  • Track a project in a shared channel and post updates and follow-ups

Architecture

flowchart LR
  DB[("Postgres<br/>sessions · memory · queue")]

  subgraph CORE["Headless core"]
    API["API · identity · policy · scheduler"]
    LOOP["Agent loop<br/>(Pi, OpenCode, Claude Code)"]
    API <--> LOOP
  end

  SBX["Per-scope sandbox<br/>files · tools · logged-in services"]

  DB <--> API
  LOOP <--> SBX
Loading

For durability, set DATABASE_URL and SESSION_STORE=postgres — without it, sessions live in process memory and vanish on restart. To exercise a branch against a real model and real Postgres, run npm run dev-instance:web for web/admin or npm run dev-instance:slack for Slack. Use npm run dev-instance:both when testing both surfaces together. Bare npm run dev-instance defaults to web for new instances and preserves the surface on reload. Switch an existing instance with an explicit surface command.

How it works

Every turn runs through a central core, which can use a variety of models and harnesses to generate the response. A Postgres persistence layer holds user data, session history, and other durable state. The agent has a small, fixed tool surface; one of those tools is execute, which runs commands in the scope's own isolated sandbox — its durable computer, where installed tools stay installed. The web UI and admin panel share one service; the portal and optional built-in auth broker share another. These modules communicate with core over its HTTP API. See combined services for configuration and migration; Slack is an optional in-process plugin that core starts and supervises through a direct service client.

The core runs TypeScript directly on Node and uses Fastify for HTTP. The Slack plugin uses Bolt; the web UI builds with Vite and renders with Lit.

The core itself is generic. Everything specific to one company — org config, custom tools and skills, sandbox image, infrastructure — lives in a deployment directory that the qm CLI validates and deploys. Every substrate (harness, session store, sandbox, memory) sits behind an interface. Memory can also be routed by scope to external providers while retaining the built-in notebook.

Security and secrets

QM's approach follows local coding agents like OpenCode, Codex, and Claude Code: the agent acts as the person it's working for, with their credentials and permissions, and everything it does is audited. An org picks one security posture, which narrower scopes can only tighten:

  • Strict — every harness tool call pauses for human approval, except the two no-effect turn enders.
  • Auto (default) — blocks private-network access and uses a content screener when the deployment configures one. Model screening is off by default; deployments can use an external proxy or explicitly opt into the built-in model classifier.
  • Dangerous — no posture-based content screening or tool approval gates.

Deployments can set securityScreen.allPostures: true to require external-content screening under every posture, including Dangerous and Strict, without changing tool approvals or private-network policy. Flagged content still requires release approval.

The predeclared command policy — approval rules and hard denials for things like recursive deletes or destructive SQL — applies in every posture, Dangerous included.

Sharing posture is independent:

  • Isolated (default) — resources stay in their scope unless explicitly shared.
  • Open — on a live authenticated internal human turn, the speaker's opted-in personal files, artifacts, skills, and memory may be read in an opted-in shared room.

SECURITY.md has the threat model, the operator assumptions, and the known limitations.

Deploy it for your org

Create an organization-owned deployment repository that depends on @yc-software/qm:

npm exec --yes --package=@yc-software/qm@latest -- \
  qm init . --org <slug> --target <fly-or-aws>
npm install

Initialization materializes a deployment skill for an agent and walks through infrastructure, web sign-in, connector credentials, optional Slack access, deployment, and live verification — no source checkout required. Each deployment runs in the operator's own cloud account; initialization does not generate or enable deployment CI, and this repository has no production deployment workflow. See deployment.md for the details.

Contributing

We take contributions as human-written text, not code — see CONTRIBUTING.md. Describe the change you'd like informally in a .txt or .md file in adrs/, and if we're aligned we'll handle the implementation. Report vulnerabilities privately — see SECURITY.md, not a public issue.

Customize your instance

Choose how you want to customize QM:

  • Config, tools, skills, and services: use the deployment repository above. It pins @yc-software/qm and uses that release's runtime images; no source copy is needed.
  • Changes to QM itself: keep your own source fork, public or private. You may modify any part of core, including the runtime, plugins, CLI, docs, and CI. Contributing those changes upstream is optional.

Create a source fork

For a private source fork, create a standalone private repository, outside GitHub's fork network. Seed only main and explicitly set it as the default branch:

gh repo create <org>/qm-private --private
git clone --single-branch --branch main --no-tags git@github.com:yc-software/qm qm-private
git -C qm-private remote rename origin upstream
git -C qm-private remote add origin git@github.com:<org>/qm-private
git -C qm-private push -u origin main
gh repo edit <org>/qm-private --default-branch main

Do not seed with git push --mirror: it copies unrelated upstream branches and tags, leaves default-branch selection implicit, and can delete destination-only refs on later pushes. The upstream remote supplies source updates without copying those refs to your repository. For a public source fork, GitHub's Fork button is also an option. A GitHub fork of a public repository cannot be private; keep private work outside that network.

Review inherited workflows before enabling Actions or adding credentials. Choose the CI checks you want, and disable or adapt upstream release and publishing workflows for your own package and image registries. Copying the source does not configure production deployment CI.

Customize and run your source

Keep deployment configuration, tools, skills, plugin images, and infrastructure in deploy/layers/<org>/ in a private source fork, or in a separate private deployment repository when your source is public. Never commit secrets. See deploy/layers/README.md for initialization and layout. Keep deployment data separate from core code, but change core wherever your desired behavior requires it.

From the source checkout, install dependencies with npm ci and use the in-tree CLI. After completing the provider setup in deployment.md, build and deploy your modified services explicitly:

node cli/bin/qm.ts check --config <deployment-dir>/qm.config.jsonc
node cli/bin/qm.ts plan --config <deployment-dir>/qm.config.jsonc --build-from .
node cli/bin/qm.ts up --config <deployment-dir>/qm.config.jsonc --build-from .
node cli/bin/qm.ts check --config <deployment-dir>/qm.config.jsonc --live

Use this checkout's CLI when changing the CLI itself. Without --build-from, the normal deployment path selects published images, so editing source alone does not change the deployed runtime. If you publish custom images instead, configure their immutable references through imageOverrides. Follow the provider guide for sandbox image builds; service builds do not replace that step.

Keep it current

For a source fork, update-qm merges upstream changes while preserving intentional local behavior. Land sync PRs with their merge ancestry intact, never squash or rebase them. Conflicts are expected maintenance work, not a requirement to discard customizations. Use upstream-pr only when you want to contribute a generic change; it prepares a clean upstream branch without private deployment data or history.

For a package deployment, upgrade the exact @yc-software/qm dependency and lockfile, review contract changes and generated assets, then validate and deploy. There is no upstream source history to merge.

Going deeper

License

Except where otherwise noted, QM is available under the MIT License.

About

Multiplayer agent harness for work.

Topics

Resources

Contributing

Security policy

Stars

15.3k stars

Watchers

75 watching

Forks

Releases

Packages

Used by

Contributors

Languages