Understand any codebase instantly. System intelligence for codebases, built for humans and AI.
TypeScript aiai-memoryclaude-codeclicode-analysiscode-mappingcode-memorycodebase-understandingcodexdeveloper-toolsllmopenclawpersistent-memoryprogram-analysissoftware-architecturesystem-intelligencesystem-mapping
feat: added claude plugin locally.
kagebinary6e2078a0e4f0
diff --git a/.claude-plugin/marketplace.json b/.claude-plugin/marketplace.jsonnew file mode 100644index 00000000..8692eb9d--- /dev/null+++ b/.claude-plugin/marketplace.json@@ -0,0 +1,13 @@+{+ "name": "ix-memory",+ "owner": {+ "name": "ix-infrastructure"+ },+ "plugins": [+ {+ "name": "ix-memory",+ "source": "./ix-plugin",+ "description": "Keeps the Ix graph current as Claude edits files, and front-runs Grep/Glob with graph-aware ix searches for token-efficient codebase understanding."+ }+ ]+}diff --git a/ix-cli/src/cli/commands/diff.ts b/ix-cli/src/cli/commands/diff.tsindex 6690c773..8164fe45 100644--- a/ix-cli/src/cli/commands/diff.ts+++ b/ix-cli/src/cli/commands/diff.ts@@ -723,7 +723,6 @@ function printAttrs(indent: string, attrs: Record<string, unknown> | undefined):}function diffAttrs(indent: string, before: Record<string, unknown>, after: Record<string, unknown>): void {- //symbol testconst allKeys = new Set([...Object.keys(before), ...Object.keys(after)]);for (const key of allKeys) {const bVal = before[key];@@ -741,6 +740,3 @@ function diffAttrs(indent: string, before: Record<string, unknown>, after: Recor}}}-// Let's see if this works-// how about this-// new comment\ No newline at end of filediff --git a/ix-cli/src/cli/commands/inventory.ts b/ix-cli/src/cli/commands/inventory.tsindex d0efd989..df76ec41 100644--- a/ix-cli/src/cli/commands/inventory.ts+++ b/ix-cli/src/cli/commands/inventory.ts@@ -70,6 +70,7 @@ Examples:for (const n of nodes) {const name = n.name || n.attrs?.name || "(unnamed)";const path = String(+ (n as any).provenance?.source_uri ??n.provenance?.sourceUri ??n.attrs?.path ??""diff --git a/ix-cli/src/cli/commands/locate.ts b/ix-cli/src/cli/commands/locate.tsindex c89adeb4..0af7d767 100644--- a/ix-cli/src/cli/commands/locate.ts+++ b/ix-cli/src/cli/commands/locate.ts@@ -239,7 +239,11 @@ async function runRipgrep(symbol: string, root: string, limit: number): Promise<} catch { /* skip */ }}} catch (err: any) {- if (err.code !== 1 && err.status !== 1 && err.code !== "ENOENT") throw err;+ if (err.code === "ENOENT") {+ stderr(chalk.yellow("⚠ ripgrep (rg) is not installed — text fallback skipped. Install it: https://github.com/BurntSushi/ripgrep#installation"));+ } else if (err.code !== 1 && err.status !== 1) {+ throw err;+ }}return hits.slice(0, 10);}diff --git a/ix-cli/src/cli/commands/plan.ts b/ix-cli/src/cli/commands/plan.tsindex 540d2d6b..69af96fe 100644--- a/ix-cli/src/cli/commands/plan.ts+++ b/ix-cli/src/cli/commands/plan.ts@@ -182,6 +182,7 @@ export function registerPlanCommand(program: Command): void {const plan = program.command("plan").description("Manage plans and plan tasks")+ .option("--format <fmt>", "Output format (text|json)", "text").addHelpText("after",`\nSubcommands:@@ -194,13 +195,34 @@ Options --goal and --plan accept IDs, UUID prefixes, or exact names.Duplicate names within each type are rejected.Examples:+ ix plan List all plans+ ix plan --format json List all plans as JSONix plan create "Fix auth" --goal <goal-id-or-name>ix plan task "Step 1" --plan <plan-id-or-name>ix plan create "Fix auth" --goal "Support GitHub"ix plan task "Step 1" --plan "Fix auth"ix plan show <plan-id> --format jsonix plan next <plan-id> --with-workflow`- );+ )+ .action(async (opts: { format: string }) => {+ const client = new IxClient(getEndpoint());+ const plans = await client.listByKind("plan", { limit: 50 });+ if (opts.format === "json") {+ console.log(JSON.stringify(plans.map((p: any) => ({+ id: p.id,+ name: p.name,+ status: p.attrs?.status ?? "active",+ })), null, 2));+ } else {+ if (plans.length === 0) {+ console.log("No plans found. Create one with: ix plan create <title> --goal <goal>");+ return;+ }+ for (const p of plans) {+ console.log(` ${chalk.bold((p.name ?? "(unnamed)").padEnd(40))} ${chalk.dim(p.id.slice(0, 8))}`);+ }+ }+ });plan.command("create <title>")diff --git a/ix-cli/src/cli/commands/watch.ts b/ix-cli/src/cli/commands/watch.tsindex 86963b32..5752a13a 100644--- a/ix-cli/src/cli/commands/watch.ts+++ b/ix-cli/src/cli/commands/watch.ts@@ -106,7 +106,7 @@ export function registerWatchCommand(program: Command): void {try {const result = await client.ingest(filePath, false);lastHash.set(filePath, hash);- if (result.patchesApplied > 0) {+ if ((result?.patchesApplied ?? 0) > 0) {console.log(`${chalk.cyan("[watch]")} ingested: ${chalk.bold(rel)} → rev ${result.latestRev}`);} else {console.log(`${chalk.dim("[watch]")} unchanged: ${rel}`);diff --git a/ix-cli/src/client/api.ts b/ix-cli/src/client/api.tsindex 495d19a8..d7a9f953 100644--- a/ix-cli/src/client/api.ts+++ b/ix-cli/src/client/api.ts@@ -116,14 +116,14 @@ export class IxClient {}async listGoals(): Promise<GraphNode[]> {- return this.get("/v1/goal");+ return this.get("/v1/truth");}async createGoal(statement: string,parentGoal?: string): Promise<{ status: string; nodeId: string; rev: number }> {- return this.post("/v1/goal", { statement, parentGoal });+ return this.post("/v1/truth", { statement, parentIntent: parentGoal });}async listTruth(): Promise<GraphNode[]> {diff --git a/ix-plugin/README.md b/ix-plugin/README.mdindex b30a399e..861db57d 100644--- a/ix-plugin/README.md+++ b/ix-plugin/README.md@@ -20,18 +20,34 @@ Both hooks bail silently if `ix` is not in PATH or the Ix backend is unreachable## Installation-```bash-# From the IX-Memory repo root-claude plugin install ./ix-plugin+**1. Add the IX-Memory marketplace (one-time):**-# Or for a single project only-claude plugin install ./ix-plugin --scope project```+/plugin marketplace add ix-infrastructure/IX-Memory+```++**2. Install the plugin:**++```+/plugin install ix-memory+```++**3. Restart Claude Code.** Verify the hooks loaded with `/hooks`.## Requirements- `ix` CLI in PATH and Ix backend running (`ix status` should return ok)- `jq` in PATH (used to parse hook JSON input)+- `ripgrep` (`rg`) in PATH — required by `ix text` for file-level text search++Install missing deps:+```bash+# Ubuntu/Debian+sudo apt install jq ripgrep++# macOS+brew install jq ripgrep+```## Structure@@ -69,6 +85,5 @@ When Claude edits a file:## Uninstall-```bash-claude plugin uninstall ix-memory-```+Remove the `hooks` block from `~/.claude/settings.json` (or `.claude/settings.json` for+project-scoped installs), then restart Claude Code.diff --git a/setup.sh b/setup.shindex c0c68110..1de850d2 100755--- a/setup.sh+++ b/setup.sh@@ -101,6 +101,37 @@ echo "║ IX-Memory — Setup ║"echo "╚══════════════════════════════════════════╝"echo ""+# ── Step 0: System dependencies ──────────────────────────────────────────────++echo "── [0] Checking dependencies ──────────────────────"++MISSING_DEPS=()+for dep in docker node jq rg; do+ if ! command -v "$dep" >/dev/null 2>&1; then+ MISSING_DEPS+=("$dep")+ fi+done++if [ "${#MISSING_DEPS[@]}" -gt 0 ]; then+ echo " Missing required tools: ${MISSING_DEPS[*]}"+ echo ""+ echo " Install hints:"+ for dep in "${MISSING_DEPS[@]}"; do+ case "$dep" in+ docker) echo " docker: https://docs.docker.com/get-docker/" ;;+ node) echo " node: https://nodejs.org (v18+ required)" ;;+ jq) echo " jq: sudo apt install jq / brew install jq" ;;+ rg) echo " rg: sudo apt install ripgrep / brew install ripgrep" ;;+ esac+ done+ echo ""+ echo " Re-run setup.sh after installing missing tools."+ exit 1+fi+echo " [ok] docker, node, jq, rg"++echo ""+# ── Step 1: Backend ──────────────────────────────────────────────────────────echo "── [1] Backend ────────────────────────────────────"