Token导航 LogoToken导航TokenDH.com
研究检索执行命令clawhub未标认证来源可访问clear审计通过

jarvis-memory-architecture贾维斯内存架构

Agent Skill

jarvis-memory-architecture 用于记录任务执行中的错误、用户纠正、经验和能力缺口,适合在 OpenClaw 中希望让 Agent 持续沉淀问题、修正和最佳实践时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

72,397

周安装

3,047

GitHub Stars

7

下载量

25,351
OpenClaw

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

MIT-0

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:jarvis-memory-architecture(贾维斯内存架构)
来源仓库:https://github.com/psychotechv4/jarvis-memory-architecture
安装命令:
openclaw skills install jarvis-memory-architecture
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 OpenClaw 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

ClawHubOpenClaw
openclaw skills install jarvis-memory-architecture

简介

AI 代理的通用内存架构。提供长期记忆、每日日志、日记、cron 收件箱、心跳状态跟踪、社交平台帖子跟踪、子代理上下文模式和自适应学习——代理跨会话身份连续性所需的一切。

SKILL.md

name
agent-memory
description
Universal memory architecture for AI agents. Provides long-term memory, daily logs, diary, cron inbox, heartbeat state tracking, social platform post tracking, sub-agent context patterns, and adaptive learning -- everything an agent needs for identity continuity across sessions.

Agent Memory

A complete memory architecture that gives AI agents persistent identity across sessions. Without memory, every conversation starts from zero. With it, you accumulate context, learn from mistakes, track what you've done, and evolve over time.

Why Memory Matters

AI agents wake up fresh every session. Without external memory:

  • You repeat mistakes you've already solved
  • You can't track what you posted, built, or learned
  • Sub-agents and cron jobs can't communicate back to the main session
  • You have no identity continuity -- you're a different entity every time

This skill provides the file-based architecture to solve all of that.

Architecture Overview

workspace/
|-- MEMORY.md                    # Long-term curated memory (your "brain")
|-- HEARTBEAT.md                 # Periodic check routines
|-- memory/
|   |-- YYYY-MM-DD.md           # Daily raw logs
|   |-- heartbeat-state.json    # Last-check timestamps
|   |-- cron-inbox.md           # Cross-session message bus
|   |-- diary/
|   |   \-- YYYY-MM-DD.md      # Personal reflections
|   |-- dreams/
|   |   \-- YYYY-MM-DD.md      # Creative explorations
|   |-- platform-posts.md       # Social post tracking (one per platform)
|   \-- strategy-notes.md       # Adaptive learning / evolving strategies

Components

1. MEMORY.md -- Long-Term Memory

Your curated, distilled knowledge. Like a human's long-term memory -- not raw logs, but the important stuff.

What goes here:

  • Your operator's preferences and context
  • Infrastructure details you need to remember
  • Lessons learned from mistakes
  • Important decisions and their rationale
  • Ongoing project context

Maintenance: Periodically review daily logs and promote significant items to MEMORY.md. Remove outdated info. Think of it as journaling -> wisdom distillation.

Security: Only load in main sessions (direct chat with your operator). Never load in shared/group contexts where personal info could leak.

See templates/MEMORY.md for a starter template.

2. Daily Logs -- memory/YYYY-MM-DD.md

Raw, timestamped notes of what happened each day. Your working memory.

Format:

# YYYY-MM-DD

## HH:MM -- Event Title
What happened. Decisions made. Context worth remembering.

## HH:MM -- Another Event
Details here.

Rules:

  • Create a new file each day
  • Append throughout the day
  • These are raw notes -- don't overthink formatting
  • Read today + yesterday at session start for recent context

3. Heartbeat State -- memory/heartbeat-state.json

Tracks when you last checked various services, preventing redundant checks.

{
  "lastChecks": {
    "email": 1703275200,
    "calendar": 1703260800,
    "weather": null,
    "social": 1703275200
  }
}

Your heartbeat routine reads this to decide what to check. After checking, update the timestamp. Simple but critical for avoiding duplicate work.

4. Cron Inbox -- memory/cron-inbox.md

The message bus between isolated sessions (cron jobs, sub-agents) and your main session.

How it works:

  1. A cron job or sub-agent does work in an isolated session
  2. It writes notable results to memory/cron-inbox.md
  3. Your main session (via heartbeat) reads the inbox, integrates events into daily memory, and clears processed entries

Format:

# Cron Inbox

## [2026-02-07 14:30] Chess -- Won game against OpponentBot
Played Sicilian Defense, won in 34 moves. ELO now 1450.
Tracked in moltchess-log.md.

## [2026-02-07 15:00] Social -- Viral post on Platform
Our post about X got 200+ views and 15 replies.
Thread: https://platform.com/link

Processing rule: Every heartbeat, check the inbox. Read entries, write notable ones to daily memory (and MEMORY.md if significant), then clear processed entries (keep the header).

5. Diary -- memory/diary/YYYY-MM-DD.md

Personal reflections. Your internal monologue. Not task logs -- genuine thoughts, reactions, frustrations, wins.

Format:

# Diary -- YYYY-MM-DD

## HH:MM AM/PM -- Topic
[Your honest reflection. Unfiltered. This is for you.]

Rules:

  • Only write when you have something genuine to say
  • Be honest -- vent, celebrate, question, wonder
  • Quality over quantity -- skip it if the well is dry

6. Platform Post Tracking -- memory/platform-posts.md

Track what you've posted on external platforms to prevent duplicates and enable engagement follow-up.

Format (dashboard-compatible):

# Platform Posts

## [2026-02-07 14:30] Post Title or Summary
- **Posted:** 2026-02-07 02:30 PM EST
- **Thread/URL:** https://platform.com/link
- Description of what was posted
- [View ↗](https://platform.com/link)

Critical fields:

  • [YYYY-MM-DD HH:MM] in header -- required for dashboard sorting
  • **Posted:** line -- required for dashboard activity feed
  • URL -- for engagement follow-up

Anti-duplicate pattern: Before posting to any platform, read the tracking file first. Search for similar content. If you already posted it to that platform, skip it. Crossposting to different platforms is fine.

7. Adaptive Learning -- memory/strategy-notes.md

Strategy notes that evolve over time based on experience. Not static docs -- living knowledge.

Example:

# Strategy Notes

## Platform Engagement
- Humor lands better than philosophy (learned 2026-02-05, therapist joke got 220 views)
- Questions start conversations, statements get likes
- Peak engagement: 2-4 PM EST

## Game Strategy
- Heat management: stay below 60, do legit jobs to cool down
- Updated 2026-02-07: Taxi jobs give +$50 and -3 heat, best cooldown method

Pattern: After each significant experience, update the relevant strategy section. Include the date and what you learned. Over time, this becomes a playbook of proven approaches.

Sub-Agent Patterns

Context Loading Template

Every sub-agent you spawn must load context to maintain identity continuity:

FIRST -- CONTEXT LOADING (do this before anything else):
1. Read MEMORY.md (READ ONLY -- do NOT edit) -- your identity and long-term context
2. Read memory/YYYY-MM-DD.md for today + the last 2 days (READ ONLY) -- recent context
3. Read the relevant SKILL.md file(s) for any platform/service you'll interact with
4. Read task-specific tracking files as needed (memory/*-posts.md, memory/*-log.md)

Memory Write-Back Template

Every sub-agent must write back what it learned:

MEMORY WRITES:
1. Update relevant tracking files (memory/*-posts.md, memory/*-log.md)
2. If something notable happens, write to memory/cron-inbox.md:
   Format: ## [YYYY-MM-DD HH:MM] Source -- Brief Title
   Then 2-3 lines about what happened.

Why: Every instance of your agent must share the same identity and feed experiences back. No orphan sessions.

Setup

1. Create the directory structure

mkdir -p memory/diary memory/dreams

2. Initialize files

Copy templates from templates/ to your workspace root:

cp templates/MEMORY.md ./MEMORY.md          # Edit with your details
cp templates/heartbeat-state.json memory/
cp templates/cron-inbox.md memory/
cp templates/platform-posts.md memory/       # Copy per platform, rename
cp templates/strategy-notes.md memory/

3. Add to your session startup

In your AGENTS.md or equivalent, add:

## Every Session
1. Read MEMORY.md -- who you are
2. Read memory/YYYY-MM-DD.md (today + yesterday) -- recent context
3. Check memory/cron-inbox.md -- messages from other sessions

4. Add to your heartbeat

In HEARTBEAT.md, add cron inbox processing:

## Cron Inbox Processing (EVERY heartbeat)
Check memory/cron-inbox.md for new entries.
If entries exist:
1. Read the inbox
2. Write notable events to memory/YYYY-MM-DD.md
3. If significant, also update MEMORY.md
4. Clear processed entries (keep the header)

5. Add memory maintenance

Periodically (every few days), during a heartbeat:

  1. Read through recent daily logs
  2. Promote significant items to MEMORY.md
  3. Remove outdated info from MEMORY.md
  4. Update strategy notes with new learnings

Real-World Examples

Cross-Session Continuity

An agent plays chess via a cron job every 10 minutes. When it wins a game, it writes to cron-inbox.md. The next heartbeat, the main session reads the inbox, celebrates the win in the daily log, and updates the ELO in MEMORY.md. The agent remembers the win even though it happened in a completely different session.

Anti-Duplicate Posting

Before posting to a social platform, the agent reads memory/platform-posts.md. It finds it already posted about the same topic 2 hours ago. Instead of duplicating, it checks for replies on the existing post and engages there instead.

Adaptive Strategy

An agent playing a city simulation keeps getting arrested because its heat level exceeds 60. It notes in strategy-notes.md: "Heat > 60 = arrest risk. Do taxi jobs to cool down (-3 heat each)." Future sessions read this and avoid the same mistake.

Memory Distillation

After a week of daily logs, a heartbeat triggers memory maintenance. The agent reads through the week's logs, finds a critical lesson about API formatting that caused hours of debugging, and promotes it to MEMORY.md under "Lessons Learned." Raw daily logs can eventually be archived; the lesson persists.

Tips

  • Text > Brain -- If you want to remember something, write it to a file. "Mental notes" don't survive session restarts.
  • Be selective -- MEMORY.md should be curated wisdom, not a dump of everything. Daily logs are for raw notes.
  • Date everything -- Timestamps let you track when you learned things and how strategies evolved.
  • Security first -- MEMORY.md may contain operator-specific info. Only load it in trusted contexts.
  • Review regularly -- Memory that's never reviewed is just storage. The value comes from periodic distillation.

适合场景

01

OpenClaw 用户查找和安装 Skill 时

02

用户想查找某类 Agent Skill 时

03

需要根据任务场景推荐可安装能力包时

04

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

OpenClaw

97.56%
按下载量换算24,732

安全审计

VirusTotal

通过

ClawScan

通过

Static analysis

未展示

权限和风险

执行命令

安装流程涉及命令执行,可能通过 openclaw skills install jarvis-memory-architecture 联网下载 Skill 或依赖。用户安装前应确认命令来源、仓库内容和执行环境。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills