update

update is a command for Claude Code from sifxprime/kodelyth-ecc. It costs 18 tokens per session (782 once invoked), scanned A, original, MIT.

An update command that upgrades Kodelyth ECC to its latest npm version while reusing your existing install target and language settings.

In plain words
What is it for?
Use it to refresh the installed agents, skills, rules, and commands without replacing your accumulated context.
Why use it?
It removes the need to remember or repeat the options used during installation. Your stored memory and lessons remain unchanged.

Command for Claude Code

Written for Claude Code: a Claude Code command (commands/*.md). Also seen: mentions Claude Code; mentions Codex; mentions OpenCode.

Good fit Use it to refresh the installed agents, skills, rules, and commands without replacing your accumulated context.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/sifxprime/kodelyth-ecc/update
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.

Clone the repo
git clone --depth 1 https://github.com/sifxprime/kodelyth-ecc

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 update

README.md
[![agentmods](https://agentmods.dev/badge/commands/sifxprime/kodelyth-ecc/update.svg)](https://agentmods.dev/commands/sifxprime/kodelyth-ecc/update)
Your own site
<a href="https://agentmods.dev/commands/sifxprime/kodelyth-ecc/update"><img src="https://agentmods.dev/badge/commands/sifxprime/kodelyth-ecc/update.svg" alt="Measured on agentmods" height="20"></a>
Per session 18 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 782 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe.
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.00018 $0.00782
Opus 5 $0.00009 $0.00391
Sonnet 5 $0.00004 $0.00156
Haiku 4.5 $0.00002 $0.00078

Measured 3d ago against content hash 1a974a274d51, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade A, and why

update scanned grade A with 1 finding 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 3d ago.

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.

Runs shell commandslowCapability

Expected in a hook, worth knowing in a rule or an instructions file.

require('child_process').execSync(cmd, { stdio: 'inherit' });
commands/update.md · 93 lines

How it starts

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

/update

Upgrades your ECC install to the latest version from npm. Reads your existing install state to replay the same target and language options automatically — no flags to remember.

Usage

/update

What It Does

  1. Reads kodelyth-ecc-install-state.json from your install directory to recover the original target and languages
  2. Runs npx kodelyth-ecc@latest with those same flags
  3. Overwrites agents, skills, rules, and commands with the latest versions
  4. Leaves your memory store (~/.kodelythecc/memory/) and tasks/lessons.md untouched — your learned context is never overwritten

Implementation

The agent should run the appropriate command based on your platform.

Automatic (reads install state)

node -e "
const fs = require('fs');
const os = require('os');
const path = require('path');

const candidates = [
  path.join(os.homedir(), '.claude', 'kodelyth-ecc-install-state.json'),
  path.join(os.homedir(), '.codeium', 'windsurf', 'kodelyth-ecc-install-state.json'),
  path.join(os.homedir(), '.codex', 'kodelyth-ecc-install-state.json'),
  path.join(process.cwd(), '.windsurf', 'kodelyth-ecc-install-state.json'),
  path.join(process.cwd(), '.cursor', 'kodelyth-ecc-install-state.json'),
  path.join(process.cwd(), '.agent', 'kodelyth-ecc-install-state.json'),
  path.join(process.cwd(), '.opencode', 'kodelyth-ecc-install-state.json'),
];

let state = null;
let stateFile = null;
for (const f of candidates) {
  if (fs.existsSync(f)) { state = JSON.parse(fs.readFileSync(f, 'utf8')); stateFile = f; break; }
}

if (!state) {
  console.error('No install state found. Run the installer manually:');
  console.error('  npx kodelyth-ecc --target <target>');
  process.exit(1);
}

const langs = (state.languages || []).join(' ');
const cmd = ['npx', 'kodelyth-ecc@latest', '--target', state.target, langs].filter(Boolean).join(' ');
console.log('Found install state:', stateFile);
console.log('Previous version:', state.version);
console.log('Running:', cmd);
require('child_process').execSync(cmd, { stdio: 'inherit' });
"

Read the full file on GitHub · 93 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. 3d ago First seen · 93 lines · 18 tokens per session scan A 1a974a274d51

Subscribe to this mod's changes

update is a command published in the GitHub repository sifxprime/kodelyth-ecc (11 stars, last pushed 5d ago), licensed MIT. It adds 18 tokens to every session and 782 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 1 finding (runs shell commands). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.