eclipse-score/mcp-servers/maintain-working-memory

Claude Code and agent skill by eclipse-score/mcp-servers

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Use context-discipline MCP tools to track goals, assumptions, and decisions during agentic sessions

Install

npx vskill@latest install eclipse-score/mcp-servers/maintain-working-memory

SKILL.md

Maintain Working Memory Skill

Use the context-discipline MCP tools to track your session explicitly without custom YAML maintenance.

Simple, self-contained implementation. Works standalone. Session records and durable context overlays are stored locally.

When to invoke

  • Starting a session — Initialize working memory with goals
  • After tool calls — Record compressed findings (1-2 sentences)
  • Before major decisions — Check unverified assumptions and stale artifacts
  • When making decisions — Record with reversibility tracking
  • Regularly — Update plan and coverage as you learn

How to use

Setup: Initialize working memory
python
wm.initialize_session(
goal="Refactor auth module to async",
subgoals=[
"Identify all auth functions",
"Map dependencies on sync calls",
"Implement async versions",
"Update call sites",
],
assumptions=["auth.py is the only auth module"],
)
# Returns {"session_id": "...", "setup": {"ok": ..., ...}}
Record compressed findings
python
# After each tool call, record (COMPRESS to 1-2 sentences)
graph_result = wm.query_graph("All functions in lib/auth.py")
# Returns {"query": "...", "matches": [...], "setup": {...}}
Track assumptions
python
# Add assumptions (especially ones to verify)
wm.initialize_session(
goal="Track assumptions",
subgoals=[],
assumptions={
"auth.py is only auth module": "high",
"No external code imports auth": "medium",
},
)
# Before risky decisions, check for unverified ones
unverified = wm.get_unverified_assumptions()
if unverified:
print(f"WARNING: {len(unverified)} unverified assumptions")
for a in unverified:
if a.confidence in ["low", "medium"]:
print(
f" - {a.key} (confidence: {a.confidence}) - VERIFY BEFORE PROCEEDING"
)
Record decisions
python
# Document what you decide and why (with reversibility)
decision_result = wm.record_decision(
decision="Implement async in auth.py first, then update callers",
reason=[
"Minimizes risk of partial refactoring",
"Only 3 call sites to update",
"Can test refactored functions independently",
],
reversible=True,
grounded_nodes=["auth.py", "auth_module"],
)
# Returns {"unresolved_nodes": []}
# Grounded nodes accept repo-relative source paths or canonical graph node IDs.
# Non-empty unresolved_nodes entries do not contribute to retrieval; restate
# them as real paths or graph IDs.
Update progress
python
# After each major step, update your plan
wm.record_outcome(
task="Map all call sites of authenticate()",
verdict="pass",
coverage=0.35,
surfaced_nodes=["authenticate"],
missing_nodes=[],
)
Review before major decisions
python
# Get current state
state = wm.get_working_memory()
print(f"Entries: {len(state)}")
# Check for potential issues
unverified = wm.get_unverified_assumptions()
if unverified:
print(f"WARNING: {len(unverified)} unverified assumptions")

Current API

The six MCP tools are the complete current API: initialize_session, query_graph, record_decision, record_outcome, get_working_memory, and get_unverified_assumptions. Working memory is held for the running server session; collaboration records are persisted to repository-keyed user state under $XDG_STATE_HOME/score-agent/ or ~/.local/state/score-agent/ by default, without changing the consumer repository.

Automatic Benefits

  • ✅ Zero custom guardrail code — Reuses tested infrastructure
  • ✅ Immutable audit trail — JSONL append-only logs
  • ✅ Fast queries — O(1) lookups via session index
  • ✅ Importance/coverage filtering — Automatic signal vs. noise detection
  • ✅ No maintenance burden — Simple Python class, no YAML to maintain
  • ✅ Intersession retrieval — Reuses relevant reasoning from prior sessions

Security

  • Security scanPassed, 90 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

7-day trend score
0

Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/eclipse-score/mcp-servers/maintain-working-memory/badge)](https://verified-skill.com/skills/eclipse-score/mcp-servers/maintain-working-memory)

Something wrong with this skill or its page? Tell us.