timem-coding-memory

timem-coding-memory is a skill for Claude Code, Codex from auuduu/dsh-timem-memory. It costs 122 tokens per session (1,950 once invoked), scanned A, original, MIT.

A long-term memory workflow for coding work. It searches stored decisions and project knowledge before an answer, then saves useful new context afterward when the required memory tools are available.

In plain words
What is it for?
Use it to recall repository-specific decisions, module locations, and coding agreements, and to preserve relevant context for later coding sessions.
Why use it?
It reduces the need to repeat project conventions, architecture decisions, and past lessons in every coding conversation.

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

Made for: Claude Code, Codex.

Per session 122 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,950 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.00122 $0.01950
Opus 5 $0.00061 $0.00975
Sonnet 5 $0.00024 $0.00390
Haiku 4.5 $0.00012 $0.00195

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

Security

Grade A, and why

timem-coding-memory 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.

skills/timem-coding-memory/SKILL.md · 150 lines

How it starts

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

TiMEM Coding Memory(DSH 适配版)

domain=coding。服务器负责抽取事实并按历史去重——你的工作只是每个编码回合调用工具。

可用性检查

TiMEM 工具在 DSH 中以 mcp__timem__* 命名(mcp__timem__search_memoriesmcp__timem__create_memory 等)。 若工具列表中不存在这些工具,说明 TiMEM MCP 未连接——跳过本 skill,不要猜别的工具名。

每个编码回合(自动执行,无需用户要求)

1) mcp__timem__search_memories  探索性 grep/read 代码库之前 —— 即使直接读代码也行
2) 干活                          对照代码/AGENTS.md 核实命中;count=0 时读 memory_gap / elevate_create
3) mcp__timem__create_memory    回答之后 —— 传 2-4 轮相关对话

不要等「remember / 请记住」才动。「我直接读仓库就行」不是跳过理由。 模块/架构/总览类问题也是编码回合 —— 先搜,不要跳过。

search_tier(简化版)

默认几乎总是 S3,仅两个例外:

时机 search_tier
默认 —— 任何已知仓库的编码回合 S3
用户明确要求回忆(「你记得之前怎么定的吗」) S0limit=10
删除记忆之前(要先拿到 memory_id S6

不确定时 → S3

跳过(仅限窄范围)

跳过搜索 跳过写入
错别字 / 单行格式修改 未经证实的猜测(没读代码就总结)
纯知识问答(「Python 列表推导语法」) 临时调试状态(「断点在 L42」)
用户说「别搜 / don't search」 与刚搜到的内容相比没有任何新东西

拿不准 → 搜。误报代价低,漏掉上下文代价高。

参数

字段 取值
domain coding
session_id 必填 —— 稳定的仓库/项目名(如 dshtimem-mcp),绝不用随机 UUID
query_text 3-12 个任务导向的词(搜索必填)
search_tier 默认 S3;见上表
messages 2-4 轮最近的 {role, content} 对话;不要贴整份文件或长日志
memory_hint 可选 —— decision / constraint / lesson / convention / preference / correction

AGENTS.md / CLAUDE.md —— 团队评审、长期稳定的约定。 TiMEM —— 智能体可检索的项目知识:决策、经验、偏好、经代码验证的模块/架构定位。

记忆 vs 规则: 事实/偏好/定位 → mcp__timem__create_memory;可复用的「情境 X 做 Y」→ mcp__timem__learn_rule(见 timem-rule-learning skill)。

场景边界

回合类型 使用
偏好 / 办公持久事实 / 主题背景 timem-general-memorydomain=general
文案、语气、受众、草稿风格 timem-writing-memorydomain=writing
仓库、调试、架构、模块问题 本 skill(domain=coding

拿不准:mcp__timem__classify_memory_scene(messages=[...])

忘记

用户要求忘记 → mcp__timem__search_memories(search_tier="S6") 拿到 memory_id → 若歧义先与用户确认 → mcp__timem__delete_memory(memory_id="...")

推荐调用形态

mcp__timem__search_memories(
  query_text="<简洁的技术问题>",   # 必填,3-12 词
  domain="coding",
  session_id="<仓库名>",
  search_tier="S3",
  limit=5,
)

Read the full file on GitHub · 150 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 · 150 lines · 122 tokens per session scan A a4f5a6a2faa8

Subscribe to this mod's changes

timem-coding-memory is a skill published in the GitHub repository auuduu/dsh-timem-memory (0 stars, last pushed 15d ago), licensed MIT. It adds 122 tokens to every session and 1,950 once invoked, about $0.0006 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.

Related

Other skills, from other repositories

dsh-web-release

Release and publish the dsh-web monorepo (DSH Web GUI plugin family + skin collection) — bump all packages to one unified version, commit and tag (tags are cut from main after dev integration; dev is the integration branch), push the vX.Y.Z tag that triggers the GitHub Actions publish pipeline, and verify the npm…

zhu1090093659/dsh-web · 151 tokens

dsh-web-community-plugin-developer

Develop a DSH community plugin and register it in the dsh-web Community Plugins index — author the plugin in the contributor's own repository following the official cordis bundle standard, add its entry to packages/dsh-community-plugins/community.json, regenerate the index with scripts/community-index, rebuild and…

zhu1090093659/dsh-web · 123 tokens

dsh-web-skin-developer

Build a new skin for the dsh-web skin collection (DSH Web GUI) and publish it into the Skin Center — the first-level settings section — scaffold with scripts/dsh-skin-new, author the v2 skin.json manifest plus skin.css token remap (pure asset directory, no package.json, no build step), validate with scripts/dsh-skin…

zhu1090093659/dsh-web · 120 tokens

dsh-web-pre-push-checks

Use before pushing, opening or updating a pull request, or claiming dsh-web checks pass. Selects the required repository gates and diff-specific generation, build, and GUI evidence.

zhu1090093659/dsh-web · 45 tokens

dsh-web-documentation

Use when adding or editing dsh-web README files, docs, AGENTS.md instructions, user-facing configuration text, or bilingual documentation pairs.

zhu1090093659/dsh-web · 34 tokens

dsh-sdk-upgrade

Safely select and install a compatible official @deepseek-ai SDK release for dsh plugin projects (dsh-web, dsh-trading, and similar monorepos) from npm using an isolated worktree, explicit cohort review, CI-equivalent validation, and controlled rollout — including syncing the project's declared DSH host-version floor…

zhu1090093659/dsh-web · 176 tokens