From 2163f1c199f108b90cc385e1daaa378a61591678 Mon Sep 17 00:00:00 2001 From: geobelsky Date: Wed, 29 Apr 2026 14:59:15 +0000 Subject: [PATCH] docs(cli): include config get/set + reindex + --version in usage() MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The new commands shipped in v0.5.0 (`axme-code config get/set context.mode`, `axme-code reindex`, plus the --version / -v flag) were present in the implementation but missing from the help output, so users running `axme-code help` only saw the v0.2.x command list. Adds a dedicated section for the search-mode opt-in flow with a one-line description of what `config set context.mode search` does (install runtime, build embeddings index, rollback on failure) so the help is self-explanatory without forcing a trip to the README. Discovered when the user asked "почему её нет в axme-code help?" right after running v0.5.0. Co-Authored-By: Claude Opus 4.7 (1M context) --- src/cli.ts | 34 +++++++++++++++++++++++----------- 1 file changed, 23 insertions(+), 11 deletions(-) diff --git a/src/cli.ts b/src/cli.ts index 64bb2e8..2f81492 100644 --- a/src/cli.ts +++ b/src/cli.ts @@ -320,17 +320,29 @@ function usage(): void { console.log(`AXME Code - Persistent memory, decisions, and safety guardrails for Claude Code Usage: - axme-code setup [path] [--force] Initialize project (LLM scan + .mcp.json + CLAUDE.md) - axme-code serve Start MCP server (stdio transport) - axme-code status [path] Show project status - axme-code auth Re-detect and choose auth mode (subscription/api_key) - axme-code auth status Show current auth mode + detected options - axme-code auth use Set auth mode non-interactively - axme-code cleanup legacy-artifacts [--dry-run] Remove pre-PR#7 sessions/logs - axme-code cleanup decisions-normalize [--dry-run] Add status:active to decisions - axme-code audit-kb [path] [--all-repos] KB audit: dedup, conflicts, compaction - axme-code stats [path] Worklog statistics (sessions, costs, safety blocks) - axme-code help Show this help + axme-code setup [path] [--force] Initialize project (LLM scan + .mcp.json + CLAUDE.md) + axme-code serve Start MCP server (stdio transport) + axme-code status [path] Show project status + axme-code --version | -v Print the installed version + + axme-code config get Read a value from .axme-code/config.yaml + (keys: context.mode, model, auditor_model, review_enabled) + axme-code config set context.mode + Switch context-loading mode. 'search' installs the + semantic-search runtime (~100MB, one-time) and + builds an embeddings index of every memory + decision. + Rolls back to 'full' on install or reindex failure. + axme-code reindex [path] Force a full re-embed of all memories + decisions + into .axme-code/_index/embeddings.json (search mode only) + + axme-code auth Re-detect and choose auth mode (subscription/api_key) + axme-code auth status Show current auth mode + detected options + axme-code auth use Set auth mode non-interactively + axme-code cleanup legacy-artifacts [--dry-run] Remove pre-PR#7 sessions/logs + axme-code cleanup decisions-normalize [--dry-run] Add status:active to decisions + axme-code audit-kb [path] [--all-repos] KB audit: dedup, conflicts, compaction + axme-code stats [path] Worklog statistics (sessions, costs, safety blocks) + axme-code help Show this help After setup, run 'claude' as usual. AXME tools are available automatically.`); }