bootspring_memory

Access git-based project memory. Extract learnings, search history, and get file-specific context.

Overview#

The bootspring_memory tool provides access to your project's git history as a knowledge base. It extracts learnings from commit messages, categorizes them, and makes them searchable. This helps your AI assistant understand past decisions and patterns.

Parameters#

ParameterTypeRequiredDescription
actionstringYesAction to perform
querystringNoSearch query (for search action)
filesarrayNoFile paths to get learnings for (for files action)
limitnumberNoMax learnings to return (default: 20)

Actions#

ActionDescription
summaryGet categorized learnings summary
searchSearch learnings by keyword
filesGet learnings for specific files
statsGet repository overview statistics

Usage Examples#

Get Summary#

Use the bootspring_memory tool with: - action: "summary" - limit: 30

Response:

Loading code block...

Search Learnings#

Use the bootspring_memory tool with: - action: "search" - query: "authentication" - limit: 10

Response:

Loading code block...

Get File-Specific Learnings#

Use the bootspring_memory tool with: - action: "files" - files: ["src/lib/auth.ts", "src/middleware.ts"] - limit: 15

Response:

Loading code block...

Get Repository Stats#

Use the bootspring_memory tool with: - action: "stats"

Response:

Loading code block...

Memory Categories#

Learnings are automatically categorized based on commit prefixes:

CategoryPrefixIconDescription
featurefeat:FNew features
bug_fixfix:BBug fixes
refactorrefactor:RCode refactoring
documentationdocs:DDocumentation changes
testtest:TTest additions/changes
chorechore:CMaintenance tasks
performanceperf:PPerformance improvements
securitysecurity:SSecurity fixes

Error Handling#

Not a Git Repository#

Loading code block...

Missing Query#

Loading code block...

Missing Files#

Loading code block...

Use Cases#

Understanding Past Decisions#

Before making changes to a file:

Use bootspring_memory with: - action: "files" - files: ["src/components/Dashboard.tsx"]

This shows why the component was changed in the past.

Finding Similar Solutions#

When encountering a problem:

Use bootspring_memory with: - action: "search" - query: "timeout error"

Find how similar issues were resolved before.

Onboarding Context#

For new team members:

Use bootspring_memory with: - action: "summary"

Get an overview of project history and patterns.

Best Practices#

Write Good Commit Messages#

Memory quality depends on commit message quality. Use conventional commits:

  • feat: add user authentication
  • fix: resolve database connection timeout
  • refactor: extract validation logic

Regular Commits#

More frequent, focused commits create better memory entries.

Include Context in Commits#

Add details in commit body for richer memory:

feat: add rate limiting to API - Implemented sliding window algorithm - 100 requests per minute per user - Returns 429 with Retry-After header