memos

A set of tools for working with the Memos REST API, a web interface used by programs to create and manage memos, attachments, comments, and activity records.

In plain words
What is it for?
Use it to list, search, read, create, update, or delete memos; manage attachments and comments; inspect activity; and reuse existing hashtags.
Why use it?
It removes the need to construct API requests and encode file attachments manually for common memo tasks.

Skill for Claude CodeCodex

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 skills/jtsang4/efficient-coding/memos
Any agent
npx skills add jtsang4/efficient-coding --skill memos
Clone the repo
git clone --depth 1 https://github.com/jtsang4/efficient-coding

Made for: Claude Code, Codex.

Per session 73 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,768 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.00073 $0.01768
Opus 5 $0.00036 $0.00884
Sonnet 5 $0.00015 $0.00354
Haiku 4.5 $0.00007 $0.00177

Measured yesterday against content hash 9135d448a6ab, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

memos 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.

The scan reads SKILL.md. This mod also ships 2 executable files (scripts/memos.ts, scripts/operations.ts), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

skills/memos/SKILL.md · 220 lines

How it starts

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

Memos API Skill

This skill combines two layers:

  • low-level API access for exact Memos endpoints
  • task-oriented query helpers for common memo retrieval jobs
  • tag inventory helpers so the calling agent can inspect existing hashtags before deciding whether to reuse them

Scope is intentionally limited to:

  • attachment operations
  • memo operations
  • activity operations

It does not cover user management, auth setup beyond the local .env, shortcuts, identity providers, or instance settings. If the request drifts there, say the skill scope is limited instead of guessing unsupported commands.

What this skill provides

  • A Bun CLI at scripts/memos.ts
  • Endpoint discovery and direct API calling via ops, describe, and call
  • Task-oriented memo helpers via latest, recent, and search
  • A list-tags helper that aggregates existing tags, counts, recency, and sample memo snippets
  • A file-to-attachment helper so agents do not have to hand-roll base64 payloads
  • A compact operation catalog at references/api-summary.md
  • Query recipes and time-window guidance at references/query-recipes.md

Setup

  1. Work from the skill directory.
  2. Ensure .env contains:
    • MEMOS_BASE_URL
    • MEMOS_ACCESS_TOKEN
  3. Verify config:
bun run scripts/memos.ts config

MEMOS_BASE_URL may be either the instance root such as http://localhost:5230 or the API base such as http://localhost:5230/api/v1. The CLI normalizes both.

Choose the right path

Use the high-level commands first when the user asked for a retrieval task, not a specific endpoint.

  • Latest memo or latest N memos:
bun run scripts/memos.ts latest --count 5
  • Recent memos inside a time window:
bun run scripts/memos.ts recent --days 7 --window rolling --include-content
  • Search by text or tag:
bun run scripts/memos.ts search --text agent --tag Thought --days 30
  • Inspect existing tags before deciding which hashtags to reuse in a new memo:

Read the full file on GitHub · 220 lines

Files

What ships with it

7 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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 · 220 lines · 73 tokens per session scan A 9135d448a6ab

Subscribe to this mod's changes

memos is a skill published in the GitHub repository jtsang4/efficient-coding (2 stars, last pushed 6d ago), licensed MIT. It adds 73 tokens to every session and 1,768 once invoked, about $0.0004 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-31.