onboard

onboard is a command for coding agents from RohiRIK/OpenLtm. It costs 31 tokens per session (473 once invoked), scanned A, original, MIT.

An interactive setup wizard for OpenLTM, a long-term memory system for coding agents. It checks the setup, registers a project, records its goal, and introduces the main commands.

In plain words
What is it for?
Set up OpenLTM for a project, run first-time diagnostics, repeat setup safely, or perform scripted setup in CI.
Why use it?
It helps configure memory storage and agent hooks correctly when starting with a new project.

Command

Installs and runs on its own, but its text points at files inside its plugin — anything it tells you to read at a ${CLAUDE_PLUGIN_ROOT} path is only there once the plugin is installed. Installing the plugin gets both.

Part of the openltm plugin — 10 skills, 6 commands, 3 agents, 3 hooks shipped together

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 commands/rohirik/openltm/onboard
Clone the repo
git clone --depth 1 https://github.com/RohiRIK/OpenLtm

Or install openltm, the plugin that ships this one along with the rest of its 10 skills, 6 commands, 3 agents, 3 hooks.

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 onboard

README.md
[![agentmods](https://agentmods.dev/badge/commands/rohirik/openltm/onboard.svg)](https://agentmods.dev/commands/rohirik/openltm/onboard)
Your own site
<a href="https://agentmods.dev/commands/rohirik/openltm/onboard"><img src="https://agentmods.dev/badge/commands/rohirik/openltm/onboard.svg" alt="Measured on agentmods" height="20"></a>
Per session 31 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 473 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 $0.00031 $0.00473
Opus 5 $0.00015 $0.00236
Sonnet 5 $0.00006 $0.00095
Haiku 4.5 $0.00003 $0.00047

Measured 4d ago against content hash 15d958facba6, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

onboard 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 4d 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.

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.

commands/onboard.md · 53 lines

What it actually says

Runs the interactive 5-step terminal wizard for OpenLTM.

When to use

Run when starting a new project to seed goal, preferences, and context into LTM. Safe to re-run — idempotent by default (skips if already onboarded; use --force to redo).

Usage

# Interactive (default)
bun run "${CLAUDE_PLUGIN_ROOT}/src/onboard.ts"

# Non-interactive (CI / scripted setup)
bun run "${CLAUDE_PLUGIN_ROOT}/src/onboard.ts" --non-interactive

# Force re-run even if already onboarded
bun run "${CLAUDE_PLUGIN_ROOT}/src/onboard.ts" --force

Steps

# Name What happens
1 Diagnose Checks env vars, DB access, hook wiring — aborts on CRITICAL
2 Register Names the project; writes entry to registry.json
3 Goal Captures current objective; saved to context_items + memories
4 Tour Shows key commands (recall, learn, health, propose)
5 Done Writes onboarded.flag to ${CLAUDE_PLUGIN_DATA}/

Flags

Flag Effect
--non-interactive Skips all prompts; derives project name from cwd; uses default goal
--force Ignores existing onboarded.flag and runs all steps again

CRITICAL abort

If Step 1 finds CRITICAL issues (e.g. CLAUDE_PLUGIN_DATA not set, DB inaccessible), the wizard exits with code 1 and displays the failing checks. Fix these before continuing.

What it saves

  • registry.json — maps cwd to project name
  • context_itemsgoal row for the project
  • memories — goal stored as architecture importance-3 memory
  • onboarded.flag — timestamp file preventing duplicate runs
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. 4d ago First seen · 53 lines · 31 tokens per session scan A 15d958facba6

Subscribe to this mod's changes

onboard is a command published in the GitHub repository RohiRIK/OpenLtm (26 stars, last pushed 3d ago), licensed MIT. It adds 31 tokens to every session and 473 once invoked, about $0.0002 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-08-30.