Skip to content

Commit 99a0160

Browse files
author
Oliver Baer
committed
chore(memory): session handoff
1 parent 7e7c1ab commit 99a0160

2 files changed

Lines changed: 14 additions & 3 deletions

File tree

.claude-plugin/plugin.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,5 @@
1111
"version": "1.0.0",
1212
"keywords": ["memory", "persistence", "checkpoint", "blog"],
1313
"skills": "./skills",
14-
"agents": "./agents",
1514
"hooks": "./hooks/hooks.json"
1615
}

scripts/setup-api-key.sh

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,26 @@
11
#!/bin/bash
22
#
33
# Letter to My Future Self - First Time Setup
4-
# Prompts for global Anthropic API key on plugin installation
4+
# - Installs agent to ~/.claude/agents/
5+
# - Prompts for global Anthropic API key
56
#
67

8+
PLUGIN_ROOT="${CLAUDE_PLUGIN_ROOT:-$(dirname "$(dirname "$0")")}"
79
CONFIG_DIR="$HOME/.config/letter-for-my-future-self"
810
CONFIG_FILE="$CONFIG_DIR/config.json"
11+
AGENTS_DIR="$HOME/.claude/agents"
12+
AGENT_FILE="letter-for-my-future-self.md"
913

10-
# Only run if no global config exists
14+
# Always install/update the agent
15+
if [ -d "$PLUGIN_ROOT/agents" ] && [ -f "$PLUGIN_ROOT/agents/letter-for-myself.md" ]; then
16+
mkdir -p "$AGENTS_DIR"
17+
cp "$PLUGIN_ROOT/agents/letter-for-myself.md" "$AGENTS_DIR/$AGENT_FILE"
18+
echo "Installed agent to $AGENTS_DIR/$AGENT_FILE"
19+
fi
20+
21+
# Only prompt for API key if no global config exists
1122
if [ -f "$CONFIG_FILE" ]; then
23+
echo "Setup complete! (API key already configured)"
1224
exit 0
1325
fi
1426

0 commit comments

Comments
 (0)