{"_id":"@bacnh85/pi-init","_rev":"7-758a02b4f66d0e74dcceecc5ec394505","name":"@bacnh85/pi-init","dist-tags":{"latest":"0.1.6"},"versions":{"0.1.0":{"name":"@bacnh85/pi-init","version":"0.1.0","keywords":["pi-package","pi","init","agents-md","onboarding","context"],"license":"MIT","_id":"@bacnh85/pi-init@0.1.0","maintainers":[{"name":"bacnh85","email":"mail@bacnh.com"}],"homepage":"https://github.com/bacnh85/pi-extensions/tree/main/pi-init","bugs":{"url":"https://github.com/bacnh85/pi-extensions/issues"},"pi":{"extensions":["./extensions/index.js"]},"dist":{"shasum":"29015ff98dcba39d3005aa53e2c9b3af8b9a2b0c","tarball":"https://registry.npmjs.org/@bacnh85/pi-init/-/pi-init-0.1.0.tgz","fileCount":5,"integrity":"sha512-1xk73jwR04KvRLYld/1fd6pFTynTdJVZeSaT23JzKeGsqfXT089AcCFtyWPeRM9GUA0B0c8xBCd3jOFIdz430A==","signatures":[{"sig":"MEQCICyVWyrAcNif5tQiEUFwYla9saUX06ZcJg6P0qW5XmdSAiA1eENXALX8HvXcStvUl3xI3bk18FRb0jgxo6aH3JIi5A==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":12328},"gitHead":"d85605e70d509cba6cdd414473defc5348168194","scripts":{"test":"node --test extensions/test/*.test.js"},"_npmUser":{"name":"bacnh85","email":"mail@bacnh.com"},"repository":{"url":"git+https://github.com/bacnh85/pi-extensions.git","type":"git"},"_npmVersion":"10.9.8","description":"Guided AGENTS.md generation for Pi — /init scans the repo (package.json, CI, dir structure) and generates/updates AGENTS.md with build/test/lint commands, architecture, and conventions. Inspired by OpenCode's /init.","directories":{},"_nodeVersion":"22.23.1","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/pi-init_0.1.0_1786205304837_0.7329497186485623","host":"s3://npm-registry-packages-npm-production"}},"0.1.1":{"name":"@bacnh85/pi-init","version":"0.1.1","keywords":["pi-package","pi","init","agents-md","onboarding","context"],"license":"MIT","_id":"@bacnh85/pi-init@0.1.1","maintainers":[{"name":"bacnh85","email":"mail@bacnh.com"}],"homepage":"https://github.com/bacnh85/pi-extensions/tree/main/pi-init","bugs":{"url":"https://github.com/bacnh85/pi-extensions/issues"},"pi":{"extensions":["./extensions/index.js"]},"dist":{"shasum":"2c67c0b1cb920ada029c459dfa1dc3a7068095ac","tarball":"https://registry.npmjs.org/@bacnh85/pi-init/-/pi-init-0.1.1.tgz","fileCount":5,"integrity":"sha512-cnR7RvEkzgMz6ACScPJQFF9MCxF1QVGk59MSdU+8flOPNY5q+uLSZt+tYxr6zULzKalclMuryJLOxKHMQg35Vg==","signatures":[{"sig":"MEYCIQCI86MM1S+JHODWqH/LjATCsk5kL5BL1XLwegtMYV3MlgIhAPBNlpqTKsVajcUhltWOwqqD1gh8pRG4OGSPLLVavHyq","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"sig":"MEUCIGRTQQqpoCQohBkFaQBmuaBTItSPCJgT4y3nD+bH1w0RAiEAws1GiILYl8dZ2ALII1u+ENy2/YTTcJpQpPojNbU/AO4=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":13217},"gitHead":"fc25702c6bed994da1dd5071c5ec8071bfd28393","scripts":{"test":"node --test extensions/test/*.test.js"},"_npmUser":{"name":"bacnh85","email":"mail@bacnh.com"},"repository":{"url":"git+https://github.com/bacnh85/pi-extensions.git","type":"git"},"_npmVersion":"10.9.8","description":"Guided AGENTS.md generation for Pi — /init scans the repo (package.json, CI, dir structure) and generates/updates AGENTS.md with build/test/lint commands, architecture, and conventions. Inspired by OpenCode's /init.","directories":{},"_nodeVersion":"22.23.2","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/pi-init_0.1.1_1789204427936_0.5316591899396703","host":"s3://npm-registry-packages-npm-production"}},"0.1.2":{"name":"@bacnh85/pi-init","version":"0.1.2","keywords":["pi-package","pi","init","agents-md","onboarding","context"],"license":"MIT","_id":"@bacnh85/pi-init@0.1.2","maintainers":[{"name":"bacnh85","email":"mail@bacnh.com"}],"homepage":"https://github.com/bacnh85/pi-extensions/tree/main/pi-init","bugs":{"url":"https://github.com/bacnh85/pi-extensions/issues"},"pi":{"extensions":["./extensions/index.js"]},"dist":{"shasum":"3d522f8cf9ce1ad1dc450f383bfd7fa6270b5db6","tarball":"https://registry.npmjs.org/@bacnh85/pi-init/-/pi-init-0.1.2.tgz","fileCount":5,"integrity":"sha512-o1k/S0C31bovHv5UOuob7Qy+CRWnyaF9alW3dgx+VxQzHcHzfDX8giep62kewof7ou3x1YRc7V8XBrEUiQ92oA==","signatures":[{"sig":"MEUCID4hn4Op9X3xgpw5YaM8ZnWxY5mrTx5RjsD/0OYHY+h/AiEAx1aUuDNVgz1VdYhZPHCNiqmlkbeGa3bZq9rd8DaBJWI=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"sig":"MEUCIQCq0QulXt2XGI8/YV1RKcp20PnQltfkswiNMEJsr65LqQIgQQMVzF0/JbDV70An+heDQ7YzqVLGKKYOXzBagD68nGc=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":13743},"gitHead":"7139c0ec0468483e54a0e3314075cdb9a0f53138","scripts":{"test":"node --test extensions/test/*.test.js"},"_npmUser":{"name":"bacnh85","email":"mail@bacnh.com"},"repository":{"url":"git+https://github.com/bacnh85/pi-extensions.git","type":"git"},"_npmVersion":"10.9.8","description":"Guided AGENTS.md generation for Pi — /init scans the repo (package.json, CI, dir structure) and generates/updates AGENTS.md with build/test/lint commands, architecture, and conventions. Inspired by OpenCode's /init.","directories":{},"_nodeVersion":"22.23.2","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/pi-init_0.1.2_1789400025453_0.6654432074439471","host":"s3://npm-registry-packages-npm-production"}},"0.1.3":{"name":"@bacnh85/pi-init","version":"0.1.3","keywords":["pi-package","pi","init","agents-md","onboarding","context"],"license":"MIT","_id":"@bacnh85/pi-init@0.1.3","maintainers":[{"name":"bacnh85","email":"mail@bacnh.com"}],"homepage":"https://github.com/bacnh85/pi-extensions/tree/main/pi-init","bugs":{"url":"https://github.com/bacnh85/pi-extensions/issues"},"pi":{"extensions":["./extensions/index.js"]},"dist":{"shasum":"aeaafb9df885cf1706afda1863d343ee6b6f1096","tarball":"https://registry.npmjs.org/@bacnh85/pi-init/-/pi-init-0.1.3.tgz","fileCount":5,"integrity":"sha512-YxHHyV054egnxCm4L316IGD/W5IcBlcEElqJXXz2TyA9t/V2JGY87FtjKWr9zThiKC5xZ4+wk3TGGw953mS3Zg==","signatures":[{"sig":"MEUCIQCWp+woS0Lq+hWPrJ8WIc48xtKbfvzTMdCYb1EtY3NkhgIgczDPNdAtZrnnPqdZ5+BmmPqvzF7D3F+moze3lNacqGY=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"sig":"MEYCIQDYt1/k8zSd/9bStCCRAM8wbaPXObSfcmUp2/iU8ZR6AgIhAKZNV6+/TTTKASYPrU6sx27zSYLQ63NTFyd0gCFtB0mj","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":14781},"gitHead":"b5330ac3d014f92dff97a2b90cd9ebdbf0de22fd","scripts":{"test":"node --test extensions/test/*.test.js"},"_npmUser":{"name":"bacnh85","email":"mail@bacnh.com"},"repository":{"url":"git+https://github.com/bacnh85/pi-extensions.git","type":"git"},"_npmVersion":"10.9.8","description":"Guided AGENTS.md generation for Pi — /init scans the repo (package.json, CI, dir structure) and generates/updates AGENTS.md with build/test/lint commands, architecture, and conventions. Inspired by OpenCode's /init.","directories":{},"_nodeVersion":"22.23.2","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/pi-init_0.1.3_1789962637844_0.5173994536781108","host":"s3://npm-registry-packages-npm-production"}},"0.1.4":{"name":"@bacnh85/pi-init","version":"0.1.4","keywords":["pi-package","pi","init","agents-md","onboarding","context"],"license":"MIT","_id":"@bacnh85/pi-init@0.1.4","maintainers":[{"name":"bacnh85","email":"mail@bacnh.com"}],"homepage":"https://github.com/bacnh85/pi-extensions/tree/main/pi-init","bugs":{"url":"https://github.com/bacnh85/pi-extensions/issues"},"pi":{"extensions":["./extensions/index.js"]},"dist":{"shasum":"a9ab391c8a3270113e66966fe514a9d32a7f4e53","tarball":"https://registry.npmjs.org/@bacnh85/pi-init/-/pi-init-0.1.4.tgz","fileCount":5,"integrity":"sha512-0HWEl9tjwlWKbDJi5NXZzWboIYxzqa0d3xWuybIoY8NXBQHGcDtmxJWfGwZy3rG3ZNJGRUOf37hYlMOR3VqDzg==","signatures":[{"sig":"MEUCICD1MV18rFbTwCEF25zd+YE+PdhrxVCNz1QVKmXk8O/7AiEA6hunExJTrt2KAkFSysg3ThPCnipuzhLQhM5njG1sb50=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"sig":"MEYCIQCDvXnD+ggKV+HG5/0szzRiSbDgzqJHbYt/K6JVTAghPQIhAK9ShZItb+4XaCYWUJKlp8N25rEXrqkTXrNaNtHTnqsa","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":15956},"gitHead":"e0ab9215e2df54e5fa42f1c6cc6f616124fdea95","scripts":{"test":"node --test extensions/test/*.test.js"},"_npmUser":{"name":"bacnh85","email":"mail@bacnh.com"},"repository":{"url":"git+https://github.com/bacnh85/pi-extensions.git","type":"git"},"_npmVersion":"10.9.8","description":"Guided AGENTS.md generation for Pi — /init scans the repo (package.json, CI, dir structure) and generates/updates AGENTS.md with build/test/lint commands, architecture, and conventions. Inspired by OpenCode's /init.","directories":{},"_nodeVersion":"22.23.2","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/pi-init_0.1.4_1790123277252_0.544777235524873","host":"s3://npm-registry-packages-npm-production"}},"0.1.5":{"name":"@bacnh85/pi-init","version":"0.1.5","keywords":["pi-package","pi","init","agents-md","onboarding","context"],"license":"MIT","_id":"@bacnh85/pi-init@0.1.5","maintainers":[{"name":"bacnh85","email":"mail@bacnh.com"}],"homepage":"https://github.com/bacnh85/pi-extensions/tree/main/pi-init","bugs":{"url":"https://github.com/bacnh85/pi-extensions/issues"},"pi":{"extensions":["./extensions/index.js"]},"dist":{"shasum":"8d27ef636b5f12a17a6703714be5364831e78060","tarball":"https://registry.npmjs.org/@bacnh85/pi-init/-/pi-init-0.1.5.tgz","fileCount":5,"integrity":"sha512-JssX65rX/5XRdP8Ux3GQqZQFHpAr5Wk25j/GPyEruKcATN3DqH+VH56VDyAs7wJlTXy+JHc1ohZjeboXILjkdg==","signatures":[{"sig":"MEYCIQD32LW4GnB0xfvZM8Pl/bc777fpClRBervtNms4XbQljAIhAJgwaf5x4JAiYpFSrqHXPXT0e7z53JbUAQ/TkIkhkqZ8","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"sig":"MEUCIQCO9p5QQj2NtTlXiG2uuHAk7xqwOpbCTgOQSd+voNf8cwIgB2y7Cb6ZffGF0A7G9JWXNYMM6pR/ENgdXJtX8hCyeGs=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":16565},"gitHead":"47ee5073837a97916572d769f13d86f55d54ef00","scripts":{"test":"node --test extensions/test/*.test.js"},"_npmUser":{"name":"bacnh85","email":"mail@bacnh.com"},"repository":{"url":"git+https://github.com/bacnh85/pi-extensions.git","type":"git"},"_npmVersion":"10.9.8","description":"Guided AGENTS.md generation for Pi — /init scans the repo (package.json, CI, dir structure) and generates/updates AGENTS.md with build/test/lint commands, architecture, and conventions. Inspired by OpenCode's /init.","directories":{},"_nodeVersion":"22.23.2","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/pi-init_0.1.5_1790209445231_0.5099419286289784","host":"s3://npm-registry-packages-npm-production"}},"0.1.6":{"pi":{"extensions":["./extensions/index.js"]},"_id":"@bacnh85/pi-init@0.1.6","bugs":{"url":"https://github.com/bacnh85/pi-extensions/issues"},"dist":{"shasum":"2b92303f7b6bbc01984c198a1ee00d03a012342e","tarball":"https://registry.npmjs.org/@bacnh85/pi-init/-/pi-init-0.1.6.tgz","fileCount":5,"integrity":"sha512-MDtYKwbFD99XxBAWxCYIw8jL3y5TseMblM2vJ35AGilZyVId/zJb3cOrRBol/EaYT8OkwecaGV9WKfYTqTrNUQ==","signatures":[{"sig":"MEQCIFl+9LdwVtCPxkBrcn0rHUo7WoW1fefr8eX7VMPd7v6qAiBMJe11TAhyranN84cWUq4vMfK9yNyMhfrnaYk94qpZ+A==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQCBziUuOshL/I94pYLMdsvQTB7SN3jQDXQsumZU/z/ikwIgHCycLmEJ+4SxMk8qo0cp43Ng1td3knjNc/cqviD6TGo="}],"unpackedSize":16938},"name":"@bacnh85/pi-init","gitHead":"90930b50f5fc0a4491a748ee1692db40f7ec358a","license":"MIT","scripts":{"test":"node --test extensions/test/*.test.js"},"version":"0.1.6","_npmUser":{"name":"bacnh85","email":"mail@bacnh.com"},"homepage":"https://github.com/bacnh85/pi-extensions/tree/main/pi-init","keywords":["pi-package","pi","init","agents-md","onboarding","context"],"repository":{"url":"git+https://github.com/bacnh85/pi-extensions.git","type":"git"},"_npmVersion":"10.9.8","description":"Guided AGENTS.md generation for Pi — /init scans the repo (package.json, CI, dir structure) and generates/updates AGENTS.md with build/test/lint commands, architecture, and conventions. Inspired by OpenCode's /init.","directories":{},"maintainers":[{"name":"bacnh85","email":"mail@bacnh.com"}],"_nodeVersion":"22.23.2","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/pi-init_0.1.6_1790555259584_0.35473704446035037"}}},"time":{"created":"2026-08-08T16:08:24.598Z","modified":"2026-09-28T00:27:39.820Z","0.1.0":"2026-08-08T16:08:24.984Z","0.1.1":"2026-09-12T09:13:48.016Z","0.1.2":"2026-09-14T15:33:45.605Z","0.1.3":"2026-09-21T03:50:37.934Z","0.1.4":"2026-09-23T00:27:57.335Z","0.1.5":"2026-09-24T00:24:05.330Z","0.1.6":"2026-09-28T00:27:39.652Z"},"bugs":{"url":"https://github.com/bacnh85/pi-extensions/issues"},"license":"MIT","homepage":"https://github.com/bacnh85/pi-extensions/tree/main/pi-init","keywords":["pi-package","pi","init","agents-md","onboarding","context"],"repository":{"url":"git+https://github.com/bacnh85/pi-extensions.git","type":"git"},"description":"Guided AGENTS.md generation for Pi — /init scans the repo (package.json, CI, dir structure) and generates/updates AGENTS.md with build/test/lint commands, architecture, and conventions. Inspired by OpenCode's /init.","maintainers":[{"name":"bacnh85","email":"mail@bacnh.com"}],"readme":"# pi-init\n\nGuided `AGENTS.md` generation for [Pi](https://github.com/earendil-works/pi).\n\n`/init` scans your repo (package.json, build configs, CI, directory structure), detects what's there, and generates or updates `AGENTS.md` with concise project-specific guidance: build/test/lint commands, tech stack, repository structure, and conventions. Inspired by OpenCode's `/init`. Zero dependencies, plain JS.\n\n## Install\n\n```bash\npi install npm:@bacnh85/pi-init\n```\n\n## Commands\n\n| Command | Description |\n|---------|-------------|\n| `/init` | Scan the repo and generate/update `AGENTS.md` (preserves existing content) |\n| `/init force` | Regenerate `AGENTS.md` from scratch |\n| `/init check` | Report detected commands and what's missing, without writing |\n\nIf the repo has no `AGENTS.md` but does have a `CLAUDE.md`, `/init` targets\n`CLAUDE.md` as its write target (since 0.1.2).\n\n## What it does\n\n1. **Repo introspection** — reads `package.json` (scripts, deps, workspaces), detects package managers (npm/pnpm/yarn/bun), build systems (make/cargo/go/python/maven/gradle/cmake/elixir), CI configs (GitHub Actions, GitLab, CircleCI, etc.), and top-level directories.\n2. **Prompt construction** — builds a focused instruction covering the sections a context file needs, with real commands extracted from your scripts (never invented).\n3. **Delegation** — sends the prompt to the current model via `pi.sendUserMessage()`. The model uses Pi's existing `read`/`write` tools to produce `AGENTS.md`.\n\nThe model does the writing; this package only owns the scan and the prompt.\n\n## Why\n\nPi loads `AGENTS.md` at startup as project context. Starting a new project with a blank context file is friction — `/init` bootstraps it from what's actually in the repo.\n\n## License\n\nMIT\n","readmeFilename":"README.md"}