mirror of
https://github.com/harivansh-afk/claude-continual-learning.git
synced 2026-04-18 07:01:30 +00:00
guess not
This commit is contained in:
parent
a7ac3869bc
commit
b1d8e549e4
1 changed files with 15 additions and 9 deletions
28
install.sh
28
install.sh
|
|
@ -131,20 +131,26 @@ fi
|
||||||
echo ""
|
echo ""
|
||||||
echo -e "${GREEN}Installation complete!${NC}"
|
echo -e "${GREEN}Installation complete!${NC}"
|
||||||
echo ""
|
echo ""
|
||||||
echo "Running setup-agent to initialize the learning agent..."
|
|
||||||
echo ""
|
|
||||||
|
|
||||||
# Change to target directory and run claude /setup-agent
|
# Change to target directory and run claude /setup-agent
|
||||||
cd "$TARGET_DIR"
|
cd "$TARGET_DIR"
|
||||||
if command -v claude &> /dev/null; then
|
if command -v claude &> /dev/null; then
|
||||||
claude --print --dangerously-skip-permissions -p "/setup-agent"
|
# Check if we have a TTY available (not piped via curl | bash)
|
||||||
else
|
if [ -t 0 ]; then
|
||||||
echo -e "${RED}Error: 'claude' command not found in PATH${NC}"
|
echo "Running setup-agent to initialize the learning agent..."
|
||||||
echo "Please ensure Claude Code is installed and run manually:"
|
echo ""
|
||||||
echo " 1. cd $TARGET_DIR"
|
claude --dangerously-skip-permissions /setup-agent
|
||||||
echo " 2. Run: claude /setup-agent"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
echo ""
|
echo ""
|
||||||
echo "Setup complete! The agent will automatically learn from each session."
|
echo "Setup complete! The agent will automatically learn from each session."
|
||||||
|
else
|
||||||
|
echo "To complete setup, run:"
|
||||||
|
echo " cd $TARGET_DIR && claude /setup-agent"
|
||||||
|
echo ""
|
||||||
|
echo "This will analyze your codebase and set up the learning agent."
|
||||||
|
fi
|
||||||
|
else
|
||||||
|
echo -e "${RED}Error: 'claude' command not found in PATH${NC}"
|
||||||
|
echo "Please install Claude Code and run:"
|
||||||
|
echo " cd $TARGET_DIR && claude /setup-agent"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue