Context Window of an LLM: Tokens, Limits and Memory
What the context window of an LLM is, how input, output and thinking tokens share it, why it has a limit, and how it differs from real memory for AI agents.
Sourced technical guides on how AI agents and LLMs remember: memory types, context windows, retrieval, and the tools that implement them (Mem0, Zep, Letta, Cognee, Hindsight and more).
Short answer: for agents with long histories, or if you want every feature open source and self-hosted, start with Hindsight. If the lowest token cost per lookup or a compliance certificate matters most, look at Mem0. For one project’s notes, plain files or a simple vector store are often enough.
reflect returns a reasoned answer instead of a list of facts.All benchmark numbers on this site are vendor-reported, and each page says who ran them. For the full numbers see the agent memory leaderboard, Mem0 vs Hindsight and open-source memory systems compared.
What the context window of an LLM is, how input, output and thinking tokens share it, why it has a limit, and how it differs from real memory for AI agents.
AI agent memory is a store outside the model that brings the right facts back into the prompt. The model forgets between calls. Four types, storage and 2026 tools.
Agent memory leaderboard guide: where to find LongMemEval, LoCoMo and BEAM results, who runs each leaderboard, a score table with sources, and why scores differ.
Documentation records what you decided. Agent memory records what happened. A breakdown of the 2026 debate, what each one fixes, and when to run both.
Agent Workflow Memory (AWM) lets LLM agents reuse routines from past runs: 35.5% vs 23.5% on WebArena with GPT-4. How it works, limits, and code to build it.
How Amazon Bedrock AgentCore Memory works: events, short-term vs long-term memory, the four built-in strategies, direct ingestion, record TTL, harness managed memory, record streaming, metadata filters, Python code and pricing (November 2026).
agentmemory (rohitg00) explained: persistent memory for Claude Code, Cursor and Codex, npx setup, its self-reported benchmarks, vs Hindsight and Mem0.
The main AI agent architecture patterns compared: ReAct, plan-and-execute, ReWOO, LLMCompiler, Reflexion, workflows, multi-agent, and where memory fits in each.
LangGraph, CrewAI, OpenAI Agents SDK, Microsoft Agent Framework, Google ADK, Letta, LlamaIndex and Pydantic AI compared on memory: sessions, long-term stores, plug-ins.
Long-term memory keeps an AI agent's facts across sessions. Tested Python with LangMem, Mem0 and Pydantic AI, and LongMemEval results.
AI agent memory statistics: GitHub stars, forks and licenses for 23 projects, PyPI and npm downloads, and headline benchmark scores. Collected 2026-10-20 and updated 2026-11-17 with the change between them.
How AI agents remember plans: to-do lists in working memory, plans stored as episodes, and plan reuse through workflow memory and plan caching, with code.
How AI coding agents remember projects: Claude Code CLAUDE.md and auto memory, Codex AGENTS.md and memories, Cursor rules, Copilot Memory, and external memory tools.
AI memory decay explained: recency scoring, Ebbinghaus forgetting curves, expiry and validity windows, plus the unplanned forgetting caused by long contexts.
AI memory injection plants malicious content in an agent's long-term memory so it misleads later sessions. Real attacks (MINJA, AgentPoison, SpAIware, MemForm, MemHarmBench), MemoryDojo's poisoning numbers for Mem0, Letta, Graphiti, A-MEM and Memora, and defenses.
What an AI memory MCP server is, how the official MCP memory server's knowledge graph works, and how Graphiti, Basic Memory, Mem0, MemPalace and Hindsight compare.
What agent memory products cost as of 11 November 2026: free tiers, paid plans, usage prices and which ones you can self-host. Read from each vendor's pricing page.
Is Azure AI Foundry memory free? It is in public preview (Oct 2026), billed through the chat and embedding models it uses. Memory store limits, scopes, TTL, regions and Python code.
Which AI memory framework should you pick? A decision guide by use case: Mem0, Zep, Letta, Cognee, LangMem, Supermemory, Hindsight and Honcho, with prices.
Which chatbot has the best memory in 2026? A sourced comparison of ChatGPT, Claude, Gemini, Copilot and Character.AI: what each remembers, free plans, controls.
The best in-memory vector databases by language: FAISS, hnswlib, USearch, Chroma, Qdrant local mode, LangChain and Spring AI stores, with Python code.
Open-source AI memory systems compared by license, GitHub stars and free self-hosting: Hindsight (MIT, full server), Mem0, MemPalace, Graphiti, Cognee.
How to build a chatbot with memory in LangGraph: a checkpointer for chat history, a store for long-term user memory, Postgres for production, and example repos.
What is Character.AI's memory limit? Why characters forget, the real limits on pins (15 or 30) and Chat Memories (400 characters), and how to improve memory.
What the Claude Agent SDK does, how to install it in Python or TypeScript, how sessions resume or fork, where CLAUDE.md loads, and how to add long-term memory with Hindsight. From the official docs, read 2026-11-15.
Yes, Claude remembers in two ways: Memory keeps topics you can edit, and chat search looks up past chats. Plans, settings, ChatGPT import and the API.
Claude Code slash commands for memory, context and sessions: /init, /memory, /compact, /clear and /resume. What each does, from the official docs read 2026-11-15.
What Claude Code costs per developer: average $13 per active day, $150-250 per month, and how CLAUDE.md, MCP servers and memory tools add tokens. From the official costs page, read 2026-11-16.
Which official Claude Code doc page covers memory, skills, hooks, settings, MCP, costs and install. The page to read for each, from the docs index, read 2026-11-16.
The Claude Code hook events (SessionStart, UserPromptSubmit, Stop, PreCompact and 28 more: 33 in all), the four hook types, exit code rules, where hooks live in settings.json, and how hooks feed memory tools such as claude-mem and Hindsight.
How to add an MCP server to Claude Code with claude mcp add, pick a scope (local, project or user), check status with /mcp, and keep secrets out of .mcp.json. Commands from the official Claude Code MCP docs, read 2026-11-12. Includes a memory section.
How Claude Code memory works: CLAUDE.md locations and load order, @imports, auto memory and how to turn it off, /memory, plus memory MCP servers, claude-mem and Hindsight.
How to install a Claude Code plugin with /plugin install or claude plugin install, pick a scope (user, project or local), and check its context cost. Commands from the official plugin docs, read 2026-11-14. Includes a memory section.
Claude Code releases 2.1.311 to 2.1.327 (Oct 26 to Nov 17, 2026) and the changes to CLAUDE.md, MEMORY.md, compaction, transcripts and /context. Updated with each release.
What Claude Code Router does, how to start it on port 3456 and point Claude Code at it, and what Anthropic says about routing to non-Claude models. Sources read 2026-11-17.
Where Claude Code settings live (user, shared project, project local, managed), which file wins, the main settings.json keys and their env variables, and how auto memory and Hindsight are switched on.
How Claude Code skills work: SKILL.md location (personal, project, plugin), frontmatter fields and limits, how they load, and how skills differ from CLAUDE.md and memory. Sourced from the Claude Code docs.
How Claude Code subagents work: where to store one (project, user or plugin), the fields that matter, how to call one, and the memory field that keeps notes across sessions. From the official docs, read 2026-11-14.
Claude Code vs Codex side by side: instruction files, memory defaults, skill folders, MCP config paths, and one memory bank both tools can share. Sourced.
How to run Claude Code with Ollama local or cloud models: the ollama launch command, the manual env vars, the 64k context rule, and how memory works. Ollama docs read 2026-11-17.
What dreaming means in Claude's agent memory: Managed Agents memory stores, the Dreams API, Anthropic's CL-Bench, Pokémon and wiki results, vs Letta and Hindsight.
What claude-mem is, how its hooks and local worker store and search your coding sessions, how to install it on Claude Code and other agents, what it costs, and when to pick something else.
What the Cline Memory Bank is, the six markdown files and their hierarchy, how to set it up with .clinerules, what it costs in context tokens, and when to use a real memory server.
What CodeGraph (colbymchenry/codegraph) does for Claude Code, Codex and Cursor: a local code graph over MCP, its benchmark numbers, limits, and when to add Hindsight.
Where Codex CLI reads config.toml, which file wins, and the main keys people change: model, approval_policy, sandbox_mode, web_search, memories and MCP. Taken from OpenAI's config reference, November 2026.
How to add an MCP server to Codex CLI with codex mcp add or config.toml, the timeout and tool-filter settings, how to check servers with /mcp, and which MCP servers give Codex memory. From the official Codex MCP docs, read 2026-11-13.
How OpenAI Codex memory works (0.167.0): AGENTS.md load order and 32 KiB limit, Codex memories (v2 by default for new users), default limits and models (gpt-6-luna extraction, gpt-6.1-terra consolidation), config keys, importing Claude Code memory, and adding Hindsight.
How Codex skills work: the SKILL.md folder, where Codex loads it from, how to call a skill with $, install one, and turn one off. Sourced from the OpenAI Codex skills docs, read 2026-11-13.
How Codex subagents work: the three built-in agents, how to ask Codex to spawn them, custom agent files in .codex/agents/, and the [agents] settings. From OpenAI's Codex docs, read 2026-11-14.
Cognee alternatives compared: Mem0, Graphiti, Zep, Letta, Hindsight, MemPalace and Supermemory. What each does, licenses, self-hosting and pricing, checked October 2026.
Why LLMs get worse as the window fills (lost in the middle, RULER, NoLiMa). One Oct 2026 test on GPT-6 Luna: full context 92%, Mem0 80%. Fixes compared.
Cursor rules are .mdc files in .cursor/rules, plus User, Team and AGENTS.md rules. The four apply modes, the 500-line guide and Hindsight's Cursor CLI.
How memory works in DeepSeek Harness (dsh): session logs, auto compaction, MCP memory overlays, and long-term memory plugins: Hindsight, Honcho, Mem0, ReMe, dsh-mnemon.
Gemini long-term memory: past chats, and a Memory summary you can view, edit and delete on web and mobile (not in the UK, EEA, Switzerland or Nigeria). Also how to delete it.
Episodic memory in AI agents stores past events with their time and context. Covers what an episode holds, Reflexion and Generative Agents, and a FAISS build.
How memory works in ECC (Everything Claude Code, affaan-m/ECC): session hooks, instincts with confidence scores, the Memory Vault, defaults, limits, and where Hindsight fits.
How to extend an LLM context window: position interpolation, NTK and YaRN RoPE scaling, LongRoPE, long-context fine-tuning, ring attention and KV cache tricks.
How GitHub Copilot Memory works after its October 2026 GA: repository facts, user preferences, voting and the 90-day expiry, the eight surfaces including VS Code, Copilot dreaming, bulk import, and how to manage or replace it.
What Graphify does for Claude Code, Codex and Cursor: a local tree-sitter knowledge graph of your repo, its memory benchmarks, limits, and when to add Hindsight.
How Grok Bot memory works: what each Bot remembers, what all Bots share, what xAI hasn't documented, and the Hindsight, Supermemory and claude-mem plugins.
What Headroom (headroomlabs-ai/headroom) does for Claude Code, Codex and other agents: local context compression, its token numbers, its memory features and limits.
Hermes Agent Desktop is Nous Research's native app for Hermes. How to install it, how it shares memory and sessions with the CLI, the Memory Graph, and limits.
Hermes Agent Desktop 是 Nous Research 为 Hermes 做的原生应用。介绍如何安装、它怎样和命令行共享记忆与会话、Memory Graph 功能以及限制。
Install Hermes Agent with one curl command on Linux, macOS or WSL2, run hermes setup, then set up its built-in memory and Hindsight plugin. Sourced from the official docs, checked 2026-11-10.
Hermes Agent remembers with MEMORY.md (2,200 chars) and USER.md (1,375 chars), loaded once per session, plus SQLite session search. Which of its 9 memory providers to pick, by need, and why Hermes forgets.
How Hermes Agent plugins work: plugin types, hermes plugins install, the SHA-pinned catalog, memory provider plugins, and what v0.23.0 changed (Nov 2026).
How Hermes Agent skills work: how the agent writes SKILL.md files from experience, where they live, how they load, the Skills Hub, the curator, and limits.
用一条 curl 命令在 Linux、macOS 或 WSL2 上安装 Hermes Agent,运行 hermes setup,然后设置它的内置记忆和 Hindsight 插件。内容来自官方文档,2026-11-10 核对。
Hermes Agent 技能如何工作:agent 如何从经验中写出 SKILL.md 文件、存放位置、加载方式、Skills Hub、curator 和限制。
Hermes Agent 插件如何工作:插件类型、hermes plugins install、固定 SHA 的目录、记忆提供方插件,以及 v0.23.0(2026 年 11 月)的变化。
Hermes Agent 用 MEMORY.md(2,200 字符)和 USER.md(1,375 字符)记住内容,每次会话开始时加载一次,并用 SQLite 搜索历史会话。说明它的 9 个外部记忆插件怎么选,以及 Hermes 为什么会忘事。
Hindsight is an MIT-licensed agent memory server with retain, recall and reflect. How it works, its BEAM benchmark lead, its limits, and when to pick another tool.
Hindsight Memlake vs pgvector, turbopuffer, LanceDB and Pinecone for agent memory: architecture, writes, cold start, licensing, Vectorize-run numbers, limits.
What holographic memory means for AI agents: holographic reduced representations (HRR), how bind and unbind work, and the Hermes Agent holographic provider.
What Honcho memory is: Plastic Labs' AGPL memory service that models each user as a peer. $2 per 1M tokens, 90.4% LongMemEval (self-reported), self-hosting, and 3.5.0 source citations.
How does memory work in AI? The model forgets, so the app saves notes, searches them and adds them to the prompt. ChatGPT, Claude, Gemini, Mem0, Letta and Hindsight compared step by step.
How LLM memory works inside the model: knowledge in weights, the context window, the KV cache, why each API call is stateless, and where external memory fits.
How to add memory to a chatbot: chat history buffers, trimming, rolling summaries and long-term facts, with tested Python code for SQLite and LangChain.
How to find ChatGPT memory in Settings, see what it remembers, turn memory on or off, and fully delete saved memories and chat history, on web and phone.
Local LLMs don't remember between chats. How to add persistent memory offline: chat apps, MCP, and tested Python with Ollama, SQLite, Mem0 and the Agno agent framework.
How to install Claude Code on macOS, Windows, WSL and Linux with the native installer, Homebrew, WinGet or npm, check the install, log in, update, and uninstall. Commands from the official setup docs, read 2026-11-12.
How to install OpenAI Codex CLI on macOS, Linux and Windows with the standalone installer, npm or Homebrew, sign in with ChatGPT, update it, and add Hindsight memory. Commands from the official README, read 2026-11-12.
How to install Google's Gemini CLI with npm, Homebrew or npx, sign in, update it, and use GEMINI.md files for memory. Commands from the official README, read 2026-11-12, with the limits Hindsight has for Gemini CLI.
No standard AI agent memory format exists (Nov 2026). What 12 systems store, the .mem, Agent Memory Repo and OMP proposals, and how to share memory across agents now.
Janitor AI memory is a fixed window of about 8K to 9K tokens on free JLLM, and the oldest messages drop first. Covers permanent vs temporary tokens, Chat Memory and the August 2026 changes.
How knowledge graph memory works for AI agents: extraction, entity resolution, temporal edges, Graphiti, Neo4j, Cognee and GraphRAG, versus vector memory.
Build a memory chatbot in Langflow: Agent built-in memory, Message History, session IDs, external chat memory, and memory bases (SQLite by default since 1.13) for long-term recall.
Open-weight LLMs with the largest context windows as of November 2026 (Llama 4 Scout, Kimi K3.1 Pro, Mistral Large 4), Ollama and llama.cpp settings, KV cache VRAM math.
What Letta is today: the MemGPT successor, how its memory works (MemFS, memory blocks, dreaming, archival memory), how to use it from Python, and its pricing.
What Letta (formerly MemGPT) does now, why teams look for Letta alternatives, and how Mem0, Zep, Graphiti, Cognee, LangMem, Hindsight and Supermemory compare.
Letta vs LangChain memory in 2026: Letta Code's self-editing, git-backed memory files versus LangGraph checkpointers, stores and Deep Agents. When to pick each.
How to manage LLM agent memory: set a context budget, decide what to write, trim and summarize history, consolidate, expire with TTLs, delete, scope per user.
Which LLM has the largest context window? A sourced comparison of context window sizes by model and provider as of October 2026, with long-context pricing.
How LLM context windows grew from 512 tokens in GPT-1 to about 1M today: a dated timeline of models and the arxiv papers on attention and RoPE behind it.
LLM context window optimization in practice: token budgets, compaction, tool result clearing, prompt caching, retrieval and memory, with real API settings.
LLM memory comparison table: Mem0, Zep/Graphiti, Letta, Cognee, LangMem, Supermemory, Hindsight, Honcho: license, storage, retrieval, hosting, benchmarks.
LLM memory compression explained: conversation compaction, fact extraction, prompt compression (LLMLingua), KV cache eviction and vector quantization.
How to evaluate LLM and agent memory: LoCoMo, LongMemEval, MemoryAgentBench, BEAM, FEB-30, Bemula, SciValidityBench, BehaviorMemBench, MSC and DMR compared by size, tasks and metrics, plus how to run one.
A guide to the main LLM and agent memory survey papers on arXiv, 2024 to 2026: what each covers, the taxonomy it proposes, and which one to read first.
Yes, Obsidian can be LLM memory: an agent keeps a Markdown wiki built from your sources, after Karpathy's LLM Wiki gist (April 2026).
What parametric memory is in LLMs: how facts live in model weights, how much a model holds, how to update it (fine-tuning, ROME, MEMIT, Memory Tuning).
Mem0 alternatives compared: Zep, Graphiti, Letta, Cognee, Hindsight, Supermemory and LangMem: licenses, self-hosting, memory models and pricing (Oct 2026).
Mem0 paper (arXiv 2504.19413): Mem0 scored 66.88% and Mem0g 68.44% on LoCoMo, vs 72.90% for full context, with 91% lower p95 latency. Authors' numbers.
Mem0 vs Cognee compared (Oct 2026): fact extraction vs knowledge graphs, open-source graph memory, local models, APIs, pricing and when to use each.
Mem0 vs Hindsight compared (Oct 2026): how each stores and retrieves memory, open-source vs hosted features, benchmarks and token cost, pricing, and which fits.
Mem0 vs Honcho (Oct 2026): facts vs peer reasoning, a self-hosting table (containers, LLM keys, auth defaults, telemetry), AGPL vs Apache 2.0, benchmarks, pricing.
Mem0 vs Letta (MemGPT) compared in 2026: memory model, who decides what to store, Python support, self-hosting, pricing, and which one fits your agent.
Mem0 vs MemPalace compared (Oct 2026): extracted facts vs verbatim local storage, LLM and API needs, coding agent hooks, benchmarks, and which one to choose.
Mem0 vs Supermemory compared (Oct 2026): memory model, RAG and connectors, open source vs hosted, self-hosting, benchmarks, pricing, and which one fits your app.
Consolidation merges duplicate memories, fixes conflicts and writes summaries. REM (arXiv 2610.27377) resolved 27.6% of coding tasks vs 24.9%, at 17% lower cost.
MemoryOS (EMNLP 2025) explained: three memory tiers, heat-based updates, LoCoMo results and the GitHub repo, plus how MemGPT/Letta and MemOS use the OS idea.
Microsoft Memora is a research memory system for AI agents (ICML 2026). How primary abstractions and cue anchors work, its reported LoCoMo and LongMemEval results.
Mnemosyne vs Hindsight (Oct 2026): what Mnemosyne AI memory is, SQLite vs Postgres, recall, Hermes and MCP setup, BEAM scores from Mnemosyne's own README, and which fits.
The memory options for the n8n AI Agent node: Simple Memory, session IDs, Postgres, Redis, MongoDB and new Databricks Lakebase chat memory, deprecated Zep, long-term memory, clearing.
How to install OpenClaw, finish onboarding, open the Control UI and connect a chat app, plus where its memory lives and how the Hindsight plugin works. Sourced from the OpenClaw README and docs.
How OpenClaw memory works: MEMORY.md and daily notes, hybrid memory_search, embedding models, dreaming, and 8 memory plugins compared (OpenViking, Hindsight).
How to find, install, update and write OpenClaw skills: the openclaw skills commands, the SKILL.md format and its metadata fields, and what to check before you install a third-party skill. Sourced from the OpenClaw ClawHub and skill format docs, read 2026-11-11.
如何查找、安装、更新和编写 OpenClaw skills:openclaw skills 命令、SKILL.md 格式和元数据字段,以及安装第三方 skill 前要检查什么。内容来自 OpenClaw ClawHub 和 skill 格式文档,读取日期 2026-11-11。
OpenClaw vs Hermes Agent memory compared: file layout, size limits, search, consolidation, external providers and migration, from each project's docs (Oct 2026).
OpenClaw 和 Hermes Agent 记忆对比:文件结构、字符上限、搜索、整理、外部记忆提供方和迁移。内容来自两个项目的文档,2026 年 10 月核对。
如何安装 OpenClaw、完成入门引导、打开控制界面并连接聊天应用,以及它的记忆存在哪里、Hindsight 插件如何工作。内容来自 OpenClaw README 和官方文档。
OpenClaw 记忆如何工作:MEMORY.md 与每日笔记、混合 memory_search、嵌入模型、dreaming,以及 8 个记忆插件的对比(OpenViking、Hindsight)。
OpenViking is ByteDance's open-source context database: a viking:// filesystem for agent memory. Setup with Hermes, the L0/L1/L2 layers, benchmarks, and how it compares to Hindsight.
Oracle AI Agent Memory (oracleagentmemory) explained: threads, context cards, long-term memory, search modes, TTL, setup in Python, and how it compares to Hindsight and Mem0.
Procedural memory in AI agents and LLMs: weights, code, prompts and skill files, how Voyager, AWM, Memp and Claude's memory folder learn rules, and LangMem prompt optimization.
RAG vs agent memory: what retrieval-augmented generation is, how long-term memory differs (writes, updates, time, per-user scope) and how to combine both.
What semantic memory is in AI agents: profiles vs collections, triples and graphs, extracting facts with LangMem, how Mem0, CrewAI, Graphiti and Hindsight handle a changed fact, and LongMemEval knowledge-update scores by system.
What short-term memory is in AI agents, what it holds, why it runs out, and how to trim, summarize or offload it, with a LangChain checkpointer example.
How conversational memory works in Spring AI 2.0: ChatMemory, MessageWindowChatMemory, advisors, JDBC/Redis/Neo4j repositories, 2.0 breaking changes, and the 2.1 move to session memory.
Supermemory alternatives compared (Oct 2026): Hindsight, Mem0, Zep, Graphiti, Letta, Cognee, Honcho. Licenses, self-hosting, memory models, benchmarks, pricing.
What Supermemory is: a hosted memory API with fact extraction, user profiles, hybrid RAG search and connectors. How it works, Python SDK, local mode, pricing.
Why AI memory gets time wrong, the temporal questions agents face, bi-temporal graphs and time-aware retrieval, benchmark results, and a Graphiti example.
TencentDB Agent Memory explained (v2.0.3, Oct 2026): what 2.0.3 changes, L0-L3 memory layers, Team Memory and Memory Hub, proxy setup for Claude Code and OpenClaw, and how it compares to Hindsight and Mem0.
The types of AI agent memory: working, episodic, semantic and procedural (CoALA), parametric vs external memory, and how LangGraph, Letta and Mastra name them.
How vector databases store long-term memory for LLM agents, what memory needs beyond RAG, and how pgvector, Qdrant, Chroma, Milvus, Pinecone and Redis compare.
Vertex AI Agent Engine Memory Bank, now Agent Platform Memory Bank: how memory generation, scopes, topics, profiles and revisions work, ADK code, and 2026 pricing.
How to give a voice agent long-term memory: the latency budget, recall per turn vs per call, and the options (VoiceMem, Mem0, Zep, Hindsight) for Pipecat, LiveKit and Vapi.
Context engineering decides which tokens an AI agent sees at each step. The main techniques compared across Anthropic, LangChain, Manus and Breunig, and memory's role.
What Mem0 is in 2026: how it extracts and stores memories, open source vs Platform, graph memory, setup, delete, and the new Free + bring-your-own-key pricing (Oct 26).
What Zep memory is in 2026: the Zep Cloud temporal context graph, open-source Graphiti, how it stores and retrieves memory, outside test results, pricing, self-hosting, integrations, and the October-November 2026 changelog.
Why is AI memory so bad? Chatbots forget because models don't learn from your chats, context windows run out, and memory features save only a selection.
Zep alternatives compared, including open-source options after Zep Community Edition: Graphiti, Mem0, Letta, Cognee, Hindsight and Supermemory (Oct 2026).
Zep vs Mem0 compared (Oct 2026): temporal context graph vs extracted facts, open source, self-hosting, APIs, pricing, the benchmark dispute, how to pick.
如何在 macOS、Windows、WSL 和 Linux 上安装 Claude Code:原生安装器、Homebrew、WinGet 或 npm,如何检查安装、登录、更新和卸载。命令来自官方安装文档,读取日期 2026-11-12。