Agent skill

Memory

by PhyAgentOS in PhyAgentOS/PhyAgentOS-core

Two-layer memory system with grep-based recall. An agent skill from PhyAgentOS/PhyAgentOS-core.

MITAuto-check passed

Install Memory

skills CLI
$ npx skills add PhyAgentOS/PhyAgentOS-core --skill memory -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install PhyAgentOS/PhyAgentOS-core memory --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/PhyAgentOS/PhyAgentOS-core.git skills-src && mkdir -p .claude/skills && cp -r skills-src/PhyAgentOS/skills/memory .claude/skills/memory && rm -rf skills-src

Use ~/.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/

Facts

Skill name
memory
GitHub stars
2.8k
Used in
1 other repo
Token cost
~365 tokens
SKILL.md length
160 words
Files
1
Skills in repo
5
Repo updated
First seen
Licence
MIT

At a glance

Two-layer memory system with grep-based recall. An agent skill from PhyAgentOS/PhyAgentOS-core.

  • SKILL.md covers Structure, Search Past Events, When to Update MEMORY.md and Auto-consolidation
  • Calls python

What it does

Memory is an agent skill from PhyAgentOS/PhyAgentOS-core. Two-layer memory system with grep-based recall.

Its SKILL.md is about 370 tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

The repository describes itself as: PhyAgentOS is a Recursive Self-Improving (RSI) physical agent operating system that enables agents to recursively self-improve through agentic workflows. The licence is MIT.

Example prompts

  • “/memory”

Requirements

  • Python 3

What it can do on your machine

Read from SKILL.md and the folder at commit 466e38b. It shows what the files ask for, not the result of running them.

  • Tool permissions

    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.

  • Runs code

    Shell commands in SKILL.md call:

    • python

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Memory loads about 365 tokens when it runs. Until then it costs about 14 tokens; SKILL.md has 160 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~14
When it runs · the whole SKILL.md, loaded when a task matches
~365

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.

Safety

Auto-check passed

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); files beside SKILL.md are not scanned.

SKILL.md

The full file from PhyAgentOS/PhyAgentOS-core at commit 466e38b, republished under its MIT licence (© PhyAgentOS). 160 words, ~365 tokens.

Download SKILL.mdSave it as .claude/skills/memory/SKILL.md (or your agent's skills folder).
name
memory
description
Two-layer memory system with grep-based recall.
always
true

Memory

Structure

  • memory/MEMORY.md — Long-term facts (preferences, project context, relationships). Always loaded into your context.
  • memory/HISTORY.md — Append-only event log. NOT loaded into context. Search it with grep-style tools or in-memory filters. Each entry starts with [YYYY-MM-DD HH:MM].

Search Past Events

Choose the search method based on file size:

  • Small memory/HISTORY.md: use read_file, then search in-memory
  • Large or long-lived memory/HISTORY.md: use the exec tool for targeted search

Examples:

  • Linux/macOS: grep -i "keyword" memory/HISTORY.md
  • Windows: findstr /i "keyword" memory\HISTORY.md
  • Cross-platform Python: python -c "from pathlib import Path; text = Path('memory/HISTORY.md').read_text(encoding='utf-8'); print('\n'.join([l for l in text.splitlines() if 'keyword' in l.lower()][-20:]))"

Prefer targeted command-line search for large history files.

When to Update MEMORY.md

Write important facts immediately using edit_file or write_file:

  • User preferences ("I prefer dark mode")
  • Project context ("The API uses OAuth2")
  • Relationships ("Alice is the project lead")

Auto-consolidation

Old conversations are automatically summarized and appended to HISTORY.md when the session grows large. Long-term facts are extracted to MEMORY.md. You don't need to manage this.

© PhyAgentOS, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in PhyAgentOS/skills/memory of PhyAgentOS/PhyAgentOS-core.

Open the folder on GitHubat commit 466e38b

Used in 1 other repository

We found 1 copy of this SKILL.md (exact, near-identical or edited) in other folders, from 1 other GitHub owner. This page covers the copy in PhyAgentOS/PhyAgentOS-core, which our catalogue first saw on October 7, 2026.

Compare with similar skills

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

Memory compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Memory this skillPhyAgentOS/PhyAgentOS-core2.8k1 repos~365Automated safety check: PassMIT
Recallcursor/plugins10k7 repos~1.3kAutomated safety check: PassNone
ast-grep Structural Searchcode-yeongyu/oh-my-openagent70k—~3.3kAutomated safety check: PassMIT
Agentmemory Recallrohitg00/agentmemory29k—~557Automated safety check: PassApache-2.0
Ast Grepccusage/ccusage19k—~296Automated safety check: PassCustom licence
Cognee Memory Recalltopoteretes/cognee32k—~2.6kAutomated safety check: PassApache-2.0

Similar skills

  • Recall

    cursor/plugins

    Official

    Reconstruct your recent working context from your own chat history, live state, and the shared record (user reports, prior fixes, incidents), then hand back a tight current-state brief.

    10k GitHub starsUsed in 7 repos~1.3k tokens
    Auto-check passed
  • ast-grep Structural Search

    code-yeongyu/oh-my-openagent

    Searches and rewrites code by syntax-tree shape across 25 languages with ast-grep, for codemods, structural queries and YAML lint rules, using a Python wrapper script.

    70k GitHub stars~3.3k tokensUpdated today
    DevelopmentAuto-check passed
  • Agentmemory Recall

    rohitg00/agentmemory

    Searches agentmemory for past observations, sessions and learnings with hybrid keyword, vector and graph search, and reports only what comes back.

    29k GitHub stars~557 tokensUpdated yesterday
    Agent WorkflowsAuto-check passed
  • Ast Grep

    ccusage/ccusage

    Guides ccusage structural code searches with ast-grep. An agent skill from ccusage/ccusage.

    19k GitHub stars~296 tokensUpdated today
    DevelopmentAuto-check passed
  • Cognee Memory Recall

    topoteretes/cognee

    Explains how to query cognee agent memory with recall(): how the search type is chosen, how to narrow a query to datasets, and what the returned results contain.

    32k GitHub stars~2.6k tokensUpdated today
    AI & LLM EngineeringAuto-check passed
  • Grep

    openakita/openakita

    Search file contents using regex pattern across directories.

    2k GitHub stars~296 tokensUpdated 14 days ago
    Auto-check passed

More from PhyAgentOS/PhyAgentOS-core

  • Clawhub

    PhyAgentOS/PhyAgentOS-core

    Search and install agent skills from ClawHub, the public skill registry.

    2.8k GitHub starsUsed in 3 repos~351 tokens
    Auto-check passed
  • Agent Mode

    PhyAgentOS/PhyAgentOS-core

    Unified tool for managing agent LLM modes (add, remove, update, list, switch).

    2.8k GitHub stars~711 tokensUpdated today
    Auto-check passed
  • Image

    PhyAgentOS/PhyAgentOS-core

    Unified tool for analyzing and displaying images (vision analysis and image display).

    2.8k GitHub stars~899 tokensUpdated today
    Auto-check passed
  • Cron

    PhyAgentOS/PhyAgentOS-core

    Schedule reminders and recurring tasks.

    2.8k GitHub starsUsed in 2 repos~377 tokens
    Auto-check passed

Questions about Memory

What does Memory do?

Two-layer memory system with grep-based recall. An agent skill from PhyAgentOS/PhyAgentOS-core. Memory is an agent skill from PhyAgentOS/PhyAgentOS-core. Two-layer memory system with grep-based recall.

How do I install Memory in Claude Code?

Run `npx skills add PhyAgentOS/PhyAgentOS-core --skill memory -a claude-code`. Or copy the skill folder (PhyAgentOS/skills/memory in PhyAgentOS/PhyAgentOS-core) into .claude/skills/memory in your project. Claude Code loads it when a task matches its description.

How do I install Memory in Codex?

Run `npx skills add PhyAgentOS/PhyAgentOS-core --skill memory -a codex`. Or copy the skill folder (PhyAgentOS/skills/memory in PhyAgentOS/PhyAgentOS-core) into .agents/skills/memory in your project. Codex loads it when a task matches its description.

Can I use Memory in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add PhyAgentOS/PhyAgentOS-core --skill memory -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/memory, .gemini/skills/memory, .github/skills/memory and .opencode/skills/memory in your project.

What does Memory need to run?

Going by SKILL.md and its folder, Memory needs the command-line tools its instructions call (python). Our summary lists: Python 3.

Does Memory access the network?

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.

Is Memory safe to install?

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. Review the folder before installing.

What licence does Memory use?

Memory is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Memory use?

About 365 tokens (SKILL.md is roughly 1.5k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Memory?

Skills that share tags, products or a category with Memory: Recall (cursor/plugins, 10k stars), ast-grep Structural Search (code-yeongyu/oh-my-openagent, 70k stars), Agentmemory Recall (rohitg00/agentmemory, 29k stars) and Ast Grep (ccusage/ccusage, 19k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Memory?

PhyAgentOS (a GitHub organization) maintains it in PhyAgentOS/PhyAgentOS-core, which has 2,758 GitHub stars. The repository holds 5 skills in this directory. The repository was last updated on October 8, 2026.

Source: PhyAgentOS/PhyAgentOS-core on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.