margo

mcp
Security Audit
Warn
Health Warn
  • License — License: MIT
  • Description — Repository has a description
  • Active repo — Last push 0 days ago
  • Low visibility — Only 5 GitHub stars
Code Warn
  • process.env — Environment variable access in .github/extensions/margo-action-desk/action-desk.test.mjs
  • network request — Outbound network request in .github/extensions/margo-action-desk/action-desk.test.mjs
  • network request — Outbound network request in .github/extensions/margo-action-desk/app.js
  • process.env — Environment variable access in .github/extensions/margo-action-desk/backend.mjs
  • process.env — Environment variable access in .github/extensions/margo-action-desk/core-integration.test.mjs
  • network request — Outbound network request in .github/extensions/margo-action-desk/core-integration.test.mjs
  • network request — Outbound network request in .github/extensions/margo-action-desk/memory-app.js
Permissions Pass
  • Permissions — No dangerous permissions requested

No AI report is available for this listing yet.

SUMMARY

An AI chief of staff for Microsoft 365, built on Work IQ. Every send stays one approval away.

README.md

Margo

An independent, personal open-source project that builds an assistant on Work IQ.

MARGO: Managing Actions, Relationships, Goals and Obligations. An AI chief of staff for Microsoft 365.

Margo reads your Microsoft 365 mail, calendar, Teams chats, meeting recaps and documents through
the Work IQ MCP server, works out what actually needs you, and puts every send made as you one
approval away. She prepares the meeting plan, accounts for what it displaces, and drafts the note to
the people affected. She waits for your approval before making those changes. (Margo Cloud also has
her own account, and when you ask her in your private chat she acts from it without a card; see
the one rule.)

What it is Status Start here
Margo desktop GitHub Copilot CLI on your machine, with Margo's persona, skills and private local state Stable for individual use, with community support (what that means) (installers: 1.0.0; the main branch: 1.3.0, unreleased) Getting started
Margo Cloud Self-hosted in your own Azure subscription as an Agent 365 agent with her own identity. She works for one manager, listens in the chats and channels she is in, and tells her manager what matters Preview, not for production: the core chat-and-read path ran in one test tenant on an earlier build, not yet repeated on this one; approval cards, acting as herself, documents and on-behalf-of access are built but not verified there (maturity) Margo Cloud overview
Learn Work IQ How to load Work IQ in a harness or a custom agent, its tools, identity, errors and writes, with Margo's code as the example Guide Learn Work IQ

Needs:

  • Both: a Microsoft 365 work account with a Microsoft 365 Copilot license, and Work IQ enabled
    in your tenant (can you get it?).
  • Desktop: a GitHub Copilot plan and GitHub Copilot CLI
    (which needs a recent Node.js LTS; on a Business or Enterprise seat an organization admin may need to
    enable Copilot CLI), and Python 3.9+.
  • Margo Cloud: an Azure subscription where you are Owner (or Contributor plus Role Based
    Access Control Administrator
    ); Frontier enrollment and an Agent 365 (or Microsoft 365 E7)
    license for the tenant; a Global Administrator or Privileged Role Administrator to consent
    to Work IQ for Margo; a Microsoft 365 license and a Microsoft 365 Copilot license for each hired
    Margo; and an Exchange admin to grant mailbox delegation. Expect days to weeks, mostly
    waiting for approvals; the hands-on part is a day or two. See the Margo Cloud overview.

New to these terms? See the glossary.

Hiring a Margo Cloud that someone else deployed? Read what she does and what your tap on Approve
means in the terms, then
approval cards and
who Margo answers.

Margo is not a service anyone runs for you: you run it on your machine, or deploy it into your own
tenant. Desktop is stable and supported for individual use; new work goes into Margo Cloud. Choose
desktop if you want to try Margo today without deploying anything to your tenant. Both share the persona (agents/) and
the skills (skills/).

"Brief me."                    → what today costs you, what to skip, what to answer
"Find 30 minutes with Dana."   → the slot, the cascade it triggers, the cost of each option
"Draft the reply."             → in your voice, grounded in the thread, waiting for a yes
"What am I waiting on?"        → the commitments nobody logged, aged and cited

Before you start: can you get Work IQ?

Margo does nothing without Work IQ, and Work IQ is a tenant decision, not something you install
alone. Check these before installing:

  • Your tenant has Microsoft 365 Copilot and Work IQ enabled, and your account has a Microsoft 365
    Copilot license. Your IT team can tell you; personal Microsoft accounts don't work.
  • Someone may need to consent. The first Work IQ sign-in can show "Need admin approval". Then a
    tenant administrator must consent to Work IQ's permissions; nothing in Margo can bypass that
    (identity and consent).
  • Writes are a separate permission. Work IQ writes, such as sending mail or accepting a meeting,
    are blocked by default by tenant policy until an admin allows them. Margo still reads, briefs and
    drafts without them; she just can't send what you approve.

If you can't get Work IQ yet, you can still read these docs, study the persona and skills, and run
the offline checks in the developer journey: they use fictional data
and need no account.


Why this exists

Most assistant demos stop at retrieval: they find the email and summarize it. The interesting
part starts after that — deciding what matters, holding the thread across days, and closing the
loop with a real send.

That gap is where Work IQ earns its keep, and where Margo is built to show it:

The hard part What Work IQ provides What Margo does with it
Knowing what happened retrieve and ask across mail, Teams, meetings, files Turns it into a ranked brief with a recommendation per line
Knowing it's true Every hit carries a webLink and a sensitivity label Cites the source on every claim, so nothing has to be taken on trust
Enumerating without drowning fetch with $select / $top against real Graph paths Bounded reads, so the model spends its context on judgment not payload
Actually doing it do_action, create_entity, update_entity Books, moves, replies, RSVPs — only after you approve that exact action
Carrying work across days — Account-scoped work history, evidence revisions, approval records, and delivery receipts

Work IQ makes the data reachable and writable. Margo is the layer that makes it worth reaching —
opinionated, cited, and safe to let near a send button.

→ Learn Work IQ: loading the server, identity and consent, the tool
choice and payload discipline that keep briefs fast, errors, and the approval pattern for writes.


Documentation

Use Margo

Start with the user journey for an ordered path from your first brief
to ongoing work. The full feature index lists every
capability, its availability, and where its detailed guide lives.

Doc What it covers
User journey What to ask, what to expect, what you decide, and how to recover at each stage
Getting started Install, connect Work IQ, first run
How-to guides Briefs, inbox, calendar, commitments, meetings, files, GitHub/ADO, community, decisions, memory and health — one guide per task
Feature reference Every capability, where it lives, and its limits
Personalization Teaching Margo your voice, VIPs and rules
Trust & safety The approval model, prompt-injection defense, privacy
Walkthroughs End-to-end: calendar management → sending the email
Proactive & scheduled Unattended briefs, sweeps, and the state ledger
Closed-loop productivity How the ledger, actions, evidence and connected routines fit together
FAQ Data, approvals, costs, desktop versus Margo Cloud, uninstalling
Glossary Work IQ, MCP, ledger, coverage, blueprint, agent user and the other terms, in plain words
Changelog Release-level feature and deployment changes

Build with Margo

Start with the developer journey. You can explore and exercise
the synthetic core without connecting a real mailbox or installing into your normal profile.

Doc What it covers
Developer journey Local exploration, extension points, a feature traced end-to-end, and a first contribution
Architecture and state ownership Which layer owns evidence, work, approval, memory, task progress, and the optional UI
Build your own The agent/skill split, and how to fork this
Customize with an AI coding agent Recipes for changing the persona, the morning brief, adding a routine or a Work IQ source, with the files, checks and prompt for each
Run in Claude Code Margo's skills in Claude Code instead of Copilot CLI: what works and what doesn't
Learn Work IQ Loading Work IQ, identity and consent, capability map, patterns, errors, writes and approvals
The chief-of-staff playbook The routines and when each fires
Running in a container Run scheduled briefs in a container (separate Copilot and Work IQ sign-ins)
Contributing Ground rules, testing, and the one hard rule about real data

Margo Cloud

Doc What it covers
Margo Cloud overview What it is, architecture, who sees what, licenses and costs, maturity, glossary
Deploy Margo Cloud Prerequisites, azd provision, the blueprint, approval cards, hiring, operation and known limits
Margo Cloud code Build, test, image and project layout (C#, .NET 10)
Design and decision record Why Margo Cloud is shaped the way it is: identity, guard, memory, threat model

The one rule

Propose, never act unilaterally.

Desktop Margo will never send an email, post to Teams, react, accept or decline a meeting, delete
anything, or change a work item without your explicit approval of that specific action. A
summary is not consent. Reading is free; writing is not.

Margo Cloud is different in one deliberate way. Anything on your account (email from your mailbox, meetings on
your calendar, your files) still runs only after you tap Approve on a card showing that exact action. But Margo Cloud
also has her own account, and when you ask her in your one-to-one chat she acts as herself without a card: email
from her own mailbox to anyone, posts in chats and channels she is in, meetings on her own calendar, her own files.
What she sends is the model's choice; no card shows it to you first, and it can carry what she read of your work. A
prompt-injected email or message she reads in that same turn could steer it. Without a card she also writes to you
alone (a note, an email or a file), answers you in a group chat or channel where you @mention her, where everyone
present sees the answer, and sends one fixed notice. The full list, and who sees each:
what needs a card, and who sees it.

There is a bounded exception for actions that are reversible and invisible to anyone else —
mark-read, categorize, flag, archive, move between folders — which you can grant as a standing
instruction. Anything another person can see stays per-action, permanently, no matter what
standing instruction exists.

→ Trust & safety for the full model, including how observed content is
treated as data rather than instructions.


Quick start

This is desktop Margo. For Margo Cloud, start at the overview.

What you need: GitHub Copilot CLI
and a GitHub Copilot plan; a Microsoft 365 work account that can use Work IQ
(check); Python 3.9+. macOS, Linux and Windows are
supported. Each brief uses your Copilot plan's model requests, and Work IQ usage where your tenant
meters it. The full table is in getting started.

The order is: install, connect Work IQ, tell Margo about you, configure the ledger, run.

1. Install. Download an installer, macOS .pkg or Windows .exe.
Both run a short wizard, install per-user, and let you pick the optional skills. The installers are
release 1.0.0; for the features added since (see the changelog), install from a
terminal or a clone instead. Those take the current main branch and report its
VERSION (1.3.0, unreleased).

curl -fsSL https://raw.githubusercontent.com/tolgaki/margo/main/install.sh | bash
irm https://raw.githubusercontent.com/tolgaki/margo/main/install.ps1 | iex

Or as a plugin, in Copilot CLI or Claude Code: /plugin marketplace add tolgaki/margo, then
/plugin install margo@margo, next to Microsoft's workiq@work-iq (Codex gets the skills only,
untested). Your personal files then live in ~/.copilot/margo/, a folder you create private to you
(chmod 700), not at the paths in steps 3 and 4 below; see
as a plugin.

Or from a clone, which is what you want if you're here to read and fork:

git clone https://github.com/tolgaki/margo.git
cd margo
./install.sh --all          # or: .\install.ps1 -All

This copies the installation outside the checkout (to ~/.copilot by default). For synthetic-only
contributor setups and link mode, follow the developer journey; never
personalize tracked files with real workplace data.

2. Connect Work IQ in Copilot CLI. Start copilot, then:

/plugin marketplace add microsoft/work-iq
/plugin install workiq@work-iq

Restart Copilot CLI, sign in with your work account when the browser opens, and check that /mcp
lists workiq as connected (details).

3. Teach her who you are. This is the step that matters:

$EDITOR ~/.copilot/skills/chief-of-staff/preferences.md

4. Configure the private ledger with the account you confirmed through Work IQ. Replace the
fictional address below; this command configures storage and does not sign in:

python3 ~/.copilot/skills/chief-of-staff/scripts/margo_store.py init --account [email protected]
python3 ~/.copilot/skills/chief-of-staff/scripts/margo_doctor.py

init answers "status":"configured". The doctor prints a JSON health report: on a new install
its status is "attention-needed", your preference fields show "placeholder" until you fill
them, and state.status says "not-initialized" until your first brief creates the ledger
(what each field means). If init reports a
"group/world-writable ancestor", see troubleshooting.
An existing installation also needs the explicit
state migration, with its schedules paused.

5. Start Margo:

copilot --agent margo

Then ask:

> Margo, brief me.

Scheduled briefs come later; see proactive and scheduled.

Updating preserves preferences.md, commitments.md, config.md, and runtime state by default.
Do not use --force unless you intend to replace personal files from their templates:

./install.sh update --check   # are you behind?
./install.sh update           # re-install the skills you have, at the latest version
./install.sh update --reinstall # refresh code safely even at the same revision

Installed with curl … | bash? Run the same commands through it:
curl -fsSL https://raw.githubusercontent.com/tolgaki/margo/main/install.sh | bash -s -- update
(or -- status). ./install.sh status shows the installed version; ./install.sh uninstall
removes managed components and backs up legacy personal files. The private margo/ runtime
directory is retained. Updates compare version and revision and download the exact remote commit
checked, not an older local checkout. Remote failures stop without changing the installation.
Installation copies files; private-state migration, app workflow prompt sync and extension/session
reload are separate steps. Unversioned installations need a normal install, not update.

Full instructions, including the Work IQ connection check, are in
Getting started.


How Margo works

Desktop Margo is three things: a persona, procedures and a private local database.

  • The persona (agents/margo.agent.md) is her voice. The skills (skills/) are the
    procedures, one file per routine, which any agent can load.
  • Microsoft 365 is reached only through Work IQ, for reads and for approved writes.
  • Margo keeps a private local database of what you owe and what is waiting on you, so work
    survives between sessions. It separates commitments she suspects from the ones you confirmed,
    keeps each proposed action with its versions, approvals and results, and records which sources a
    brief actually covered, so a brief that could not read your mail never looks complete. See
    closed-loop productivity.
  • Memory is optional and stays on your machine: what she has learned about you, with its source,
    which you can inspect, correct or have her forget. Search over it can use a small embedding model
    that runs locally, never a cloud service. See semantic memory and
    memory controls.
  • Dream is opt-in, manual reflection over selected Margo sessions: sourced
    episodes and reviewable ideas, not automatic transcript collection.
  • Optional panels (the action desk, memory and task progress) appear in the Copilot app
    that hosts Copilot extensions; the CLI does everything without them. The database helpers never send mail or change a calendar.

Trust and safety says which of these rules are enforced by code and which are
instructions to the model.

What's in here

agents/
  margo.agent.md            The persona. Voice, not capability. Swap it for your own.

skills/
  chief-of-staff/           The playbook, from daily brief to closed-loop follow-through.
    SKILL.md                Operating rules, the Work IQ tool table, routine router
    preferences.md          ← template: how you work, who matters, your voice
    commitments.md          ← template: what you owe, what you're waiting on
    references/             One file per routine — the actual procedures
    scripts/                Work/action ledger, coverage, capacity, diagnostics and parsers

  decision-log/             The append-only record of what the team decided, and why

automations/                The schedule as files — one per scheduled run, prompt included
                            Source of truth for both cron and the app's workflows

install.sh / install.ps1    Install, upgrade, status, uninstall — never clobbers your data
packaging/                  Native macOS .pkg and Windows .exe installers
tools/margo-scheduled.sh    Runs a scheduled brief with Work IQ writes denied at the CLI
tools/check-clean.sh        Fails if real workplace data creeps into the repo
.github/extensions/         Optional action-desk canvas; the CLI works without it
tests/                     Synthetic state, approval, capacity and installer regressions

cloud/                      Margo Cloud (C#, .NET 10): router, instance host, provisioner, infra

docs/                       Start here ↓

A note on the persona

Margo is deliberately opinionated. She leads with a recommendation, tells you when your calendar
is a mess, and ends a brief with one pointed question rather than a menu of five. That's a design
choice, not decoration: an assistant that only describes makes you do the deciding, which is the
expensive part.

The persona is entirely contained in agents/margo.agent.md. The skills carry procedure and
no voice at all — they inherit whatever agent loads them. If you want a different character, or
none, replace that one file and everything else still works.

Select Margo the agent with copilot --agent margo or the host's agent picker.
The chief-of-staff skill loads for matching tasks, not for the name "Margo". A greeting or
coding request does not need the playbook; another agent can use it without becoming Margo.

One boundary is absolute: the persona stops at the draft block. Anything written as you —
emails, Teams messages, invites, follow-ups — is in your voice per preferences.md. A recipient
should never detect an assistant's wit in something you signed.


Contributing

Issues and PRs welcome — see CONTRIBUTING.md. The one hard rule:
never commit real workplace data. Every example in this repo is fictional, and PRs are
checked for names, addresses, tenant identifiers and mailbox content.

Also: Code of conduct · Security policy · Getting help

License

MIT.

Third-party content: Margo Cloud bundles Microsoft's workiq skill under its MIT license, in
cloud/vendor/workiq/ (license and pinned source alongside).

Margo is an independent project by its author, not an official Microsoft or GitHub product, sample or reference
implementation, and neither company endorses or supports it. Microsoft, Microsoft 365, Microsoft 365 Copilot, Work IQ, Agent 365,
Azure, Entra, Teams, Outlook, Viva Engage, GitHub and GitHub Copilot are trademarks of their owners, referenced here
descriptively.

Reviews (0)

No results found