Back to the catalog

ix-memory

Ix Memory integration — transforms Gemini CLI into a graph-reasoning agent with cognitive skills for understanding, investigation, impact an

Open source Open in the app JSON README (API)

About

Ix Memory integration — transforms Gemini CLI into a graph-reasoning agent with cognitive skills for understanding, investigation, impact analysis, planning, debugging, architecture auditing, and deep documentation synthesis.

Details

Kind
Plugins
Topic
AI, RAG & memory
Publisher
ix-infrastructure
Origin
gemini
Category
ferramentas
Version
1.1.0
Open pull requests
1
Last push
2026-09-07T19:35:35Z
Repository state
ativo
Language
TypeScript
License
Apache-2.0
Added
2026-08-30 14:13:39
Updated
2026-08-30 14:13:39
Origin id
ix-infrastructure/ix-gemini-plugin

README

# ix-gemini-plugin

A Gemini CLI extension that turns Gemini into a graph-reasoning engineering agent using [Ix Memory](https://github.com/ix-infrastructure/Ix) as its structured memory backend.

Gemini + Ix = reasoning engine + persistent code knowledge graph. Skills are cognitive abstractions, not CLI wrappers.

## Requirements

- [Ix Memory](https://github.com/ix-infrastructure/Ix) installed and running (`ix status` returns ok)
- `python3` in PATH for hook scripts
- `ripgrep` (`rg`) is recommended

Ix Pro is optional. If present, the `BeforeAgent` hook injects the Ix session briefing once per 10 minutes.

## Skills

High-level cognitive skills:

| Skill | What it does | Key rule |
|-------|--------------|----------|
| `ix-help <task or question>` | Route to the right Ix skill or direct `ix` command | Route only; do not execute |
| `ix-understand [target]` | Build a mental model of a system or the whole repo | Graph only; no code reads |
| `ix-investigate <symbol>` | Deep dive: what it is, how it connects, execution path | Graph first; one symbol read max |
| `ix-impact <target>` | Change risk: blast radius, affected systems, test targets | Depth scales with risk |
| `ix-plan <targets...>` | Risk-ordered implementation plan for a set of changes | Parallel impact; finds shared dependents |
| `ix-debug <symptom>` | Root cause analysis from symptom to candidates | Minimal source reads at suspects only |
| `ix-architecture [scope]` | Design health: coupling, smells, hotspots | Graph only; never reads source |
| `ix-docs <target> [--full]` | Generate narrative-first documentation with selective reference | Default is onboarding-focused |

## Agent Playbooks

Reusable playbook docs in [`agents/`](./agents):

| Playbook | Purpose |
|----------|---------|
| `ix-explorer` | General-purpose graph exploration |
| `ix-system-explorer` | Full architectural model of a codebase or region |
| `ix-bug-investigator` | Root cause analysis from symptom to candidates |
| `ix-safe-refactor-planner` | Blast radius plus safe change sequencing |
| `ix-architecture-auditor` | Structural health report with ranked improvements |

## Automatic Hooks

| Trigger | Gemini hook | Effect |
|---------|-------------|--------|
| Session starts | `SessionStart` | Injects Ix operating guidance and graph-first rules |
| Before agent plans | `BeforeAgent` | Injects `ix briefing` once per 10 min if Ix Pro is available |
| Before shell tool | `BeforeTool` | Front-runs `grep`/`rg`/`cat`/`head` with `ix text` + `ix locate` context |
| After shell tool | `AfterTool` | Triggers background `ix map` after file-modifying shell commands |
| Session ends | `SessionEnd` | Runs `ix map` asynchronously to refresh the graph |

## Install

### Quick install

```bash
gemini extensions install /path/to/ix-gemini-plugin
```

Or from GitHub:

```bash
gemini extensions install https://github.com/ix-infrastructure/ix-gemini-plugin
```

### Manual install

```bash
git clone git@github.com:ix-infrastructure/ix-gemini-plugin.git
cd ix-gemini-plugin
./install.sh
```

The installer copies the extension to `~/.gemini/extensions/ix-memory/`.

On Windows PowerShell:

```powershell
.\install.ps1
```

### Repo-local install

```bash
./install.sh --repo /path/to/project
```

This copies the extension to `/path/to/project/.gemini/extensions/ix-memory/`.

PowerShell equivalent:

```powershell
.\install.ps1 -Repo C:\path\to\project
```

## Local Validation

Run the local MCP build and test path with:

```bash
./test-local.sh
```

This covers the local MCP server surface and skips live Gemini CLI validation when `gemini` is not installed.

## Repo Guidance

The repo-level operating guide lives in [`GEMINI.md`](./GEMINI.md). It carries the graph-first reasoning model, skill reference, and token-budget rules.

More