Aim save

From Hidden-History/ai-memory · View interactive version

Aim save is an AI agent skill from the GitHub repository Hidden-History/ai-memory. Manually save current session to memory

How to use this skill

Skill file

Save Memory - Manual Session Summary Storage

Save the current session context to the AI Memory system's discussions

collection. This creates a type=session entry that can be retrieved by

SessionStart on future session resume or by /aim-search.

When to Use

Usage

The save-memory command runs the manual_save_memory.py script using the

project's configured AI Memory installation.

# Save with a description (recommended)
"$AI_MEMORY_INSTALL_DIR/.venv/bin/python" "$AI_MEMORY_INSTALL_DIR/.claude/hooks/scripts/manual_save_memory.py" \
"Completed authentication refactor, decided on JWT approach"

# Save without description
"$AI_MEMORY_INSTALL_DIR/.venv/bin/python" "$AI_MEMORY_INSTALL_DIR/.claude/hooks/scripts/manual_save_memory.py"

What Gets Stored

The script stores to the discussions collection with:

Agent Memory Support

When --type agent_memory or --type agent_insight is used, the memory is stored

via store_agent_memory() to the Parzival namespace with agent_id=parzival.

This requires Parzival to be enabled (parzival_enabled=true in config).

If Parzival is not enabled, the command returns an error.

Activation

# Default behavior (unchanged)
/aim-save "Completed authentication refactor"

# Save as agent memory (general project knowledge)
/aim-save "The decay formula uses 0.7/0.3 weighting" --type agent_memory

# Save as agent insight (key learning or pattern)
/aim-save "PyYAML not in test deps caused CI failures" --type agent_insight

Environment Variables (Auto-Configured)

These are set automatically in settings.json by the installer:

Error Handling

Prerequisites

Activation Examples

# Save decision context
/aim-save "Decided to use Qdrant for vector storage over Pinecone due to self-hosting requirement"

# Save progress checkpoint
/aim-save "Completed 3 of 5 API endpoints, auth middleware working"

# Quick save without description
/aim-save

# Save as agent memory (general project knowledge)
/aim-save "The decay formula uses 0.7/0.3 weighting" --type agent_memory

# Save as agent insight (key learning or pattern)
/aim-save "PyYAML not in test deps caused CI failures" --type agent_insight

Technical Details

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.