정보
Memex는 에이전트를 위한 교차 세션 메모리를 제공하여 6계층 재구성 트레일을 통해 사실과 추론 패턴을 지속시킵니다. 개발자는 세션 시작 시 이전 컨텍스트를 로드하고, 세션 중간에 저장된 관찰 결과를 검색하며, 과거 결정을 재추론하지 않도록 새로운 통찰력을 즉시 기록하는 데 이를 사용해야 합니다.
빠른 설치
Claude Code
추천npx skills add pjt222/agent-almanac -a claude-code/plugin add https://github.com/pjt222/agent-almanacgit clone https://github.com/pjt222/agent-almanac.git ~/.claude/skills/memexClaude Code에서 이 명령을 복사하여 붙여넣어 스킬을 설치하세요
문서
Memex
Agent-native shared memory. Postgres + pgvector index over a canonical markdown store, exposed over MCP. Lives at https://github.com/pjt222/memex.
When to Use
- At session start, always. Call
mcp__memex__recent_observationsbefore substantive work. Loads the bias-log from prior sessions. - Mid-session, when about to make a non-trivial decision. Call
mcp__memex__search "<topic>"to check whether the project has converged on this before. - Immediately when a bias surfaces in your own reasoning. Log an
observationviamcp__memex__addwhile the context is fresh. Do NOT wait for session end. - When you catch yourself re-deriving something. Re-derivation IS the signal that the trail is incomplete; capture the gap as an observation and link to whatever you re-derived.
Inputs
- Required: A registered
memexMCP server in the active harness. Verify withclaude mcp list | grep memex(Claude Code) or the equivalent in your harness. - Required:
$MEMEX_PG_URLand$MEMEX_STORE_PATHin the server's environment. - Optional:
$MEMEX_EMBED_PROVIDER=voyage+$VOYAGE_API_KEYfor semantic / hybrid search. Without these,mode=keywordstill works.
Procedure
Step 1: Load the bias-log
Before any substantive work in a fresh session, call:
mcp__memex__recent_observations(limit=20)
Read every returned entry. Each one is a pattern the agent (you, or a prior instance) noticed in its own reasoning. Recurring patterns are the most valuable; transient ones are still cheap to skim.
Expected: 5–30 observations covering biases (availability, confirmation, anchoring), pace tells (rushing past confusing measurements), and verification gaps (trusting summaries over source truth).
On failure: If the call fails with "tool not found", the MCP
server isn't registered; run adapters/claude-code/install.sh (or
the per-harness equivalent) from the memex repo first.
Step 2: Search before deriving
When a non-trivial decision approaches (architectural, naming, algorithmic), search first:
mcp__memex__search(query="<topic>", mode="hybrid", k=10)
For exact-wording lookups use mode=keyword. For purely conceptual
queries (topic unlikely to share tokens with indexed text) use
mode=semantic. Optional node_type filter restricts to one type
(e.g. observation).
Expected: 0–10 hits. Even 0 hits is useful — it tells you the trail doesn't cover this decision, so your present reasoning becomes the canonical record.
On failure: If search errors (server down or db unreachable),
fall back to the CLI substitute memex query "<topic>" --node-type observation (defaults to hybrid, which honors the type filter via
its semantic leg). If it returns 0 hits on a topic that clearly should
have coverage, treat the gap as a signal and proceed to Step 4.
Step 3: Log observations mid-session
When you notice a bias in your own reasoning:
mcp__memex__add(
node_type="observation",
title="<short bias name>",
body="<context, mitigation, origin date>",
tags=["bias-log", "vipassana"]
)
Body convention (mirroring docs/OBSERVATIONS.md in the memex repo;
treat that file as the source of truth — it is read by an extractor):
<Description of the bias as it surfaced>. Mitigation: <what to do next time>. Origin: <date> + <context>.
Expected: the add call returns the new node's id (the CLI
equivalent memex add prints <uuid>\t<store-path>) — confirmation
the observation is in the canonical store.
On failure: rmcp dispatches tool calls concurrently — if add
races a dependent call (add → link), await its response first. If
the db is unreachable the write is lost; re-issue once the server is
back, or fall back to appending the entry to docs/OBSERVATIONS.md by
hand (Step 4).
Step 4: Surface unknowns
If recent_observations is empty (fresh memex install), or search
returns nothing on a topic that clearly should have coverage, that's a
documentary trail gap. Close it by appending to the canonical markdown
and re-extracting, or by depositing directly via the MCP tool:
# Backfill path (run from the memex repo root):
$EDITOR docs/OBSERVATIONS.md # append under "## Vipassana observations"
memex extract meditate-vipassana --registry extractors/sources.yml
Or use mcp__memex__add (Step 3) during the session to deposit the
entry into the canonical store on the spot, without touching the file.
Expected: after extract, the new observation is queryable —
memex query "<its topic>" --node-type observation returns it (the
observation-node count grows by one).
On failure: extract is cwd-sensitive — run it from the memex
repo root or pass --registry. If it reports "no new sources", the
content hash already matched; confirm the append actually landed in
docs/OBSERVATIONS.md.
Validation
-
mcp__memex__recent_observationsreturns ≥ 0 entries (call succeeded, not "tool not found") - Each substantive decision in the session is preceded by either
a
mcp__memex__searchcall or an explicit "no prior context to check" note - New biases noticed during the session are logged via
mcp__memex__addbefore session end, not silently dropped - At session end, the agent has either committed new bias entries
to
docs/OBSERVATIONS.mdor confirmed there are none worth logging
Common Pitfalls
- Skipping the session-start call. The single highest-value use of memex. Skipping it is the strongest tell that the agent is treating each session as starting from scratch.
- Logging at session end only. Biases caught at session end are reconstructed from memory and lose specificity. Log them immediately when they surface.
- Logging an observation that's actually a concept. Bias-log
entries are about the agent's own reasoning patterns. Reusable
architectural facts belong in
conceptnodes. - Trusting search results over reading them. A title that
matches your query isn't proof the body answers it. Fetch the
full body with
mcp__memex__getwhen in doubt. - Pipelining dependent MCP calls in one session. rmcp dispatches tool calls concurrently. If a later call depends on a write from an earlier call (add → link → neighbors), await each response before issuing the next.
Related Skills
memex-init— session-start ritual that wires memex into a fresh session; run it before this umbrella's Step 1 to register the server and load the bias-log.memex-observe— the focused wrapper for Step 3; use it when the task is purely "log a bias I just noticed" rather than the full umbrella flow.memex-wrap— session-close counterpart; confirms observations are logged (deferring the actual write tomemex-observe) and writes the continuation trail this skill reads next session.memex-verify— pre-commit gate for the memex repo itself; run it before committing changes to memex (cargo fmt/clippy/test).breathe— pair with memex at session boundaries: breathe to release prior-session residue, thenrecent_observationsto load the next-session priors.meditate— full reflective close; outputs new observations worth logging viamcp__memex__add.read-continue-here— complementary; loads project-state pickup doc. Memex loads cross-project bias-log; CONTINUE_HERE loads project-specific milestone state.
GitHub 저장소
자주 묻는 질문
memex Skill이란 무엇인가요?
memex은(는) pjt222이(가) 만든 Claude Skill입니다. Skill은 Claude가 필요할 때 불러오는 지침과 리소스를 묶어 추가 프롬프트 없이 memex 관련 작업을 수행할 수 있게 합니다.
memex은(는) 어떻게 설치하나요?
이 페이지의 설치 명령을 사용하세요. memex을(를) Claude Code 플러그인으로 추가하거나 저장소를 skills 디렉터리에 복제한 다음 Claude를 다시 시작해 Skill을 불러옵니다.
memex은(는) 어떤 카테고리에 속하나요?
memex은(는) 디자인 카테고리에 속합니다.
memex은(는) 무료로 사용할 수 있나요?
네. memex은(는) AIMCP에 등록되어 있으며 무료로 설치할 수 있습니다.
연관 스킬
executing-plans 스킬은 검토 체크포인트가 포함된 통제된 배치로 실행할 완전한 구현 계획이 있을 때 사용합니다. 이 스킬은 계획을 불러와 비판적으로 검토한 후, 소규모 배치(기본값 3개 작업)로 작업을 실행하면서 각 배치 사이에 진행 상황을 아키텍트 검토를 위해 보고합니다. 이를 통해 내재된 품질 관리 체크포인트를 갖춘 체계적인 구현이 보장됩니다.
이 스킬은 코드 변경 사항을 요구 사항에 따라 분석하기 위해 코드 리뷰어 하위 에이전트를 호출합니다. 작업 완료 후, 주요 기능 구현 후, 또는 메인 브랜치에 병합하기 전에 사용해야 합니다. 이 리뷰는 현재 구현체와 원래 계획을 비교하여 문제를 조기에 발견하는 데 도움이 됩니다.
이 스킬은 개발자들이 HTTP, stdio 또는 SSE 전송 방식을 통해 MCP 서버를 Claude Code에 연결하는 포괄적인 가이드를 제공합니다. GitHub, Notion 및 사용자 정의 API와 같은 외부 서비스를 통합하기 위한 설치, 구성, 인증 및 보안을 다룹니다. MCP 통합 설정, 외부 도구 구성 또는 Claude의 모델 컨텍스트 프로토콜 작업 시 활용하세요.
이 스킬은 작업 분석을 기반으로 개발자가 Claude Code 웹 인터페이스와 CLI 인터페이스 중 선택할 수 있도록 돕고, 두 환경 간 원활한 세션 텔레포트를 가능하게 합니다. 웹, CLI 또는 모바일 환경 전환 시 세션 상태와 컨텍스트를 관리하여 워크플로를 최적화합니다. 다양한 단계에서 서로 다른 도구가 필요한 복잡한 프로젝트에 사용하세요.
