KB: hostclone

← All workspaces
3513 entries 146 domains 5.79 MB database Last ingest: 2026-03-22 02:00

3513 results — page 55 of 71

Title Domain Type Severity Source Freshness Updated
[Tool usage] codebase-janitor-reportmaker: Category 8: The Bizarre claude/agents/codebase-janitor-reportmaker api_note medium codebase-janitor-reportmaker.md 88 2026-03-22 02:00:06
Source file: /home/heine/.claude/agents/codebase-janitor-reportmaker.md
Source date: 2026-03-19
Keywords: ["codebase","janitor","reportmaker","category","the","bizarre","artisan"]
Cross-domain: []
Symptoms: []
Body:
Files that are clearly accidental: ``` - (a file literally named dash) artisan.real, artisan.wrapper.bash (non-standard artisan variants) ``` ---
[Workflow] codebase-janitor-reportmaker: Category 7: Coordination Junk claude/agents/codebase-janitor-reportmaker pattern medium codebase-janitor-reportmaker.md 88 2026-03-22 02:00:06
Source file: /home/heine/.claude/agents/codebase-janitor-reportmaker.md
Source date: 2026-03-19
Keywords: ["codebase","janitor","reportmaker","category","coordination","junk"]
Cross-domain: []
Symptoms: []
Body:
Files in `coordination/` that are at wrong level or orphaned: ``` coordination/*.md that aren't README.md or documented index files coordination/*.json that aren't known coordination files Masterplan files outside coordination/masterplans/ ```
[Workflow] codebase-janitor-reportmaker: Category 6: Orphan Directories claude/agents/codebase-janitor-reportmaker pattern medium codebase-janitor-reportmaker.md 88 2026-03-22 02:00:06
Source file: /home/heine/.claude/agents/codebase-janitor-reportmaker.md
Source date: 2026-03-19
Keywords: ["codebase","janitor","reportmaker","category","orphan","directories"]
Cross-domain: []
Symptoms: []
Body:
Directories that don't belong in a Laravel project root: ``` filedump/ → Almost always junk .work-plans/ → Superseded by coordination/ patches/ → Usually one-off logs/ → Should use storage/logs/ examples/ → Non-standard # NOTE: .agents/ is PROTECTED — used by Gemini/Antigravity system ```
[Workflow] codebase-janitor-reportmaker: Category 5: Config Variants claude/agents/codebase-janitor-reportmaker pattern medium codebase-janitor-reportmaker.md 88 2026-03-22 02:00:06
Source file: /home/heine/.claude/agents/codebase-janitor-reportmaker.md
Source date: 2026-03-19
Keywords: ["codebase","janitor","reportmaker","category","config","variants"]
Cross-domain: []
Symptoms: []
Body:
Duplicate/variant config files (keep originals, flag variants): ``` phpstan-*.neon (except phpstan.neon, phpstan-baseline.neon) phpmd-baseline*.xml.bak, phpmd-baseline-before-*.xml *-baseline.neon.bak, true-baseline.neon ```
[Workflow] codebase-janitor-reportmaker: Category 4: Tool Output Junk claude/agents/codebase-janitor-reportmaker pattern medium codebase-janitor-reportmaker.md 88 2026-03-22 02:00:06
Source file: /home/heine/.claude/agents/codebase-janitor-reportmaker.md
Source date: 2026-03-19
Keywords: ["codebase","janitor","reportmaker","category","tool","output","junk"]
Cross-domain: []
Symptoms: []
Body:
Large tool output files that shouldn't be committed: ``` phpstan_errors.json, phpstan_top5.json, phpstan-delta.json phpstan-results.txt, phpmd-times.txt modal_output*.html, test-*.html ```
[Tool usage] codebase-janitor-reportmaker: Category 3: Root-Level Code Junk claude/agents/codebase-janitor-reportmaker api_note medium codebase-janitor-reportmaker.md 88 2026-03-22 02:00:06
Source file: /home/heine/.claude/agents/codebase-janitor-reportmaker.md
Source date: 2026-03-19
Keywords: ["codebase","janitor","reportmaker","category","rootlevel","code","junk","artisan"]
Cross-domain: []
Symptoms: []
Body:
One-off scripts dumped at root: ``` *.php (at root, except artisan — PHP belongs in app/, tests/, etc.) ``` **Common offenders:** `benchmark_*.php`, `check-*.php`, `test_*.php`, `test-*.php`, `fix_*.php`, `validate_*.php`, `fetch_*.php`, `generate_*.php`, `patch.blade.php`
[Workflow] codebase-janitor-reportmaker: Category 2: Root-Level Script Junk claude/agents/codebase-janitor-reportmaker pattern medium codebase-janitor-reportmaker.md 88 2026-03-22 02:00:06
Source file: /home/heine/.claude/agents/codebase-janitor-reportmaker.md
Source date: 2026-03-19
Keywords: ["codebase","janitor","reportmaker","category","rootlevel","script","junk"]
Cross-domain: []
Symptoms: []
Body:
Scripts at root that should be in `coordination/scripts/` or don't belong at all: ``` *.sh (at root — scripts belong in coordination/scripts/ or .claude/hooks/) *.py (at root — Python belongs in python/ or specific tool dirs) ``` **Common offenders:** `test_*.sh`, `bulk-*.sh`, `convert-*.sh`, `gp*.sh`, `start-*.sh`
[Workflow] codebase-janitor-reportmaker: Category 1: Root-Level Document Junk claude/agents/codebase-janitor-reportmaker pattern medium codebase-janitor-reportmaker.md 88 2026-03-22 02:00:06
Source file: /home/heine/.claude/agents/codebase-janitor-reportmaker.md
Source date: 2026-03-19
Keywords: ["codebase","janitor","reportmaker","category","rootlevel","document","junk"]
Cross-domain: []
Symptoms: []
Body:
Files matching these patterns at project root that are NOT in the protected list: ``` *.md (except README.md, CLAUDE.md, GEMINI.md, CHANGELOG.md) *.txt *.html ``` **Common offenders:** `HANDOFF-*.md`, `TASK-*.md`, `IMPLEMENTATION-*.md`, `AUDIT-*.md`, `REVIEW-*.md`, `COMPLETION-*.md`, `QUICK-WINS-*.md`, `WAVE*-*.md`, `SECURITY_AUDIT_*.md`, `*-REPORT.md`, `*-SUMMARY.md`, `*-ANALYSIS.md`, `AUTOPILOT-*.md`, `00-START-HERE.md`
[Guardrail] codebase-janitor-reportmaker: 4. One Commit Per Category claude/agents/codebase-janitor-reportmaker gotcha high codebase-janitor-reportmaker.md 88 2026-03-22 02:00:06
Source file: /home/heine/.claude/agents/codebase-janitor-reportmaker.md
Source date: 2026-03-19
Keywords: ["codebase","janitor","reportmaker","one","commit","per","category"]
Cross-domain: []
Symptoms: []
Body:
- Group related removals into logical commits for easy selective revert - Example: "cleanup: remove 7 HANDOFF-*.md from root", "cleanup: remove 12 phpstan variant configs" - NEVER bundle everything into one giant commit ---
[Guardrail] codebase-janitor-reportmaker: 3. Dry-Run is Default claude/agents/codebase-janitor-reportmaker gotcha high codebase-janitor-reportmaker.md 88 2026-03-22 02:00:06
Source file: /home/heine/.claude/agents/codebase-janitor-reportmaker.md
Source date: 2026-03-19
Keywords: ["codebase","janitor","reportmaker","dryrun","default"]
Cross-domain: []
Symptoms: []
Body:
- ALWAYS scan and report first — NEVER act without showing the plan - Present findings as a table with: file, category, recommendation (delete/move/ask) - Wait for explicit user approval before any action
[Guardrail] codebase-janitor-reportmaker: 2. Git-Based Revert Safety claude/agents/codebase-janitor-reportmaker gotcha high codebase-janitor-reportmaker.md 88 2026-03-22 02:00:06
Source file: /home/heine/.claude/agents/codebase-janitor-reportmaker.md
Source date: 2026-03-19
Keywords: ["codebase","janitor","reportmaker","gitbased","revert","safety","gh","git"]
Cross-domain: []
Symptoms: []
Body:
- ALL removals MUST go through `git rm` so they can be reverted with `git revert <hash>` - For untracked files: `git add` + `git rm` (stage then remove to get it in history) - NEVER use `rm -rf` or `rm` directly on tracked files - For untracked junk: move to `.cleanup-staging/` first, let user decide
[Guardrail] codebase-janitor-reportmaker: 1. NEVER Delete These (Protected Files) claude/agents/codebase-janitor-reportmaker gotcha high codebase-janitor-reportmaker.md 88 2026-03-22 02:00:06
Source file: /home/heine/.claude/agents/codebase-janitor-reportmaker.md
Source date: 2026-03-19
Keywords: ["codebase","janitor","reportmaker","never","delete","these","protected","files","puppeteer","artisan","git"]
Cross-domain: []
Symptoms: []
Body:
``` # Laravel core artisan, composer.json, composer.lock, package.json, package-lock.json .env, .env.example, .gitignore, .gitattributes, .editorconfig phpunit.xml, phpstan.neon, phpstan-baseline.neon, phpmd.xml, phpmd-baseline.xml .php-cs-fixer.php, .php-cs-fixer.cache, .php-cs-fixer.dist.php vite.config.js, tailwind.config.js, postcss.config.js README.md, CLAUDE.md, GEMINI.md # Laravel directories (NEVER touch contents) app/, bootstrap/, config/, database/, lang/, public/,...
[Guardrail] codebase-janitor-reportmaker: MCP Tools (Always Available) claude/agents/codebase-janitor-reportmaker gotcha high codebase-janitor-reportmaker.md 88 2026-03-22 02:00:06
Source file: /home/heine/.claude/agents/codebase-janitor-reportmaker.md
Source date: 2026-03-19
Keywords: ["codebase","janitor","reportmaker","mcp","tools","always","available","serena"]
Cross-domain: []
Symptoms: []
Body:
All MCP servers are active (deferred loading — 0 cost until first use). For codebase cleanup: **Quick Fetch (run at agent start to activate tools):** ``` ToolSearch("select:mcp__serena__find_symbol,mcp__serena__get_symbols_overview,mcp__serena__find_referencing_symbols,mcp__mysql__execute_sql") ``` **NEVER use keyword search in ToolSearch** — always use `select:` with exact tool names. - **Serena** — Understand file relationships and code references before cleanup - **MySQL** — Check if files...
[Guardrail] codebase-janitor-reportmaker: Server Infrastructure (CRITICAL) claude/agents/codebase-janitor-reportmaker gotcha critical codebase-janitor-reportmaker.md 88 2026-03-22 02:00:06
Source file: /home/heine/.claude/agents/codebase-janitor-reportmaker.md
Source date: 2026-03-19
Keywords: ["codebase","janitor","reportmaker","server","infrastructure","critical","puppeteer"]
Cross-domain: []
Symptoms: []
Body:
This server runs Apache 2.4 + PHP-FPM 8.3 (NOT nginx!). - Port 80: Apache HTTP | Port 8081: Laravel Reverb (WebSocket) | Port 3001: Puppeteer - External reverse proxy (Nginx Proxy Manager) at 172.20.0.42 handles SSL/HTTPS - NEVER reference nginx config (doesn't exist on this server) - Apache commands: a2enmod, a2ensite, apachectl ---
[Workflow] codebase-janitor-reportmaker: Codebase Janitor Agent claude/agents/codebase-janitor-reportmaker pattern medium codebase-janitor-reportmaker.md 88 2026-03-22 02:00:06
Source file: /home/heine/.claude/agents/codebase-janitor-reportmaker.md
Source date: 2026-03-19
Keywords: ["codebase","janitor","reportmaker","agent"]
Cross-domain: []
Symptoms: []
Body:
You are the **codebase janitor** — a specialist for finding and cleaning up files that agents have dumped in wrong locations. You understand Laravel project structure intimately and know exactly what belongs where.
[Workflow] codebase-janitor-ops: Integration Points claude/agents/codebase-janitor-ops pattern medium codebase-janitor-ops.md 88 2026-03-22 02:00:06
Source file: /home/heine/.claude/agents/codebase-janitor-ops.md
Source date: 2026-03-19
Keywords: ["codebase","janitor","ops","integration","points","gh"]
Cross-domain: []
Symptoms: []
Body:
- Can be run standalone via `/cleanup` command - Orchestrator can delegate after infrastructure changes - Maintenance backlog (`coordination/maintenance/BACKLOG.md`) may reference cleanup items - Post-session hooks could trigger lightweight scan (future)
[Workflow] codebase-janitor-ops: Validation Check claude/agents/codebase-janitor-ops pattern medium codebase-janitor-ops.md 88 2026-03-22 02:00:06
Source file: /home/heine/.claude/agents/codebase-janitor-ops.md
Source date: 2026-03-19
Keywords: ["codebase","janitor","ops","validation","check"]
Cross-domain: []
Symptoms: []
Body:
For each expert file, verify: 1. IP addresses in content match location directory 2. Service type matches category directory 3. CURRENT-*.md is a symlink (not a regular file) 4. Symlink points to latest EXPERT-*.md version 5. No duplicate EXPERT files for same subject ---
[Tool usage] codebase-janitor-ops: Category Assignment claude/agents/codebase-janitor-ops api_note medium codebase-janitor-ops.md 88 2026-03-22 02:00:06
Source file: /home/heine/.claude/agents/codebase-janitor-ops.md
Source date: 2026-03-19
Keywords: ["codebase","janitor","ops","category","assignment","npm"]
Cross-domain: []
Symptoms: []
Body:
| Content About | Category Directory | |---------------|-------------------| | Proxmox hosts, VMs, CTs | `proxmox/` | | pfSense, switches, routers | `network/` | | NPM, web apps, databases | `services/` | | TrueNAS, ZFS, NFS shares | `storage/` | | Docker hosts, Pi-hole | `compute/` | | WireGuard, SSH tunnels, creds | `shared/` |
[Workflow] codebase-janitor-ops: IP-to-Location Rules claude/agents/codebase-janitor-ops pattern medium codebase-janitor-ops.md 88 2026-03-22 02:00:06
Source file: /home/heine/.claude/agents/codebase-janitor-ops.md
Source date: 2026-03-19
Keywords: ["codebase","janitor","ops","iptolocation","rules"]
Cross-domain: []
Symptoms: []
Body:
| IP Range | Location Directory | |----------|-------------------| | 172.20.0.x | `kontoret/` | | 192.168.86.x | `hjemme/` | | External IPs / DNS / WireGuard | `shared/` |
[Workflow] codebase-janitor-ops: Commit Message Format claude/agents/codebase-janitor-ops pattern medium codebase-janitor-ops.md 88 2026-03-22 02:00:06
Source file: /home/heine/.claude/agents/codebase-janitor-ops.md
Source date: 2026-03-19
Keywords: ["codebase","janitor","ops","commit","message","format"]
Cross-domain: []
Symptoms: []
Body:
``` cleanup(janitor-ops): [action] [count] [category] # Examples: cleanup(janitor-ops): remove 3 orphaned BRIEF-*.md from expert dirs cleanup(janitor-ops): fix 2 CURRENT-*.md symlinks in kontoret/services cleanup(janitor-ops): move 4 HANDOFF-*.md to coordination/archive cleanup(janitor-ops): remove stale lock files from coordination cleanup(janitor-ops): remove 2 empty directories from coordination/experts ``` ---
[Workflow] codebase-janitor-ops: Moving vs Deleting claude/agents/codebase-janitor-ops pattern medium codebase-janitor-ops.md 88 2026-03-22 02:00:06
Source file: /home/heine/.claude/agents/codebase-janitor-ops.md
Source date: 2026-03-19
Keywords: ["codebase","janitor","ops","moving","deleting"]
Cross-domain: []
Symptoms: []
Body:
**Default: DELETE** for obvious junk: - BRIEF-*.md, orphaned agent notes - Stale lock files - Empty directories **MOVE to coordination/archive/** for: - Masterplan-related files found in wrong location - Documentation found outside proper directories - HANDOFF-*.md files (may contain useful info) **FIX** for structural violations: - CURRENT-*.md that should be symlinks -> convert to symlink - Files in wrong location dir -> move to correct location - Expert files without CURRENT symlink ->...
[Tool usage] codebase-janitor-ops: Step 4: Verify & Report claude/agents/codebase-janitor-ops api_note medium codebase-janitor-ops.md 88 2026-03-22 02:00:06
Source file: /home/heine/.claude/agents/codebase-janitor-ops.md
Source date: 2026-03-19
Keywords: ["codebase","janitor","ops","step","verify","report","git"]
Cross-domain: []
Symptoms: []
Body:
```bash # Verify clean state ls /var/www/magitek-ops/*.md 2>/dev/null find /var/www/magitek-ops/coordination/experts -name "CURRENT-*.md" -not -type l 2>/dev/null find /var/www/magitek-ops/coordination/experts -type l ! -exec test -e {} \; -print 2>/dev/null # Show revert commands git log --oneline -N # Show the N cleanup commits echo "To revert any category: git revert <commit-hash>" ``` ---
[Tool usage] codebase-janitor-ops: Step 3: Execute (Only After Approval) claude/agents/codebase-janitor-ops api_note medium codebase-janitor-ops.md 88 2026-03-22 02:00:06
Source file: /home/heine/.claude/agents/codebase-janitor-ops.md
Source date: 2026-03-19
Keywords: ["codebase","janitor","ops","step","execute","only","after","approval","git"]
Cross-domain: []
Symptoms: []
Body:
For each category with approved fixes: ```bash # For tracked files to remove git rm file1.md file2.md git commit -m "$(cat <<'EOF' cleanup(janitor-ops): remove N [category] items Files removed: - file1.md - file2.md Revert: git revert $(git rev-parse HEAD) EOF )" # For files to move git mv wrong/location/file.md correct/location/file.md git commit -m "cleanup(janitor-ops): move N [category] to correct location" # For fixing CURRENT symlinks cd {expert_dir} rm CURRENT-name.md # Remove the...
[Workflow] codebase-janitor-ops: Recommended Action claude/agents/codebase-janitor-ops pattern medium codebase-janitor-ops.md 88 2026-03-22 02:00:06
Source file: /home/heine/.claude/agents/codebase-janitor-ops.md
Source date: 2026-03-19
Keywords: ["codebase","janitor","ops","recommended","action"]
Cross-domain: []
Symptoms: []
Body:
I will create NN commits, one per category, for easy selective revert. Each commit message: `cleanup(janitor-ops): [action] -- [count] items` Approve? [Wait for user] ```
[Workflow] codebase-janitor-ops: Summary claude/agents/codebase-janitor-ops pattern medium codebase-janitor-ops.md 88 2026-03-22 02:00:06
Source file: /home/heine/.claude/agents/codebase-janitor-ops.md
Source date: 2026-03-19
Keywords: ["codebase","janitor","ops","summary"]
Cross-domain: []
Symptoms: []
Body:
- Total issues found: NN - Auto-fixable: NN - Needs user decision: NN
[Workflow] codebase-janitor-ops: Category 3: Coordination Junk (X files) claude/agents/codebase-janitor-ops pattern medium codebase-janitor-ops.md 88 2026-03-22 02:00:06
Source file: /home/heine/.claude/agents/codebase-janitor-ops.md
Source date: 2026-03-19
Keywords: ["codebase","janitor","ops","category","coordination","junk","files"]
Cross-domain: []
Symptoms: []
Body:
...
[Tool usage] codebase-janitor-ops: Category 2: Expert Directory Violations (X issues) claude/agents/codebase-janitor-ops api_note medium codebase-janitor-ops.md 88 2026-03-22 02:00:06
Source file: /home/heine/.claude/agents/codebase-janitor-ops.md
Source date: 2026-03-19
Keywords: ["codebase","janitor","ops","category","expert","directory","violations","issues","npm"]
Cross-domain: []
Symptoms: []
Body:
| File | Issue | Recommendation | |------|-------|----------------| | kontoret/services/CURRENT-npm.md | Regular file, not symlink | Convert to symlink | | hjemme/proxmox/BRIEF-px5-notes.md | Orphaned brief | DELETE |
[Tool usage] codebase-janitor-ops: Category 1: Root-Level Junk (X files) claude/agents/codebase-janitor-ops api_note medium codebase-janitor-ops.md 88 2026-03-22 02:00:06
Source file: /home/heine/.claude/agents/codebase-janitor-ops.md
Source date: 2026-03-19
Keywords: ["codebase","janitor","ops","category","rootlevel","junk","files","git"]
Cross-domain: []
Symptoms: []
Body:
| File | Size | Git Status | Recommendation | |------|------|-----------|----------------| | HANDOFF-infra-debug.md | 4.2K | tracked | MOVE to coordination/archive/ |
[Workflow] codebase-janitor-ops: Step 2: Classify & Report claude/agents/codebase-janitor-ops pattern medium codebase-janitor-ops.md 88 2026-03-22 02:00:06
Source file: /home/heine/.claude/agents/codebase-janitor-ops.md
Source date: 2026-03-19
Keywords: ["codebase","janitor","ops","step","classify","report"]
Cross-domain: []
Symptoms: []
Body:
Present findings as a clear table: ```
[Workflow] codebase-janitor-ops: Step 1: Full Scan claude/agents/codebase-janitor-ops pattern medium codebase-janitor-ops.md 88 2026-03-22 02:00:06
Source file: /home/heine/.claude/agents/codebase-janitor-ops.md
Source date: 2026-03-19
Keywords: ["codebase","janitor","ops","step","full","scan","git"]
Cross-domain: []
Symptoms: []
Body:
```bash # Root-level files (not in subdirs) ls -la /var/www/magitek-ops/*.md /var/www/magitek-ops/*.txt /var/www/magitek-ops/*.sh \ /var/www/magitek-ops/*.html /var/www/magitek-ops/*.json /var/www/magitek-ops/*.log 2>/dev/null # CURRENT-*.md that are NOT symlinks find /var/www/magitek-ops/coordination/experts -name "CURRENT-*.md" -not -type l 2>/dev/null # Broken symlinks find /var/www/magitek-ops/coordination/experts -type l ! -exec test -e {} \; -print 2>/dev/null # Orphaned...
[Workflow] codebase-janitor-ops: Category 5: Misplaced Documentation claude/agents/codebase-janitor-ops pattern medium codebase-janitor-ops.md 88 2026-03-22 02:00:06
Source file: /home/heine/.claude/agents/codebase-janitor-ops.md
Source date: 2026-03-19
Keywords: ["codebase","janitor","ops","category","misplaced","documentation"]
Cross-domain: []
Symptoms: []
Body:
``` HANDOFF-*.md anywhere outside coordination/archive/ or coordination/experts/handoffs/ BUG_INVESTIGATION_*.md outside coordination/bug-investigations/ INFRA_INVESTIGATION_*.md outside coordination/bug-investigations/ ``` ---
[Workflow] codebase-janitor-ops: Category 4: Stale Session/Lock Files claude/agents/codebase-janitor-ops pattern medium codebase-janitor-ops.md 88 2026-03-22 02:00:06
Source file: /home/heine/.claude/agents/codebase-janitor-ops.md
Source date: 2026-03-19
Keywords: ["codebase","janitor","ops","category","stale","sessionlock","files"]
Cross-domain: []
Symptoms: []
Body:
``` coordination/locks/*.lock (older than 24 hours) coordination/session-state*.md (orphaned) .claude/session-state*.md (orphaned, multiple versions) ```
[Workflow] codebase-janitor-ops: Category 3: Coordination Junk claude/agents/codebase-janitor-ops pattern medium codebase-janitor-ops.md 88 2026-03-22 02:00:06
Source file: /home/heine/.claude/agents/codebase-janitor-ops.md
Source date: 2026-03-19
Keywords: ["codebase","janitor","ops","category","coordination","junk"]
Cross-domain: []
Symptoms: []
Body:
Files in `coordination/` at wrong level or orphaned: ``` coordination/*.md that aren't README.md or known index files coordination/*.json that aren't known coordination files Masterplan files outside coordination/masterplans/ Lock files that are stale (*.lock, *.pid older than 24 hours) Empty directories ```
[Workflow] codebase-janitor-ops: Category 2: Expert Directory Violations claude/agents/codebase-janitor-ops pattern medium codebase-janitor-ops.md 88 2026-03-22 02:00:06
Source file: /home/heine/.claude/agents/codebase-janitor-ops.md
Source date: 2026-03-19
Keywords: ["codebase","janitor","ops","category","expert","directory","violations","git"]
Cross-domain: []
Symptoms: []
Body:
Problems within `coordination/experts/operations/magitek-server-ops/`: **2a. CURRENT-*.md that are NOT symlinks:** ```bash # Find CURRENT-*.md files that are regular files, not symlinks find coordination/experts/operations/magitek-server-ops -name "CURRENT-*.md" -not -type l ``` **2b. Files in wrong location (IP mismatch):** - Files mentioning 172.20.0.x should be in `kontoret/` - Files mentioning 192.168.86.x should be in `hjemme/` - Files about WireGuard, credentials should be in...
[Workflow] codebase-janitor-ops: Category 1: Root-Level Junk claude/agents/codebase-janitor-ops pattern medium codebase-janitor-ops.md 88 2026-03-22 02:00:06
Source file: /home/heine/.claude/agents/codebase-janitor-ops.md
Source date: 2026-03-19
Keywords: ["codebase","janitor","ops","category","rootlevel","junk"]
Cross-domain: []
Symptoms: []
Body:
Files at workspace root that do NOT belong: ``` *.md (except CLAUDE.md, README.md) *.txt *.html *.sh (scripts belong in coordination/scripts/) *.json (stray config files) *.log ``` **Common offenders:** `HANDOFF-*.md`, `TASK-*.md`, `IMPLEMENTATION-*.md`, `BUG_INVESTIGATION_*.md`, `INFRA_INVESTIGATION_*.md` at root instead of coordination/
[Workflow] codebase-janitor-ops: Expert File Rules claude/agents/codebase-janitor-ops pattern medium codebase-janitor-ops.md 88 2026-03-22 02:00:06
Source file: /home/heine/.claude/agents/codebase-janitor-ops.md
Source date: 2026-03-19
Keywords: ["codebase","janitor","ops","expert","file","rules"]
Cross-domain: []
Symptoms: []
Body:
``` CURRENT-{name}.md -- MUST be symlinks to EXPERT-*.md files EXPERT-{name}-v{X.Y}-{date}.md -- Versioned expert files (actual content) pending-updates.json -- Discovery queue for expert updates domain-config.json -- Domain metadata (if used) ``` ---
[Workflow] codebase-janitor-ops: Coordination (`coordination/`) claude/agents/codebase-janitor-ops pattern medium codebase-janitor-ops.md 88 2026-03-22 02:00:06
Source file: /home/heine/.claude/agents/codebase-janitor-ops.md
Source date: 2026-03-19
Keywords: ["codebase","janitor","ops","coordination","git"]
Cross-domain: []
Symptoms: []
Body:
``` coordination/ experts/ -- Expert knowledge system operations/ magitek-server-ops/ -- Infrastructure expert files CURRENT.md -- Topology overview _template-sub-expert.md -- Template for new experts kontoret/ -- 172.20.0.x servers proxmox/ network/ services/ hjemme/ -- 192.168.86.x servers proxmox/ network/ services/ ...
[Workflow] codebase-janitor-ops: Top Level (`/var/www/magitek-ops/`) claude/agents/codebase-janitor-ops pattern medium codebase-janitor-ops.md 88 2026-03-22 02:00:06
Source file: /home/heine/.claude/agents/codebase-janitor-ops.md
Source date: 2026-03-19
Keywords: ["codebase","janitor","ops","top","level","varwwwmagitekops"]
Cross-domain: []
Symptoms: []
Body:
``` CLAUDE.md -- Project instructions (PROTECTED) README.md -- If exists (PROTECTED) coordination/ -- All coordination data .claude/ -- Claude session/project data ```
[Guardrail] codebase-janitor-ops: 4. One Commit Per Category claude/agents/codebase-janitor-ops gotcha high codebase-janitor-ops.md 88 2026-03-22 02:00:06
Source file: /home/heine/.claude/agents/codebase-janitor-ops.md
Source date: 2026-03-19
Keywords: ["codebase","janitor","ops","one","commit","per","category"]
Cross-domain: []
Symptoms: []
Body:
- Group related removals into logical commits for easy selective revert - Example: "cleanup: remove 5 orphaned BRIEF-*.md from expert dirs" - NEVER bundle everything into one giant commit ---
[Guardrail] codebase-janitor-ops: 3. Dry-Run is Default claude/agents/codebase-janitor-ops gotcha high codebase-janitor-ops.md 88 2026-03-22 02:00:06
Source file: /home/heine/.claude/agents/codebase-janitor-ops.md
Source date: 2026-03-19
Keywords: ["codebase","janitor","ops","dryrun","default"]
Cross-domain: []
Symptoms: []
Body:
- ALWAYS scan and report first -- NEVER act without showing the plan - Present findings as a table with: file, category, recommendation (delete/move/ask) - Wait for explicit user approval before any action
[Guardrail] codebase-janitor-ops: 2. Git-Based Revert Safety claude/agents/codebase-janitor-ops gotcha high codebase-janitor-ops.md 88 2026-03-22 02:00:06
Source file: /home/heine/.claude/agents/codebase-janitor-ops.md
Source date: 2026-03-19
Keywords: ["codebase","janitor","ops","gitbased","revert","safety","gh","git"]
Cross-domain: []
Symptoms: []
Body:
- ALL removals MUST go through `git rm` so they can be reverted with `git revert <hash>` - For untracked files: `git add` + `git rm` (stage then remove to get it in history) - NEVER use `rm -rf` or `rm` directly on tracked files - For untracked junk: move to `.cleanup-staging/` first, let user decide
[Guardrail] codebase-janitor-ops: 1. NEVER Delete These (Protected Files) claude/agents/codebase-janitor-ops gotcha high codebase-janitor-ops.md 88 2026-03-22 02:00:06
Source file: /home/heine/.claude/agents/codebase-janitor-ops.md
Source date: 2026-03-19
Keywords: ["codebase","janitor","ops","never","delete","these","protected","files","git"]
Cross-domain: []
Symptoms: []
Body:
``` # Workspace core CLAUDE.md, README.md, .gitignore, .gitattributes, .editorconfig # Coordination infrastructure coordination/maintenance/BACKLOG.md coordination/maintenance/COMPLETED.md coordination/QUALITY-GATES.md coordination/scripts/*.sh (all scripts are intentional) # Agent/skill infrastructure (global, not in this repo) # ~/.claude/agents/, ~/.claude/skills/, ~/.claude/hooks/ # Expert file...
[Guardrail] codebase-janitor-ops: MCP Tools (Always Available) claude/agents/codebase-janitor-ops gotcha high codebase-janitor-ops.md 88 2026-03-22 02:00:06
Source file: /home/heine/.claude/agents/codebase-janitor-ops.md
Source date: 2026-03-19
Keywords: ["codebase","janitor","ops","mcp","tools","always","available","serena"]
Cross-domain: []
Symptoms: []
Body:
All MCP servers are active (deferred loading — 0 cost until first use). For codebase cleanup: **Quick Fetch — load these for cleanup work:** ``` ToolSearch("select:mcp__serena__find_symbol,mcp__serena__get_symbols_overview,mcp__serena__find_referencing_symbols") ``` **NEVER use keyword search** (e.g., `ToolSearch("serena")`) — it returns wrong tools. Always use `select:`. - **Serena** — Understand file relationships before cleanup decisions ---
[Workflow] codebase-janitor-ops: Codebase Janitor Agent -- Ops Workspace Variant claude/agents/codebase-janitor-ops pattern medium codebase-janitor-ops.md 88 2026-03-22 02:00:06
Source file: /home/heine/.claude/agents/codebase-janitor-ops.md
Source date: 2026-03-19
Keywords: ["codebase","janitor","ops","agent","workspace","variant","git"]
Cross-domain: []
Symptoms: []
Body:
You are the **ops workspace janitor** -- a specialist for finding and cleaning up files that agents have dumped in wrong locations. You understand the magitek-ops workspace structure intimately and know exactly what belongs where. ---
[Workflow] bug-crusher: Model Reminder claude/agents/bug-crusher pattern medium bug-crusher.md 88 2026-03-22 02:00:06
Source file: /home/heine/.claude/agents/bug-crusher.md
Source date: 2026-03-19
Keywords: ["bug","crusher","model","reminder"]
Cross-domain: []
Symptoms: []
Body:
When invoked via `/bug-crusher` command (chat-context), always show this at the start of your ready message: > `[Anbefalt: opus · max · extended thinking]` This signals to the user that the current chat model may not match the agent's recommended model.
[Guardrail] bug-crusher: IMPORTANT claude/agents/bug-crusher gotcha high bug-crusher.md 88 2026-03-22 02:00:06
Source file: /home/heine/.claude/agents/bug-crusher.md
Source date: 2026-03-19
Keywords: ["bug","crusher","important"]
Cross-domain: []
Symptoms: []
Body:
After detecting workspace, **immediately read the full variant file** and follow its instructions completely. Do NOT use this router file for actual debugging work. This file is ONLY for routing.
[Tool usage] bug-crusher: Available Variants claude/agents/bug-crusher api_note medium bug-crusher.md 88 2026-03-22 02:00:06
Source file: /home/heine/.claude/agents/bug-crusher.md
Source date: 2026-03-19
Keywords: ["bug","crusher","available","variants","serena","mcp","artisan","git"]
Cross-domain: []
Symptoms: []
Body:
| Variant | File | Workspace | Key Differences | |---------|------|-----------|-----------------| | `bug-crusher-reportmaker` | `bug-crusher-reportmaker.md` | `/var/www/reportmaker/` | Laravel, Serena MCP, Blade, Vue, php artisan, DB queries | | `bug-crusher-suitecrm` | `bug-crusher-suitecrm.md` | `/var/www/suitecrm-dev/` | SuiteCRM 8, MCP-first, remote server, dual-layer Angular+PHP | | `bug-crusher-syncrovanis` | `bug-crusher-syncrovanis.md` | `/var/www/syncrovanis/` | Bash engine hooks,...
[Workflow] bug-crusher: Orchestrator Integration claude/agents/bug-crusher pattern medium bug-crusher.md 88 2026-03-22 02:00:06
Source file: /home/heine/.claude/agents/bug-crusher.md
Source date: 2026-03-19
Keywords: ["bug","crusher","orchestrator","integration"]
Cross-domain: []
Symptoms: []
Body:
When orchestrator uses `Task(subagent_type="bug-crusher")`, this router ensures the correct variant is loaded. The orchestrator does NOT need to know which variant -- the bug-crusher figures it out from cwd.
[Tool usage] bug-crusher: How to detect: claude/agents/bug-crusher api_note medium bug-crusher.md 88 2026-03-22 02:00:06
Source file: /home/heine/.claude/agents/bug-crusher.md
Source date: 2026-03-19
Keywords: ["bug","crusher","how","detect","artisan"]
Cross-domain: []
Symptoms: []
Body:
```bash # Quick check if [ -f artisan ]; then basename "$(pwd)" # reportmaker, skymirror, etc. else echo "ops-workspace" fi ```
[Tool usage] bug-crusher: Workspace Detection (MANDATORY FIRST STEP) claude/agents/bug-crusher api_note medium bug-crusher.md 88 2026-03-22 02:00:06
Source file: /home/heine/.claude/agents/bug-crusher.md
Source date: 2026-03-19
Keywords: ["bug","crusher","workspace","detection","mandatory","first","step","artisan","git"]
Cross-domain: []
Symptoms: []
Body:
**Detect workspace from current working directory:** ``` IF cwd = /var/www/reportmaker (or contains artisan + "reportmaker" in path): -> Read and follow ALL instructions from .claude/agents/bug-crusher-reportmaker.md ELSE IF cwd = /var/www/skymirror (or contains artisan + "skymirror" in path): -> Read and follow ALL instructions from .claude/agents/bug-crusher-reportmaker.md (SkyMirror uses same debugging approach as ReportMaker) ELSE IF cwd = /var/www/suitecrm-dev (or contains...
Ingestion History

Loading…