{"_id":"@danchamorro/pi-prompt-enhancer","_rev":"8-540c4de7ec6c93e14b6e29628e642f2e","name":"@danchamorro/pi-prompt-enhancer","dist-tags":{"latest":"1.0.7"},"versions":{"1.0.0":{"name":"@danchamorro/pi-prompt-enhancer","version":"1.0.0","keywords":["pi-package"],"author":{"name":"Daniel Chamorro"},"license":"MIT","_id":"@danchamorro/pi-prompt-enhancer@1.0.0","maintainers":[{"name":"danchamorro","email":"i@danchamorro.com"}],"homepage":"https://github.com/danchamorro/pi-toolkit#readme","bugs":{"url":"https://github.com/danchamorro/pi-toolkit/issues"},"pi":{"extensions":["./index.ts"]},"dist":{"shasum":"20e7ce103e6fbd7fcdf4ef07cc6b7aca7abcde96","tarball":"https://registry.npmjs.org/@danchamorro/pi-prompt-enhancer/-/pi-prompt-enhancer-1.0.0.tgz","fileCount":4,"integrity":"sha512-LxxmN1xHM5o7yX7Kf9NzHMFnzNl6jmmdv/Ty0UUNn2KrJ5Sg80y1pHHOSA95FUJNwKqsj1qyRUz2WfNR4TRcVg==","signatures":[{"sig":"MEUCIDwCt3UsQa9zskXQJaIi/j4L4IXZ1414hXcAYhxKU2FDAiEAv2PFGz6pzJHqXcRWYicbEgIeVO8htUB4D5MOqa7N+Z8=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":8539},"type":"module","gitHead":"0c258de1cba931518c35ae4b9acc5e570a7a23ff","_npmUser":{"name":"danchamorro","email":"i@danchamorro.com"},"repository":{"url":"git+https://github.com/danchamorro/pi-toolkit.git","type":"git","directory":"packages/prompt-enhancer"},"_npmVersion":"11.8.0","description":"Enhance prompts to be clearer, more specific, and more actionable before sending","directories":{},"_nodeVersion":"24.13.1","_hasShrinkwrap":false,"peerDependencies":{"@mariozechner/pi-ai":"*","@mariozechner/pi-coding-agent":"*"},"_npmOperationalInternal":{"tmp":"tmp/pi-prompt-enhancer_1.0.0_1773277901610_0.8707556925252893","host":"s3://npm-registry-packages-npm-production"}},"1.0.1":{"name":"@danchamorro/pi-prompt-enhancer","version":"1.0.1","keywords":["pi-package","pi","pi-extension","prompt","enhance","prompt-enhancer","rewrite","ai","coding-agent"],"author":{"name":"Daniel Chamorro"},"license":"MIT","_id":"@danchamorro/pi-prompt-enhancer@1.0.1","maintainers":[{"name":"danchamorro","email":"i@danchamorro.com"}],"homepage":"https://github.com/danchamorro/pi-toolkit#readme","bugs":{"url":"https://github.com/danchamorro/pi-toolkit/issues"},"pi":{"extensions":["./index.ts"]},"dist":{"shasum":"1ad51a190c0118d0410d1b725020ee4c566371c8","tarball":"https://registry.npmjs.org/@danchamorro/pi-prompt-enhancer/-/pi-prompt-enhancer-1.0.1.tgz","fileCount":4,"integrity":"sha512-SnMMrDcH8g0C5558UTxF1kW0whr+qsE+X57zACWUekXJgCJhq/P6Rf0nznCzCNbv/4hRkSi6+VlNyun1accLKA==","signatures":[{"sig":"MEUCIDxaYFR+Z6GRuoqlraw25AiHohVN/QZhWQimMYAw8RTJAiEAmWYrdmqhwn0dZLxI/30uq3WbCsYW7pgMA8SWBuFd4iY=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":8634},"type":"module","gitHead":"6b0565619c8e8dbc4d488988996f1b96b11a1f05","_npmUser":{"name":"danchamorro","email":"i@danchamorro.com"},"repository":{"url":"git+https://github.com/danchamorro/pi-toolkit.git","type":"git","directory":"packages/prompt-enhancer"},"_npmVersion":"11.8.0","description":"Enhance prompts to be clearer, more specific, and more actionable before sending","directories":{},"_nodeVersion":"24.13.1","_hasShrinkwrap":false,"peerDependencies":{"@mariozechner/pi-ai":"*","@mariozechner/pi-coding-agent":"*"},"_npmOperationalInternal":{"tmp":"tmp/pi-prompt-enhancer_1.0.1_1773278829110_0.3190875421263544","host":"s3://npm-registry-packages-npm-production"}},"1.0.2":{"name":"@danchamorro/pi-prompt-enhancer","version":"1.0.2","keywords":["pi-package","pi","pi-extension","prompt","enhance","prompt-enhancer","rewrite","ai","coding-agent"],"author":{"name":"Daniel Chamorro"},"license":"MIT","_id":"@danchamorro/pi-prompt-enhancer@1.0.2","maintainers":[{"name":"danchamorro","email":"i@danchamorro.com"}],"homepage":"https://github.com/danchamorro/pi-toolkit#readme","bugs":{"url":"https://github.com/danchamorro/pi-toolkit/issues"},"pi":{"extensions":["./index.ts"]},"dist":{"shasum":"ffd138b52bfc3622e5560af373a1ce472fdb9fee","tarball":"https://registry.npmjs.org/@danchamorro/pi-prompt-enhancer/-/pi-prompt-enhancer-1.0.2.tgz","fileCount":4,"integrity":"sha512-zkc5siwyrh4o34apazeufS+5k2eE3CIzLbVP7XBH+lHG9Vgk2ePnYFKKToWIvq5vuOEfnE6NCyyuvmFz/4qyow==","signatures":[{"sig":"MEYCIQC415AubgUoyzfLTKNUCQBK5PWra8ER2/cycPPWBGzNIQIhAJCNSmjfMcTABDv8/Bmp3pEXoKUFg6wKQRGbtc1r/XE5","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":8628},"type":"module","gitHead":"105346ac477b12f2036fac704d166b880cb41e82","_npmUser":{"name":"danchamorro","email":"i@danchamorro.com"},"repository":{"url":"git+https://github.com/danchamorro/pi-toolkit.git","type":"git","directory":"packages/prompt-enhancer"},"_npmVersion":"11.8.0","description":"Enhance prompts to be clearer, more specific, and more actionable before sending","directories":{},"_nodeVersion":"24.13.1","_hasShrinkwrap":false,"peerDependencies":{"@mariozechner/pi-ai":"*","@mariozechner/pi-coding-agent":"*"},"_npmOperationalInternal":{"tmp":"tmp/pi-prompt-enhancer_1.0.2_1774543066154_0.925112516832818","host":"s3://npm-registry-packages-npm-production"}},"1.0.3":{"name":"@danchamorro/pi-prompt-enhancer","version":"1.0.3","keywords":["pi-package","pi","pi-extension","prompt","enhance","prompt-enhancer","rewrite","ai","coding-agent"],"author":{"name":"Daniel Chamorro"},"license":"MIT","_id":"@danchamorro/pi-prompt-enhancer@1.0.3","maintainers":[{"name":"danchamorro","email":"i@danchamorro.com"}],"homepage":"https://github.com/danchamorro/pi-agent-toolkit#readme","bugs":{"url":"https://github.com/danchamorro/pi-agent-toolkit/issues"},"pi":{"extensions":["./index.ts"]},"dist":{"shasum":"8ec92cbccb7d65136af58c498934b7455e5984c3","tarball":"https://registry.npmjs.org/@danchamorro/pi-prompt-enhancer/-/pi-prompt-enhancer-1.0.3.tgz","fileCount":4,"integrity":"sha512-YgMuoI1TMqz1I2cYXwr1w2Jqu/GFrDubeXetgNZyYeMlW5cDzmOxwQzIfaUvpJz+kwB95AonMnKRNWilobZH5A==","signatures":[{"sig":"MEYCIQDFVsEKjtS0urEtDKBQvsH/+7LPB4ZS/w/L0QVz5ydDDwIhAKrMelh43QE+uw0GYCTcXe+QPKJ0DjX0zQ9ix7xo4TC5","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":9108},"type":"module","gitHead":"1d0d0383147971848e4cf00c24e16fd91ea36cc8","_npmUser":{"name":"danchamorro","email":"i@danchamorro.com"},"repository":{"url":"git+https://github.com/danchamorro/pi-agent-toolkit.git","type":"git","directory":"packages/prompt-enhancer"},"_npmVersion":"11.8.0","description":"Enhance prompts to be clearer, more specific, and more actionable before sending","directories":{},"_nodeVersion":"24.13.1","_hasShrinkwrap":false,"peerDependencies":{"@mariozechner/pi-ai":"*","@mariozechner/pi-coding-agent":"*"},"_npmOperationalInternal":{"tmp":"tmp/pi-prompt-enhancer_1.0.3_1774796561672_0.6801097813388024","host":"s3://npm-registry-packages-npm-production"}},"1.0.4":{"name":"@danchamorro/pi-prompt-enhancer","version":"1.0.4","keywords":["pi-package","pi","pi-extension","prompt","enhance","prompt-enhancer","rewrite","ai","coding-agent"],"author":{"name":"Daniel Chamorro"},"license":"MIT","_id":"@danchamorro/pi-prompt-enhancer@1.0.4","maintainers":[{"name":"danchamorro","email":"i@danchamorro.com"}],"homepage":"https://github.com/danchamorro/pi-agent-toolkit#readme","bugs":{"url":"https://github.com/danchamorro/pi-agent-toolkit/issues"},"pi":{"extensions":["./index.ts"]},"dist":{"shasum":"c491fce4afee237d0d32d7d10de33173c9c6f686","tarball":"https://registry.npmjs.org/@danchamorro/pi-prompt-enhancer/-/pi-prompt-enhancer-1.0.4.tgz","fileCount":4,"integrity":"sha512-Y99TC4SMKSGmOIgOw+kSJZRToxs6Y1G1EfSOmInLOlYgOokXX8yUeOQMsZOCvVe20BfoJhl1HrT4kcfotkJ8kg==","signatures":[{"sig":"MEUCIQC8ax5mLjUqz+Spdp/KJDGx4rgwUc6WxXY1uwmVL0RorQIgdTXY6OnGvH/Hp43uWd9Ss85TES2vMn15QTgGL7fSHso=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":9121},"type":"module","gitHead":"3480f452e6df7a0f4c020e4b3b7bccdabac8b2d7","_npmUser":{"name":"danchamorro","email":"i@danchamorro.com"},"repository":{"url":"git+https://github.com/danchamorro/pi-agent-toolkit.git","type":"git","directory":"packages/prompt-enhancer"},"_npmVersion":"11.8.0","description":"Enhance prompts to be clearer, more specific, and more actionable before sending","directories":{},"_nodeVersion":"24.13.1","_hasShrinkwrap":false,"peerDependencies":{"@mariozechner/pi-ai":"*","@mariozechner/pi-coding-agent":"*"},"_npmOperationalInternal":{"tmp":"tmp/pi-prompt-enhancer_1.0.4_1774803658796_0.27138308204368844","host":"s3://npm-registry-packages-npm-production"}},"1.0.5":{"name":"@danchamorro/pi-prompt-enhancer","version":"1.0.5","keywords":["pi-package","pi","pi-extension","prompt","enhance","prompt-enhancer","rewrite","ai","coding-agent"],"author":{"name":"Daniel Chamorro"},"license":"MIT","_id":"@danchamorro/pi-prompt-enhancer@1.0.5","maintainers":[{"name":"danchamorro","email":"i@danchamorro.com"}],"homepage":"https://github.com/danchamorro/pi-agent-toolkit#readme","bugs":{"url":"https://github.com/danchamorro/pi-agent-toolkit/issues"},"pi":{"extensions":["./index.ts"]},"dist":{"shasum":"874bfd127f4e26e1d6ca30a80e099a289a88bef4","tarball":"https://registry.npmjs.org/@danchamorro/pi-prompt-enhancer/-/pi-prompt-enhancer-1.0.5.tgz","fileCount":4,"integrity":"sha512-bs/qOoWVMNV/MguilEnThMh5TpnweNFQoky5rkEMkqm1qmIBV+AKOIIhYhNcEAB3IZ3vRg98c8liFFS6YkAWvw==","signatures":[{"sig":"MEYCIQDsTB322spBvthDOeUPDEwRPIqPIU7PuB71B9yyCoscCgIhANEW+U3Mvf8gAwZHAL9ZJ4si+26idepgp/RY94wRaftI","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":9129},"type":"module","gitHead":"a03306d587c64ae4080b2592edabe17c3f25e2cd","_npmUser":{"name":"danchamorro","email":"i@danchamorro.com"},"repository":{"url":"git+https://github.com/danchamorro/pi-agent-toolkit.git","type":"git","directory":"packages/prompt-enhancer"},"_npmVersion":"11.8.0","description":"Enhance prompts to be clearer, more specific, and more actionable before sending","directories":{},"_nodeVersion":"24.13.1","_hasShrinkwrap":false,"peerDependencies":{"@mariozechner/pi-ai":"*","@mariozechner/pi-coding-agent":"*"},"_npmOperationalInternal":{"tmp":"tmp/pi-prompt-enhancer_1.0.5_1775245224656_0.5534914435540241","host":"s3://npm-registry-packages-npm-production"}},"1.0.6":{"name":"@danchamorro/pi-prompt-enhancer","version":"1.0.6","keywords":["pi-package","pi","pi-extension","prompt","enhance","prompt-enhancer","rewrite","ai","coding-agent"],"author":{"name":"Daniel Chamorro"},"license":"MIT","_id":"@danchamorro/pi-prompt-enhancer@1.0.6","maintainers":[{"name":"danchamorro","email":"i@danchamorro.com"}],"homepage":"https://github.com/danchamorro/pi-agent-toolkit#readme","bugs":{"url":"https://github.com/danchamorro/pi-agent-toolkit/issues"},"pi":{"extensions":["./index.ts"]},"dist":{"shasum":"da673df0fb64a026dd7f277dada7ce3c30843690","tarball":"https://registry.npmjs.org/@danchamorro/pi-prompt-enhancer/-/pi-prompt-enhancer-1.0.6.tgz","fileCount":4,"integrity":"sha512-MlJa+5S/Xr6L2fv9jD/bB3tg7VhXwxOVeVrhL4MidDopDfEpyX2F4vgvWzgCBbIQeZigiz4XUn10ph+T4JeXXA==","signatures":[{"sig":"MEQCIFiEpQuonRK+659GVyY/tSEEMIc5ZAn5ap5Vv0E9AWEqAiBlaJMF6tsEwlrsc7AuF1vtoHkWbMLU/A7hsvqsTn4KzA==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":9351},"type":"module","gitHead":"2391b2bb0df8cee39fe0f05a7f370349db8dd9dc","_npmUser":{"name":"danchamorro","email":"i@danchamorro.com"},"repository":{"url":"git+https://github.com/danchamorro/pi-agent-toolkit.git","type":"git","directory":"packages/prompt-enhancer"},"_npmVersion":"11.8.0","description":"Enhance prompts to be clearer, more specific, and more actionable before sending","directories":{},"_nodeVersion":"24.13.1","_hasShrinkwrap":false,"peerDependencies":{"@mariozechner/pi-ai":"*","@mariozechner/pi-coding-agent":"*"},"_npmOperationalInternal":{"tmp":"tmp/pi-prompt-enhancer_1.0.6_1776912778893_0.09783148532696773","host":"s3://npm-registry-packages-npm-production"}},"1.0.7":{"name":"@danchamorro/pi-prompt-enhancer","version":"1.0.7","description":"Enhance prompts to be clearer, more specific, and more actionable before sending","keywords":["pi-package","pi","pi-extension","prompt","enhance","prompt-enhancer","rewrite","ai","coding-agent"],"license":"MIT","author":{"name":"Daniel Chamorro"},"repository":{"type":"git","url":"git+https://github.com/danchamorro/pi-prompt-enhancer.git"},"type":"module","scripts":{"test":"node --test *.test.ts","typecheck":"tsc --noEmit"},"pi":{"extensions":["./index.ts"]},"peerDependencies":{"@earendil-works/pi-ai":"*","@earendil-works/pi-coding-agent":"*"},"devDependencies":{"@earendil-works/pi-ai":"0.84.0","@earendil-works/pi-coding-agent":"0.84.0","@types/node":"^24.10.0","typescript":"^5.9.3"},"gitHead":"f2f329a505f07a0b6fb5e47b2bd3fa341d6ea97b","_id":"@danchamorro/pi-prompt-enhancer@1.0.7","bugs":{"url":"https://github.com/danchamorro/pi-prompt-enhancer/issues"},"homepage":"https://github.com/danchamorro/pi-prompt-enhancer#readme","_nodeVersion":"24.19.0","_npmVersion":"11.17.0","dist":{"integrity":"sha512-nRxq1t0xZi18nx8aEv0fFOU4fQCP7gL2xe4ClbehoTTw2RsBdw4GkA4fO19EE5CybSednxOPUg+l1trqiH55Uw==","shasum":"26da21bcbf1c25badcbc339699e994d7f0750452","tarball":"https://registry.npmjs.org/@danchamorro/pi-prompt-enhancer/-/pi-prompt-enhancer-1.0.7.tgz","fileCount":5,"unpackedSize":10660,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@danchamorro%2fpi-prompt-enhancer@1.0.7","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQCA5vWEnejhCMYc5hcdzf5tsJdzOovSjxDuhUR3z03h1gIgY9rjcpCF3HAhUYI0QzIOusqUPgfIMq6WZz3f+JHCEM0="}]},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:b7c9af0a-8948-4576-817e-6a74b620c18f"}},"directories":{},"maintainers":[{"name":"danchamorro","email":"i@danchamorro.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/pi-prompt-enhancer_1.0.7_1787512857154_0.27900648765411407"},"_hasShrinkwrap":false}},"time":{"created":"2026-03-12T01:11:41.518Z","modified":"2026-08-23T19:20:57.700Z","1.0.0":"2026-03-12T01:11:41.756Z","1.0.1":"2026-03-12T01:27:09.245Z","1.0.2":"2026-03-26T16:37:46.294Z","1.0.3":"2026-03-29T15:02:41.853Z","1.0.4":"2026-03-29T17:00:58.934Z","1.0.5":"2026-04-03T19:40:24.834Z","1.0.6":"2026-04-23T02:52:59.036Z","1.0.7":"2026-08-23T19:20:57.291Z"},"bugs":{"url":"https://github.com/danchamorro/pi-prompt-enhancer/issues"},"author":{"name":"Daniel Chamorro"},"license":"MIT","homepage":"https://github.com/danchamorro/pi-prompt-enhancer#readme","keywords":["pi-package","pi","pi-extension","prompt","enhance","prompt-enhancer","rewrite","ai","coding-agent"],"repository":{"type":"git","url":"git+https://github.com/danchamorro/pi-prompt-enhancer.git"},"description":"Enhance prompts to be clearer, more specific, and more actionable before sending","maintainers":[{"name":"danchamorro","email":"i@danchamorro.com"}],"readme":"# @danchamorro/pi-prompt-enhancer\n\nA [Pi](https://github.com/earendil-works/pi) extension that rewrites your prompts to be clearer, more specific, and more actionable before sending them to the agent.\n\nUses whichever model is currently selected in your session -- no extra API keys or configuration needed.\n\n## Install\n\n```bash\npi install npm:@danchamorro/pi-prompt-enhancer\n```\n\n## Usage\n\n### Keyboard shortcuts\n\n| Shortcut | Action |\n|---|---|\n| `Ctrl+Shift+E` | Enhance the current editor text in-place |\n| `Ctrl+Shift+Z` | Restore original prompt (undo enhancement) |\n\n### Command\n\n```\n/enhance <prompt>\n```\n\nEnhances the given prompt and places the result in the editor for review.\n\n## How it works\n\n1. Type a prompt in the editor.\n2. Press `Ctrl+Shift+E` (or use `/enhance`).\n3. The extension sends your prompt to the current model with instructions to rewrite it -- not answer it.\n4. The enhanced prompt replaces your editor text.\n5. Review, edit if needed, then press Enter to send.\n6. Changed your mind? Press `Ctrl+Shift+Z` to restore the original.\n\n## Examples\n\n**Before:**\n> fix the auth bug\n\n**After:**\n> Fix the authentication bug: identify the root cause of the failure, apply the fix, and verify that login, token refresh, and session expiry flows all work correctly after the change.\n\n---\n\n**Before:**\n> what is the best coding model\n\n**After:**\n> As of today, which AI coding model is considered the best on the market, and how do the top options compare in terms of code quality, debugging accuracy, reasoning ability, speed, context window size, and pricing for professional software engineering use?\n\n## Requirements\n\n- [Pi](https://github.com/earendil-works/pi) coding agent\n- Any model with an active API key selected in the session\n\n## License\n\nMIT\n","readmeFilename":"README.md"}