Prompt Storage
Git AI saves your prompts and plans and links them to the code which generated them.
Git AI does not just track the lines generated by AI, it is also a Multi-Agent prompt store, saving prompts and plans from all your agents in a common formatting and linking it to the generated code.
By default Git AI stores prompt data locally in SQLite database. You can see your own prompts, but no one else can. When you use AI Blame to inspect some AI-code you generated, the prompt is fetched from this local database.
Locally stored prompts (the default) are never shared with your other devices, included in git notes, or uploaded to any server.
Accessing Local Prompt Data
To access local prompt store you can connect to the SQLite database using the sqlite3 command line tool.
sqlite3 ~/.git-ai/internal/db
SELECT * FROM prompts;Shared Prompt Store
Prompts are the new code and sharing the intent and rationale behind certain decisions in the codebase is going to be important for any team managing large AI-generated codebases.
There are three ways to share prompts, each suited for different use cases:
- Git Notes Storage - great for personal projects and Open Source
- Team Prompt Store - great for startups + small teams. Get early access
- Self-Hosted Enterprise Prompt Store - great for large organizations with tight security requirements. Get early access
Git Notes Storage
To include prompts in git notes and sync them with your other devices or other developers you can set prompt_storage to notes:
Note: If you put any sensative information in your prompts, you should not use notes storage method as it's basically impossible to delete data from the git database if you leak something. Git AI will redact anything from a git note prompt that looks like a secret or API key, but this behavior should not be relied on, especially in a public repository.
git-ai config set prompt_storage notesWhen using notes mode, you can exclude specific repositories from having prompt data included:
git-ai config set --add exclude_prompts_in_repositories https://github.com/private-org/*
git-ai config set --add exclude_prompts_in_repositories /path/to/private/repoor to exclude all repositories:
git-ai config set --add exclude_prompts_in_repositories "*"Team + Enterprise Prompt Store
(Docs Coming Soon)
Team + Enterprise Prompt Store is under development, get early access to use it.