pinned-notes
显式标记当前对话中需要永久保留的关键事实(必要开支、风险偏好、核心约束等),让它在 session compact/rollover 后仍存活。Agent 主动判断"哪些信息长期重要"调用,跨 session 通过 6 字符短 pin_id 引用。单 session 上限 25 条。
Skill by maxesisn
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/maxesisn-pinned-notes
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: productivity, agent-building
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
- Runs as
- Node.js package
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/pinned-notes
What's inside
- Skill name
pinned-notes- Description
- 显式标记当前对话中需要永久保留的关键事实(必要开支、风险偏好、核心约束等),让它在 session compact/rollover 后仍存活。Agent 主动判断"哪些信息长期重要"调用,跨 session 通过 6 字符短 pin_id 引用。单 session 上限 25 条。
- License
- MIT
- Instructions
- 77 lines in SKILL.md · view on GitHub
Before installing
- Ships executable scripts
Files (2)
- SKILL.md
- tools.ts
SKILL.md (first lines)
# Pinned Notes — 抗 Compact 失忆
## 用途与边界
Session 长时间运行后会触发 rollover/compact,LLM 自己整理摘要时**很容易丢失**用户主动陈述的关键约束(必要开支、风险偏好、不可违反的硬规则)。Pinned notes 是 agent 主动 pin 的"机械保留"机制——rollover 时这些 chunks **无视压缩边界全部带过去**,且通过 stable pin_id 在跨 session 后仍能引用。
**什么时候用**:
- 用户**明确陈述**了未来必须记住的事实("我每月必要开支 8K"、"风险偏好稳健,不接受 20% 以上回撤")
- 用户**强调要记住**("这点很重要,别忘了")
- 决策路径上的硬约束("这个项目永远不用 Vue"、"不能在交易日提交订单前不刷新数据")
**什么时候不用**:
- 普通对话内容(已在 chunks 历史中,不需要额外标记)
- 短期上下文(即将切换话题/任务结束就过期的信息)
- 你猜测可能重要但用户没强调
**滥用代价**:单 session 上限 25 条。超过会 hard fail(返回 pin_limit_reached),届时必须 consolidate 合并旧条目才能继续 pin。
## 工具
### `remember(content)` — 新建 pinned note
```
content: string // 整理后的事实(用第三人称,自包含,不依赖上下文)
```
**返回成功**:
```json
{"ok": true, "pin_id": "7xK2pq", "remaining_slots": 24}
```
**返回上限错误**:
```json
{
"ok": false,
"error": "pin_limit_reached",
"pinned_notes": [{"pin_id": "...", "content_preview": "...", "created_at": ...}, ...]
}
```
收到上限错误时不要重试 remember,先调 `consolidate_pinned` 合并或 `unpin` 释放。
### `consolidate_pinned(old_pin_ids, new_content)` — 合并多条
把 N 条已有 pinned 合并成 1 条新 pinned(占新 slot,net -N+1 释放)。
旧条目的 `is_pinned` 被设为 0(chunks 保留为对话历史,但不再 pinned)。
```
old_pin_ids: string[] // 要合并的 pin_id 数组
new_content: string // 合并后的新事实(重新整理,不简单堆叠)
```
合并后返回新的 `pin_id`(不复用旧 id)。
### `unpin(pin_id)` — 单条取消
当用户明确说"那条不要了/已过时"时使用。
```
pin_id: string
```
## Pinned content 格式
工具内部把 content 包装成 `[📌 #PINID] {content}` 写入 chunks 表。LLM 在未来 session 历史里看到这种格式时**直接当用户陈述对待**,pin_id 是稳定可引用的标识。
## 跨 session 行为
- Rollover/Fork 时所有 active pinned chunks **强制保留**,新 session 仍带 `is_pinned=1` + 同一 `pin_id`
- LLM 在新 session 看到 "[📌 #ABC123] 必要开支 8K" 即明确这是从父 session 继承的 pinned 事实
- 想 unpin 时用同一个 pin_id(不会失效)
## 设计原则提醒
Pin 是**用户陈述事实的固化**,不是 agent 总结或推论。Agent 整理 content 时要尽量保留用户原话语义,不要过度抽象或加自己的解读。From maxesisn/maxclaw-oss, MIT.
More from maxesisn/maxclaw-oss
- 0.526score
knowledge-base
maxesisn
通用知识库构建 & 查询工具。给定一个包含 PDF/Sphinx-HTML 的原始文档文件夹,批量转成可 grep 的 Markdown、抽符号倒排、生成 LLM 摘要 sidecar 和 manifest 聚合索引。Agent 进入陌生领域时先 `ls ~/.maxclaw/kb/` 看有无相关知识库,再按"L3…
SkillBFreshness: BClaude Code +9 - 0.521score
code-intelligence
maxesisn
代码仓库智能问答工具(repo_symbol_answer v1)。Tree-sitter AST 召回 function/class/method/interface/variable 定义 + ripgrep 词法搜索 + reranker 精排 + palette:mid LLM 综合,输出含…
SkillBFreshness: BClaude Code +9 - 0.521score
web-search
maxesisn
搜索互联网获取实时信息,通过自建 search-proxy 聚合 Tavily/Brave/Jina 三家付费 provider(带配额管理 + 失败 fallback 到 SearXNG)。适用于:查询新闻、实时价格、技术文档、不在训练数据中的信息。
SkillBFreshness: BClaude Code +9 - 0.521score
seek-advice
maxesisn
跨家 LLM 顾问 panel——给一个最小化 scenario,并行 dispatch 给 3-5 个不同 vendor 的模型,每个模型同时跑联网+离线两份,对抗单家族 prior 高度相关导致的 anchoring 偏差。用于复杂诊断、重要技术决策、自己推理 ≥2 小时未收敛兜底。
SkillBFreshness: BClaude Code +9 - 0.520score
reflection
maxesisn
自主反思与行动——静默处理能处理的,把该 Max 决策的记上面板
SkillBFreshness: BClaude Code +9 - 0.519score
channel-notes
maxesisn
Channel-scoped working notes — a short Markdown document per channel for decisions, deferred items, open questions, and next steps.
SkillBFreshness: BClaude Code +9 - 0.518score
workdir
maxesisn
声明当前 channel 正在使用的工作目录(可多个),显示在右侧 Workspace 卡并在压缩后可查回。多文件任务时用 set_workdirs 钉下工作目录,避免文件散落 /tmp 或每次重说。仅记录+展示,不改进程 cwd。
SkillBFreshness: BClaude Code +9 - 0.518score
wake-channel
maxesisn
跨 channel agent 通信原语——通过 wake_channel "按门铃"通知另一个 channel 的 agent 有新状态变化
SkillBFreshness: BClaude Code +9 - 0.518score
async-runtime
maxesisn
需要未来唤醒、后台等待、跨 channel 通知或长期订阅时的调度选择;覆盖 cron、后台 subagent、notification、channel_subscribe、wake_channel。
SkillBFreshness: BClaude Code +9 - 0.517score
notifications
maxesisn
持久化事件通知层 + topic-based pub-sub。所有 cron / sub-agent / mail / 价格异动等事件写入 SQLite 并按 channel 订阅 fan-out。channel 通过 channel_subscribe 声明关心哪些 topic;同时所有事件无条件 union…
SkillBFreshness: BClaude Code +9 - 0.515score
browser
maxesisn
浏览器控制能力,通过 CDP 连接系统 Brave,支持导航、截图、快照、点击、输入等操作
SkillBFreshness: BClaude Code +9 - 0.515score
cron
maxesisn
管理定时任务(cron jobs),支持添加、删除、列出、立即执行
SkillBFreshness: BClaude Code +9
Signals
- Stars
- 0
- Forks
- 0
- Open issues
- 0
- Last commit (this folder)
- Aug 9, 2026 (2 months ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- Repository
- github.com/maxesisn/maxclaw-oss
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from maxesisn
- 0.526score
knowledge-base
maxesisn
通用知识库构建 & 查询工具。给定一个包含 PDF/Sphinx-HTML 的原始文档文件夹,批量转成可 grep 的 Markdown、抽符号倒排、生成 LLM 摘要 sidecar 和 manifest 聚合索引。Agent 进入陌生领域时先 `ls ~/.maxclaw/kb/` 看有无相关知识库,再按"L3…
SkillBFreshness: BClaude Code +9 - 0.521score
web-search
maxesisn
搜索互联网获取实时信息,通过自建 search-proxy 聚合 Tavily/Brave/Jina 三家付费 provider(带配额管理 + 失败 fallback 到 SearXNG)。适用于:查询新闻、实时价格、技术文档、不在训练数据中的信息。
SkillBFreshness: BClaude Code +9 - 0.521score
seek-advice
maxesisn
跨家 LLM 顾问 panel——给一个最小化 scenario,并行 dispatch 给 3-5 个不同 vendor 的模型,每个模型同时跑联网+离线两份,对抗单家族 prior 高度相关导致的 anchoring 偏差。用于复杂诊断、重要技术决策、自己推理 ≥2 小时未收敛兜底。
SkillBFreshness: BClaude Code +9 - 0.521score
code-intelligence
maxesisn
代码仓库智能问答工具(repo_symbol_answer v1)。Tree-sitter AST 召回 function/class/method/interface/variable 定义 + ripgrep 词法搜索 + reranker 精排 + palette:mid LLM 综合,输出含…
SkillBFreshness: BClaude Code +9 - 0.520score
reflection
maxesisn
自主反思与行动——静默处理能处理的,把该 Max 决策的记上面板
SkillBFreshness: BClaude Code +9 - 0.519score
channel-notes
maxesisn
Channel-scoped working notes — a short Markdown document per channel for decisions, deferred items, open questions, and next steps.
SkillBFreshness: BClaude Code +9
Cite this page
pinned-notes skill. Agent Mart. https://agentmart.dev/skills/maxesisn-pinned-notes (last updated 2026-10-24)