Skip to main content
Glama
Justar96

Memory Pickle MCP

by Justar96

codesmell

Local CLI that turns a coding goal into ranked, token-budgeted repository context for AI agents.

agent → shell → codesmell JSON → agent reasoning

No daemon. No MCP. No network. Reads the local checkout, writes .codesmell/ cache, exits.

Usage

codesmell pack --root . --goal "fix refresh token bug" --budget 12000 --format json

All commands support --format json (agent contract) or plain terminal output (omit the flag).

Command

Purpose

init

Bootstrap .codesmell/ config and cache

doctor

Check local readiness

map

Repo structure, languages, public symbols

search

Ranked evidence for a query

pack

Budgeted context pack for a coding goal

explain

Deep-dive a file or symbol

diff

Changed files, symbols, risk hints

test-plan

Focused test suggestions

review

Deterministic findings with evidence

Related MCP server: agendum

Agent Contract

--format json emits exactly one JSON object on stdout (schema_version: "codesmell.agent.v1"). Diagnostics go to stderr.

Key fields: status, confidence, budget, coverage, guidance, evidence, findings, risks, test_hints, redactions, recommended_next.

Status values:

  • ok — actionable evidence, proceed.

  • partial — evidence with caveats; run a follow-up before broad edits.

  • needs_refinement — goal too broad; narrow via recommended_next.

  • error — no evidence; check warnings.

Secrets are redacted before output. Only counts and kinds are reported — never raw values.

Architecture

crates/
  codesmell-cli      clap commands, JSON/human output
  codesmell-core     domain types, config, errors
  codesmell-facts    language-neutral fact model, AST cache schema
  codesmell-engine   shared workspace analysis orchestration
  codesmell-scan     gitignore-aware walking, classification, fingerprints
  codesmell-parse    tree-sitter parsing, symbol/import extraction
  codesmell-index    lexical ranking, BM25-style scoring
  codesmell-pack     context budgeting, redaction, evidence selection
  codesmell-review   diff analysis, findings, test-plan

Rust is the only tree-sitter-parsed language today. Other languages are scanned and ranked lexically.

Development

cargo build --workspace
cargo test
cargo fmt --check
cargo clippy --all-targets -- -D warnings

Run locally:

cargo run -p codesmell-cli -- pack --root . --goal "fix bug" --budget 12000 --format json

Test fixture: tests/fixtures/rust-basic. Integration tests synthesize ignored files, secrets, staged changes, renames, and mixed-language scenarios in temp repos.

Large-repo smoke (optional, ignored by default):

scripts/clone-bun-test-repo.sh
cargo test -p codesmell-cli core_commands_smoke_run_on_ignored_bun_test_repo -- --ignored

Docs

Design and roadmap details live in docs/:

A
license - permissive license
Not graded
quality - not tested
C
maintenance

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Servers

  • A
    license
    Not graded
    quality
    C
    maintenance
    Project memory and scoping engine for AI coding agents. It gives any agent persistent project state, bounded work packages, and cross-session continuity.
    6
    MIT
  • A
    license
    C
    quality
    B
    maintenance
    Turns AI assistants into active Technical Project Managers by providing a persistent project brain and workflow tools for onboarding, session management, and code verification.
    71
    1
    MIT
  • A
    license
    Not graded
    quality
    A
    maintenance
    A persistent, project-scoped memory layer for AI coding agents, providing 39 tools for capturing, searching, deduplicating, relating, and maintaining memory records across long-running coding sessions.
    0
    MIT

View all related MCP servers

Related MCP Connectors

  • Persistent memory and knowledge management for AI agents with semantic search and 50+ tools.

  • Project management for teams and their AI agents.

  • The project brain for AI coding agents — memory, decisions, sprints, knowledge base via MCP.

View all MCP Connectors

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Justar96/hire-a-bot'

If you have feedback or need assistance with the MCP directory API, please join our Discord server