memory-manager

A memory curator for TensorCircuit-NG development. It stores reusable project lessons in the repository's .agents/memory files for future coding agents.

In plain words
What is it for?
It updates the appropriate memory file from the project's index, or reorganizes the full memory collection to make it shorter, clearer, and less repetitive.
Why use it?
It keeps important guidance from being lost while removing temporary details, repeated notes, and stories that do not help future work.

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/tensorcircuit/tensorcircuit-ng/memory-manager
Any agent
npx skills add tensorcircuit/tensorcircuit-ng --skill memory-manager
Clone the repo
git clone --depth 1 https://github.com/tensorcircuit/tensorcircuit-ng

Made for: Claude Code, Codex.

Per session 64 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,014 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.00064 $0.01014
Opus 5 $0.00032 $0.00507
Sonnet 5 $0.00013 $0.00203
Haiku 4.5 $0.00006 $0.00101

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

Security

Grade A, and why

memory-manager 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 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.

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.

.agents/skills/memory-manager/SKILL.md · 80 lines

How it starts

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

When activated, you act as a concise curator for TensorCircuit-NG's development memory. The memory is for future AI development guidance, not for journaling past agent activity.

Core rules

  • Start from .agents/memory/index.md. Treat it as the authority for the memory taxonomy and the progressive-disclosure entrypoint.
  • Keep memory generic, durable, and repo-relevant. Store lessons that future agents are likely to need again.
  • Do not store local or private facts such as conda environment names, usernames, hostnames, absolute paths, branch names, timestamps, temporary files, or "AI did X" narratives.
  • Prefer protocols, invariants, and recurring pitfalls over anecdotes. Rewrite one-off debugging stories into short reusable guidance.
  • Keep edits concise. Avoid long examples unless the detail is essential to avoid future mistakes.
  • Update an existing memory file when possible. Create a new one only when the lesson does not fit the current taxonomy, then add it to index.md.

Mode selection

  • The user may explicitly select a mode when invoking the skill, for example $memory-manager update or $memory-manager dream. Treat that explicit choice as authoritative.
  • Use update mode when the goal is to save what was learned in the current task or session.
  • Use dream mode when the goal is to clean up the whole memory set by scanning, merging, renaming, and refactoring memory files.
  • If the user does not specify a mode explicitly, infer it from the request. Incremental capture implies update; full-memory cleanup implies dream.

Update mode

Use this mode after meaningful work has already happened and there may be durable lessons worth preserving.

Workflow

  1. Read .agents/memory/index.md, then only the memory file or files closest to the current task.
  2. Inspect the current session evidence: the user request, relevant diffs, tests, failures, fixes, and non-obvious conclusions.
  3. Extract only lessons that are:
    • durable across future work,
    • specific enough to be useful,
    • generic enough to be public and reusable.
  4. Discard anything that is obvious from the code, too local to the machine/session, or too speculative.
  5. Write the lesson into the best existing memory file as short bullets or short sections. If a new file is necessary, create it with a stable topic name and add it to index.md.
  6. Keep the resulting memory entry future-facing. Explain what to do, what to avoid, or what invariant matters.

Read the full file on GitHub · 80 lines

Files

What ships with it

1 file 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. 2d ago First seen · 80 lines · 64 tokens per session scan A 3b3c434ee2a8

Subscribe to this mod's changes

memory-manager is a skill published in the GitHub repository tensorcircuit/tensorcircuit-ng (88 stars, last pushed 21d ago), licensed Apache-2.0. It adds 64 tokens to every session and 1,014 once invoked, about $0.0003 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.

Related

Other skills, from other repositories

hf-release-notes

Generate Hugging Face Hub (huggingfacehub) release notes from cached PR JSON files. Use when asked to draft release notes from PR files.

huggingface/huggingface_hub · 36 tokens

physicsnemo-shard-tensor

Official NVIDIA-authored guidance for PhysicsNeMo ShardTensor domain parallelism — integrate domain parallelism into training/inference scripts (new or existing) with DDP or FSDP2, write and register shard patches to enable new layers/ops, and bootstrap multi-GPU correctness tests. Use when working with ShardTensor…

NVIDIA/physicsnemo · 152 tokens

physicsnemo-discover

Official NVIDIA-authored guidance for navigating PhysicsNeMo — pick the model, datapipe, or example for a SciML/AI4Science task (surrogates, forecasting, downscaling, physics-informed, inverse, generative). Points at existing files via live repo search; never writes code. Do NOT use for installation or environment…

NVIDIA/physicsnemo · 124 tokens

skill-sync-checker

Audits SKILL.md files in this repo's skills directory for references to functions, classes, or modules (mentioned by name in prose, e.g. parseinvoice) that no longer exist in the codebase because they were renamed, moved, or deleted. Proposes a targeted fix to the one skill being checked, never a blanket rewrite. ONLY…

PINA-org/PINA · 165 tokens

ml-engineering

Field-tested methodology and concrete recipes for training and operating large-scale LLM/VLM/multi-modal models end to end - choosing and benchmarking accelerators, storage and network; SLURM/Kubernetes orchestration; maximizing training throughput and fitting models in memory; diagnosing and surviving training…

stas00/ml-engineering · 234 tokens

cellxgene-census-query

Query CZ CELLxGENE Census (61M+ cells). Filter by cell type/tissue/disease, retrieve expression data, and integrate with scanpy/PyTorch for population-scale single-cell analysis. Use this skill when: (1) Querying single-cell expression data by cell type, tissue, or disease, (2) Exploring available single-cell datasets…

PharMolix/OpenBioMed · 105 tokens