GitHub
Connect AI assistants to GitHub - manage repos, issues, PRs, and workflows through natural language.
作者提供的说明(英文原文)
Heap histograms, Go profiles, crash logs and core dumps from Kubernetes pods before they died.
这三项永远不会合并成一个分数:意见、测量和人气是不同的东西。
我们还没有为它写通俗的介绍。下面是我们从注册中心读取到的事实。
选择你使用的 AI 应用,然后复制设置。
你需要
你用的是哪个应用?
在上方选择你的应用。我们会记住它,下次按钮会显示“安装到 …”。
打开 Claude Desktop → Settings → Developer → Edit Config,把下面的内容粘贴到 claude_desktop_config.json
{
"mcpServers": {
"lastwords": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"ghcr.io/arvo-ai/lastwords:v0.1.5",
"mcp"
]
}
}
}在终端中运行这条命令
claude mcp add lastwords -- docker run -i --rm ghcr.io/arvo-ai/lastwords:v0.1.5 mcp粘贴到项目中的 .cursor/mcp.json,或 ~/.cursor/mcp.json
{
"mcpServers": {
"lastwords": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"ghcr.io/arvo-ai/lastwords:v0.1.5",
"mcp"
]
}
}
}浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
粘贴到项目中的 .vscode/mcp.json
{
"servers": {
"lastwords": {
"type": "stdio",
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"ghcr.io/arvo-ai/lastwords:v0.1.5",
"mcp"
]
}
}
}浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
这个服务器在你的电脑上运行,而 ChatGPT 只能连接互联网上的服务器。请选择其他应用。
你的选择通过 Cookie 保存在这台设备上,无需账户。
这些设置是根据作者在注册中心的条目生成的。如果 README 的写法不同,请以 README 为准。
它在你的电脑上运行;安装后,工具列表会显示在你的 AI 应用中。
我们检查的是任何人都能看到的信息;我们没有阅读代码。不适用的检查项不计入总数。 · 检查于 2026年11月8日
注册名称已通过 GitHub 账户 Arvo-AI 验证,该账户拥有此仓库
我们还没有从 GitHub 读取这个仓库
我们还没有从 GitHub 读取这个仓库
它在你的电脑上运行,没有互联网端点
在你的电脑上运行,改用本地设置
它在你的电脑上运行;我们只能读取互联网端点的工具列表
与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。
它在 1 项适用的基础检查中通过了 1 项。我们没有阅读代码。在添加密钥或令牌之前,请先看看这个服务器要求哪些权限,并使用只具备所需权限的密钥。
注册中心没有列出必需的密钥,不过有些服务器会在首次使用时要求你登录。
它在你的电脑上运行。你的 AI 应用会在需要时启动它,数据不会经过作者的服务器(除非它自己调用在线服务)。
GitHub 仓库最后更新于–,最新版本(0.1.5)于4天前进入注册中心。
支持 MCP 的应用,例如 Claude Desktop、Claude Code、Cursor 和 VS Code。你的电脑上还需要有 Docker。
同一分类中有:GitHub, Desktop Commander, Cloudflare MCP
同一分类中其他作者的服务器,按星标数排序。
如何看卡片:↓ 每周下载量i★ GitHub 星标i三大支柱:评价 · 检查 · 使用情况i更新 = 最新版本发布到注册中心的时间i
Connect AI assistants to GitHub - manage repos, issues, PRs, and workflows through natural language.
MCP server for terminal commands, file operations, and process management
按原文从作者的仓库复制。PopNx MCP 没有审查或背书其内容。HTML、图片和脚本已被移除。链接会离开本站。
Memory snapshots before OOM kills, and logs and core dumps from crashes, for Kubernetes.
lastwords runs on every node. When a container gets close to its memory limit, it records what is using the memory. When a container dies, it saves the logs of that instance, the pod's events and any core dump. Everything stays on the node (or in S3), and you can read it with kubectl lastwords or from an AI agent over MCP.
helm install lastwords oci://ghcr.io/arvo-ai/charts/lastwords -n lastwords --create-namespace
When you look at a pod that died hours ago, most of the evidence is gone:
-XX:+HeapDumpOnOutOfMemoryError never fires, and Go, Node and Python get no warning either.--event-ttl, default 1h).core_pattern is set per node, so crashing containers either dump nothing or dump to a path inside a container that is about to be deleted.None of it can be recovered later. It has to be collected while the container is alive or right after it dies, which is what lastwords does.
| When | What lastwords saves |
|---|---|
| A container nears its memory limit (90%, again at 97%, or earlier if it is climbing fast) | Memory breakdown (heap vs page cache vs kernel), a memory timeline, processes. Java: class histogram, heap info, native memory, thread dump. Go: heap profile with the top allocation sites. Optional full heap dump. |
| A container is OOMKilled | The memory curve up to the kill, logs of the instance that died, pod events, and links to the snapshots taken before the kill |
| A process inside a container is OOM-killed but the container survives | What Kubernetes never reports: which process died and the memory state |
| A container crashes (non-zero exit, signal) | Log tail of the dead instance, the crash site parsed from Go/Java/Python stack traces, events, exit code meaning |
| A process dumps core (SIGSEGV, SIGABRT, ...) | The gzipped core, memory maps, binary and image, matched to the pod |
| A pod is evicted | Eviction reason, every container's logs, events |
Every capture comes with a summary.md that says what happened in plain words:
# checkout-5498f94695-526hm/checkout was OOMKilled at 16:51:38 UTC (limit 384.0 MiB); 1 snapshot taken before the kill
kubectl lastwords list # everything from the last 7 days
kubectl lastwords list -n shop --kind oomkill kubectl lastwords show 20261102T030712Z-af14b5 kubectl lastwords get 20261102T030712Z-af14b5 jvm-class-histogram.txt kubectl lastwords top # containers closest to their memory limit right now
Install the CLI (it is also a kubectl plugin):
# macOS / Linux
curl -sSL https://github.com/Arvo-AI/lastwords/releases/latest/download/lastwords_$(uname -s)_$(uname -m | sed s/aarch64/arm64/).tar.gz | tar xz sudo mv lastwords /usr/local/bin/ && sudo ln -sf /usr/local/bin/lastwords /usr/local/bin/kubectl-lastwords
The CLI talks to the agents through the Kubernetes API server, so it needs nothing but your kubeconfig.
Measured on EKS with the failures in this repo; every command and output is from a real run.
Agent eval: setup, grader and every transcript from 24 runs with and without lastwords.
lastwords ships an MCP server. Claude Code, Codex, Cursor and any MCP client can list and read captures:
claude mcp add lastwords -- kubectl-lastwords mcp
codex mcp add lastwords -- kubectl-lastwords mcp
Then ask: *"the checkout pods restarted overnight, why?"* Tools: lastwords_list_captures, lastwords_get_capture, lastwords_read_file, lastwords_watchlist. All read-only.
helm upgrade lastwords oci://ghcr.io/arvo-ai/charts/lastwords -n lastwords --reuse-values \
--set notifications.slackWebhookUrl=https://hooks.slack.com/services/... \ --set notifications.webhookUrl=https://your-service/lastwords \ --set notifications.webhookSecret=$(openssl rand -hex 32)
With a secret set, every webhook delivery is signed: X-Lastwords-Signature: sha256= . ">. Verify it before acting on the event, and reject old timestamps:
import hmac, hashlib, time
def verify(secret: bytes, headers, body: bytes, tolerance=300) -> bool: ts = headers["X-Lastwords-Timestamp"] if abs(time.time() - int(ts)) > tolerance: return False want = "sha256=" + hmac.new(secret, ts.encode() + b"." + body, hashlib.sha256).hexdigest() return hmac.compare_digest(want, headers["X-Lastwords-Signature"])
Go receivers can use github.com/Arvo-AI/lastwords/webhook.Verify.
Every capture also becomes a Kubernetes Event on the pod (LastWordsOOMKill, LastWordsMemoryPressure, LastWordsCrash, ...), so it shows up in kubectl describe pod and anything that watches events. Prometheus metrics are on :9095/metrics.
Common settings (see values.yaml for all):
| Value | Default | |
|---|---|---|
capture.threshold | 0.90 | Capture at this share of the memory limit (working set, like the kubelet) |
capture.lastGasp | 0.97 | Second capture right before the kill |
capture.predictive | true | Capture early if the limit will be hit within predictSeconds |
capture.jvmGCHeadroom | 0.25 | A JVM with -Xmx above the limit can be killed by a GC before memory reaches 100% (80% with SerialGC in our EKS test), so its tiers aim below that |
capture.heapDumps | false | Full Java heap dumps for every JVM. Pods can opt in with the lastwords.dev/heap-dump: "true" annotation |
capture.goPprofPort | 6060 | Where Go programs serve net/http/pprof |
coreDumps.enabled | false | Capture core dumps (sets the node's kernel.core_pattern, needs a privileged agent) |
storage.maxBytes | 5 GiB | Disk budget per node |
s3.bucket | Upload captures to S3, GCS (interoperability) or MinIO | |
ignoreNamespaces | [kube-system] | Never watch these |
api.createSecret | true | Create the API token secret. Set false with Argo CD or Flux and create lastwords-api yourself (why) |
Pod annotations:
| Annotation | |
|---|---|
lastwords.dev/ignore: "true" | Don't watch this pod |
lastwords.dev/threshold: "0.8" | Per-pod capture threshold |
lastwords.dev/heap-dump: "true" | Allow a full heap dump for this pod |
lastwords.dev/pprof-port: "8080" | Go pprof port |
helm uninstall lastwords -n lastwords
On shutdown the agent puts the node's original core_pattern back (checked on EKS: systemd-coredump again after uninstall). Captures and the core helper binary stay in /var/lib/lastwords on each node, so a reinstall keeps your history, and a node whose agent was killed before it could restore core_pattern still has a working helper to hand cores to. Delete that directory on the nodes to remove everything.
A DaemonSet runs one small agent per node (a static Go binary; requests 20m CPU and 48 MiB). Measured on EKS (t3.large, Amazon Linux 2023): 8m CPU and 12 MiB on a quiet node, 20m CPU and 15 MiB with 35 containers, about 0.5m CPU per container watched.
memory.current, memory.stat, memory.events, PSI), computes the working set the way the kubelet does, and keeps a 10-minute timeline.jcmd uses) from outside the container; nothing is installed in your images. For Go it pulls /debug/pprof/heap.kernel.core_pattern at a small helper that writes the gzipped core next to the captures, and the agent matches it to the pod.More in docs/how-it-works.md.
lastwords reads other processes' memory accounting, so it needs node-level access. Read docs/security.md before installing it in production. In short:
hostPID and the capabilities SYS_PTRACE, DAC_READ_SEARCH, DAC_OVERRIDE, CHOWN, FOWNER, KILL, plus a read-only root filesystem.privileged to set kernel.core_pattern. They are off by default.pods/proxy in the lastwords namespace plus the API token secret. The chart creates a lastwords-reader Role.My pod was OOMKilled. How do I find out what used the memory? If lastwords was running, kubectl lastwords list --kind oomkill shows the kill, and the linked pressure capture shows what was using memory before it. If it wasn't running, nothing can recover that information. Install it so the next kill is captured.
Why didn't `HeapDumpOnOutOfMemoryError` produce a heap dump? That flag fires when the JVM itself runs out of heap. A container OOM kill is the kernel sending SIGKILL when the whole process (heap plus metaspace, threads, direct buffers, native memory) hits the
只显示了开头部分;其余内容请在仓库中阅读