Skip to content

code-analysis hook does not detect mnemex status output format #15

Description

@YamadaHideki

Problem

code-analysis@mag-claude-plugins v3.2.2 does not detect indexed projects when claudemem is backed by mnemex.

The hook checks claudemem status output with:

status.match(/(\d+)\s+(chunks|symbols)/)

But current mnemex/claudemem status outputs key-value format:

exists=true
files=20
chunks=355
languages=python,json,markdown
model=ollama/qwen3-embedding:8b
last_updated=2026-05-07T10:35:25.198Z

Because of this, the hook treats the project as not indexed and falls back to native Grep/Glob/Read instead of enriching search with mnemex context.

Expected

The hook should recognize both status output formats:

355 chunks
chunks=355
symbols=355

Actual

code-analysis behaves as if the project is not indexed, even though claudemem status reports existing chunks.

Environment

  • code-analysis@mag-claude-plugins: 3.2.2
  • mnemex: 0.30.1
  • claudemem command is available and backed by mnemex/symlink
  • Claude Code plugin scope: user

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions