Skip to content
MassifyAIDocumentation

Set up MassifyAI with one prompt

Claude Code

Set me up with MassifyAI in this Claude Code session.
Whenever you need me to do something or reply, end your message with the next action in bold, including what you will check afterward.
1. If MassifyAI's whoami tool is available, call it first. Verify the actual account, organization and project against the workspace I requested. If they match, reuse this connection without reinstalling or signing in again. If they differ, explain the mismatch and resolve the intended workspace before continuing; do not silently change shared defaults.
2. If the tools are missing, check whether the plugin is already installed. Only if absent, run `claude plugin marketplace add AxtroAI/massifyai-plugins`, then `claude plugin install massifyai@massifyai`. Preserve existing connections and unrelated settings. Ask before any installation not already authorized by this setup request.
3. Guide me through the supported client sign-in: /reload-plugins, then /mcp → MassifyAI → Authenticate, completing the browser sign-in or signup. When I reply "go", call whoami. If tools are still unavailable, use the existing server's Reconnect or the documented client reload step; do not repeatedly add another server. If the plugin specifically needs a separate machine sign-in for local skills or recording, follow its supported instructions, explain that distinction, and verify it separately. Do not infer that MCP authentication proves recording or skill sync works.
4. Once whoami confirms the intended workspace, if this setup was requested by a pending tutorial or task, return immediately to that original prompt. Do not run the optional first-win workflow or scan history on this recovery path.
5. For a standalone setup request, offer a first win with the mine-session-skills skill, with a 90-day look-back unless I choose another scope. Before reading history, explain the agents, projects and dates to be read and obtain my consent. I can narrow the scope, skip to curated expertise, or decline. Keep drafts local until I approve an exact upload and destination.
6. Close with "You're set up" only after a successful whoami check. Briefly report the verified account, organization and project, then resume the original task or link the Task Board using consoleUrl returned by whoami. If no consoleUrl is returned, say "the Task Board in the MassifyAI console" without inventing a URL. Name any optional capabilities that remain unverified. Keep normal Claude Code work available.
Never read, print or copy credentials or anything under ~/.massifyai. Do not install, reconnect or scan history when the current working connection already meets this task's needs.

Codex

Set me up with MassifyAI in this Codex session.
Whenever you need me to do something or reply, end your message with the next action in bold, including what you will check afterward.
1. If MassifyAI's whoami tool is available, call it first. Verify the actual account, organization and project against the workspace I requested. If they match, reuse this connection without reinstalling or signing in again. If they differ, explain the mismatch and resolve the intended workspace before continuing; do not silently change shared defaults.
2. If the tools are missing, check whether the plugin is already installed. Only if absent, run `codex plugin marketplace add https://github.com/AxtroAI/massifyai-plugins.git`, then `codex plugin add massifyai@massifyai`. Use HTTPS so a new user does not need an SSH key. Preserve existing connections and unrelated settings. Ask before any installation not already authorized by this setup request.
3. Authenticate the configured MCP server with `codex mcp login MassifyAI` using a 10-minute timeout. Let me complete browser sign-in or signup. If it fails, identify whether this is authentication, network, policy or configuration trouble; retry at most once when appropriate. When sign-in finishes, ask me to reply "go", then call whoami. If the running chat still lacks the tools, guide me through the supported client restart/reload; for CLI use, resume this chat with `codex resume --last`. Preserve the original request and verify whoami afterward.
4. Codex's MCP OAuth and the plugin's machine sign-in are separate. If this task needs Skill Center skills kept locally or plugin history features, use the installed plugin's supported machine sign-in instructions and verify that capability separately. Do not guess script paths or read credential files. A working MCP connection alone is sufficient for an MCP-only tutorial; do not make optional machine features a blocker.
5. Once whoami confirms the intended workspace, if this setup was requested by a pending tutorial or task, return immediately to that original prompt. Do not run optional history mining or create unrelated resources on this recovery path.
6. For a standalone setup request, offer a first win using mine-session-skills if it is available. Use a 90-day look-back only after explaining and obtaining consent for the actual history scope; let me narrow, skip to curated expertise or decline. Keep drafts local until I approve an exact upload and destination. Close with "You're set up" only after successful whoami, report the verified workspace, and link the Task Board using consoleUrl from that response if provided. Distinguish MCP connectivity from any unverified local skills or recording support, and return to normal Codex work.
Never read, print or copy credentials, anything under ~/.massifyai, or Codex credential files. Do not reinstall or sign in again when the existing connection meets the task's needs.

then paste it into Claude Code

Chains

Availability: beta. Setting up chains on a repo and checking its branch protection are on MassifyAI's beta and coming to MassifyAI with the next release. They are not in production yet.

A chain carries one task's work from its own branch to production. Each task gets a branch and a pull request. You can add it to a shared test environment, such as beta, and test it there alongside other work. When the work is right, you seal it at the commit you tested. It ships at exactly that commit, never a later one, and the task's status updates as it moves. Your coding agent does the merging, merge conflicts included, so nobody has to rebuild a test branch by hand or ask around to find out whether a fix has reached production.

Chains suit a team with several people or agents working on the same repo at once, where work is tested on a shared environment before it ships.

Who chains are not for. A monorepo where one change touches many deployables at once, and a team that merges straight to its main branch, will not get much from chains. Nothing else depends on them: the Task Board, Skill Center, Knowledge Base, Agent Profiles and the rest of MassifyAI work the same whether or not a repo runs chains.

1. What you need first

  • A GitHub connection. Connect GitHub on the Adapter Hub first. Chains find the repo through that connection, so nobody types a GitHub installation id. See Adapter Hub.
  • An admin of your organization. Setting up a repo and changing its environments are for your organization's admins.
  • For branch protection, someone with admin rights on the repo on GitHub, and a GitHub plan that allows it. You add the rule on GitHub yourself. On GitHub's free plan, only public repos can have branch rules. Chains work on a private repo whatever the plan; see 3.6, Your GitHub plan.

2. Set up a repo

A repo's release profile is its test environments in order, each with a name and a branch, then its live branch, the one production deploys from. For example, a site might test on beta, then staging, and go live from main.

A repo with no test environments still gets chains. Each task still gets its own branch and pull request, and ships at the commit it was sealed at. What it does not get is a shared test environment where several tasks run together before they ship.

2.1 In the console

Open Collaboration → Chains. In an organization with no repo set up yet, an admin sees a Set up chains on a repo card. Anyone else sees that no repo is set up yet and that an admin can set one up there.

  1. On the Here tab, pick a repo. The list is grouped by GitHub account and shows every repo the GitHub App can see that is not set up yet. Archived repos are listed but cannot be picked, because GitHub refuses pushes to an archived repo.
  2. Add the test environments in order, each with a name and a branch, or none.
  3. Check the live branch. It starts as the repo's default branch.
  4. Choose Set up chains on owner/name.

If your organization has no GitHub connection, the card says Connect GitHub first and offers Connect GitHub. If a connection cannot carry chains yet, for example because it is waiting for an admin's approval, the card says why.

Once a repo is set up, an admin sees Add another repo below the repos already running chains, and Change environments on each repo.

2.2 With your agent

An admin can also set up a repo from Claude Code or Codex with MassifyAI connected. In an organization with no repo set up yet, MassifyAI offers only two chains tools, and only to its admins: chains_list_available_repos and chains_register_repo. Once a repo is set up, everyone in the organization gets the chains tools their rights allow; see 4, Who can do what.

The console's With your agent tab gives this prompt:

Ready to paste. No editing needed.
First follow https://www.massifyai.com/docs-assets/setup/connection-check.md. Complete setup only if needed, then continue below.

Set up MassifyAI chains on one of our repos.
1. Call chains_list_available_repos and show me which repos can be set up.
2. Ask me which repo, its test environments (a name and a branch each, in order; none is fine) and its live branch.
3. Call chains_register_repo with the repo's owner and name and that profile, and tell me what it answered, refusals in its own words.
Ready to paste. This prompt needs no substitutions.
First follow https://www.massifyai.com/docs-assets/setup/connection-check.md. Complete setup only if needed, then continue below.

Set up MassifyAI chains on one of our repos.
1. Call chains_list_available_repos and show me which repos can be set up.
2. Ask me which repo, its test environments (a name and a branch each, in order; none is fine) and its live branch.
3. Call chains_register_repo with the repo's owner and name and that profile, and tell me what it answered, refusals in its own words.
  • chains_list_available_repos takes no input. It lists each of your organization's GitHub connections, whether it can carry chains (and why not), and whether Let agents write is on. On a connection that can carry chains, it lists every repo the GitHub App can see, each marked as set up or not, with archived repos included and marked.

  • chains_register_repo takes the repo's owner, its name and its profile. The profile is the test environments in order, then the live branch:

    { "environments": [{ "name": "beta", "branch": "beta" }], "live": "main" }
    

    environments may be empty. Each environment needs its own branch, names must be unique and use lowercase letters, digits, - and _, and a repo has at most ten test environments.

Setting up a repo only reads from GitHub, so it works while Let agents write is off.

2.3 Change a repo's environments

Use Change environments in the console, or chains_set_release_profile with the repo and its new profile. Open chains and what they carry on each environment are kept. An environment that an open chain is on cannot be removed.

chains_list_repos shows every repo that runs chains, with its release profile and its branch protection.

3. Branch protection

Branch protection makes chains the only way changes reach a repo's live branch and its test environment branches, so what ships is what was tested. Without it, anyone with push access on GitHub can push to, force-push or delete those branches, around chains.

You make the rule on GitHub yourself; MassifyAI checks it. The MassifyAI GitHub App does not ask for GitHub's Administration permission and cannot change your repo's settings, so it never creates, edits or deletes a rule. MassifyAI gives you the steps for the repo, with a rule file when the steps import it, and tells you in plain words whether the rule is there and right.

Chain branches are not covered, so people keep pushing their own work as before.

3.1 Check a repo

In the console, each repo on the Chains page has a Branch protection block. It shows the last check and when it ran. Choose Check again to ask GitHub now.

With your agent, call chains_check_branch_protection with the repo. It asks GitHub and answers with the result and, when something is left to do, the steps. The rule file comes with them only when the steps import it: when there is no MassifyAI rule on the repo yet, and the repo is neither Locked nor Could not check. With our rule already on the repo, the steps say to change that rule and no file is offered. chains_list_repos shows each repo's last check, with its steps, without asking GitHub; a repo never checked, or not checked since its environments changed, reads Not checked yet.

Anyone who works on chains can check a repo. A check only reads from GitHub, so it works while Let agents write is off.

3.2 What the result means

ResultWhat it means
LockedNobody can delete the live and test branches or force-push to them, and only whoever the rule excepts can update them, so changes reach them only through chains. This is what the rule file makes, and what we recommend.
Pull requests onlyNobody can delete those branches, force-push or push to them directly, but a person who can merge a pull request on GitHub can still land a change around a chain. The steps lock them.
Protected in partSome of the branches lack a rule, or lack part of one. The answer names each branch and what it lacks.
Not protectedNo rule on GitHub protects those branches: anyone with push access can push to, force-push or delete them, around chains.
Blocks chainsA rule on GitHub does not except the MassifyAI GitHub App, so promoting, rebuilding or accepting there will be refused. The fix: on GitHub, add the App to that rule's bypass list with Always allow. A refused promote, rebuild or accept names the rule by name and id, when GitHub lets it read the rule, and gives the fix, with the code branch_rule_blocks_app.
Could not checkGitHub could not be asked, and the answer says why, for example no working GitHub connection. Check your organization's GitHub connection in the Adapter Hub, then check again.

Any rule that has the effect counts, whatever its name, and whether it sits on the repo or on your GitHub organization. GitHub's older branch protection (Settings > Branches) counts too, but MassifyAI cannot read it in detail: a branch that has only that reads Protected in part, and whether it blocks chains cannot be told until the next chain act. A ruleset does not replace it: both stay in force. Once the repo reads Locked, the steps tell you to delete the older protection, because the ruleset already locks the branch and a setting in the older protection that does not let the MassifyAI GitHub App past would refuse a chain act without the check being able to warn you.

3.3 Add the rule on GitHub

Whenever something is left to do, the check gives steps filled in for the repo, even on a locked repo that still has the older protection or a second copy of our rule. You need admin rights on the repo on GitHub. Which steps depends on what is already there.

No MassifyAI rule on the repo yet, and the repo not Locked. The steps import the rule file:

  1. Choose Check again in the repo's Branch protection block, then Download the rule file, or take the file from the answer of chains_check_branch_protection. It is named massifyai-chains-<repo>.json, covers the live branch and every test environment branch, and names the MassifyAI GitHub App as the rule's only exception.
  2. On GitHub, open the repo's Settings, then Rules, then Rulesets.
  3. Choose New ruleset, then Import a ruleset, and choose the file.
  4. Choose Create without changing anything in the form.
  5. Back in MassifyAI, choose Check again: the repo should read Locked.

Our rule is already there (named MassifyAI chains: live and test branches, or the same name with a 2 if it was imported twice). The steps edit that rule in place instead: open it on GitHub, then, as needed, add the missing branches under Target branches, change the protections under Branch rules as the step says, and add the MassifyAI GitHub App under Bypass list with Always allow; save, and check again. Do not import the file or delete the rule before editing it: importing adds a second rule beside it, and deleting it leaves the branches unprotected in between. If there are two copies, the last step deletes the extra one, after the edit. When the rule sits on your organization, editing it needs admin rights there and changes every repo it covers. For example:

On GitHub, open the rule "MassifyAI chains: live and test branches" (id 27824812) (…) and edit it. … Under Target branches, press Add target, then Include by pattern, and add staging.

Blocks chains, with every branch locked. The steps only open each rule the check names, add the MassifyAI GitHub App to its bypass list with Always allow and save (plus deleting the older protection, if the repo has it), then check again. Until then, chains on the repo are refused.

Could not check. Fix what the answer names as the reason GitHub could not be read, then check again; the answer then says what to change, if anything. There is nothing to import until then.

If you already have your own rule, on the repo or on your organization, you do not need ours. It counts when it has the same effect. If the check reads Blocks chains, add the MassifyAI GitHub App to the rule's bypass list with Always allow; any other bypass mode still refuses chains on the test branches.

3.4 What MassifyAI cannot see

GitHub does not show a caller without admin rights who else a rule excepts. So the people, teams or other apps on your rule's bypass list are not listed in MassifyAI: keep that list short yourself. Whether the MassifyAI GitHub App itself is excepted, GitHub does say.

3.5 When you change a repo's environments

The rule on GitHub does not move by itself, and changing environments changes nothing on GitHub. If the rule last seen does not cover a new environment's branch, the answer says which branches it does not cover. Add those branches to the existing rule's target branches on GitHub, then check again; when that rule is ours, the answer names it. Do not delete our rule and import a new file: the branches would be unprotected in between.

3.6 Your GitHub plan

Whether GitHub allows branch rules on a repo depends on its GitHub account's plan. On GitHub's free plan, only public repos can have them, so a private repo cannot be protected. GitHub's About rulesets page says which plans allow them on private repos. For such a repo, say acme/website, the check reads Could not check:

GitHub does not allow branch rules on acme/website under its account's current GitHub plan: on GitHub's free plan, only public repos can have them. The repo's owner can make the repo public, or move the GitHub account to a plan that allows rules on private repos.

Chains on the repo still work, and people with push access on GitHub can still push to its live and test environment branches directly.

4. Who can do what

Not everyone in an organization can put code live. Everyone can work on chains; only org admins can ship them, until an org admin lets someone else ship. These rights apply to the whole organization, not to one repo.

RightWhat it coversWho has it
Work on chainsStart a chain, promote it to a test environment, seal it, sync it, place a hold, adopt a branch as a chain, correct a chain's owner, abandon a chain or take a task off oneEvery member: Organization Admin, Team Lead and Team Member
Ship chainsAccept a chain into the live branch, release to prod, lift a holdOrganization Admins, and anyone whose Can ship chains switch is on
  • Ship chains counts only when someone holds it for the whole organization. A role that carries it but was given at one team lets nobody ship: they are refused with chains_ship_required, and the ship tools are not in their agent's list.
  • Lifting a hold needs Ship chains, because it is what lets held work go live. Placing a hold is the brake, so anyone who works on chains can place one.
  • Abandoning a chain, taking a task off it, or syncing it while it has unsealed work is for the chain's owner, on top of the right. Anyone else is refused unless they pass force: true to do it on the owner's behalf, and they are named as the caller. A chain with no recorded owner is open to anyone who works on chains. Correcting the owner of someone else's chain that already carries their work log also needs force: true, because the next seal would replace that log.
  • Within those rights, anyone may promote, seal or accept anyone's chain, and who did it is recorded.
  • Setting up a repo and changing its environments stay with org admins. Anyone who works on chains can check a repo's branch protection.

4.1 Let someone ship

An org admin turns on Can ship chains for that person:

  • In the console: open Settings › People, choose the person, and turn on Can ship chains. The line under it reads: "Lets them accept a chain into the live branch, release to prod and lift a hold. Every member can already work on chains." The People list's Chains column shows your own rights, and a colleague's only if you can already see that colleague's roles: org admins see everyone's, a Team Lead sees the people whose roles were all given within the teams they lead, and a member sees only their own. A role given for the whole organization, the Can ship chains switch included, hides that person from a Team Lead. If you cannot see whether a colleague can ship, ask an org admin.
  • With your agent: call people_set_can_ship_chains with the person's userId and canShip set to true (or false to stop them). Find the userId with people_list. On your own row, and on a colleague's when you can see their roles (the same rule as the console), it also gives chains: whether they can work on chains (canWork), whether they can ship (canShip), and where shipping comes from (shipFrom): org_admin (they are an org admin, which is reported for every org admin, however they became one), switch, or role (another role the organization gave them for the whole organization). On anyone else's row chains is left out.

Who may change the switch:

  • Only someone who can ship chains, work on chains and invite people, all for the whole organization. Every org admin can ship, so an org admin who can invite people for the whole organization may change it; the built-in Organization Admin role can. A Team Lead cannot. Someone who cannot ship is refused: "only someone who can ship chains for the whole organization may let others ship, or stop them. Ask an org admin". Someone who can ship but cannot invite people for the whole organization is refused: "letting someone ship chains needs the right to invite people (org.invite) for the whole organization. Ask an org admin".
  • Every org admin can ship chains, however they became one: through the Organization Admin role, or through several roles that only add up to admin rights together. Their shipFrom is always org_admin, and the switch does nothing for them. Turning it on for an org admin is refused and changes nothing, and so is turning it off when they have no switch to turn off: "Dana is an org admin, and org admins can always ship chains, however they became one. Nothing changed".
  • If an org admin does have the switch on, for example from before they became one, it can be turned off, so it does not outlive them being an org admin. The answer: "Switch turned off for Dana. They still ship chains as an org admin."
  • Any change that would leave the organization with nobody who can let others ship is refused, with the code last_ship_granter: turning a switch off, changing someone's roles or a role's rights, or removing someone. Someone who can let others ship is an org admin who can invite people for the whole organization, or someone who can ship chains, work on chains and invite people, all for the whole organization. (A change that would leave no org admin at all is refused as last_org_admin first.) The sentence: "This would leave Acme with nobody who can let others ship chains. That needs an org admin who can invite people for the whole org, or someone who can ship chains, work on chains and invite people, all for the whole org. Nothing changed: make sure someone else, such as another org admin who can invite people, keeps that first."

A change takes effect at the person's next sign-in, at most 15 minutes later. That is true both ways: someone you let ship can ship within 15 minutes, and someone you stop can still ship for up to 15 minutes. This is a limit of how MassifyAI signs people in, not of chains.

4.2 When you are refused

Someone without Ship chains who tries to accept, release to prod or lift a hold is refused, and nothing is done. Called directly, the API answers 403 with the code chains_ship_required and this sentence:

this needs the right "ship chains", which covers accepting a chain into the live branch, releasing to prod, and lifting a hold, and you do not hold it in this org. An admin of your org can allow it, on your person in Settings, People ("Can ship chains"). If you were given it just now, it takes effect when you next sign in, at most 15 minutes later. Nothing was done.

What to do: ask an org admin to turn on Can ship chains for you, then sign in again. A refusal for working on chains carries the code chains_work_required instead.

With your agent, the tools you may not use are not listed. MassifyAI lists only the chains tools your rights allow. Without Ship chains, chains_accept, chains_release and chains_release_hold are missing from your agent's tool list, and calling one answers "not found". That is expected, not a broken connection. The tools that only read, such as chains_list and chains_get_status, are listed for everyone.

Your agent is told what you may do. chains_get_status and chains_list (and, called directly, POST /acts/chain_status, GET /chains and GET /whoami) answer with rights: work, ship and a sentence, about you only. If you can work on chains but not ship, the sentence reads:

You can work on chains in this org, but you cannot ship chains. "Ship chains" covers accepting a chain into the live branch, releasing to prod, and lifting a hold, so those tools are not in your list. An admin of your org can allow it, on your person in Settings, People ("Can ship chains"). If you were given it just now, it takes effect when you next sign in, at most 15 minutes later.

If you can do both, it reads: "You can work on chains and ship them in this org."

The Chains page in the console says what you can do. If you work on chains but cannot ship, it reads: "You can work on chains: start, promote to a test environment, seal and hold. Shipping (accept, release to prod, lift a hold) is for org admins, and an org admin can let you ship with Can ship chains in Settings › People."

5. Use it in the next task

Once a repo is set up, ask your agent to start a task's chain, add it to a test environment, seal it and ship it. Work from the Task Board, so each chain rides a task with an owner and acceptance criteria.

Screenshot

Last reviewed: 2026-11-20 · Maintained by MassifyAI documentation team
Beta: setting up chains on a repo and checking its branch protection are on MassifyAI's beta and coming to MassifyAI with the next release; not in production yet.