Add complete homelab agents structure, templates, and sysadmin-session-closer agent
This commit is contained in:
25
README.md
25
README.md
@@ -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
6
agents/README.md
Normal 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.
|
||||
18
agents/sysadmin-session-closer.md
Normal file
18
agents/sysadmin-session-closer.md
Normal 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
3
scripts/README.md
Normal file
@@ -0,0 +1,3 @@
|
||||
# Scripts
|
||||
|
||||
Utility scripts for agent installation and management.
|
||||
18
scripts/install-agent.sh
Executable file
18
scripts/install-agent.sh
Executable 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"
|
||||
10
templates/CLAUDE.md.template
Normal file
10
templates/CLAUDE.md.template
Normal file
@@ -0,0 +1,10 @@
|
||||
# Project Context
|
||||
|
||||
## Overview
|
||||
{{PROJECT_OVERVIEW}}
|
||||
|
||||
## Key Directories
|
||||
{{KEY_DIRECTORIES}}
|
||||
|
||||
## Important Files
|
||||
{{IMPORTANT_FILES}}
|
||||
3
templates/README.md
Normal file
3
templates/README.md
Normal file
@@ -0,0 +1,3 @@
|
||||
# Templates
|
||||
|
||||
Reusable templates for agent prompts and documentation.
|
||||
20
templates/session-summary.md.template
Normal file
20
templates/session-summary.md.template
Normal 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}}
|
||||
Reference in New Issue
Block a user