gemini-cli - 💡(How to fix) Fix [Feature Request] Persistent Script Vault with TUI Management [1 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
google-gemini/gemini-cli#26145Fetched 2026-04-29 06:35:26
View on GitHub
Comments
0
Participants
1
Timeline
1
Reactions
0
Participants
Timeline (top)
labeled ×1
RAW_BUFFERClick to expand / collapse

Problem Statement

Currently, code and scripts generated by Gemini CLI are ephemeral. Users often need to reuse a specific snippet or script later but have no built-in way to save it with context (category, name) and browse it easily within the CLI.

Proposed Solution

Introduce a "Vault" system that allows users to manually save generated outputs into a structured local directory and browse them using a Terminal UI (TUI).

Key Features

  • Manual Triggering:
    • A new command /save or a flag --save to trigger the saving of the most recent output.
    • Interactive prompt for a category/folder name if not provided.
  • Structured Storage:
    • Default storage location: ~/.gemini/vault/ (configurable).
    • Subdirectories based on user-defined categories.
  • TUI Management Browser:
    • A new command /vault or /saved to open a TUI for browsing.
    • Search/Filter by category or filename.
    • Syntax highlighting and quick actions (copy, insert, delete).

User Experience (UX) Example

  1. User generates a script.
  2. User types /save utility.
  3. CLI confirms saving to ~/.gemini/vault/utility/.
  4. User later accesses it via /vault.

Technical Suggestions

  • For TUI, consider libraries like blessed, ink, or tview depending on the tech stack.
  • Use a simple file system structure for the vault.

extent analysis

TL;DR

Implement a "Vault" system with a /save command and a Terminal UI (TUI) to allow users to save and browse generated outputs.

Guidance

  • Introduce a new command /save or a flag --save to trigger saving the most recent output, with an interactive prompt for a category/folder name if not provided.
  • Design a structured storage system with a default location at ~/.gemini/vault/ and subdirectories based on user-defined categories.
  • Develop a TUI for browsing saved outputs using a library like blessed, ink, or tview, with features like search/filter, syntax highlighting, and quick actions.
  • Consider using a simple file system structure for the vault to ensure ease of use and maintenance.

Example

# Example usage of the /save command
/user generates a script
/user types "/save utility"
/CLI confirms saving to ~/.gemini/vault/utility/

Notes

The proposed solution requires careful consideration of the tech stack and library choices to ensure compatibility and ease of use. Additionally, the implementation should handle edge cases, such as duplicate file names and category management.

Recommendation

Apply the proposed workaround by implementing the "Vault" system, as it provides a comprehensive solution to the problem of ephemeral code and scripts generated by the Gemini CLI. This approach allows users to save and browse their outputs in a structured and user-friendly manner.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING