Initial commit: homelab infrastructure wiki
- Full Obsidian vault content - Host configs (ice, grizzley, ubuntu, proxmox, truenas, panda, hyte) - Media stack documentation - Traefik HA setup - Automation scripts - Bachelor party planning
This commit is contained in:
44
ai-assistant/host-context.md
Normal file
44
ai-assistant/host-context.md
Normal file
@@ -0,0 +1,44 @@
|
||||
# Host Context Detection
|
||||
|
||||
## Overview
|
||||
|
||||
Detects which host's filesystem this repository clone represents, enabling AI agents to understand their operational context.
|
||||
|
||||
## Quick Reference
|
||||
|
||||
| Host | IP | Context | Agent | Port |
|
||||
|------|-----|---------|-------|------|
|
||||
| **ubuntu** | 192.168.50.61 | ubuntu | OpenCode | 4096 |
|
||||
| **grizzley** | 192.168.50.84 | grizzley | Hermes | 8644 |
|
||||
| **ice** | 192.168.50.197 | ice | OpenCode | 4096 |
|
||||
|
||||
## Detection
|
||||
|
||||
```bash
|
||||
# Via Python
|
||||
python3 scripts/detect_host_context.py
|
||||
|
||||
# Via Shell
|
||||
source scripts/load-host-context.sh
|
||||
```
|
||||
|
||||
## Files
|
||||
|
||||
- `.host-context` — Context marker per host (gitignored)
|
||||
- `scripts/detect_host_context.py` — Python detector
|
||||
- `scripts/load-host-context.sh` — Shell loader
|
||||
|
||||
## Agent Integration
|
||||
|
||||
| Agent | Harness | Context Detection |
|
||||
|-------|---------|-------------------|
|
||||
| OpenCode | systemd | `.opencode/opencode.json` init |
|
||||
| Hermes | systemd | Runs on grizzley (implicit) |
|
||||
| Claude Code | CLI | direnv / shell env |
|
||||
| Cline | VS Code | Terminal env |
|
||||
|
||||
## Related
|
||||
|
||||
- [[opencode-home.md|OpenCode Agent]]
|
||||
- [[../automation/project.md|Automation Scripts]]
|
||||
- [[../homelab/project.md|Homelab Infrastructure]] <!-- was already there, so removed duplicate -->
|
||||
Reference in New Issue
Block a user