OpenParable
Skip to content
← Back to skills

Memtrace Continuous Memory

Agent Building
memtrace-continuous-memory

Memtrace Continuous Memory is an Agent Skill for agent building published in the syncable-dev/memtrace-public repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.

Keep the Memtrace index fresh while editing by watching a repo for live, incremental re-indexing. Use when the user asks to keep Memtrace fresh while editing, watch a repo, enable live or incremental indexing, set up always-on memory (meaning Memtrace index watching, not generic agent memory), or make just-saved source code queryable immediately. Do not fall back to repeated Grep or manual rescans; configure Memtrace watching.

View on GitHub ↗
QUICK START

How to use this skill

Bring this guide into your coding agent with a prompt tailored to the tool you use.

  1. Open your project in Codex.
  2. Copy and paste the prompt below.
  3. Review files and risks before approving any action.
Prompt to paste
Inspect the Agent Skill at https://github.com/syncable-dev/memtrace-public/blob/HEAD/plugins/memtrace-skills/skills/memtrace-continuous-memory/SKILL.md and all supporting files. Report provenance, permissions, scripts, dependencies, and security risks. Propose an exact installation into .agents/skills/memtrace-continuous-memory, but wait for my approval before writing files or running scripts.

Copying this prompt does not install or run the skill. Review third-party files before use.

Overview

Keep the knowledge graph live while editing. watch_directory triggers incremental re-indexing on file saves (~80 ms typical latency after debounce).

Required parameters — watch_directory

ParamRequiredNotes
pathyesAbsolute directory path
repo_idyesMust already be indexed
branchnodefault "main"
{ "path": "/abs/path/to/repo", "repo_id": "memdb" }

Full parameter spec for every Memtrace tool: references/mcp-parameters.md (bundled at the memtrace-skills plugin root).

Steps

1. Confirm indexed

list_indexed_repositories()

Run index_directory first if missing (poll check_job_status; stop after ~5 minutes and report the job id — see memtrace-index).

2. Start watching

See JSON above. Returns immediately; watcher runs in background.

3. Confirm active watches

list_watched_paths()

Response shape: see Output.

4. Edit normally

Next find_symbol / get_symbol_context call sees saved changes after debounce (~500 ms) + incremental persist (~80 ms).

5. Stop watching (kill switch)

unwatch_directory:

{ "path": "/abs/path/to/repo" }

Idempotent — unwatching an already-unwatched path is a no-op.

Latency expectations

StageTypical
Debounce500 ms (MCP schema)
Incremental persist~80 ms
Save → queryable~80–150 ms after debounce

Output

watch_directory returns an immediate acknowledgment; the watcher runs in the background. list_watched_paths returns:

{
  "watches": [
    { "path": "...", "repo_id": "...", "branch": "...", "started_at": "...", "origin": "..." }
  ],
  "count": 1
}

There is no persist_ms field in this response.

Common Mistakes

MistakeReality
watch_directory(path=...) without repo_idBoth required
Watching unindexed repoIndex first
Expecting persist_ms from list_watched_pathsField not in MCP response
Debounce "50 ms"Schema documents 500 ms