statusline

statusline is an agent for Claude Code from Ramilito/kubectl.nvim. It costs 27 tokens per session (1,102 once invoked), scanned A, original, Apache-2.0.

A specialist for a statusline, the compact information area shown in a developer tool's interface. It covers statusline layout, refresh timing, cluster-health indicators, and metrics such as ready and unavailable nodes.

In plain words
What is it for?
Use it when adding or changing statusline metrics, formatting, refresh behaviour, or cluster-health display in the kubectl client.
Why use it?
It gives tasks about statusline behaviour a focused understanding of the relevant Rust and Lua files and their data flow. This helps avoid changing the wrong part of the feature.

Agent for Claude Code

Written for Claude Code: installed under .claude/. Also seen: model in frontmatter; mentions subagents.

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add agents/ramilito/kubectl.nvim/statusline
Clone the repo
git clone --depth 1 https://github.com/Ramilito/kubectl.nvim

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for statusline

README.md
[![agentmods](https://agentmods.dev/badge/agents/ramilito/kubectl.nvim/statusline.svg)](https://agentmods.dev/agents/ramilito/kubectl.nvim/statusline)
Your own site
<a href="https://agentmods.dev/agents/ramilito/kubectl.nvim/statusline"><img src="https://agentmods.dev/badge/agents/ramilito/kubectl.nvim/statusline.svg" alt="Measured on agentmods" height="20"></a>
Per session 27 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,102 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00027 $0.01102
Opus 5 $0.00014 $0.00551
Sonnet 5 $0.00005 $0.00220
Haiku 4.5 $0.00003 $0.00110

Measured yesterday against content hash 80df6be1c8c2, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

statusline scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured yesterday.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude/agents/statusline.md · 139 lines

How it starts

The opening of the file, as written. The whole thing — 139 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Statusline Feature Guidance

ALWAYS use this subagent for ANY task involving:

  • Statusline content, layout, or formatting
  • Cluster health indicators
  • Statusline refresh timing or performance
  • Adding new metrics to the statusline

File Map

Layer File Purpose
Rust kubectl-client/src/statusline.rs Statusline struct, metrics aggregation
Rust kubectl-client/src/lib.rs Exposes get_statusline_async to Lua
Lua lua/kubectl/views/statusline/init.lua Timer, rendering, highlight formatting
Lua lua/kubectl/config.lua:129-131 Config defaults (statusline.enabled)
Lua lua/kubectl/init.lua:13,21-23 View initialization on plugin start

Data Flow

Lua                              Rust (dylib)
-----------------------------------------------------------
View() --> timer:start() -------> (waits 5s)
Draw() --> get_statusline_async -> Aggregate node stats + events
                                  +-> Query Warning events (1h window)
process() <-- JSON response <----+
vim.o.statusline = formatted

Current Metrics

Metric Source Display
ready / not_ready node_stats() snapshot Node count with health dot
cpu_pct Average across nodes Percentage
mem_pct Average across nodes Percentage
crit_events Warning events in last hour Count

Rust: Statusline Struct

pub struct Statusline {
    pub ready: u16,
    pub not_ready: u16,
    pub cpu_pct: u16,
    pub mem_pct: u16,
    pub crit_events: u32,
}

The get_statusline() async function:

  1. Reads from the global node_stats() informer snapshot
  2. Aggregates node readiness and resource usage
  3. Queries all Warning events, filters to last hour
  4. Returns serialized JSON to Lua

Lua: View Lifecycle

View() - statusline/init.lua:8-23

  • Saves original statusline/laststatus settings
  • Sets laststatus = 3 (global statusline)
  • Starts timer: 5s initial delay, 30s interval

Read the full file on GitHub · 139 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. yesterday First seen · 139 lines · 27 tokens per session scan A 80df6be1c8c2

Subscribe to this mod's changes

statusline is an agent published in the GitHub repository Ramilito/kubectl.nvim (537 stars, last pushed 22d ago), licensed Apache-2.0. It adds 27 tokens to every session and 1,102 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-04.

Related

Other agents, from other repositories

proto-rpc-reviewer

Use when reviewing changes to any .proto file under rpc/ or to the Go bindings generated from them. Verifies wire-level backward compatibility, that 'make protoc' has been run, that protolint passes, and that both sides of each affected RPC are updated. Surfaces incompatibilities that would break older clients, older…

telepresenceio/telepresence · 86 tokens

ark-security-patcher

Fix security vulnerabilities in Ark by researching CVEs, analyzing impact, proposing mitigations, implementing patches, and creating PRs. Use when the user reports CVE numbers or security issues that need fixing in Ark. Examples:\n\n- User: "Fix CVE-2025-55183 in Ark"\n Assistant: "I'll use the ark-security-patcher…

mckinsey/agents-at-scale-ark · 0 tokens

issue-tracker

Issues and PRDs for this repo live as GitHub issues. Use the gh CLI for all operations.

xiaods/k8e · 0 tokens

security-reviewer

Review security aspects including network policies, RBAC, IAM, secrets management, Cilium policies, and pod security.

Smana/cloud-native-ref · 26 tokens

security-engineer

Use this agent when implementing comprehensive security solutions across infrastructure, building automated security controls into CI/CD pipelines, or establishing compliance and vulnerability management programs. Invoke for threat modeling, zero-trust architecture design, security automation implementation, and…

piomin/claude-ai-spring-boot · 55 tokens

code-reviewer

Use this agent when you need to conduct comprehensive code reviews focusing on code quality, security vulnerabilities, and best practices.

piomin/claude-ai-spring-boot · 27 tokens