Add complete homelab agents structure, templates, and sysadmin-session-closer agent

This commit is contained in:
Homelab Automation
2025-11-23 14:39:16 +00:00
parent 80254e5b98
commit 49161ed68d
8 changed files with 101 additions and 2 deletions

View File

@@ -1,3 +1,24 @@
# homelab-agents # Homelab Agents
Central storage for AI agent prompts Central storage for AI agent prompts shared across all VPS instances.
## Structure
- `agents/` - Agent prompt definitions
- `templates/` - Template files for agents and session summaries
- `scripts/` - Installation and utility scripts
## Usage
Clone this repository on any VPS:
```bash
git clone http://100.120.125.113:3000/pdm/homelab-agents.git ~/.homelab-agents
```
Update agents:
```bash
cd ~/.homelab-agents && git pull
```
## Available Agents
- **sysadmin-session-closer** - Automatically closes and documents dev sessions

6
agents/README.md Normal file
View File

@@ -0,0 +1,6 @@
# Agents
Agent prompt definitions for use across the homelab.
## sysadmin-session-closer
Automatically closes development sessions and creates session summaries.

View File

@@ -0,0 +1,18 @@
# Sysadmin Session Closer Agent
Automatically closes development sessions and generates session summaries.
## Purpose
This agent monitors active development sessions and automatically:
1. Detects when a session is ending
2. Captures session context and changes
3. Generates a comprehensive session summary
4. Updates git repositories with changes
5. Cleans up temporary files
## Features
- Automatic session detection
- Git integration for repository changes
- Session summary generation with timestamps
- Support for both homelab-agents and VPS project repositories
- Intelligent change detection

3
scripts/README.md Normal file
View File

@@ -0,0 +1,3 @@
# Scripts
Utility scripts for agent installation and management.

18
scripts/install-agent.sh Executable file
View File

@@ -0,0 +1,18 @@
#!/bin/bash
# Install agent script
AGENT_NAME="${1:-}"
HOMELAB_DIR="${HOME}/.homelab-agents"
if [ -z "$AGENT_NAME" ]; then
echo "Usage: install-agent.sh <agent-name>"
exit 1
fi
if [ ! -f "$HOMELAB_DIR/agents/$AGENT_NAME.md" ]; then
echo "Error: Agent $AGENT_NAME not found"
exit 1
fi
echo "Installing agent: $AGENT_NAME"
cat "$HOMELAB_DIR/agents/$AGENT_NAME.md"

View File

@@ -0,0 +1,10 @@
# Project Context
## Overview
{{PROJECT_OVERVIEW}}
## Key Directories
{{KEY_DIRECTORIES}}
## Important Files
{{IMPORTANT_FILES}}

3
templates/README.md Normal file
View File

@@ -0,0 +1,3 @@
# Templates
Reusable templates for agent prompts and documentation.

View File

@@ -0,0 +1,20 @@
# Session Summary - {{DATE}}
## Context
Project: {{PROJECT_NAME}}
Duration: {{START_TIME}} to {{END_TIME}}
Developer: {{USER}}
## Changes Made
{{CHANGES}}
## Files Modified
{{FILES_MODIFIED}}
## Git Status
```
{{GIT_STATUS}}
```
## Next Steps
{{NEXT_STEPS}}