project

A set of commands for managing a project’s goal and background information in a long-term context system. It can initialize, analyze, or register a project.

In plain words
What is it for?
Use it to record a project goal, analyze context for a task, or connect a project name with its folder.
Why use it?
It keeps project context available before work begins, so an agent can understand the goal and project setup without relying only on the current conversation.

Command

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/project
Clone the repo
git clone --depth 1 https://github.com/RohiRIK/OpenLtm
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 1,002 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. 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.01002
Opus 5 $0.00015 $0.00501
Sonnet 5 $0.00006 $0.00200
Haiku 4.5 $0.00003 $0.00100

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

Security

Grade B, and why

project scanned grade B 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 2d 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.

Reads agent configuration directoriesmediumAgent snooping

.claude/, .codex/, .gemini/ hold keys, settings and other credentials a mod has no legitimate need for.

cat ~/.claude/projects/registry.json
commands/project.md · 135 lines

How it starts

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

Parse the first word of the arguments as <subcommand>. Pass remaining words as <args>.

If no subcommand given, show:

Usage: /openltm:project <subcommand>

  init      — seed a new project goal into the LTM context system
               /openltm:project init

  analyze   — analyze project context before starting work
               /openltm:project analyze [topic or task description]

  register  — register or rename a project in the LTM registry
               /openltm:project register [name] [path]

init

1 — Verify project is registered:

cat ~/.claude/projects/registry.json

Match cwd. If missing, run /openltm:project register first.

2 — Check for existing goal:

bun --eval "
import { Database } from 'bun:sqlite';
const db = new Database(process.env.LTM_DB_PATH);
const row = db.query(\"SELECT content FROM context_items WHERE project_name=? AND type='goal' LIMIT 1\").get('<project>');
console.log(row ? row.content : '');
"

If a goal exists, show it and ask: "Replace it?"

3 — Ask for the goal:

"What is the current goal for <project>? (1–3 bullets, max 100 chars each)"

4 — Write:

bun --eval "
import { Database } from 'bun:sqlite';
const db = new Database(process.env.LTM_DB_PATH);
db.run(\"DELETE FROM context_items WHERE project_name=? AND type='goal'\", ['<project>']);
db.run('INSERT INTO context_items (project_name, type, content, created_at) VALUES (?, ?, ?, datetime(\"now\"))', ['<project>', 'goal', '<goal>']);
console.log('done');
"

5 — Confirm:

Project **<project>** seeded.
Goal: <goal>

Decisions, progress, and gotchas accumulate automatically via hooks.

Do NOT create context-goals.md or similar files. DB is the source of truth.


analyze

This command orchestrates context retrieval in the right order.

1 — Get project context: Call mcp__plugin_openltm_memory__context(project="<project>").

Returns: globals (importance ≥ 4) + scoped (importance ≥ 3).

Read the full file on GitHub · 135 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. 2d ago First seen · 135 lines · 31 tokens per session scan B ae8d7f1d0b4b

Subscribe to this mod's changes

project is a command published in the GitHub repository RohiRIK/OpenLtm (26 stars, last pushed 24d ago), licensed MIT. It adds 31 tokens to every session and 1,002 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it B with 1 finding (reads agent configuration directories). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.