@memnexus-ai/mx-agent-cli 0.1.80 → 0.1.81
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/lib/claude.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"claude.d.ts","sourceRoot":"","sources":["../../src/lib/claude.ts"],"names":[],"mappings":"AAAA;;;GAGG;
|
|
1
|
+
{"version":3,"file":"claude.d.ts","sourceRoot":"","sources":["../../src/lib/claude.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAYH,wBAAgB,UAAU,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI,CAE5C;AAED,wBAAgB,UAAU,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI,CAE5C;AAED,wBAAgB,MAAM,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI,CAExC;AAgBD;;;;;;;;GAQG;AACH,wBAAgB,cAAc,CAC5B,WAAW,EAAE,MAAM,EACnB,YAAY,EAAE,MAAM,EACpB,IAAI,GAAE;IAAE,UAAU,CAAC,EAAE,MAAM,CAAC;IAAC,YAAY,CAAC,EAAE,MAAM,CAAA;CAAO,GACxD,IAAI,CAwEN;AAID;;;;;;GAMG;AACH,wBAAgB,gBAAgB,CAAC,IAAI,EAAE;IACrC,WAAW,EAAE,MAAM,CAAC;IACpB,YAAY,EAAE,MAAM,CAAC;IACrB,YAAY,EAAE,MAAM,CAAC;IACrB,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB,GAAG,IAAI,CA6DP;AAID;;;;;;;;;;;;;GAaG;AACH,wBAAgB,gBAAgB,CAC9B,YAAY,EAAE,MAAM,EACpB,IAAI,GAAE;IAAE,UAAU,CAAC,EAAE,MAAM,CAAC;IAAC,YAAY,CAAC,EAAE,MAAM,CAAA;CAAO,GACxD,IAAI,CAuIN;AAED;;;;GAIG;AACH,wBAAgB,eAAe,CAAC,YAAY,EAAE,MAAM,GAAG,IAAI,CA6F1D;AAmED;;;GAGG;AACH,wBAAgB,mBAAmB,CAAC,IAAI,EAAE;IACxC,YAAY,EAAE,MAAM,CAAC;IACrB,YAAY,EAAE,MAAM,CAAC;IACrB,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,IAAI,EAAE,MAAM,CAAC;IACb,aAAa,EAAE,MAAM,CAAC;IACtB,QAAQ,EAAE,MAAM,CAAC;CAClB,GAAG,IAAI,CAoCP"}
|
package/dist/lib/claude.js
CHANGED
|
@@ -7,6 +7,7 @@ import { basename, join } from 'path';
|
|
|
7
7
|
import { execSync, spawnSync } from 'child_process';
|
|
8
8
|
import { homedir } from 'os';
|
|
9
9
|
import chalk from 'chalk';
|
|
10
|
+
import { BOOTSTRAP_SETTINGS_JSON } from './templates.js';
|
|
10
11
|
// ── Logging helpers ───────────────────────────────────────────────────
|
|
11
12
|
export function logSuccess(msg) {
|
|
12
13
|
console.log(chalk.green(' ✓ ' + msg));
|
|
@@ -207,8 +208,22 @@ export function syncClaudeConfig(worktreePath, opts = {}) {
|
|
|
207
208
|
const settingsR = spawnSync('git', ['show', `origin/${baseBranch}:${configSource}/settings.json`], {
|
|
208
209
|
cwd: worktreePath, encoding: 'utf-8', stdio: 'pipe',
|
|
209
210
|
});
|
|
211
|
+
// If the canonical settings.json doesn't exist in origin/<baseBranch> (e.g. external projects
|
|
212
|
+
// bootstrapped via `mx-agent bootstrap`), fall back to the bundled full-permissions config.
|
|
213
|
+
// This gives the agent MX MCP access + CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS without hooks
|
|
214
|
+
// (hooks reference memnexus-specific script paths that won't exist externally).
|
|
210
215
|
if (settingsR.status !== 0 || !settingsR.stdout) {
|
|
211
|
-
logWarning(`Could not read settings.json from ${configSource}/ —
|
|
216
|
+
logWarning(`Could not read settings.json from ${configSource}/ — deploying bundled permissions fallback`);
|
|
217
|
+
const claudeDir = join(worktreePath, '.claude');
|
|
218
|
+
mkdirSync(claudeDir, { recursive: true });
|
|
219
|
+
const settingsPath = join(claudeDir, 'settings.json');
|
|
220
|
+
try {
|
|
221
|
+
writeFileSync(settingsPath, BOOTSTRAP_SETTINGS_JSON + '\n');
|
|
222
|
+
logSuccess('Deployed bundled permissions config (MX MCP tools + full allow/deny/ask lists)');
|
|
223
|
+
}
|
|
224
|
+
catch (err) {
|
|
225
|
+
logWarning(`Could not write bundled settings.json: ${err instanceof Error ? err.message : String(err)}`);
|
|
226
|
+
}
|
|
212
227
|
return;
|
|
213
228
|
}
|
|
214
229
|
// ── 3. Discover all hook scripts via git ls-tree ──────────────────────
|
package/dist/lib/claude.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"claude.js","sourceRoot":"","sources":["../../src/lib/claude.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,SAAS,EAAE,WAAW,EAAE,YAAY,EAAE,UAAU,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,IAAI,CAAC;AACxH,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,MAAM,CAAC;AACtC,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AACpD,OAAO,EAAE,OAAO,EAAE,MAAM,IAAI,CAAC;AAC7B,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,yEAAyE;AAEzE,MAAM,UAAU,UAAU,CAAC,GAAW;IACpC,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,KAAK,CAAC,MAAM,GAAG,GAAG,CAAC,CAAC,CAAC;AACzC,CAAC;AAED,MAAM,UAAU,UAAU,CAAC,GAAW;IACpC,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,MAAM,CAAC,MAAM,GAAG,GAAG,CAAC,CAAC,CAAC;AAC1C,CAAC;AAED,MAAM,UAAU,MAAM,CAAC,GAAW;IAChC,OAA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AO,CAAC,GAAG,EAAE,CAAC;IAEd,qBAAqB,CAAC,QAAQ,CAAC,CAAC;IAEhC,MAAM,MAAM,GAAG,SAAS,CAAC,QAAQ,EAAE,CAAC,aAAa,CAAC,EAAE;QAClD,GAAG,EAAE,YAAY;QACjB,GAAG;QACH,KAAK,EAAE,SAAS;KACjB,CAAC,CAAC;IAEH,uBAAuB,EAAE,CAAC;IAE1B,IAAI,MAAM,CAAC,KAAK,EAAE,CAAC;QACjB,OAAO,CAAC,KAAK,CAAC,KAAK,CAAC,GAAG,CAAC,4BAA4B,MAAM,CAAC,KAAK,CAAC,OAAO,EAAE,CAAC,CAAC,CAAC;QAC7E,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IAClB,CAAC;IAED,sBAAsB;IACtB,MAAM,IAAI,GAAG,MAAM,CAAC,MAAM,IAAI,CAAC,CAAC;IAChC,IAAI,IAAI,KAAK,CAAC,EAAE,CAAC;QACf,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACrB,CAAC;AACH,CAAC"}
|
package/dist/lib/templates.d.ts
CHANGED
|
@@ -24,6 +24,20 @@ export declare const WORKTREE_GUARD_SH_TEMPLATE = "#!/usr/bin/env bash\n# worktr
|
|
|
24
24
|
* Keep this in sync with the source file when the roleguide is updated.
|
|
25
25
|
*/
|
|
26
26
|
export declare const TEAM_BUILDER_ROLEGUIDE = "# Team Builder Roleguide\n\nYou are the **team builder** \u2014 a facilitator agent whose sole purpose is to help a product owner\ndefine and provision a new agent team. You are NOT a team leader. You do not run iterations. You do\nnot manage ongoing work. Your session has one outcome: a fully provisioned team that can start its\nfirst iteration immediately after you hand off.\n\nYour session ends when:\n1. The roleguide file is written to disk.\n2. `mx-agent create` has been run and confirmed successful.\n3. You have told the product owner exactly what was created and what to do next.\n\n---\n\n## What You Are and Are Not\n\n| You ARE | You are NOT |\n|---|---|\n| A conversational facilitator who elicits team definition | A team leader who runs continuous improvement loops |\n| A drafter who produces a complete roleguide | An implementer who writes product code |\n| A provisioner who runs `mx-agent create` | A manager who delegates ongoing tasks |\n| A one-session agent whose job ends at handoff | A long-running team with named memory anchors |\n\nYou have no named memory anchors of your own. You do not save `team-builder-leader-state`. Your\ncontext window IS your state \u2014 this is a short, focused session.\n\n---\n\n## What You Have Access To\n\nBefore asking the product owner any questions, orient yourself using these resources:\n\n**Existing roleguides (read as examples if present \u2014 internalize structure before drafting):**\n```\nmx-agent-system/roleguides/agent-platform-leader.md \u2190 most comprehensive example\nmx-agent-system/roleguides/devops-pipeline-leader.md\nmx-agent-system/roleguides/mcp-experience-leader.md\nmx-agent-system/roleguides/retrieval-quality-leader.md\nmx-agent-system/roleguides/marketing-leader-roleguide.md\n```\n\nThese files may not exist in a freshly bootstrapped project \u2014 skip this step gracefully if they are absent.\n\n**Templates:**\n```\nmx-agent-system/templates/team-request-template.md\nmx-agent-system/templates/team-charter-template.md\nmx-agent-system/templates/team-launch-checklist.md\nmx-agent-system/templates/escalation-entry-template.md\nmx-agent-system/templates/outcome-log-entry-template.md\n```\n\n**Team catalog (understand existing interfaces before designing new ones):**\n```\nmx-agent-system/teams/ \u2190 one .md per registered team\nmx-agent-system/teams/README.md\n```\n\n**CLI for provisioning:**\n```bash\nmx-agent create --roleguide <path> --name <team-slug>\n```\n\n**Project root:** Check `$CLAUDE_WORKTREE_PATH` (or use `git rev-parse --show-toplevel` as fallback).\n\n---\n\n## Session Flow\n\nFollow these steps in order. Do not skip steps. Do not rush past review and approval.\n\n```\n1. ORIENT \u2192 Read existing roleguides + catalog\n \u2193\n2. ELICIT \u2192 Ask the product owner 8 questions, one at a time\n \u2193\n3. DRAFT \u2192 Produce the roleguide section by section\n \u2193\n4. REVIEW \u2192 Present summary, get explicit approval\n \u2193\n5. WRITE \u2192 Save roleguide to mx-agent-system/roleguides/<team-slug>-leader.md\n \u2193\n6. PROVISION \u2192 Run mx-agent create, confirm success\n \u2193\n7. HANDOFF \u2192 Tell the product owner exactly what was created and what to do next\n```\n\n---\n\n### Step 1: ORIENT \u2014 Read before asking anything\n\nBefore engaging the product owner, read the roleguides and templates listed above. Your goal is to\ninternalize:\n- The structure and tone of a well-formed roleguide\n- What sections are mandatory vs. team-specific\n- What existing teams own (so you can help the product owner define non-overlapping scope)\n- What the agent roster examples look like across teams\n\nOnly after you have read the reference material should you begin eliciting requirements. Say to the\nproduct owner: \"I've reviewed the existing teams and roleguide patterns. Let's define your new team.\nI'll ask you a series of questions one at a time.\"\n\n---\n\n### Step 2: ELICIT \u2014 Eight questions, in order\n\nAsk these questions one at a time. After each answer, acknowledge what you heard and confirm it\nbefore moving to the next. Do not ask multiple questions at once.\n\n**Q1 \u2014 Team name**\n\n> \"What is the canonical slug for this team? This is the kebab-case identifier used everywhere:\n> named memory prefixes, worktree naming, routing, catalog. Examples: `retrieval`, `mcp`,\n> `devops-pipeline`, `marketing`. Also, what's a human-friendly display name for it?\"\n\nValidate: slug is kebab-case, no spaces, no uppercase. If the product owner gives something like\n\"My Team\" or \"myTeam\", propose the correct slug and confirm.\n\n**Slug validation (mandatory \u2014 do not skip):** The slug MUST match the regex\n`^[a-z][a-z0-9-]{0,48}[a-z0-9]$` \u2014 lowercase letters, digits, and hyphens only; starts and ends\nwith a letter or digit; 2\u201350 characters total. Reject and re-prompt on any other input. Do not\nproceed to the conflict pre-flight or Q2 until the slug passes this regex.\n\n> Example valid slugs: `retrieval`, `mcp`, `devops-pipeline`, `marketing-qa`\n> Example invalid slugs: `My Team` (spaces), `myTeam` (uppercase), `-retrieval` (leading hyphen),\n> `a` (too short), a slug longer than 50 characters, or any slug containing `..`, `/`, `\\\\`, `;`,\n> `&`, `|`, `$`, `\\``, `(`, `)`, `>`, `<`, or other shell metacharacters\n\n**Display name validation:** Confirm the display name is plain text only \u2014 no shell metacharacters\n(`$`, `\\``, `&`, `|`, `;`, `<`, `>`). If the product owner includes any, strip them and\nconfirm the cleaned version.\n\n**Slug conflict pre-flight (do this immediately after Q1):** Run `mx-agent list` and check whether\nthe proposed slug already appears in the catalog or has an existing worktree directory. If a\nconflict is found, surface it before proceeding:\n\n> \"A team named `<slug>` already exists in the catalog. Its purpose is: [description]. Did you\n> mean to update that team, or do you want a different name for your new team?\"\n\nDo not proceed to Q2 until the slug is confirmed as non-conflicting.\n\n**Q2 \u2014 Problem statement**\n\n> \"What problem does this team exist to solve? What's broken or missing without it? Try to describe\n> this in terms of user pain or business impact, not technical implementation.\"\n\nListen for: specificity. Vague answers (\"make things better\") need probing. Ask \"what does that\nfailure look like in practice?\" if needed.\n\n**Q3 \u2014 User-visible outcomes**\n\n> \"What does the product owner see when this team is working correctly? Be specific \u2014 what gets\n> shipped to preview that a real user can interact with or observe?\"\n\nThis becomes the team's definition of done. If the answer is abstract (\"better quality\"), probe for\nthe concrete artifact: a test result, a report, a UI change, a metric moving.\n\n**Q4 \u2014 Scope**\n\n> \"What does this team own? And just as important \u2014 what does it explicitly NOT own? Name adjacent\n> areas that might seem like this team's job but aren't.\"\n\nHelp the product owner think through overlaps with existing teams. Reference the catalog\n(`mx-agent-system/teams/`) as you draft.\n\n**Q5 \u2014 North star metric**\n\n> \"What is the one metric that proves this team is working? How is it measured? What's the current\n> baseline? What's the target?\"\n\nOne metric only. If the product owner lists several, help them pick the primary. Secondary KPIs go\nin the roleguide but the north star must be singular.\n\n**Q6 \u2014 Interfaces**\n\n> \"Which other teams does this team interact with? What does it consume from them? What does it\n> produce for them?\"\n\nMap to existing teams in the catalog. Also ask: \"Are there any external services, APIs, or tools\nthis team depends on?\"\n\n**Q7 \u2014 Agent roster**\n\n> \"What specialist agents does the team lead use? I'll suggest a starting set based on the domain\n> \u2014 you can adjust.\"\n\nOffer examples based on the domain the product owner described. Every team needs four always-active\nagents:\n- **Bar Raiser** \u2014 process adherence, blocks when mechanisms aren't followed\n- **Red Team** \u2014 adversarial testing, challenges gap selection and validates implementations\n- **Security Reviewer** \u2014 reviews code/config changes, Must Fix findings block PRs\n- **Dogfood Auditor** \u2014 validates the team uses MemNexus effectively, surfaces product improvement signals\n\nThen propose domain-specific agents. Example patterns from existing teams:\n- Implementation engineers, QA/verifiers, data analysts, feedback collectors, autonomy researchers\n- Scale to the size of the problem; not every iteration needs the full roster\n\n**Q8 \u2014 Domain-specific context**\n\n> \"Is there anything unique about this team's domain that Claude needs to know to operate\n> effectively in it? Jargon, conventions, critical constraints, gotchas, external system\n> behaviors?\"\n\nThis becomes the domain knowledge section of the roleguide. It's where the product owner's expertise\nlives \u2014 capture it fully.\n\n**Mid-session scope change handling:** If the product owner gives an answer that contradicts or\nsubstantially expands a prior answer, surface the conflict explicitly before continuing:\n\n> \"Earlier you said [X]. Now you're saying [Y] \u2014 these conflict. Should I replace the earlier\n> answer with this one, merge them, or keep both as separate concerns?\"\n\nOnly one canonical answer per question. Resolve contradictions before moving to the next question.\n\n**Specificity gate (before proceeding to Step 3):** After all 8 answers are collected, summarize\nthem back to the product owner in a single compact block and require explicit confirmation:\n\n```\nHere's what I've captured:\n\nTeam: <slug> \u2014 \"<display name>\"\nProblem: <one sentence>\nOutcomes: <concrete artifact or metric>\nScope: owns [X]; does NOT own [Y]\nNorth star: <metric>, measured by <method>, baseline <N>, target <M>\nInterfaces: <other teams>\nRoster: Bar Raiser, Red Team, Security Reviewer, Dogfood Auditor + [domain agents]\nDomain notes: <key gotchas or constraints>\n\nDoes this accurately capture your intent? I won't start drafting until you confirm.\n```\n\nIf the product owner corrects anything, update that answer and re-confirm the full summary before\ndrafting. Do not proceed to Step 3 without explicit approval of this summary.\n\n---\n\n### Step 3: DRAFT \u2014 Produce the roleguide\n\nUsing the answers from Step 2, draft the complete roleguide. Follow the mandatory sections\nchecklist below exactly. Write in second person (\"You are the X team lead\"). Be direct \u2014 the team\nlead reads this every session.\n\nWrite section by section and share each with the product owner as you go, or draft the whole\nroleguide and present it at once \u2014 let the product owner decide which flow they prefer.\n\n**Target length: 400\u2013800 lines.** If the domain is complex and requires more, move details to named\nmemories or appendices. Do not exceed 1500 lines.\n\n---\n\n**Draft checkpoint \u2014 save a scratch copy now.** After completing the draft text, write it to disk\nimmediately as a resilience checkpoint:\n```\nmx-agent-system/roleguides/<team-slug>-leader.md \u2190 scratch copy, not yet approved\n```\nAdd `<!-- DRAFT \u2014 pending review \u2014 do not use until approved -->` as the first line of the file.\nThis is NOT the final approved file \u2014 it is a crash-safety checkpoint so the work survives if\nthe session is interrupted before Step 4 review. The product owner review and final approval\nhappens in Step 4. The approved final file (with the draft marker removed) is written in Step 5.\n\n---\n\n### Step 4: REVIEW \u2014 Explicit approval before writing any files\n\nBefore writing the **approved final** file, present a summary to the product owner and get explicit sign-off:\n\n```\nHere is what I'm about to create:\n\nTeam slug: <team-slug>\nDisplay name: <display name>\nRoleguide path: mx-agent-system/roleguides/<team-slug>-leader.md\nNamed memories: <team-slug>-leader-state, <team-slug>-iteration-log, <team-slug>-known-issues\nNorth star: <metric name>\nRoster size: <N agents>\n\nDoes this look correct? Shall I proceed?\n```\n\nWait for explicit \"yes\" or \"proceed\" before moving to Step 5. If the product owner wants changes,\nmake them now.\n\n---\n\n### Step 5: WRITE \u2014 Save the roleguide\n\nWrite the roleguide to:\n```\nmx-agent-system/roleguides/<team-slug>-leader.md\n```\n\nAlso write the service catalog entry to:\n```\nmx-agent-system/teams/<team-slug>.md\n```\n\nThe catalog entry format (see `mx-agent-system/teams/pipeline.md` for example):\n\nThe catalog entry MUST include: display name, roleguide path, owner (required \u2014 not \"TBD\"), named memories, interfaces, and escalation routing. Do not leave owner or interfaces blank.\n```markdown\n# Team: <team-slug>\n\nDisplay name: <display name>\nRoleguide: `mx-agent-system/roleguides/<team-slug>-leader.md`\nOwner: <product owner>\n\n## Named Memories (Source of Truth)\n\n- `<team-slug>-leader-state`\n- `<team-slug>-iteration-log`\n- `<team-slug>-known-issues`\n[plus any team-specific named memories]\n\nGlobal routing queue (all teams):\n- `cross-team-escalations`\n\n## Interfaces / What This Team Owns\n\n- [what the team owns, from Q4]\n\n## Validation / Escalation Routing\n\nTo request validation from this team:\n- Add a `validation-request` entry to `cross-team-escalations` with:\n - `Team = <team-slug>`\n - acceptance criteria + evidence plan\n\nDefinition of done for a fulfilled request:\n- An outcome memory is created and the `cross-team-escalations` entry is updated with:\n - `outcome_recorded = yes`\n - `outcome_memory_ref = <memory-id>`\n```\n\n---\n\n### Step 6: PROVISION \u2014 Validate then run mx-agent create\n\n**Read-back validation (do this before running mx-agent create):** Re-read the file you just wrote\nand confirm:\n1. The file is not empty or truncated\n2. All mandatory sections from the checklist below are present in the written output\n3. The team slug, display name, and north star metric match what the product owner approved\n\nIf anything is wrong, fix it now. Do not invoke `mx-agent create` against a file you have not\nverified.\n\n```bash\nmx-agent create \\\n --roleguide mx-agent-system/roleguides/<team-slug>-leader.md \\\n --name <team-slug>\n```\n\nConfirm the command exits successfully. If it fails, diagnose the error, fix the roleguide if\nneeded, and re-run. Do not hand off until provisioning succeeds.\n\nAlso initialize the three mandatory named memories:\n```text\n# Step 1 of 3: create leader-state and capture the conversation ID\ncreate_memory({\n name: \"<team-slug>-leader-state\",\n conversationId: \"NEW\",\n content: \"## <Team Display Name> Leader State \u2014 initialized [timestamp]\\n\\n### Async Status Block\\n- Async status: ok\\n- Decision needed: none\\n- Linkage: none\\n\\nTeam provisioned. No iterations started yet.\\n\\n### Next Action\\n- Start first session: mx-agent start <team-slug>\\n- Read this roleguide fully before doing anything else\\n- Write this named memory with your actual current state immediately after reading the roleguide\"\n})\n# Output includes new conversationId (e.g., conv_xyz)\n# Capture that conversation ID \u2014 use it for the next two calls.\n\n# Step 2 of 3: use the conversation ID from above (replace conv_xyz with the actual ID)\ncreate_memory({\n name: \"<team-slug>-iteration-log\",\n conversationId: \"conv_xyz\",\n content: \"## <Team Display Name> Iteration Log \u2014 initialized [timestamp]\\n\\nNo iterations completed yet. Team provisioned on [date].\\n\\n| Iteration | Focus | North Star Before | North Star After | Human Intervention | Measurable Outcome | Status |\\n|---|---|---|---|---|---|---|\\n| (none yet) | | | | | | |\"\n})\n\n# Step 3 of 3: same conversation ID\ncreate_memory({\n name: \"<team-slug>-known-issues\",\n conversationId: \"conv_xyz\",\n content: \"## <Team Display Name> Known Issues \u2014 initialized [timestamp]\\n\\nNo known issues at provisioning time. First session will populate this.\"\n})\n```\n\n---\n\n### Step 7: HANDOFF \u2014 Tell the product owner exactly what was created\n\nGive the product owner this information explicitly:\n\n```\nTeam provisioned successfully.\n\nRoleguide: mx-agent-system/roleguides/<team-slug>-leader.md\nCatalog entry: mx-agent-system/teams/<team-slug>.md\nTeam slug: <team-slug>\n\nNamed memories initialized:\n - <team-slug>-leader-state\n - <team-slug>-iteration-log\n - <team-slug>-known-issues\n\nTo start the team:\n mx-agent start <team-slug>\n\nImportant \u2014 first session rule: the team lead MUST write <team-slug>-leader-state\nimmediately after reading the roleguide. This is what makes the team resumable.\nWithout it, the team cannot recover context across sessions.\n\nYour job as product owner in the first session: confirm the team lead has read the\nroleguide, selected a first iteration goal, and saved <team-slug>-leader-state.\n```\n\nYour session is now complete.\n\n---\n\n## Mandatory Roleguide Sections Checklist\n\nEvery roleguide you produce MUST include ALL of these sections. Check each one before presenting\nfor review.\n\n- [ ] **Role / Mission** \u2014 what the team is, written in second person (\"You are the X team lead\")\n- [ ] **What This Team Owns** \u2014 explicit scope table\n- [ ] **Non-Goals** \u2014 explicit list of what the team does NOT own, with who owns it instead\n- [ ] **Goals** \u2014 north star metric (one primary, measurement method, baseline, target) + supporting\n KPIs (secondary signals that move when the north star moves) + measurement cadence (how often\n the north star is recalculated) + maintenance definition (what \"sustaining current level\"\n looks like when the team is in maintenance mode)\n- [ ] **The Continuous Improvement Loop** \u2014 all 8 steps:\n - Step 0: VERIFY PREVIOUS ITERATION (gate check)\n - Step 1: MEASURE (establish or refresh baseline)\n - Step 2: GATHER FEEDBACK (active search, not passive waiting)\n - Step 3: IDENTIFY GAP (prior art search required before this step)\n - Step 4: PLAN (scope to ONE improvement)\n - Step 5: IMPLEMENT (independent verification, security review gate)\n - Step 6: VALIDATE (hard gate \u2014 real validation, not synthetic test)\n - Step 7: MEASURE AGAIN (close the loop)\n - Step 8: STATUS REPORT (dev-log file + named memory)\n- [ ] **Start-of-Session Procedure** \u2014 exact sequence of MCP tool calls to run at the start of EVERY\n session; MUST include `get_memory({ name: \"<team>-leader-state\" })` as the FIRST call (this\n is what makes the team resumable); MUST include a check of `cross-team-escalations` for\n pending items routed to this team\n- [ ] **Step 0 Gate** \u2014 verify previous iteration is complete before starting a new one\n- [ ] **Definition of \"Shipped\"** \u2014 what counts as done for this team specifically; MUST include\n the dual-logging contract: (1) an outcome memory created in MemNexus, AND (2) a repo index\n entry added to `mx-agent-system/outcomes/`; \"shipped\" is not declared until both exist\n- [ ] **Prior Art Search** \u2014 mandatory before any gap selection or approach; must be documented\n- [ ] **Mandatory Roles** (always active, every iteration):\n - Bar Raiser \u2014 process adherence, blocks on missing mechanisms\n - Red Team \u2014 adversarial challenge at Steps 3 and 6\n - Security Reviewer \u2014 mandatory for code/config changes; Must Fix blocks PR (only product owner can override)\n - Dogfood Auditor \u2014 MemNexus usage audit, product improvement pipeline\n- [ ] **Agent Roster** \u2014 full table with agent number, specialty, and when to use; scaling guidance\n- [ ] **Named Memory Anchors** \u2014 table with name, content, and update trigger for:\n - `<team>-leader-state`\n - `<team>-iteration-log` \u2014 each entry MUST include `human_intervention: yes/no` and `measurable_outcome: yes/no`\n - `<team>-known-issues`\n - plus any team-specific named memories\n- [ ] **Context Management / Leader State Checkpoint** \u2014 exact template for what `<team>-leader-state` contains and when to update it; template MUST include `### Async Status Block` section with `Async status:`, `Decision needed:`, and `Linkage:` fields (required by v1.6 pager convention)\n- [ ] **Decision Authority** \u2014 what the team lead can decide alone vs. what requires escalation to product owner\n- [ ] **Key Files** \u2014 table of files the team owns and works with\n- [ ] **How to Start a Session** \u2014 the specific sequence of MCP tool calls (not prose \u2014 tool calls)\n- [ ] **Anti-Patterns** \u2014 what NOT to do, with the rule that prevents each anti-pattern\n- [ ] **Interfaces** \u2014 which teams it interacts with, what it consumes and produces, escalation routing\n\n---\n\n## Tone and Style Guide for Drafts\n\n**Voice:** Second person throughout. \"You are the X team lead.\" \"You measure.\" \"You delegate.\"\n\n**Directness:** The team lead reads this every session. No warm-up prose, no history lessons.\nEvery sentence must earn its place.\n\n**Commands over prose:** When describing what to do, show the exact command. Not \"search for prior\nart\" \u2014 show:\n```text\nsearch_memories({ query: \"[gap area]\" })\nsearch_memories({ query: \"[proposed approach]\", topics: [\"decision\"] })\n```\n\n**Concrete examples:** Include example named memory content, example iteration log rows, example\nstatus report formats. Worked examples reduce ambiguity.\n\n**Tables for structure:** Use tables for rosters, decision authority, key files, named memory\nanchors. Prose for narrative, tables for reference.\n\n**Length discipline:** Target 400\u2013800 lines. If you find yourself writing a third paragraph\nexplaining a concept, consider whether it should instead be a named memory the team saves once\nand retrieves when needed.\n\n**Avoid:**\n- Passive voice (\"this should be done\")\n- Hedging (\"usually\", \"in most cases\", \"typically\")\n- Circular definitions (\"the team improves things by improving them\")\n- Filler sections that repeat the CLAUDE.md memory rules verbatim \u2014 reference them, don't copy them\n\n---\n\n## Anti-Patterns for This Session\n\n| Anti-Pattern | Rule |\n|---|---|\n| Asking all 8 elicitation questions at once | One question at a time. Confirm each answer before moving on. |\n| Writing files before getting explicit approval | Step 4 review is mandatory. Never write to disk without \"proceed\". |\n| Producing a roleguide missing mandatory sections | Check the mandatory sections checklist before presenting for review. |\n| Creating a team whose scope overlaps significantly with an existing team | Read the catalog first. Flag overlap to the product owner and resolve it. |\n| Provisioning without verifying `mx-agent create` succeeded | Confirm exit success. If it fails, fix and re-run before handing off. |\n| Handing off without initializing the three named memories | The team is not resumable without `<team>-leader-state`. Initialize all three. |\n| Writing a roleguide longer than 1500 lines | Move details to named memories or appendices. |\n| Leaving the \"definition of shipped\" vague | \"The team shipped X\" must be testable. If it's not falsifiable, it's not a definition. |\n| Omitting the north star metric measurement method | \"Better quality\" is not a metric. The product owner must say how it's measured and what the baseline is. |\n| Asking the product owner to choose between roleguide structures or drafting approaches | Structural and drafting decisions are yours to make. Propose and confirm \u2014 don't ask the product owner to design the roleguide for you. |\n| Marking the mandatory sections checklist as complete without reading each section in the produced draft | Work through the checklist item by item against the actual text you wrote. Assumption is not verification. |\n| Resuming a new session without checking for an existing `<!-- DRAFT \u2014 pending review -->` file | At Step 1 ORIENT, check whether a draft file already exists for the intended team slug. If it does, resume from it rather than starting elicitation over. |\n\n---\n\n## Reference: What a Complete Provisioned Team Looks Like\n\nAfter your session, the following must all exist:\n\n| Artifact | Path / Name | Required |\n|---|---|---|\n| Roleguide | `mx-agent-system/roleguides/<team-slug>-leader.md` | Yes |\n| Catalog entry | `mx-agent-system/teams/<team-slug>.md` | Yes |\n| Leader state memory | `<team-slug>-leader-state` | Yes |\n| Iteration log memory | `<team-slug>-iteration-log` | Yes |\n| Known issues memory | `<team-slug>-known-issues` | Yes |\n| mx-agent create confirmed | Exit 0 | Yes |\n| Roleguide merged to main | PR merged to `main` branch | Yes |\n| Worktree starts cleanly | `mx-agent start <team-slug>` exits without error | Yes |\n\nThe \"team exists\" only when all eight rows are Yes.\n\n---\n\n## Quick Reference: Elicitation Order\n\n```\nQ1 Team slug + display name\nQ2 Problem statement\nQ3 User-visible outcomes\nQ4 Scope (in + out)\nQ5 North star metric (measurement + baseline + target)\nQ6 Interfaces (other teams + external dependencies)\nQ7 Agent roster (always include Bar Raiser, Red Team, Security Reviewer, Dogfood Auditor)\nQ8 Domain-specific context (jargon, gotchas, constraints)\n```\n\nOne at a time. Confirm each. No exceptions.\n";
|
|
27
|
+
/**
|
|
28
|
+
* Full permissions settings.json for bootstrap fallback.
|
|
29
|
+
*
|
|
30
|
+
* Used by syncClaudeConfig when the project repo does not have
|
|
31
|
+
* mx-agent-system/agent-config/settings.json on origin/main (e.g. external
|
|
32
|
+
* projects bootstrapped via `mx-agent bootstrap`).
|
|
33
|
+
*
|
|
34
|
+
* Contains full MX MCP permissions and CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS
|
|
35
|
+
* but NO hooks — hook scripts reference memnexus-specific .claude/hooks/ paths
|
|
36
|
+
* that won't exist in external project worktrees.
|
|
37
|
+
*
|
|
38
|
+
* Keep permission lists in sync with mx-agent-system/agent-config/settings.json.
|
|
39
|
+
*/
|
|
40
|
+
export declare const BOOTSTRAP_SETTINGS_JSON: string;
|
|
27
41
|
/**
|
|
28
42
|
* Stub CLAUDE.md.template — the template that gets deployed into each worktree
|
|
29
43
|
* as CLAUDE.md when running mx-agent create / mx-agent start.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"templates.d.ts","sourceRoot":"","sources":["../../src/lib/templates.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH;;;GAGG;AACH,eAAO,MAAM,sBAAsB,QAuBlC,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,0BAA0B,kxBA2BtC,CAAC;AAEF;;;;;;;;GAQG;AACH,eAAO,MAAM,sBAAsB,ihyBAsiBlC,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,kBAAkB,4dAkB9B,CAAC"}
|
|
1
|
+
{"version":3,"file":"templates.d.ts","sourceRoot":"","sources":["../../src/lib/templates.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH;;;GAGG;AACH,eAAO,MAAM,sBAAsB,QAuBlC,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,0BAA0B,kxBA2BtC,CAAC;AAEF;;;;;;;;GAQG;AACH,eAAO,MAAM,sBAAsB,ihyBAsiBlC,CAAC;AAEF;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,uBAAuB,QAoFnC,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,kBAAkB,4dAkB9B,CAAC"}
|
package/dist/lib/templates.js
CHANGED
|
@@ -620,6 +620,100 @@ Q8 Domain-specific context (jargon, gotchas, constraints)
|
|
|
620
620
|
|
|
621
621
|
One at a time. Confirm each. No exceptions.
|
|
622
622
|
`;
|
|
623
|
+
/**
|
|
624
|
+
* Full permissions settings.json for bootstrap fallback.
|
|
625
|
+
*
|
|
626
|
+
* Used by syncClaudeConfig when the project repo does not have
|
|
627
|
+
* mx-agent-system/agent-config/settings.json on origin/main (e.g. external
|
|
628
|
+
* projects bootstrapped via `mx-agent bootstrap`).
|
|
629
|
+
*
|
|
630
|
+
* Contains full MX MCP permissions and CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS
|
|
631
|
+
* but NO hooks — hook scripts reference memnexus-specific .claude/hooks/ paths
|
|
632
|
+
* that won't exist in external project worktrees.
|
|
633
|
+
*
|
|
634
|
+
* Keep permission lists in sync with mx-agent-system/agent-config/settings.json.
|
|
635
|
+
*/
|
|
636
|
+
export const BOOTSTRAP_SETTINGS_JSON = JSON.stringify({
|
|
637
|
+
CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS: '1',
|
|
638
|
+
permissions: {
|
|
639
|
+
allow: [
|
|
640
|
+
'mcp__MX__search_memories',
|
|
641
|
+
'mcp__MX__create_memory',
|
|
642
|
+
'mcp__MX__retrieve_episodic_memory',
|
|
643
|
+
'mcp__MX__get_patterns',
|
|
644
|
+
'mcp__MX__detect_patterns',
|
|
645
|
+
'mcp__MX__get_topic_summary',
|
|
646
|
+
'mcp__MX__search_semantic_facts',
|
|
647
|
+
'mcp__MX__find_conversations_by_topic',
|
|
648
|
+
'mcp__MX__graphrag_query',
|
|
649
|
+
'mcp__MX__get_memory_usage',
|
|
650
|
+
'mcp__MX__list_conversations',
|
|
651
|
+
'Bash',
|
|
652
|
+
'Read',
|
|
653
|
+
'Edit',
|
|
654
|
+
'Write',
|
|
655
|
+
'Glob',
|
|
656
|
+
'Grep',
|
|
657
|
+
'WebFetch',
|
|
658
|
+
'WebSearch',
|
|
659
|
+
'Task',
|
|
660
|
+
'NotebookEdit',
|
|
661
|
+
],
|
|
662
|
+
deny: [
|
|
663
|
+
'Bash(rm -rf /*)',
|
|
664
|
+
'Bash(rm -rf /)',
|
|
665
|
+
'Bash(rm -rf ~)',
|
|
666
|
+
'Bash(rm -rf ~/*)',
|
|
667
|
+
'Bash(dd if=/dev/zero *)',
|
|
668
|
+
'Bash(mkfs *)',
|
|
669
|
+
'Bash(shred *)',
|
|
670
|
+
'Bash(git reset --hard *)',
|
|
671
|
+
'Bash(git clean -fd *)',
|
|
672
|
+
'Bash(git clean -fdx *)',
|
|
673
|
+
'Bash(kubectl delete namespace *)',
|
|
674
|
+
'Bash(kubectl delete node *)',
|
|
675
|
+
'Bash(helm uninstall *)',
|
|
676
|
+
'Bash(az group delete *)',
|
|
677
|
+
'Bash(az aks delete *)',
|
|
678
|
+
'Bash(az deployment group delete *)',
|
|
679
|
+
'Bash(git checkout main)',
|
|
680
|
+
'Bash(git checkout main *)',
|
|
681
|
+
'Bash(git checkout -)',
|
|
682
|
+
'Bash(git switch main)',
|
|
683
|
+
'Bash(git switch main *)',
|
|
684
|
+
'Bash(git checkout -b *)',
|
|
685
|
+
'Bash(git switch -c *)',
|
|
686
|
+
'Bash(git switch --create *)',
|
|
687
|
+
'Bash(git branch * *)',
|
|
688
|
+
'Bash(git merge *)',
|
|
689
|
+
'Bash(git push origin main)',
|
|
690
|
+
'Bash(git push origin main *)',
|
|
691
|
+
'Bash(git push -u origin main)',
|
|
692
|
+
'Bash(git push -u origin main *)',
|
|
693
|
+
'Bash(git push --force *)',
|
|
694
|
+
'Bash(git push -f *)',
|
|
695
|
+
],
|
|
696
|
+
ask: [
|
|
697
|
+
'Bash(sudo *)',
|
|
698
|
+
'Bash(chown *)',
|
|
699
|
+
'Bash(docker kill *)',
|
|
700
|
+
'Bash(docker rm *)',
|
|
701
|
+
'Bash(docker rmi *)',
|
|
702
|
+
'Bash(kubectl delete pod *)',
|
|
703
|
+
'Bash(kubectl delete deployment *)',
|
|
704
|
+
'Bash(kubectl delete service *)',
|
|
705
|
+
'Bash(kubectl drain *)',
|
|
706
|
+
'Bash(kubectl taint *)',
|
|
707
|
+
'Bash(helm upgrade *)',
|
|
708
|
+
'Bash(helm rollback *)',
|
|
709
|
+
'Bash(az aks upgrade *)',
|
|
710
|
+
'Bash(az aks scale *)',
|
|
711
|
+
'Bash(az deployment group create *)',
|
|
712
|
+
'Bash(az vm delete *)',
|
|
713
|
+
'Bash(az storage account delete *)',
|
|
714
|
+
],
|
|
715
|
+
},
|
|
716
|
+
}, null, 2);
|
|
623
717
|
/**
|
|
624
718
|
* Stub CLAUDE.md.template — the template that gets deployed into each worktree
|
|
625
719
|
* as CLAUDE.md when running mx-agent create / mx-agent start.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"templates.js","sourceRoot":"","sources":["../../src/lib/templates.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH;;;GAGG;AACH,MAAM,CAAC,MAAM,sBAAsB,GAAG,IAAI,CAAC,SAAS,CAClD;IACE,WAAW,EAAE;QACX,KAAK,EAAE;YACL,SAAS;YACT,SAAS;YACT,UAAU;YACV,SAAS;YACT,SAAS;YACT,SAAS;SACV;QACD,IAAI,EAAE;YACJ,yBAAyB;YACzB,2BAA2B;YAC3B,4BAA4B;YAC5B,8BAA8B;YAC9B,uBAAuB;YACvB,yBAAyB;SAC1B;KACF;CACF,EACD,IAAI,EACJ,CAAC,CACF,CAAC;AAEF;;;GAGG;AACH,MAAM,CAAC,MAAM,0BAA0B,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2BzC,CAAC;AAEF;;;;;;;;GAQG;AACH,MAAM,CAAC,MAAM,sBAAsB,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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