Skip to main content
Glama

OpenViking Plugin for Google Antigravity CLI (agy)

License: AGPL v3 Antigravity OpenViking

Official OpenViking long-term memory and context database plugin for Google Antigravity CLI (agy).

This plugin provides 100% feature parity with the Claude Code and Codex OpenViking memory plugins, giving Antigravity seamless, zero-friction long-term memory across sessions.

δΈ­ζ–‡ζ–‡ζ‘£ (README_CN.md)


🌟 Key Features

  • 🧠 Passive Auto-Recall (PreInvocation): Automatically searches OpenViking memories and injects relevant historical facts, conventions, and user preferences into the model prompt before each turn.

  • πŸ“‹ Initial Profile Injection: Dynamically injects your OpenViking user profile, memory index, and <available-skills> catalog on session startup.

  • πŸ›‘οΈ Virtual URI Guard (PreToolUse): Prevents native filesystem tools (view_file, write_to_file, etc.) from corrupting virtual viking:// URIs and automatically redirects the agent to OpenViking MCP tools.

  • πŸ“₯ Incremental Auto-Capture (PostInvocation): Stream-captures finished conversation turns without interrupting the model or polluting context.

  • πŸ’Ύ Automatic Session Commit (Stop): Automatically submits conversation transcripts to OpenViking on task exit for asynchronous memory and lesson extraction.

  • πŸ› οΈ Full MCP Toolset: Connects to the local OpenViking daemon over stdio, exposing 15 core tools (find, search, read, write, edit, remember, tree, add_resource, etc.).

  • πŸ“š Built-in Agent Skills: Bundles 4 expert skills: openviking-memory, openviking-skills, ov-experience-memory, and ov-memory-troubleshoot.


Related MCP server: AI Agent History RAG MCP Server

πŸ—οΈ Architecture

β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚              Google Antigravity CLI (`agy`)              β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β–²β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
              β”‚                               β”‚
       [1] PreInvocation              [2] PreToolUse
              β”‚                               β”‚
              β–Ό                               β–Ό
       Auto-Recall Hook                 URI Guard Hook
   (Injected as EphemeralMsg)      (Block viking:// on fs tools)
              β”‚
              β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β–Ί OpenViking Daemon (http://127.0.0.1:1933)
              β”‚                   β–²
       [3] PostInvocation         β”‚
              β–Ό                   β”‚
       Auto-Capture Hook ──────────
   (Incremental turns to session) β”‚
                                  β”‚
       [4] Stop                   β”‚
              β–Ό                   β”‚
       Auto-Commit Hook β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
      (Session memory extraction)

πŸš€ Quick Start

Prerequisites

  • Node.js >= 18.0.0

  • Antigravity CLI (agy) >= 1.2.0 (command -v agy)

  • A running OpenViking server (defaults to http://127.0.0.1:1933)

1. One-Click Installation

Clone the repository and run the installer:

git clone https://github.com/x-multibyte/agy-plugin-openviking.git
cd agy-plugin-openviking
./install.sh

2. Manual Installation via agy

You can also install directly with the Antigravity CLI:

agy plugin validate /path/to/agy-plugin-openviking
agy plugin install /path/to/agy-plugin-openviking

3. Verify Installation

Check installed components:

agy plugin list

Expected output:

{
  "imports": [
    {
      "name": "openviking",
      "source": "antigravity",
      "components": [
        "skills",
        "mcpServers",
        "hooks"
      ]
    }
  ]
}

βš™οΈ Configuration

Credentials and endpoint resolution follow the standard OpenViking precedence hierarchy:

  1. Environment Variables:

    • OPENVIKING_URL (default: http://127.0.0.1:1933)

    • OPENVIKING_API_KEY (or OPENVIKING_BEARER_TOKEN)

    • OPENVIKING_ACCOUNT / OPENVIKING_USER

  2. CLI Configuration File: ~/.openviking/ovcli.conf

  3. Server Configuration File: ~/.openviking/ov.conf

Low-Latency Mode

If response latency is critical, you can disable optional query expansion:

export OPENVIKING_RECALL_QUERY_EXPANSION=off

Or configure in ~/.openviking/ovcli.conf:

{
  "url": "http://127.0.0.1:1933",
  "plugin": {
    "recallQueryExpansion": "off"
  }
}

πŸ§ͺ Testing

Run the included unit and conformance test suites:

npm test

Tests cover:

  • Antigravity transcript_full.jsonl log parsing.

  • JSON Schema and Antigravity plugin manifest conformance.

  • Lifecycle hook event definitions and syntax validation.


πŸ“„ License

This project is licensed under the GNU Affero General Public License v3.0 (AGPL-3.0) to align with OpenViking core components.

Related MCP Connectors

Related MCP Servers

  • F
    license
    Not graded
    quality
    D
    maintenance
    Provides AI agents with persistent, searchable memory that survives across conversations using semantic search, temporal versioning, and smart organization. Enables long-term context retention and cross-session continuity for AI assistants.
    14
    -
  • A
    license
    A
    quality
    B
    maintenance
    Provides persistent, searchable memory across AI coding agent and chat history (Claude Code, Codex, Gemini CLI, ChatGPT, and more) via retrieval-augmented generation, enabling semantic and hybrid search to retain context across sessions.
    5
    MIT
  • A
    license
    A
    quality
    D
    maintenance
    Provides persistent memory with semantic search for MCP-based AI agents, enabling them to store and recall information across sessions using vector embeddings.
    4
    1
    MIT
  • F
    license
    Not graded
    quality
    B
    maintenance
    Provides a shared long-term memory across multiple AI clients, enabling persistent storage and retrieval of facts, preferences, decisions, and snippets with semantic search.
    -