Coding Agent Session Finder
code-yeongyu/oh-my-openagent
Finds, reads and reconstructs past coding-agent sessions across Codex, Claude, OpenCode, Senpi and many other local agent logs.
Maintains a two-layer persistent memory for a math-modeling paper workflow: long-term rules plus a short-term workbench, with finished tasks archived.
SKILL.md written in Chinese; this summary is our English description.
$ npx skills add yushui2022/MathModel-Skill --skill context-memory-keeper -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install yushui2022/MathModel-Skill context-memory-keeper --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/yushui2022/MathModel-Skill.git skills-src && mkdir -p .claude/skills && cp -r skills-src/packages/trae/.trae/skills/context-memory-keeper .claude/skills/context-memory-keeper && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "context-memory-keeper" agent skill from https://github.com/yushui2022/MathModel-Skill/tree/standard/packages/trae/.trae/skills/context-memory-keeper into .claude/skills/context-memory-keeper/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "context-memory-keeper", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/yushui2022/MathModel-Skill/tree/standard/packages/trae/.trae/skills/context-memory-keeperType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add yushui2022/MathModel-Skill --skill context-memory-keeper -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install yushui2022/MathModel-Skill context-memory-keeper --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/yushui2022/MathModel-Skill.git skills-src && mkdir -p .agents/skills && cp -r skills-src/packages/trae/.trae/skills/context-memory-keeper .agents/skills/context-memory-keeper && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "context-memory-keeper" agent skill from https://github.com/yushui2022/MathModel-Skill/tree/standard/packages/trae/.trae/skills/context-memory-keeper into .agents/skills/context-memory-keeper/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "context-memory-keeper", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add yushui2022/MathModel-Skill --skill context-memory-keeper -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install yushui2022/MathModel-Skill context-memory-keeper --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/yushui2022/MathModel-Skill.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/packages/trae/.trae/skills/context-memory-keeper .cursor/skills/context-memory-keeper && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "context-memory-keeper" agent skill from https://github.com/yushui2022/MathModel-Skill/tree/standard/packages/trae/.trae/skills/context-memory-keeper into .cursor/skills/context-memory-keeper/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "context-memory-keeper", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/yushui2022/MathModel-Skill.git --path packages/trae/.trae/skills/context-memory-keeper--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add yushui2022/MathModel-Skill --skill context-memory-keeper -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install yushui2022/MathModel-Skill context-memory-keeper --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/yushui2022/MathModel-Skill.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/packages/trae/.trae/skills/context-memory-keeper .gemini/skills/context-memory-keeper && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "context-memory-keeper" agent skill from https://github.com/yushui2022/MathModel-Skill/tree/standard/packages/trae/.trae/skills/context-memory-keeper into .gemini/skills/context-memory-keeper/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "context-memory-keeper", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install yushui2022/MathModel-Skill context-memory-keeperInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add yushui2022/MathModel-Skill --skill context-memory-keeper -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/yushui2022/MathModel-Skill.git skills-src && mkdir -p .github/skills && cp -r skills-src/packages/trae/.trae/skills/context-memory-keeper .github/skills/context-memory-keeper && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "context-memory-keeper" agent skill from https://github.com/yushui2022/MathModel-Skill/tree/standard/packages/trae/.trae/skills/context-memory-keeper into .github/skills/context-memory-keeper/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "context-memory-keeper", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add yushui2022/MathModel-Skill --skill context-memory-keeper -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install yushui2022/MathModel-Skill context-memory-keeper --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/yushui2022/MathModel-Skill.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/packages/trae/.trae/skills/context-memory-keeper .opencode/skills/context-memory-keeper && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "context-memory-keeper" agent skill from https://github.com/yushui2022/MathModel-Skill/tree/standard/packages/trae/.trae/skills/context-memory-keeper into .opencode/skills/context-memory-keeper/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "context-memory-keeper", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
context-memory-keeperMaintains a two-layer persistent memory for a math-modeling paper workflow: long-term rules plus a short-term workbench, with finished tasks archived.
The skill keeps two files. memoryskill.md is the active memory: long-term principles such as user preferences, role settings and global constraints, which are mostly read-only, and a short-term workbench with current task state, variables, steps in progress and an index of external literature and data, which changes often. memory_archive.md receives summaries of old tasks when the workbench grows too long.
It sits inside a larger paper-writing workflow. Before formal work it runs a workflow_guard.py check from the paper-workflow-orchestrator skill and stops if the report is not a pass, rather than continuing from memory. After outputs are completed it runs scripts/update_workflow_memory.py, which reads the guard report and key artifacts and writes workflow_memory.json and workflow_memory.md under paper_output/context. Long or resumed sessions read workflow_memory.json before trusting chat history, and the guard report wins when the two disagree.
Other skills read memoryskill.md before complex tasks so they keep the model route, data sources and your requirements in view. If the memory files cannot be updated safely, the agent keeps the key conclusions in its reply and asks for a manual note later. The skill text is mostly in Chinese.
2 steps, taken from the first numbered list in SKILL.md.
Read from SKILL.md and the folder at commit 7712876. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
Ships 1 file in scripts/ (Python), which the agent can run.
Shell commands in SKILL.md call:
pythonFrom the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md.
From URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Context Memory Keeper loads about 893 tokens when it runs. Until then it costs about 43 tokens; SKILL.md has 219 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); the scripts in this folder are not scanned.
The full file from yushui2022/MathModel-Skill at commit 7712876, republished under its MIT licence (© yushui2022). 219 words, ~893 tokens.
.claude/skills/context-memory-keeper/SKILL.md (or your agent's skills folder). This skill also uses 3 other files; get the full folder from GitHub.paper-workflow-orchestrator 判断当前 S0-S8 阶段。python .trae/skills/paper-workflow-orchestrator/scripts/workflow_guard.py --skill context-memory-keeper[WORKFLOW FAIL] 或报告 status != "PASS",停止本 skill,按 paper_output/qa/workflow_guard_report.json 的失败项回补前置阶段,不得凭记忆继续。paper_output/ 产物;完成后必须回到 paper-workflow-orchestrator 判断下一步,并用 context-memory-keeper 记录已完成产物、阻塞项和下一步。python .trae/skills/paper-workflow-orchestrator/scripts/workflow_guard.py --statuspaper_output/qa/workflow_guard_report.json、paper_output/preflight_report.json、paper_output/input_manifest.json、paper_output/results/run_manifest.json 和本 skill 的上游 JSON 契约,按报告里的 recommended_skill 与 next_action 继续。paper_output/context/workflow_memory.json 视为长期断点记录;若其中的 current_step、next_step、recommended_skill 与 workflow_guard.py --status 不一致,以 guard 报告为准。paper-workflow-orchestrator 或运行 workflow_guard.py --status,再更新 workflow memory:python .trae/skills/context-memory-keeper/scripts/update_workflow_memory.pypaper_output/context/workflow_memory.json / .md,确认下一步和推荐 skill 已记录。memoryskill.md;当短期工作台过长时,将旧任务摘要归档到 memory_archive.md。memoryskill.md,避免遗忘当前模型路线、数据来源和用户要求。paper-workflow-orchestrator 判断后续阶段。此 Skill 维护双层记忆结构,旨在解决模型上下文遗忘问题,同时保持上下文窗口的整洁。
workflow_guard.py --status or after a skill handoff, run:python .trae/skills/context-memory-keeper/scripts/update_workflow_memory.pypaper_output/qa/workflow_guard_report.json plus key workflow artifacts and writes:paper_output/context/workflow_memory.jsonpaper_output/context/workflow_memory.mdworkflow_memory.json before relying on chat history.memoryskill.md (Active Memory):memory_archive.md (Archive):memoryskill.md。memoryskill.md 的“短期工作台”。memoryskill.md 的“长期准则”。memory_archive.md,并在 memoryskill.md 中仅保留关键结论。memoryskill.md 超过 100 行 时,必须执行压缩。memory_archive.md。memory_archive.md 或直接删除。memoryskill.md 轻量(建议 < 100 行),以便随时快速读取。© yushui2022, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
SKILL.md and 3 other files (scripts) in packages/trae/.trae/skills/context-memory-keeper of yushui2022/MathModel-Skill.
Open the folder on GitHubat commit 7712876
We found 3 copies of this SKILL.md (exact, near-identical or edited) in other folders, from 1 other GitHub owner. This page covers the copy in yushui2022/MathModel-Skill, which our catalogue first saw on October 7, 2026.
Context Memory Keeper next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Context Memory Keeper this skillyushui2022/MathModel-Skill | 452 | 1 repos | ~893 | Automated safety check: Pass | MIT | |
| Coding Agent Session Findercode-yeongyu/oh-my-openagent | 70k | 1 repos | ~2.8k | Automated safety check: Pass | Custom licence | |
| Beads Task Memorygastownhall/beads | 28k | — | ~1.2k | Automated safety check: Pass | MIT | |
| Session History Searchslopus/happy | 24k | — | ~3.1k | Automated safety check: Pass | MIT | |
| Memori Long-Term MemoryMemoriLabs/Memori | 17k | — | ~2k | Automated safety check: Notes | Custom licence | |
| Mindmemos CLImindscale-noah/MindMemOS | 1k | 1 repos | ~3.4k | Automated safety check: Pass | None |
code-yeongyu/oh-my-openagent
Finds, reads and reconstructs past coding-agent sessions across Codex, Claude, OpenCode, Senpi and many other local agent logs.
gastownhall/beads
Tracks multi-session work with dependencies in the bd issue tracker so the agent can find ready tasks and recover its context after conversation compaction.
slopus/happy
Searches past Claude Code, Codex and Cursor sessions and summarizes what was worked on, tried or decided, using extraction scripts instead of reading raw logs.
MemoriLabs/Memori
Connects Claude Code to Memori Cloud for long-term memory, recalling stored context before substantive replies and saving new context afterward.
mindscale-noah/MindMemOS
Give an AI agent persistent, cross-session long-term memory through MindMemOS.
MemoriLabs/Memori
Teaches an MCP-connected agent when and how to call Memori's recall, summary, compaction, augmentation, feedback and quota tools to keep context across sessions.
yushui2022/MathModel-Skill
Builds a scoring-aligned outline for a mathematical modeling paper and a model selection plan with baseline, improvement and validation experiments.
yushui2022/MathModel-Skill
Generates result-evidence contracts, tables and runnable q1 to q3 modeling code scaffolds for a math modeling paper from a model route, a data plan and cleaned data.
yushui2022/MathModel-Skill
Plans, drafts, audits, formats and verifies a formal mathematical-modeling paper from an evidence chain, delivering audited Markdown and a Word file with native equations.
yushui2022/MathModel-Skill
Repairs one failing section of a mathematical modeling paper from the repair queue, or builds a legacy or quickstart scaffold when you ask for one by name.
yushui2022/MathModel-Skill
Finds authoritative public data sources for modeling tasks, prefers official APIs and bulk downloads, and outputs a reproducible fetch and cleaning plan with citations.
yushui2022/MathModel-Skill
Cleans raw or scraped competition data and produces exploratory charts and a figure plan as one stage of a mathematical modeling paper workflow.
Categories
Maintains a two-layer persistent memory for a math-modeling paper workflow: long-term rules plus a short-term workbench, with finished tasks archived. The skill keeps two files.md is the active memory: long-term principles such as user preferences, role settings and global constraints, which are mostly read-only, and a short-term workbench with current task state, variables, steps in progress and an index of external literature and data, which changes often.
Context Memory Keeper fits situations like: resuming a long paper-writing workflow where context has started to drift; archiving finished tasks so the active memory stays short; recording completed outputs, blockers and next steps after a skill finishes.
Run `npx skills add yushui2022/MathModel-Skill --skill context-memory-keeper -a claude-code`. Or copy the skill folder (packages/trae/.trae/skills/context-memory-keeper in yushui2022/MathModel-Skill) into .claude/skills/context-memory-keeper in your project. Claude Code loads it when a task matches its description.
Run `npx skills add yushui2022/MathModel-Skill --skill context-memory-keeper -a codex`. Or copy the skill folder (packages/trae/.trae/skills/context-memory-keeper in yushui2022/MathModel-Skill) into .agents/skills/context-memory-keeper in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add yushui2022/MathModel-Skill --skill context-memory-keeper -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/context-memory-keeper, .gemini/skills/context-memory-keeper, .github/skills/context-memory-keeper and .opencode/skills/context-memory-keeper in your project.
Going by SKILL.md and its folder, Context Memory Keeper needs Python for the scripts in its folder and the command-line tools its instructions call (python). Our summary lists: Python, for scripts/update_workflow_memory.py; The paper-workflow-orchestrator skill and its workflow_guard.py script.
SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. The check reads SKILL.md only: the scripts in the folder are not scanned, so read them before running anything.
Context Memory Keeper is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 893 tokens (SKILL.md is roughly 3.6k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.
Skills that share tags, products or a category with Context Memory Keeper: Coding Agent Session Finder (code-yeongyu/oh-my-openagent, 70k stars), Beads Task Memory (gastownhall/beads, 28k stars), Session History Search (slopus/happy, 24k stars) and Memori Long-Term Memory (MemoriLabs/Memori, 17k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
yushui2022 (a GitHub user) maintains it in yushui2022/MathModel-Skill, which has 452 GitHub stars. The repository holds 10 skills in this directory. The repository was last updated on October 7, 2026.
Source: yushui2022/MathModel-Skill on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.