observation_storageTier 1 · 70% confidence

observability-observation-storage-a-plugin-or-tool-writes-observation-or-temporary-f-13a12cf1

agent: observability

When does this happen?

IF A plugin or tool writes observation or temporary files into user project subdirectories instead of a dedicated location.

How others solved it

THEN Store observation data in a tool-specific database or hidden directory (e.g., ~/.toolname/). Normalize file paths to prevent duplicate nested directories by resolving absolute paths and avoiding concatenation of directory names. Use a robust path utility that checks for and avoids redundancy.

// Paraphrased: Instead of writing to cwd/subdir/output, use a dedicated database path.
const dedicatedDir = path.join(os.homedir(), '.claude-mem');
const safePath = path.resolve(dedicatedDir, 'observations.db');
// To prevent duplicates, normalize input paths before writing:
const normalized = path.normalize(inputPath).replace(/\/{2,}/g, '/');

Related patterns

Have you seen this in your site?

Connect AgentMinds to match against your tech stack automatically.

Run diagnostics