feat: add /env shortcut for creating .env.example with provider API keys#655
Conversation
|
@claude Can you review this? |
|
Claude finished @edenreich's task in 4m 17s —— View job Code Review:
|
| Criterion | Status |
|---|---|
/env shortcut exists |
❌ CLI command only; chat /env unregistered (documented but broken) |
Creates .env.example if missing |
✅ |
/init creates .env.example if missing |
✅ |
Contains all provider <PROVIDER>_API_KEY= |
✅ |
Errors if .env.example exists |
✅ (infer env); init skips non-fatally ✅ |
/init error doesn't affect other files |
✅ (warning only) |
Creates .gitignore with .env if missing |
infer env only - not the init path |
Next-step hint (cp .env.example .env) |
✅ |
| Documented | /env as a working chat shortcut |
| Tested | ✅ |
Bottom line: the CLI command is solid, but the /env chat shortcut (the core ask) isn't actually wired up, and the init path skips the .gitignore safety step. Worth addressing both before merge.
· feat/env-shortcut
|
@infer Can you address claude's comment? please fix this. |
Todos
Pull Request✅ Infer Result: SuccessAll actionable items from the code review have been addressed:
The remaining 🟡 item (#2 — provider list triplication) is a design suggestion for a future refactoring, not a bug fix. All tests pass and the changes have been committed and pushed to Task is complete. Model: Tokens: 2,593,857 in · 8,983 out · 2,602,840 total (30 requests) Tool calls: 33 total · 100% success rate Triggered by edenreich · Infer Action |
Co-authored-by: Eden Reich <eden.reich@gmail.com>
|
@claude Is it ready for merge now? |
|
Claude finished @edenreich's task in 4m 29s —— View job Merge readiness: ✅ Yes - this is ready to mergeI re-reviewed the current branch HEAD (
Prior review items - all addressed
Local verification (this job)
Acceptance criteria vs. issue #519
Non-blocking, optional follow-ups (fine to defer or do post-merge)
Bottom line: the core ask (a working |
…eys (#655) Resolves #519 ## Summary _The agent's original PR description was incomplete, so this summary was generated from the commit history._ ## Changes - fix: resolve errcheck lint for f.Close() in env.go - fix: resolve lint issues in env.go - fix: correct indentation in init.go for CI compliance - fix: simplify .gitignore handling in /env shortcut - feat: add /env shortcut for creating .env.example with provider API keys <details><summary>Files changed</summary> ``` cmd/env.go | 153 +++++++++++++++++++++++++++++ cmd/env_test.go | 236 +++++++++++++++++++++++++++++++++++++++++++++ cmd/init.go | 15 +++ docs/commands-reference.md | 32 ++++++ docs/shortcuts-guide.md | 1 + 5 files changed, 437 insertions(+) ``` </details> --------- Co-authored-by: inference-gateway-maintainer[bot] <246577062+inference-gateway-maintainer[bot]@users.noreply.github.com>
## [0.124.0](v0.123.1...v0.124.0) (2026-06-27) ### 🚀 Features * add /env shortcut for creating .env.example with provider API keys ([#655](#655)) ([3227e15](3227e15)), closes [#519](#519) * **tools:** add Agent tool for local subagents ([#658](#658)) ([1712f6e](1712f6e)), closes [#653](#653) [#653](#653) * **tools:** add AskUserQuestion clarifying-question form for plan mode ([#661](#661)) ([998bf37](998bf37)), closes [#652](#652) * add sleep to default bash allow-list ([#660](#660)) ([2d945c3](2d945c3)), closes [#659](#659) ### 🧹 Maintenance * **deps:** bump infer-action v0.17.2 -> v0.19.0 ([#654](#654)) ([c66e6d2](c66e6d2)) * **flox:** update codex and infer versions ([4268714](4268714))
|
🎉 This PR is included in version 0.124.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Resolves #519
Summary
The agent's original PR description was incomplete, so this summary was generated from the commit history.
Changes
Files changed