AI

AI 重构安卓应用

Claude Code

Posted by LXG on May 25, 2026

启动 Claude Code

查看本地Claude Code版本,更新版本


lxg@lxg:~/code/github/wifipc$ claude --version
2.1.38 (Claude Code)
lxg@lxg:~/code/github/wifipc$ claude update
Current version: 2.1.38
Checking for updates to latest version...
Successfully updated from 2.1.38 to version 2.1.150

Claude Code 环境诊断


lxg@lxg:~/code/github/wifipc$ claude doctor

────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
  Diagnostics
  ├ Currently running: native (2.1.150)
  ├ Commit: 28d4819e0f0a
  ├ Platform: linux-x64
  ├ Path: /home/lxg/.local/share/claude/versions/2.1.150
  ├ Config install method: native
  └ Search: OK (bundled)

  Updates
  ├ Auto-updates: enabled
  ├ Auto-update channel: latest
  └ Failed to fetch versions

  Background server
  └ Status: not running
  └ Mode: ephemeral
  └ See claude daemon status for details

  Still having issues? Run /feedback to report details.

  Enter to continue

启动Claude Code


lxg@lxg:~/code/github/wifipc$ claude
╭─── Claude Code v2.1.150 ─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
│                                  │ Tips for getting started                                                                                                              │
│           Welcome back!          │ Run /init to create a CLAUDE.md file with instructions for Claude                                                                     │
│                                  │ ───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── │
│              ▐▛███▜▌             │ What's new                                                                                                                            │
│             ▝▜█████▛▘            │ Internal infrastructure improvements (no user-facing changes)                                                                         │
│               ▘▘ ▝▝              │ `/usage` now shows a per-category breakdown of what's driving your limits usage — skills, subagents, plugins, and per-MCP-server cost │
│                                  │ `/diff` detail view can now be scrolled with the keyboard (arrows, `j`/`k`, `PgUp`/`PgDn`, `Space`, `Home`/`End`)                     │
│   Opus 4.7 · API Usage Billing   │ /release-notes for more                                                                                                               │
│       ~/code/github/wifipc       │                                                                                                                                       │
╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯

❯ /init                                                                                                                                                                                             

  Read 5 files, listed 5 directories (ctrl+o to expand)

● No existing CLAUDE.md, Cursor, or Copilot rules. A detailed AGENTS.md already exists — I'll write CLAUDE.md as a focused entry point that points to AGENTS.md for deep context, and surfaces the
  essentials.

● Write(CLAUDE.md)

────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
 Create file
 CLAUDE.md

AI 收益缺口

根据 2026 年上半年的综合财报估算:

  • 支出端(CapEx): 微软、谷歌、Meta、亚马逊和马斯克的 xAI,五家公司 2026 年的合计资本支出预计超过 5,200 亿美元(主要用于买 GPU 和建数据中心)。
  • 收入端(AI Revenue): 尽管 Google Cloud 和 Azure 的 AI 增长很快,但整个应用层(包括 OpenAI、Anthropic、各种 Copilot 和 SaaS 应用)产生的直接 AI 增量收入,目前满打满算仅在 800 亿 - 1,000 亿美元 左右。

残酷的现实: 投入 5 美元,目前只能换回不到 1 美元的直接收入。中间高达 4,000 亿美金的缺口 全靠各大巨头原本的利润(如搜索广告、Office 软件、电商服务)在硬扛。

互联网革命 VS 人工智能革命

维度 互联网革命(1995–2010) AI 革命(2023–2026+) 补充
主要成本 研发(固定成本) 算力 + 推理(可变成本) 基本成立
毛利率 很高(80%+) 当前中等(约50%左右) AI 现阶段如此,但未必长期如此
盈利爆发点 用户增长→利润 规模效应+算法优化降本 AI 更像“先修路再收费”
财富流向 平台应用方 基础设施方 当前成立,长期未必

为什么说 AI 更像电力?

电力革命和 AI 革命在本质上都是 “通用技术 (GPT, General Purpose Technology)”。它们有三个共同特征:

  1. 无孔不入的渗透性: 电力没有改变“洗衣服”这件事本身,但它创造了洗衣机;AI 没有改变“写邮件”或“做计划”,但它改变了这些动作的发生方式。
  2. 持续的成本下降: 电力刚出现时极其昂贵,只有工厂和富人用得起。随着电网普及,电价迅速下降,才催生了家电产业。这正对应了你提到的“Token 单价必须降到足够低”。
  3. 作为创新的“底座”: 电力本身并不是最终产品,它驱动了电灯、电话、电动机。AI 也是如此,它是一个“智能引擎”,被嵌入到现有的所有工具中。

b413cf7 (add 2026-05-25-AI-重构安卓应用)