Skip to content

compozy memory search

Search deterministic Memory v2 recall

For people running agent work51 pages in this section

Search deterministic Memory v2 recall

compozy memory search <query> [flags]

Examples

  # Search global and current-workspace memories
  compozy memory search "auth sessions"

  # Search agent memory with system entries included
  compozy memory search "review tone" --scope agent --agent reviewer --agent-tier global --include-system

Options

      --agent string        Agent name for agent-scoped memory
      --agent-tier string   Agent memory tier: workspace or global
  -h, --help                help for search
      --include-system      Include _system memory entries
      --scope string        Memory scope: global, workspace, or agent
      --top-k int           Maximum number of recalled entries
      --workspace string    Override workspace binding (ID, name, or path)

Options inherited from parent commands

      --json            Emit JSON output
  -o, --output string   Output format: human, json, jsonl, or toon (default "human")

Output Formats

The root -o, --output flag accepts these values. A renderer is supported only when this command writes that result; jsonl is for commands that emit one JSON record per line.

FormatCommand result
humanInteractive terminal rendering
jsonMachine-readable JSON rendering
jsonlOne JSON record per line when supported
toonCompact agent-readable rendering

Example:

compozy memory search <query> -o json

On this page