{"_id":"@abx-hh/agm-cli","_rev":"2-f70fc5565ca7cd939cbdc37da74a64e7","name":"@abx-hh/agm-cli","dist-tags":{"latest":"0.2.1"},"versions":{"0.2.0":{"name":"@abx-hh/agm-cli","version":"0.2.0","keywords":["agm","architecture","mcp","model-context-protocol","cursor","llmlingua"],"license":"MIT","_id":"@abx-hh/agm-cli@0.2.0","maintainers":[{"name":"abx-npm","email":"npm@x-be.de"}],"homepage":"https://github.com/abx-git/agm#readme","bugs":{"url":"https://github.com/abx-git/agm/issues"},"bin":{"agm":"dist/cli.js","agm-mcp":"dist/mcp-server.js"},"dist":{"shasum":"d4dfd299f70145264bc6b64f9c66d6266c507c12","tarball":"https://registry.npmjs.org/@abx-hh/agm-cli/-/agm-cli-0.2.0.tgz","fileCount":47,"integrity":"sha512-F0Iyso0eY5dm1gf/Z9H8Z8UanJYopIY4F8X49fK5oRS9od20EqcCG8ZhtLGB2sanmyr87Vea/jLOAnR7GD6MGQ==","signatures":[{"sig":"MEYCIQD5nEt/x5UzVP6DDlhZ74vaHiROuL3IaFywbZT7qbjRigIhAKhWT69IH6c8cCEspYOigeAj2DHIhr9z9HeASRHFTLx6","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":129219},"type":"module","engines":{"node":">=20"},"gitHead":"71364cbb289abdcb68552c98e387abcf396fcae9","scripts":{"dev":"tsc --watch","build":"tsc","prepare":"npm run build","start:mcp":"node dist/mcp-server.js","compress-prompts":"node ../scripts/agm-compress-prompts.mjs"},"_npmUser":{"name":"abx-npm","email":"npm@x-be.de"},"repository":{"url":"git+https://github.com/abx-git/agm.git","type":"git"},"_npmVersion":"11.12.1","description":"Architecture Graph Method — installable MCP server and CLI (LLMLingua-2 compressed prompts)","directories":{},"_nodeVersion":"24.15.0","dependencies":{"zod":"^3.24.2","commander":"^13.1.0","@inquirer/prompts":"^7.5.0","@modelcontextprotocol/sdk":"^1.12.1"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.8.3","@types/node":"^22.15.3","@axiomantic/llmlingua-2":"^0.1.1","@huggingface/transformers":"^3.5.2"},"_npmOperationalInternal":{"tmp":"tmp/agm-cli_0.2.0_1782940963184_0.6592673220295138","host":"s3://npm-registry-packages-npm-production"}},"0.2.1":{"name":"@abx-hh/agm-cli","version":"0.2.1","description":"Architecture Graph Method — installable MCP server and CLI (LLMLingua-2 compressed prompts)","type":"module","license":"MIT","repository":{"type":"git","url":"git+https://github.com/abx-git/agm.git"},"homepage":"https://github.com/abx-git/agm#readme","bugs":{"url":"https://github.com/abx-git/agm/issues"},"keywords":["agm","architecture","mcp","model-context-protocol","cursor","llmlingua"],"bin":{"agm":"dist/cli.js","agm-mcp":"dist/mcp-server.js"},"scripts":{"build":"tsc","build-scaffold":"node ../scripts/agm-build-scaffold.mjs","dev":"tsc --watch","start:mcp":"node dist/mcp-server.js","compress-prompts":"node ../scripts/agm-compress-prompts.mjs","prepublishOnly":"npm run build-scaffold && npm run build","prepare":"npm run build"},"engines":{"node":">=20"},"dependencies":{"@inquirer/prompts":"^7.5.0","@modelcontextprotocol/sdk":"^1.12.1","commander":"^13.1.0","zod":"^3.24.2"},"devDependencies":{"@axiomantic/llmlingua-2":"^0.1.1","@huggingface/transformers":"^3.5.2","@types/node":"^22.15.3","typescript":"^5.8.3"},"publishConfig":{"access":"public"},"gitHead":"0c8c828e06419608eb4e8997de6e7e4d8b38119e","_id":"@abx-hh/agm-cli@0.2.1","_nodeVersion":"24.15.0","_npmVersion":"11.12.1","dist":{"integrity":"sha512-lewP5M0z9CH+6F71WwL2DsVomZRA2Gcfbqk6OyufWTsIOHSEhLVT1NmnPX0ZitA0sDmX72RwbS4EuAL4kZSCiw==","shasum":"108cef56a57803090c74d6fd5b52da6a7c71fd4b","tarball":"https://registry.npmjs.org/@abx-hh/agm-cli/-/agm-cli-0.2.1.tgz","fileCount":105,"unpackedSize":193316,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIEksOpBi+R2lfC75Wu67VqWxgrrhHQZuvktwuFGj3wk0AiAcMb//mSnQ4hJBeQ6DBDQYStxJSYPGFOI8suLCLVHMPQ=="}]},"_npmUser":{"name":"abx-npm","email":"npm@x-be.de"},"directories":{},"maintainers":[{"name":"abx-npm","email":"npm@x-be.de"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/agm-cli_0.2.1_1782943508870_0.6741355667593292"},"_hasShrinkwrap":false}},"time":{"created":"2026-07-01T21:22:43.042Z","modified":"2026-07-01T22:05:09.140Z","0.2.0":"2026-07-01T21:22:43.312Z","0.2.1":"2026-07-01T22:05:09.013Z"},"bugs":{"url":"https://github.com/abx-git/agm/issues"},"license":"MIT","homepage":"https://github.com/abx-git/agm#readme","keywords":["agm","architecture","mcp","model-context-protocol","cursor","llmlingua"],"repository":{"type":"git","url":"git+https://github.com/abx-git/agm.git"},"description":"Architecture Graph Method — installable MCP server and CLI (LLMLingua-2 compressed prompts)","maintainers":[{"name":"abx-npm","email":"npm@x-be.de"}],"readme":"# AGM — Architecture Graph Method CLI & MCP Server\n\nInstallable **MCP server** and CLI for the Architecture Graph Method (AGM).\n\n- **Users:** `npx @abx-hh/agm-cli agm-mcp` — golden-path workflows via **LLMLingua-2 compressed** prompts (procedure text not shipped in plaintext).\n- **Maintainers:** [PUBLISHING.md](./PUBLISHING.md) — private monorepo → public npm / `abx-git/agm`.\n\n**Onboarding without MCP:** [Assistant UI](https://abx-git.github.io/agm.github.io/) or copy-paste from installed `prompts/workflows/` — see [docs/quickstart.md](../docs/quickstart.md) in the pattern repo.\n\n## Install MCP (Cursor, Claude Desktop, …)\n\n```json\n{\n  \"mcpServers\": {\n    \"agm\": {\n      \"command\": \"npx\",\n      \"args\": [\"-y\", \"@abx-hh/agm-cli\", \"agm-mcp\"]\n    }\n  }\n}\n```\n\nOr merge [mcp-install.json](./mcp-install.json). In your **application repo**, run once:\n\n```bash\nnpx @abx-hh/agm-cli scaffold --project \"my-app\" --template arc42\n```\n\nThen MCP `agm_trigger_workflow` or `bootstrap-adopt`.\n\n### npm global (optional)\n\n```bash\nnpm install -g @abx-hh/agm-cli\nagm-mcp   # stdio MCP server\nagm --help\n```\n\n## Public vs private\n\n| Shipped in `@abx-hh/agm-cli` (npm) | Private (your monorepo / license) |\n|-----------------------------|-----------------------------------|\n| `workflows-catalog.json` — IDs, roles, steps | Plaintext `workflows-starter-prompts.json` |\n| `workflows-prompts-compressed.json` — **LLMLingua-2** golden path | Full catalog prompts (compress or plaintext) |\n| `scaffold/` — install bundle (system-prompt, roles, templates) | Full plaintext workflow catalog |\n| Graph CLI: `init`, `scaffold`, `verify`, `status` | Maintainer `docs/`, compress scripts |\n\nCompression uses [Microsoft LLMLingua-2](https://huggingface.co/spaces/microsoft/llmlingua-2). Compressed prompts are sent **directly to the LLM** — not human-readable procedure docs.\n\n## Requirements\n\n- Node.js 20+\n- Application repo with AGM docs under `docs/architecture/` (or your doc root)\n\n## CLI quick reference\n\n```bash\nagm scaffold         # install prompts + template stubs from npm (MCP-only)\nagm install          # print bp-install.sh curl one-liner (legacy)\nagm init             # three core files + .agm/config.json\nagm verify           # link check → [[ANCHOR:LINK_CHECK]]\nagm workflows list   # catalog metadata only\nagm prompts status   # starter | full, compressed | plaintext\n```\n\n## MCP tools\n\n| Tool | Prompt pack |\n|------|-------------|\n| `agm_scaffold` | — |\n| `agm_get_graph_status` | — |\n| `agm_load_context` | — |\n| `agm_verify_links` | — |\n| `agm_list_workflows` | catalog only |\n| `agm_prompt_pack_status` | tier + format |\n| `agm_register_work_item` | — |\n| `agm_trigger_workflow` | **compressed** golden path (or private full pack) |\n\n`agm_trigger_workflow` returns public metadata plus an `[[AGM_AGENT_INSTRUCTION:…]]` block for the model.\n\n## Maintainer pipeline\n\n```bash\nnode scripts/agm-split-prompts.mjs      # private monorepo root\ncd agm && npm install && npm run compress-prompts && npm run build\nnpm publish --access public             # see PUBLISHING.md\n```\n\n## Layout\n\n```\nagm/\n├── data/\n│   ├── workflows-catalog.json\n│   ├── workflows-prompts-compressed.json   # public npm\n│   └── workflows-starter-prompts.json      # private monorepo only (not in npm)\n├── prompts-pack/                           # gitignored — licensed full pack\n├── mcp-install.json\n├── PUBLISHING.md\n└── src/\n```\n\n## Design\n\n1. **Public engine, compressed prompts** — method graph + catalog public; session procedure obfuscated via LLMLingua-2\n2. **MCP optional** — Assistant UI / copy-paste remain first-class\n3. **Local graph ops** — verify, init, git diff on filesystem\n4. **Full pack** — optional private `workflows-prompts-compressed.json` for extended workflows\n","readmeFilename":"README.md"}