慣性聚合 高效追讀感興趣之博客、新聞、科技資訊
閱原文 以慣性聚合開啟

推薦訂閱源

博客园 - 司徒正美
V
V2EX
T
Tailwind CSS Blog
有赞技术团队
有赞技术团队
aimingoo的专栏
aimingoo的专栏
Apple Machine Learning Research
Apple Machine Learning Research
IT之家
IT之家
Blog — PlanetScale
Blog — PlanetScale
A
About on SuperTechFans
月光博客
月光博客
T
The Blog of Author Tim Ferriss
宝玉的分享
宝玉的分享
Martin Fowler
Martin Fowler
博客园 - 聂微东
The GitHub Blog
The GitHub Blog
V
Visual Studio Blog
WordPress大学
WordPress大学
酷 壳 – CoolShell
酷 壳 – CoolShell
Engineering at Meta
Engineering at Meta
GbyAI
GbyAI

Hacker News - Newest: "AI"

AI can't read an investor deck AI as an attorney? Student uses ChatGPT, Gemini to sue UW Hacking MCP Servers in AI Systems – The Rug Pull: Tool Changes After Approval GitHub - MeepCastana/KubeezCut: Free Web based video editor GitHub - GenAI-Gurus/awesome-eu-ai-act: Curated tools, official sources, OSS, templates, and guides for EU AI Act compliance. Can AI judge journalism? A Thiel-backed startup says yes, even if it risks chilling whistleblowers Coming soon: 10 Things That Matter in AI Right Now DARPA built an AI to fact-check enemy weapons claims IatroBench: Pre-Registered Evidence of Iatrogenic Harm from AI Safety Measures What explains heterogeneity in AI adoption? When AI Meets Muscle: Context-Aware Electrical Stimulation Promises a New Way to Guide Human Movements - Department of Computer Science AI Changed How We Build. It Did Not Change What Matters. Linux rules on using AI-generated code - Copilot is OK, but humans must take 'full responsibility for the… Meta spins up AI version of Mark Zuckerberg to engage with employees Code Mode: Let Your AI Write Programs, Not Just Call Tools | TanStack Blog GitHub - Delavalom/graft: Go framework for building AI agents. Type-safe tools, multi-provider (OpenAI, Anthropic, Gemini, Bedrock), zero vendor SDKs. India's TCS tops estimates, says new AI models did not dent services demand Gen Z's fading AI hype Strong feeling: we are in a folded AI reality GitHub - machinarii/total-recall-catalog: A reference catalog of latest knowledge retrieval, memory & RAG systems GitHub - mensfeld/code-on-incus: Give each AI agent its own isolated machine with root, Docker, and systemd. Active defense detects and stops threats automatically.. Quantization, LoRA, and the 8% Problem: Benchmarking Local LLMs for Production AI Iran war: We spoke to the man making Lego-style AI videos that experts say are powerful propaganda Powell, Bessent discussed Anthropic's Mythos AI cyber threat with major U.S. banks GitHub - immartian/bellamem: Persistent belief-graph memory for AI agents. Retrieves decisive context by importance — not recency, not RAG, not /compact. recursive-mode: The Repo-Native Operating System for AI Engineering After the attack on Sam Altman's home, will AI CEO's go on the offensive? The biggest advance in AI since the LLM Opus 4.6 vs GPT 5.4 One Prompt Unity World Generation Test “AI polls” are fake polls Client Challenge Can AI be a 'child of God'? Inside Anthropic's meeting with Christian leaders How to Switch AI Chatbots and Why You Might Want To GitHub - MattMessinger1/agentic_refund_guardrail: Safe refund policy layer for AI agents — Python + TypeScript. Same behavior, shared tests. Adam/papers/emergent_values_whitepaper.md at master · strangeadvancedmarketing/Adam Ask HN: How do you stop playing 20 questions with your AI coding tools How far can automation and AI support psychotherapy? - @theU GitHub - stagas/rtdiff: realtime git diff gui and AI-assisted commits A Mac Studio for Local AI — 6 Months Later A History of the Early Years of AI at the University of Edinburgh Why AI Coding Tools Still Feel Stuck on Localhost MSN AI Datacenters Are Becoming Strategic Targets twitter.com Penn Researchers Use AI to Surface Unreported GLP-1 Side Effects in Reddit Posts Show HN: MoodSense AI (ML and FastAPI and Gradio, Deployed on Hugging Face) Moodsense Ai - a Hugging Face Space by aman179102 AI models are terrible at betting on soccer—especially xAI Grok GitHub - xialeistudio/echoic GitHub - HimashaHerath/github-dev-wrapped: AI-powered weekly GitHub activity reports deployed to GitHub Pages
GitHub - anasmohiuddinsyed-bit/ai-fix: 命令有失,一词可正。终端之AI驱误修器。
Anas1371 · 2026-05-24 · via Hacker News - Newest: "AI"

命失,一言可正。

$ python app.py
ModuleNotFoundError: No module named 'uvicorn'

$ ai-fix
✗ Failed: No module named 'uvicorn'

Fix (high confidence): uvicorn is not installed in this environment.

  → pip install uvicorn

Apply fix? [Y/n]: y
Running: pip install uvicorn
✓ Done.

Re-running: python app.py
✓ Fixed! Command succeeded.

安顿

pip install ai-fix

请设汝之API密钥:

export ANTHROPIC_API_KEY=sk-ant-...   # Claude (recommended — fast + cheap)
# or
export OPENAI_API_KEY=sk-...          # OpenAI fallback

事毕。如是而已。


用之

# Fix the last command that failed
ai-fix

# Run a command and fix it if it fails
ai-fix python app.py
ai-fix npm run build
ai-fix cargo build
ai-fix docker compose up

# Skip the confirmation prompt
ai-fix -y python app.py

# See what it would do without applying
ai-fix --dry-run python app.py

# Show full error output
ai-fix -v npm run build

其运作之理何在?

  1. 摄之复行尔败令,并录其标准输出与标准错误。
  2. 送之— 运错误于系统之境,达于克劳德(或GPT-4o-mini)
  3. 得回 — 有序之修命令,附信度评分
  4. — 运修之,复行尔初令以验

智见:尔令,全错,尔之OS,Python/Node之版本,及存之项目文件(package.jsonpyproject.tomlCargo.toml等。其返之指令,恰如其分,无冗文,无赘解,需解之文无有。


Python之模块阙如

$ python server.py
ModuleNotFoundError: No module named 'fastapi'

$ ai-fix
Fix (high confidence): fastapi is not installed.
  → pip install fastapi

npm构建之败

$ npm run build
sh: tsc: command not found

$ ai-fix
Fix (high confidence): TypeScript compiler not installed.
  → npm install --save-dev typescript
  → npx tsc

权限所阻

$ ./deploy.sh
bash: permission denied: ./deploy.sh

$ ai-fix
Fix (high confidence): Script is not executable.
  → chmod +x deploy.sh

端口已占

$ python manage.py runserver
Error: That port is already in use.

$ ai-fix
Fix (medium confidence): Port 8000 is occupied by another process.
  → lsof -ti:8000 | xargs kill -9

Git推送之拒

$ git push
 ! [rejected] main -> main (non-fast-forward)

$ ai-fix
Fix (high confidence): Remote has commits not in your local branch.
  → git pull --rebase origin main
  → git push

Docker未行

$ docker ps
Cannot connect to the Docker daemon. Is docker running?

$ ai-fix
Fix (high confidence): Docker daemon is not running.
  → open -a Docker

何不径以谷歌之?

尔已知如何用谷歌。然当尔深陷于构建之中,切换至浏览器,阅三Stack Overflow之答,复归,则费时且断流。

ai-fix 使尔恒处于终端。一言。毕。


自信程度

🟢高 AI确信——常见之误,明其解。
🟡 中等 或可修复,然视汝之配置而定
🔴 低 AI臆测——施用前请审阅

壳之支持

自:

  • zsh (~/.zsh_history)
  • bash (~/.bash_history)
  • fish (~/.local/share/fish/fish_history

ai-fix默认使用克劳德俳句——最快且最廉之模型。每修正之费,约计三十万分之一不足一厘之一。欲耗一元,须运之三千遍。


隱私

  • 唯送:其败命,其误出(截至三千字),尔之OS,言版,及一列项目文(非内容)
  • 未尝传文件之内容、环境之变量、API之钥、路径之外于当前目录之名

要求

  • Python 3.11以上
  • ANTHROPIC_API_KEYOPENAI_API_KEY

许可

MIT