Commit Graph

40 Commits

Author SHA1 Message Date
Homelab Automation
43770a7895 Add simple workflow guide for homelab agents
Added WORKFLOW.md with streamlined instructions for:
- One-line VPS setup via curl bootstrap script
- Simple 3-step project workflow
- Key rules for where to run finish-up agent
- Quick reference table

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-28 22:44:44 +00:00
pdm
aa204a105e Delete SSH-SETUP.md 2025-11-28 22:43:39 +00:00
Homelab Automation
317c821e9a Homelab: [homelab-agents] - Session 2025-11-28
Brief verification session confirming that the Finish Up Agent rename and VPS hostname tracking features were already implemented in previous work. Created initial CLAUDE.md context file and session summary for 108-system-apps VPS.

Changes:
- Added CLAUDE.md with comprehensive project context and session history
- Created homelab-agents-108-system-apps-session-summary.md documenting verification session
- Established baseline documentation for future session continuity

Repository: http://100.120.125.113:3000/pdm/homelab-agents
Next Session Focus: Test Finish Up Agent functionality on this VPS instance

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-28 22:25:05 +00:00
Homelab Automation
1602733fad Rename Sysadmin Session Closer Agent to Finish Up Agent
Renamed the agent from 'sysadmin-session-closer' to 'finish-up' and added VPS hostname functionality to session summary filenames.

Changes:
- Renamed agent file: agents/sysadmin-session-closer.md → agents/finish-up.md
- Updated agent version to 1.1.0
- Modified agent to include VPS hostname in session summary filenames
  - Session summaries now use format: [PROJECT_NAME]-[HOSTNAME]-session-summary.md
  - Hostname is auto-detected using `hostname` command
- Updated all documentation references:
  - README.md, QUICK-START.md, agents/README.md
  - scripts/README.md, scripts/bootstrap-agents.sh, scripts/init-project.sh
- Improved agent description to mention VPS hostname functionality

Repository: http://100.120.125.113:3000/pdm/homelab-agents
Next Session Focus: Test the renamed agent on a VPS project to verify hostname detection works correctly

🤖 Generated with Claude Code

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-27 14:19:56 +00:00
Homelab Automation
dcd2c1f0f7 Add session summary: Gitea domain integration and SSH fixes
Completed in this session:
- Integrated Gitea with Pangolin Tunnel (git.pdmarf.co.uk domain)
- Fixed protocol mismatch (HTTPS ROOT_URL with HTTP service)
- Fixed SSH agent persistence bug in VPS-SSH-KEY-SETUP.md Step 7
- Updated documentation for dual access (internal IP + domain)
- Comprehensive troubleshooting guides added

All systems operational and ready for VPS deployment.
Both repositories functional and fully documented.

Next session: Deploy to actual VPS and test complete workflows.
2025-11-27 14:17:15 +00:00
Homelab Automation
cb89dfccbb Fix Step 7: SSH Agent persistence now works correctly
PROBLEM: Original Step 7 script was buggy - agent would die on logout

SOLUTION: Rewritten Step 7 with proper ssh-agent persistence that:
- Detects existing running agents and reuses socket
- Persists socket location across shell sessions
- Auto-loads SSH key on new terminals
- Works reliably across multiple terminal windows

Key changes:
- Saves SSH_AUTH_SOCK to ~/.ssh/agent.sock for persistence
- Auto-adds key if not already loaded
- Includes simpler fallback version if complex version fails
- Detailed troubleshooting section
- Clear instructions on placement in ~/.bashrc

Agent now stays loaded for the entire user session duration.
2025-11-27 06:23:00 +00:00
pdm
fd5f024a08 Update VPS-SSH-KEY-SETUP.md
added #Make SSH Agent Persistent
2025-11-25 22:54:51 +00:00
root
f328304e34 Add version 1.0.0 to sysadmin-session-closer agent 2025-11-24 11:23:54 +00:00
root
108de3be60 Add VPS SSH key setup guide 2025-11-24 10:37:55 +00:00
root
7dbfb0f191 Update: Scripts README emphasizes repo creation step
- IMPORTANT: Clarify repo must be created on Gitea FIRST
- Add Step 1: Create repository on Gitea
- Add Step 2: Run init-project
- Provide direct link to Gitea repo creation
- Show example output with SSH remote
- Update workflow summary with correct order
2025-11-23 22:29:57 +00:00
root
d289d33c4d Update: README clarifies two-step project creation
- Step 1: Create repo on Gitea web UI first
- Step 2: Run init-project to set up local copy
- Emphasize SSH authentication for git push
- Update workflow summary with correct order
- Clarify agents use SSH remote
2025-11-23 22:29:22 +00:00
root
d537ddc665 Update: QUICK-START to clarify repository creation step
- Emphasize: Create repo on Gitea FIRST, then init-project
- Add Step 1: Create repository on Gitea web UI
- Add Step 2: Run init-project to configure local repo
- Update workflow summary to show correct order
- Add SSH key setup section
- Clarify that init-project connects to existing repo
2025-11-23 22:29:03 +00:00
root
2b1d1378fa Add SSH setup guide for Gitea authentication
- Step-by-step instructions for key generation
- How to add public key to Gitea
- Testing SSH connection
- Integration with init-project workflow
- Troubleshooting tips
2025-11-23 22:10:27 +00:00
root
6637bb49e7 Update: init-project to use SSH remotes for VPS
- Changed remote format: HTTP → SSH (git@host:org/repo.git)
- Better for VPS deployments (key-based auth)
- Check for SSH key and warn if missing
- Provide setup instructions in init output
- Agents still copied to .claude/agents/
2025-11-23 22:10:12 +00:00
root
150f67c9b9 Update: README with new bootstrap workflow
- Lead with 'source' bootstrap command
- Point to QUICK-START for details
- Show new project init-project workflow
- Clarify agents available at .claude/agents/
- Update usage section
- Keep structure and documentation references
2025-11-23 22:08:22 +00:00
root
030e280c24 Update: Bootstrap script emphasize 'source' usage
- Updated usage comment to show 'source' syntax
- Add IMPORTANT note about why to use source not bash
- Remove misleading 'Tip' about restarting shell
- Clarify commands are ready immediately
- Update output messaging
2025-11-23 22:07:52 +00:00
root
7e62a571aa Update: Scripts README to use 'source' for bootstrap
- Changed: bash <(...) → source <(...)
- Emphasize agents copied to .claude/agents/
- Clarify agent locations for Claude Code
- Update workflow examples
- Explain why source is better
2025-11-23 22:07:14 +00:00
root
20bfcfe66c Update: Use 'source' instead of 'bash' for bootstrap
- Changed: bash <(...) → source <(...)
- Benefits: PATH updates immediately, no shell restart needed
- init-project available right after bootstrap completes
- Cleaner workflow for VPS setup
2025-11-23 22:06:41 +00:00
root
2f25d70674 Update: init-project now copies agents to .claude/agents/
- Creates .claude/agents/ directory in each project
- Automatically copies agents from ~/.homelab-agents/agents/
- Makes agents available for Claude Code locally
- Agents can be referenced as .claude/agents/agent-name.md
- Gracefully handles missing agents
2025-11-23 21:59:30 +00:00
root
d49801136a Fix: Bootstrap script now adds scripts directory to PATH permanently
- Automatically adds 'export PATH="$HOME/.homelab-scripts:$PATH"' to ~/.bashrc
- Checks if already present to avoid duplicates
- Also adds to current session PATH immediately
- Eliminates need for manual 'export PATH' commands
- init-project now works in all future shells
2025-11-23 21:45:37 +00:00
root
23aba5df18 Update: Scripts README with init-project documentation
- Detailed explanation of init-project purpose
- Complete usage examples
- Show example output
- Clarify project structure (separate repos)
- Include workflow summary
2025-11-23 21:39:29 +00:00
root
ba35a26c25 Update: QUICK-START guide with init-project workflow
- Document complete VPS setup workflow
- Show init-project usage for new projects
- Explain project structure (separate repos)
- Simplify instructions for clarity
- Include agent auto-update info
2025-11-23 21:39:09 +00:00
root
bd3cda3f1d Update: Bootstrap script now installs init-project helper
- Automatically installs init-project script to ~/.homelab-scripts
- Adds scripts directory to PATH
- Lists available commands after bootstrap
- Enables easy project initialization without manual git setup
2025-11-23 21:38:51 +00:00
root
72fd78de68 Add init-project script for easy project initialization
- Automatically creates project directory
- Initializes git repo with correct config
- Configures Gitea remote automatically
- Prevents asking for remote URL (fixes agent behavior)
- Usage: init-project <project-name>
2025-11-23 21:38:26 +00:00
root
658e1cd567 Fix: Always auto-detect Gitea URL from current directory
- Remove all user prompts for repository URL
- URL is now always constructed from folder name
- Add CRITICAL section highlighting auto-detection
- Simplify Step 5 to make auto-detection foolproof
- Update QA checklist to verify URL was auto-detected
- Never ask user for URL - this is a bug if it happens
2025-11-23 21:24:50 +00:00
root
a2c098805f Update: Add auto-create repository feature to summary agent
- Agent now supports GITEA_API_TOKEN environment variable
- Automatically creates Gitea repos for new VPS projects
- Includes setup guide for generating and storing API tokens
- Falls back gracefully if token not available
- Reduces manual repo creation steps on new VPS instances
2025-11-23 21:11:33 +00:00
pdm
f2f84b3a24 Update scripts/README.md 2025-11-23 21:04:16 +00:00
root
09784f4a96 Fix: Use correct Gitea raw file URL format 2025-11-23 20:58:01 +00:00
root
ebe311ae42 Add QUICK-START guide for VPS setup 2025-11-23 20:55:33 +00:00
root
edc29c353a Update scripts README with bootstrap-agents.sh documentation 2025-11-23 20:55:19 +00:00
root
4f23243a7a Add bootstrap script for VPS agent setup - Automatically clones/updates homelab-agents repo 2025-11-23 20:54:42 +00:00
root
2128b7f1f8 Add session logs: Gitea domain fix and backup setup (2025-11-23)
Documents completed work including:
- Fixed Gitea login 404 by updating domain to git.pdmarf.co.uk
- Configured ROOT_URL and SSH_DOMAIN for Pangolin tunnel access
- Set up automated daily database backups (2 AM cron, 7-day retention)
- Tested and verified backup/restore process

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-23 17:48:39 +00:00
Homelab Automation
7a46e82c7a Fix configuration: Use internal IP for clone commands, domain via Pangolin Tunnel
- Reverted ROOT_URL to HTTP on internal IP (100.120.125.113:3000)
- Clone commands use internal IP (works on local network and with Pangolin)
- Added note: Access UI at https://git.pdmarf.co.uk via Pangolin Tunnel
- Pangolin Tunnel handles HTTPS → HTTP conversion

Users on local network: Clone using http://100.120.125.113:3000/pdm/[repo]
Users via Pangolin: Access UI at https://git.pdmarf.co.uk
Both methods work with same repositories
2025-11-23 15:07:37 +00:00
Homelab Automation
4c7f8b34e8 Update domain configuration: Use git.pdmarf.co.uk for UI
- Updated Gitea ROOT_URL to https://git.pdmarf.co.uk/
- Updated all clone commands in HOW-TO-GUIDE.md to use new domain
- Changed server URL references to https://git.pdmarf.co.uk
- Session closer agent remains on internal IP for homelab use

Users can now access Gitea UI at https://git.pdmarf.co.uk
All documentation reflects the new domain for public access.
2025-11-23 15:04:14 +00:00
Homelab Automation
3ef3efbd2b Add Gitea Installation Session Summary - 2025-11-23
Complete documentation of Gitea setup process:
- System infrastructure verification and setup
- Gitea v1.21.5 installation and configuration
- Repository creation and population (homelab-agents, vps-system-apps)
- sysadmin-session-closer agent optimization for Gitea
- Comprehensive HOW-TO-GUIDE documentation
- All problems encountered and solutions
- Next session priorities

Repositories are fully functional and ready for deployment.
All documentation is comprehensive and accessible.

Repository: http://100.120.125.113:3000/pdm/homelab-agents
Next Session: Deploy to VPS and test workflows
2025-11-23 14:59:03 +00:00
Homelab Automation
fa8df14471 Update HOW-TO-GUIDE.md: Use vim instead of nano, clarify workstation terminology
- Changed all references from 'nano' to 'vim' editor
- Added new 'Terminology' section explaining:
  - What 'workstation' means (your main development machine)
  - Difference between workstation and VPS
  - What a repository is
- Enhanced Workflow 1 with detailed explanation of workstation usage
- Added examples of workstation machines (laptop, desktop, etc.)
- Clarified when to use workstation vs VPS workflows

This makes the guide more accessible for users unfamiliar with homelab terminology.
2025-11-23 14:56:45 +00:00
Homelab Automation
8112530f7b Add comprehensive Gitea how-to guide
- Basic clone commands for homelab-agents and vps-system-apps
- Step-by-step workflow for making and pushing changes
- Common workflows for different scenarios
- Useful git commands reference
- Troubleshooting section for common issues
- Quick reference card for frequently used commands
- Best practices and tips

This guide provides everything needed to get started with Gitea
for managing homelab projects and agent repositories.
2025-11-23 14:51:01 +00:00
Homelab Automation
c4a1c15c61 Update sysadmin-session-closer agent with Gitea optimization
- Simplified git remote detection for Gitea
- Added support for repository type auto-detection (homelab-agents vs VPS projects)
- Integrated Gitea URL (http://100.120.125.113:3000) throughout workflow
- Added context-aware commit message patterns
- Enhanced documentation for both shared and project-specific repositories
- Improved error handling for Gitea-specific scenarios
- Added edge case handling for repository creation and configuration
- Comprehensive QA checklist for session closure

This version seamlessly integrates with the pdm Gitea instance while maintaining
all original functionality for session context preservation and documentation.
2025-11-23 14:47:48 +00:00
Homelab Automation
49161ed68d Add complete homelab agents structure, templates, and sysadmin-session-closer agent 2025-11-23 14:39:16 +00:00
pdm
80254e5b98 Initial commit 2025-11-23 13:51:56 +00:00