gemini

package
v0.4.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 1, 2026 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package gemini is the Gemini CLI adapter for agent-memory. Gemini CLI reads GEMINI.md at the project root as long-term project context; this adapter drops a worked file at that location.

As with the agents adapter, there is no widely-agreed user-global location for GEMINI.md, so this adapter is project-local only and rejects UserGlobal: true with a clear error.

Index

Constants

View Source
const AdapterName = "gemini"

AdapterName is the stable identifier used by `agent-memory install <name>`.

Variables

This section is empty.

Functions

func GeminiContent

func GeminiContent() []byte

GeminiContent returns the embedded GEMINI.md bytes verbatim.

Types

type Options

type Options struct {
	Root       string
	UserGlobal bool
	Force      bool
	HomeDir    string // unused for this adapter
}

Options keeps the same shape as every other adapter for uniform CLI dispatch. UserGlobal: true is rejected with a clear error.

type Result

type Result struct {
	Adapter string   `json:"adapter"`
	Files   []string `json:"files,omitempty"`
	Skipped []string `json:"skipped,omitempty"`
}

Result is the standard adapter Result.

func Install

func Install(opts Options) (*Result, error)

Install writes the embedded GEMINI.md to <Root>/GEMINI.md.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL