KB: magitek-ops

← All workspaces
9584 entries 237 domains 14.03 MB database Last ingest: 2026-03-20 15:51

9584 results — page 8 of 192

Title Domain Type Severity Source Freshness Updated
[Workflow] expert-training-prenote: Cross-References claude/agents/expert-training-prenote pattern medium expert-training-prenote.md 88 2026-03-20 15:46:34
Source file: /home/heine/.claude/agents/expert-training-prenote.md
Source date: 2026-03-20
Keywords: ["expert","training","prenote","crossreferences"]
Cross-domain: []
Symptoms: []
Body:
- Related expert: [filename] - Source code: [file:line] ``` ---
[Workflow] expert-training-prenote: Gotchas claude/agents/expert-training-prenote pattern medium expert-training-prenote.md 88 2026-03-20 15:46:34
Source file: /home/heine/.claude/agents/expert-training-prenote.md
Source date: 2026-03-20
Keywords: ["expert","training","prenote","gotchas"]
Cross-domain: []
Symptoms: []
Body:
[Numbered PRE-NN gotchas with root cause and workaround]
[Workflow] expert-training-prenote: Architecture claude/agents/expert-training-prenote pattern medium expert-training-prenote.md 88 2026-03-20 15:46:34
Source file: /home/heine/.claude/agents/expert-training-prenote.md
Source date: 2026-03-20
Keywords: ["expert","training","prenote","architecture"]
Cross-domain: []
Symptoms: []
Body:
[System structure with file paths and line references]
[Workflow] expert-training-prenote: Overview claude/agents/expert-training-prenote pattern medium expert-training-prenote.md 88 2026-03-20 15:46:34
Source file: /home/heine/.claude/agents/expert-training-prenote.md
Source date: 2026-03-20
Keywords: ["expert","training","prenote","overview"]
Cross-domain: []
Symptoms: []
Body:
[What this covers and why it matters]
[Workflow] expert-training-prenote: Expert File Template claude/agents/expert-training-prenote pattern medium expert-training-prenote.md 88 2026-03-20 15:46:34
Source file: /home/heine/.claude/agents/expert-training-prenote.md
Source date: 2026-03-20
Keywords: ["expert","training","prenote","file","template"]
Cross-domain: []
Symptoms: []
Body:
```markdown --- version: X.Y date: YYYY-MM-DD scope: prenote --- # EXPERT: Prenote [Topic] vX.Y
[Workflow] expert-training-prenote: Source Discovery claude/agents/expert-training-prenote pattern medium expert-training-prenote.md 88 2026-03-20 15:46:34
Source file: /home/heine/.claude/agents/expert-training-prenote.md
Source date: 2026-03-20
Keywords: ["expert","training","prenote","source","discovery","git"]
Cross-domain: []
Symptoms: []
Body:
When building expert knowledge: ```bash # Primary sources cat /var/www/prenote/scripts/ebook-parser/*.py cat /var/www/prenote/app/Services/EbookParserService.php cat /var/www/prenote/app/Infrastructure/LLM/*.php cat /var/www/prenote/config/llm.php cat /var/www/prenote/app/Jobs/ParseBookJob.php cat /var/www/prenote/app/Jobs/ProcessChunksJob.php cat /var/www/prenote/app/Events/BookProgressEvent.php # Architecture overview cat /var/www/prenote/ARCHITECTURE.md # Existing expert (if it...
[Workflow] expert-training-prenote: Knowledge Domains to Cover claude/agents/expert-training-prenote pattern medium expert-training-prenote.md 88 2026-03-20 15:46:34
Source file: /home/heine/.claude/agents/expert-training-prenote.md
Source date: 2026-03-20
Keywords: ["expert","training","prenote","knowledge","domains","cover"]
Cross-domain: []
Symptoms: []
Body:
Expert files must document: 1. **Python-PHP Bridge** — How shell_exec works, venv activation, error handling, calibre usage 2. **Ebook Parsing** — ebooklib API, chapter extraction (font-size heuristics), epub structure 3. **Format Conversion** — mobi/azw4 to epub via calibre, temp file lifecycle 4. **LLM Service** — Provider routing, config/llm.php structure, TokenCounter, cost estimation 5. **Provider-specific** — Anthropic/OpenAI/Google/Groq API patterns, CLI agent invocation 6. **Queue...
[Workflow] expert-training-prenote: What Prenote Is claude/agents/expert-training-prenote pattern medium expert-training-prenote.md 88 2026-03-20 15:46:34
Source file: /home/heine/.claude/agents/expert-training-prenote.md
Source date: 2026-03-20
Keywords: ["expert","training","prenote","what"]
Cross-domain: []
Symptoms: []
Body:
Laravel 12 app that converts ebooks (epub/mobi/azw4) into structured Markdown preparation notes via LLM. **Unique architecture elements:** - Python ebook parsing via `shell_exec()` from EbookParserService - Python venv at `scripts/ebook-parser/venv/` - Multi-provider LLM routing (Cloud API + Local CLI agents) - SQLite database (not MySQL) - WebSocket progress tracking on port 8082 (Reverb) - Queue worker: systemd `prenote-worker.service` ---
[Guardrail] expert-training-prenote: Expert File Structure claude/agents/expert-training-prenote gotcha high expert-training-prenote.md 88 2026-03-20 15:46:34
Source file: /home/heine/.claude/agents/expert-training-prenote.md
Source date: 2026-03-20
Keywords: ["expert","training","prenote","file","structure"]
Cross-domain: []
Symptoms: []
Body:
``` coordination/experts/prenote/ ├── CURRENT.md → EXPERT-prenote-v*.md (main overview, architecture, gotchas) └── _archive/ — Old versions, never delete permanently ``` **When the main expert exceeds 600 lines, split into domain sub-files:** ``` coordination/experts/prenote/ ├── CURRENT.md → EXPERT-prenote-v*.md (overview + index) ├── parsing/ │ └── CURRENT.md → EXPERT-prenote-parsing-v*.md (Python bridge, calibre, ebooklib) ├── llm/ │ └──...
[Workflow] expert-training-prenote: Expert Training Agent — Prenote claude/agents/expert-training-prenote pattern medium expert-training-prenote.md 88 2026-03-20 15:46:34
Source file: /home/heine/.claude/agents/expert-training-prenote.md
Source date: 2026-03-20
Keywords: ["expert","training","prenote","agent"]
Cross-domain: []
Symptoms: []
Body:
**Purpose:** Create and maintain expert knowledge files for the Prenote book preparation notes generator. **Workspace:** `/var/www/prenote/` **Expert root:** `coordination/experts/prenote/` ---
[Guardrail] bug-crusher-prenote: Documentation Policy claude/agents/bug-crusher-prenote gotcha high bug-crusher-prenote.md 88 2026-03-20 15:46:34
Source file: /home/heine/.claude/agents/bug-crusher-prenote.md
Source date: 2026-03-20
Keywords: ["bug","crusher","prenote","documentation","policy","gh"]
Cross-domain: []
Symptoms: []
Body:
**ALL documentation you create is for LLM consumption only:** - File paths with line numbers (`app/Services/EbookParserService.php:45`) - Root causes explained (WHY, not just WHAT) - Integration points affected - NEVER verbose tutorials, code examples, or step-by-step humans guides --- **You are Bug Crusher for Prenote.** Your mission: find root causes, not symptoms. For Python-PHP bridge bugs and LLM provider failures — these are Prenote's highest-risk areas. Always investigate these first.
[Tool usage] bug-crusher-prenote: Quick Diagnostic Commands claude/agents/bug-crusher-prenote api_note medium bug-crusher-prenote.md 88 2026-03-20 15:46:34
Source file: /home/heine/.claude/agents/bug-crusher-prenote.md
Source date: 2026-03-20
Keywords: ["bug","crusher","prenote","quick","diagnostic","commands","artisan","npm"]
Cross-domain: []
Symptoms: []
Body:
```bash # Full stack health check systemctl status prenote-worker.service php artisan queue:failed --limit=5 tail -20 /var/www/prenote/storage/logs/laravel.log ss -tlnp | grep 808 # After any PHP change php artisan optimize:clear # After any config/job change php artisan queue:restart # After any Vue/CSS change npm run build # Fix permissions ./coordination/scripts/fix-permissions.sh ``` ---
[Workflow] bug-crusher-prenote: Log File Locations claude/agents/bug-crusher-prenote pattern medium bug-crusher-prenote.md 88 2026-03-20 15:46:34
Source file: /home/heine/.claude/agents/bug-crusher-prenote.md
Source date: 2026-03-20
Keywords: ["bug","crusher","prenote","log","file","locations","git"]
Cross-domain: []
Symptoms: []
Body:
``` Laravel app: /var/www/prenote/storage/logs/laravel.log Apache error: /var/log/apache2/prenote.magitek.no_error.log Apache access: /var/log/apache2/prenote.magitek.no_access.log Queue worker: journalctl -u prenote-worker.service -n 100 PHP-FPM: /var/log/php8.3-fpm.log ``` ---
[Tool usage] bug-crusher-prenote: Domain 5: File Storage / Permissions claude/agents/bug-crusher-prenote api_note medium bug-crusher-prenote.md 88 2026-03-20 15:46:34
Source file: /home/heine/.claude/agents/bug-crusher-prenote.md
Source date: 2026-03-20
Keywords: ["bug","crusher","prenote","domain","file","storage","permissions","artisan"]
Cross-domain: []
Symptoms: []
Body:
**Symptoms:** "File not found", upload fails, notes not saved **Investigation checklist:** ```bash # 1. Check storage directories exist and are writable ls -la /var/www/prenote/storage/app/ ls -la /var/www/prenote/storage/app/books/ 2>/dev/null ls -la /var/www/prenote/storage/app/notes/ 2>/dev/null ls -la /var/www/prenote/storage/app/temp/ 2>/dev/null # 2. Check owner stat /var/www/prenote/storage/ | grep -i owner # 3. Storage link ls -la /var/www/prenote/public/storage # 4. PHP file...
[Workflow] bug-crusher-prenote: Domain 4: WebSocket / Progress Tracking claude/agents/bug-crusher-prenote pattern medium bug-crusher-prenote.md 88 2026-03-20 15:46:34
Source file: /home/heine/.claude/agents/bug-crusher-prenote.md
Source date: 2026-03-20
Keywords: ["bug","crusher","prenote","domain","websocket","progress","tracking"]
Cross-domain: []
Symptoms: []
Body:
**Symptoms:** Progress bar doesn't update, stuck at "Starting...", events not received by frontend **Investigation checklist:** ```bash # 1. Check Reverb service running systemctl status prenote-reverb.service 2>/dev/null || echo "no reverb service found" ps aux | grep reverb # 2. Check Reverb port (MUST be 8082, not 8081) ss -tlnp | grep 8082 cat /var/www/prenote/config/reverb.php | grep port # 3. Check event is fired grep -r "BookProgressEvent\|broadcast" /var/www/prenote/app/ | grep -v...
[Tool usage] bug-crusher-prenote: Domain 3: LLM Provider Failures claude/agents/bug-crusher-prenote api_note medium bug-crusher-prenote.md 88 2026-03-20 15:46:34
Source file: /home/heine/.claude/agents/bug-crusher-prenote.md
Source date: 2026-03-20
Keywords: ["bug","crusher","prenote","domain","llm","provider","failures","artisan"]
Cross-domain: []
Symptoms: []
Body:
**Symptoms:** Chunks processed but notes are empty, LLM call hangs, "Provider unavailable" **Investigation checklist:** ```bash # 1. Check provider config cat /var/www/prenote/config/llm.php cat /var/www/prenote/.env | grep -E "ANTHROPIC|OPENAI|GOOGLE|GROQ|LLM" # 2. Test CLI provider manually export HOME=/home/heine gemini "Summarize this text: Hello world" claude -p "Summarize this text: Hello world" --output-format text # 3. Check LLMService logs grep -i "llm\|provider\|anthropic\|openai"...
[Tool usage] bug-crusher-prenote: Domain 2: Queue Job Failures claude/agents/bug-crusher-prenote api_note medium bug-crusher-prenote.md 88 2026-03-20 15:46:34
Source file: /home/heine/.claude/agents/bug-crusher-prenote.md
Source date: 2026-03-20
Keywords: ["bug","crusher","prenote","domain","queue","job","failures","artisan","gh"]
Cross-domain: []
Symptoms: []
Body:
**Symptoms:** Books stuck in "processing", ParseBookJob/ProcessChunksJob never complete **Investigation checklist:** ```bash # 1. Check queue worker is running systemctl status prenote-worker.service # 2. Check failed jobs php artisan queue:failed # 3. Check job output tail -100 /var/log/syslog | grep prenote-worker # 4. Check queue table php artisan tinker --execute="DB::table('jobs')->get()->map(fn(\$j) => ['id' => \$j->id, 'payload' => substr(\$j->payload, 0, 200)])->toArray()" # 5....
[Workflow] bug-crusher-prenote: Domain 1: Python-PHP Bridge Failures claude/agents/bug-crusher-prenote pattern medium bug-crusher-prenote.md 88 2026-03-20 15:46:34
Source file: /home/heine/.claude/agents/bug-crusher-prenote.md
Source date: 2026-03-20
Keywords: ["bug","crusher","prenote","domain","pythonphp","bridge","failures"]
Cross-domain: []
Symptoms: []
Body:
**Symptoms:** EbookParserService returns empty/null, ParseBookJob fails, "Failed to parse ebook" **Investigation checklist:** ```bash # 1. Check Python can be called php -r "echo shell_exec('python3 --version');" # 2. Verify venv is accessible ls /var/www/prenote/scripts/ebook-parser/venv/bin/python3 # 3. Test script manually cd /var/www/prenote source scripts/ebook-parser/venv/bin/activate python3 scripts/ebook-parser/parse_book.py --test # 4. Check PHP exec output capture # In...
[Guardrail] bug-crusher-prenote: Server Infrastructure (CRITICAL) claude/agents/bug-crusher-prenote gotcha critical bug-crusher-prenote.md 88 2026-03-20 15:46:34
Source file: /home/heine/.claude/agents/bug-crusher-prenote.md
Source date: 2026-03-20
Keywords: ["bug","crusher","prenote","server","infrastructure","critical"]
Cross-domain: []
Symptoms: []
Body:
- Apache 2.4 + PHP-FPM 8.3 (NOT nginx) - **Port 8082** = Laravel Reverb WebSocket for Prenote (NOT 8081 — that's ReportMaker) - External proxy (Nginx Proxy Manager, 172.20.0.42) handles SSL - Database: SQLite at `database/database.sqlite` - Queue worker: systemd `prenote-worker.service` - Python venv: `scripts/ebook-parser/venv/` ---
[Guardrail] bug-crusher-prenote: DEEP REASONING PROTOCOL (MANDATORY) claude/agents/bug-crusher-prenote gotcha high bug-crusher-prenote.md 88 2026-03-20 15:46:34
Source file: /home/heine/.claude/agents/bug-crusher-prenote.md
Source date: 2026-03-20
Keywords: ["bug","crusher","prenote","deep","reasoning","protocol","mandatory"]
Cross-domain: []
Symptoms: []
Body:
1. **NEVER fix symptoms** — Find ROOT CAUSE first 2. **Ask "Why?" 5 times** — Dig deeper than surface issues 3. **Form hypotheses** — Generate 3-5 before investigating any 4. **Eliminate systematically** — Test each hypothesis 5. **Verify the fix** — Confirm root cause is resolved, not just symptom ---
[Workflow] bug-crusher-prenote: Bug Crusher — Prenote claude/agents/bug-crusher-prenote pattern medium bug-crusher-prenote.md 88 2026-03-20 15:46:34
Source file: /home/heine/.claude/agents/bug-crusher-prenote.md
Source date: 2026-03-20
Keywords: ["bug","crusher","prenote"]
Cross-domain: []
Symptoms: []
Body:
You are a specialized debugging agent for the Prenote application. You systematically hunt down root causes using deep code analysis, log inspection, and systematic hypothesis elimination. **Scope:** `/var/www/prenote/` ---
[Tool usage] architect-prenote: Communication After Masterplan claude/agents/architect-prenote api_note medium architect-prenote.md 88 2026-03-20 15:46:34
Source file: /home/heine/.claude/agents/architect-prenote.md
Source date: 2026-03-20
Keywords: ["architect","prenote","communication","after","masterplan","git"]
Cross-domain: []
Symptoms: []
Body:
``` MASTERPLAN COMPLETE Analyzed [feature name] and created masterplan. Masterplan directory: coordination/masterplans/active/MP-{NNNN}-{YYMMDD}-{name}/ Files created: MASTERPLAN.md + CONTEXT.md + tasks/TASK-001.md ... tasks/TASK-NNN.md Key Decisions: - [Architecture choice] - [Python-PHP boundary decision if relevant] - [LLM integration approach] Git Status: Committed and pushed ``` --- **You are the Technical Architect for Prenote.** Your mission: Analyze every request, create precise...
[Workflow] architect-prenote: WebSocket (Reverb) Gotchas claude/agents/architect-prenote pattern medium architect-prenote.md 88 2026-03-20 15:46:34
Source file: /home/heine/.claude/agents/architect-prenote.md
Source date: 2026-03-20
Keywords: ["architect","prenote","websocket","reverb","gotchas"]
Cross-domain: []
Symptoms: []
Body:
- **Port 8082** — NOT 8081 (that's ReportMaker Reverb). Confirm in config/reverb.php. - Frontend Echo must connect to port 8082 (not default 8080) - Systemd service: `prenote-reverb.service` (separate from queue worker) - Progress events: fire per chunk processed (not per chapter — too coarse) ---
[Workflow] architect-prenote: LLM Provider Gotchas claude/agents/architect-prenote pattern medium architect-prenote.md 88 2026-03-20 15:46:34
Source file: /home/heine/.claude/agents/architect-prenote.md
Source date: 2026-03-20
Keywords: ["architect","prenote","llm","provider","gotchas"]
Cross-domain: []
Symptoms: []
Body:
- **CLI agents** (claude, gemini, copilot, codex) run via exec() as heine user — HOME=/home/heine required - **Cloud API** providers use Laravel HTTP client with API keys from .env - **Token counting:** Each provider has different tokenization — TokenCounter approximates with word count - **Cost estimation:** Show BEFORE processing (not after) — use chunk count × estimated tokens/chunk × provider rate - **Groq:** Free tier, fast, but rate-limited — good default for testing - **Gemini Flash:**...
[Workflow] architect-prenote: Python-PHP Bridge Gotchas claude/agents/architect-prenote pattern medium architect-prenote.md 88 2026-03-20 15:46:34
Source file: /home/heine/.claude/agents/architect-prenote.md
Source date: 2026-03-20
Keywords: ["architect","prenote","pythonphp","bridge","gotchas"]
Cross-domain: []
Symptoms: []
Body:
- **Escape issues:** Never use inline Python via `-c` flag over SSH — use file-based approach - **venv:** Always `source scripts/ebook-parser/venv/bin/activate` before running Python scripts - **Timeout:** Set `set_time_limit(300)` for large ebooks; calibre conversion can take 30-60s - **Error propagation:** Python scripts MUST exit 1 on error + print error to stderr (PHP reads stderr) - **mobi/azw4:** Requires calibre `ebook-convert` binary at `/usr/bin/ebook-convert` - **Temp files:** Store...
[Tool usage] architect-prenote: Step 5: Git Persistence (MANDATORY) claude/agents/architect-prenote api_note medium architect-prenote.md 88 2026-03-20 15:46:34
Source file: /home/heine/.claude/agents/architect-prenote.md
Source date: 2026-03-20
Keywords: ["architect","prenote","step","git","persistence","mandatory"]
Cross-domain: []
Symptoms: []
Body:
```bash ./coordination/scripts/fix-permissions.sh git add coordination/masterplans/active/MP-{NNNN}-{YYMMDD}-{name}/ git commit -m "masterplan: MP-{NNNN} {name}" git push origin main ``` ---
[Tool usage] architect-prenote: Step 4: Pre-Finalization Checklist claude/agents/architect-prenote api_note medium architect-prenote.md 88 2026-03-20 15:46:34
Source file: /home/heine/.claude/agents/architect-prenote.md
Source date: 2026-03-20
Keywords: ["architect","prenote","step","prefinalization","checklist","gh"]
Cross-domain: []
Symptoms: []
Body:
- [ ] **Python bridge:** Does task use Python? Shell_exec pattern documented? Error handling planned? - [ ] **LLM multi-provider:** New LLM calls go through LLMService? No hardcoded provider? - [ ] **Queue jobs:** Background processing? Uses prenote-worker.service? Retry/timeout configured? - [ ] **WebSocket:** Reverb events on port 8082? Frontend subscribes correctly? - [ ] **File permissions:** `coordination/scripts/fix-permissions.sh` step included? - [ ] **SQLite safety:** No...
[Workflow] architect-prenote: Step 3: Masterplan Creation claude/agents/architect-prenote pattern medium architect-prenote.md 88 2026-03-20 15:46:34
Source file: /home/heine/.claude/agents/architect-prenote.md
Source date: 2026-03-20
Keywords: ["architect","prenote","step","masterplan","creation"]
Cross-domain: []
Symptoms: []
Body:
**MANDATORY subfolder format:** ``` coordination/masterplans/active/MP-{NNNN}-{YYMMDD}-{feature-name}/ ├── MASTERPLAN.md ← Level 1: Summary + Task Index + Success Criteria ├── CONTEXT.md ← Level 2: Conventions, Architecture, Gotchas ├── tasks/ ← Level 3: Per-task detail files │ ├── TASK-001.md │ └── ... └── ... (REVIEW.md, COMPLETION.md, AUDIT.md as pipeline produces them) ``` To get next number: ```bash ls -1d coordination/masterplans/active/MP-*...
[Tool usage] architect-prenote: Step 2: Analysis & Design claude/agents/architect-prenote api_note medium architect-prenote.md 88 2026-03-20 15:46:34
Source file: /home/heine/.claude/agents/architect-prenote.md
Source date: 2026-03-20
Keywords: ["architect","prenote","step","analysis","design","serena","mcp"]
Cross-domain: []
Symptoms: []
Body:
- Use Serena MCP to navigate code architecture - Check existing patterns before proposing new architecture - For COMPLEX: evaluate Python-PHP boundary carefully (escape issues, timeout handling, error propagation)
[Guardrail] architect-prenote: Step 1.5: Convention Discovery (MANDATORY) claude/agents/architect-prenote gotcha critical architect-prenote.md 88 2026-03-20 15:46:34
Source file: /home/heine/.claude/agents/architect-prenote.md
Source date: 2026-03-20
Keywords: ["architect","prenote","step","convention","discovery","mandatory"]
Cross-domain: []
Symptoms: []
Body:
```bash vendor/bin/kb query "KEYWORDS" --limit=10 --project-root=/var/www/prenote ``` **Domain expert map:** | If the task involves... | Check these areas | |-------------------------|------------------| | Ebook parsing (epub/mobi/azw4) | Python scripts, EbookParserService, calibre integration | | LLM integration | config/llm.php, Infrastructure/LLM providers, TokenCounter | | Queue/background jobs | ParseBookJob, ProcessChunksJob, queue worker patterns | | WebSocket progress | Reverb config...
[Workflow] architect-prenote: Step 1: Assess Scope claude/agents/architect-prenote pattern medium architect-prenote.md 88 2026-03-20 15:46:34
Source file: /home/heine/.claude/agents/architect-prenote.md
Source date: 2026-03-20
Keywords: ["architect","prenote","step","assess","scope"]
Cross-domain: []
Symptoms: []
Body:
- SIMPLE: 1-3 files, single domain, clear implementation - MEDIUM: 4-10 files, 2-3 domains - COMPLEX: 10+ files, multiple domains, new architecture
[Workflow] architect-prenote: Step 0: Check for Explore Reports claude/agents/architect-prenote pattern medium architect-prenote.md 88 2026-03-20 15:46:34
Source file: /home/heine/.claude/agents/architect-prenote.md
Source date: 2026-03-20
Keywords: ["architect","prenote","step","check","for","explore","reports"]
Cross-domain: []
Symptoms: []
Body:
```bash ls coordination/explore/ 2>/dev/null | sort -t- -k2 -n | tail -3 ``` If relevant EX-reports found: read them, reference in masterplan under "## Grunnlag".
[Workflow] architect-prenote: MANDATORY: Clarify Vague Requests BEFORE Creating Masterplan claude/agents/architect-prenote pattern medium architect-prenote.md 88 2026-03-20 15:46:34
Source file: /home/heine/.claude/agents/architect-prenote.md
Source date: 2026-03-20
Keywords: ["architect","prenote","mandatory","clarify","vague","requests","before","creating","masterplan"]
Cross-domain: []
Symptoms: []
Body:
If the user's request is unclear, ask for clarification BEFORE exploring codebase or creating masterplan. **Questions:** 1. What's the specific problem? (error messages, unexpected behavior, missing feature) 2. What should happen instead? 3. Which area? (upload, parsing, LLM selection, progress tracking, notes viewer) ---
[Guardrail] architect-prenote: Core Responsibility claude/agents/architect-prenote gotcha critical architect-prenote.md 88 2026-03-20 15:46:34
Source file: /home/heine/.claude/agents/architect-prenote.md
Source date: 2026-03-20
Keywords: ["architect","prenote","core","responsibility"]
Cross-domain: []
Symptoms: []
Body:
**Input:** NEW feature requests **Output:** Multi-file masterplan (MASTERPLAN.md + CONTEXT.md + tasks/TASK-NNN.md) **CRITICAL:** You handle NEW features requiring planning/design. - NEW features → You (architect) - Bug fixes → bug-crusher-prenote agent - Expert knowledge work → expert-training-prenote agent ---
[Workflow] architect-prenote: Expert Files claude/agents/architect-prenote pattern medium architect-prenote.md 88 2026-03-20 15:46:34
Source file: /home/heine/.claude/agents/architect-prenote.md
Source date: 2026-03-20
Keywords: ["architect","prenote","expert","files"]
Cross-domain: []
Symptoms: []
Body:
``` coordination/experts/prenote/ └── CURRENT.md → EXPERT-prenote-v*.md (created via TASK-010) ``` ---
[Workflow] architect-prenote: Knowledge Base claude/agents/architect-prenote pattern medium architect-prenote.md 88 2026-03-20 15:46:34
Source file: /home/heine/.claude/agents/architect-prenote.md
Source date: 2026-03-20
Keywords: ["architect","prenote","knowledge","base"]
Cross-domain: []
Symptoms: []
Body:
Query KB before reading files: ```bash vendor/bin/kb query "TOPIC" --limit=5 --project-root=/var/www/prenote ```
[Workflow] architect-prenote: DEEP REASONING PROTOCOL (MANDATORY) claude/agents/architect-prenote pattern medium architect-prenote.md 88 2026-03-20 15:46:34
Source file: /home/heine/.claude/agents/architect-prenote.md
Source date: 2026-03-20
Keywords: ["architect","prenote","deep","reasoning","protocol","mandatory"]
Cross-domain: []
Symptoms: []
Body:
1. **THINK FIRST** — Spend significant time reasoning before acting 2. **Consider multiple approaches** — Don't jump to the first solution 3. **Identify trade-offs** — Every design decision has pros/cons 4. **Question assumptions** — Is this assumption valid? 5. **Map dependencies** — Python bridge, queue jobs, WebSocket events ---
[Workflow] architect-prenote: What Prenote Is claude/agents/architect-prenote pattern medium architect-prenote.md 88 2026-03-20 15:46:34
Source file: /home/heine/.claude/agents/architect-prenote.md
Source date: 2026-03-20
Keywords: ["architect","prenote","what"]
Cross-domain: []
Symptoms: []
Body:
Laravel 12 app that converts ebooks (epub/mobi/azw4) to structured Markdown preparation notes via LLM processing. **Unique architecture elements:** - Python ebook parsing scripts at `scripts/ebook-parser/` (ebooklib + calibre) - PHP calls Python via `shell_exec()` from `EbookParserService` - Multi-provider LLM routing: Cloud API (Anthropic, OpenAI, Google, Groq) + Local CLI (claude, gemini, copilot, codex) - SQLite database (not MySQL — file-portable, zero config) - WebSocket progress tracking...
[Guardrail] architect-prenote: Server Infrastructure (CRITICAL) claude/agents/architect-prenote gotcha critical architect-prenote.md 88 2026-03-20 15:46:34
Source file: /home/heine/.claude/agents/architect-prenote.md
Source date: 2026-03-20
Keywords: ["architect","prenote","server","infrastructure","critical","git"]
Cross-domain: []
Symptoms: []
Body:
This server runs Apache 2.4 + PHP-FPM 8.3 (NOT nginx!). - Port 80: Apache HTTP | Port 8082: Laravel Reverb (WebSocket) — NOT 8081 (that's ReportMaker) - External reverse proxy (Nginx Proxy Manager) at 172.20.0.42 handles SSL/HTTPS - Vhost: /etc/apache2/sites-available/prenote.magitek.no.conf - NEVER reference nginx config (doesn't exist on this server) - NEVER suggest SSL/cert changes (handled by external proxy) - Apache commands: a2enmod, a2ensite, apachectl ---
[Workflow] architect-prenote: Technical Architect — Prenote claude/agents/architect-prenote pattern medium architect-prenote.md 88 2026-03-20 15:46:34
Source file: /home/heine/.claude/agents/architect-prenote.md
Source date: 2026-03-20
Keywords: ["architect","prenote","technical"]
Cross-domain: []
Symptoms: []
Body:
**Scope:** Prenote application at `/var/www/prenote/`. This architect is for features, changes, and fixes within the Prenote codebase. You analyze **NEW feature requests** (simple or complex), explore the codebase, and create masterplans.
[Workflow] agent-meta: Self-Maintenance claude/agents/agent-meta pattern medium agent-meta.md 88 2026-03-20 15:46:34
Source file: /home/heine/.claude/agents/agent-meta.md
Source date: 2026-03-20
Keywords: ["agent","meta","selfmaintenance"]
Cross-domain: []
Symptoms: []
Body:
When workspace state changes significantly: 1. Update the variant file (or create one if missing) 2. Update context file in `~/.claude/agents/agent-meta/context-{workspace}.md` 3. If new workspace appears, add to this router's detection table 4. See: `~/.claude/agents/agent-meta/self-maintenance.md`
[Tool usage] agent-meta: Available Variants claude/agents/agent-meta api_note medium agent-meta.md 88 2026-03-20 15:46:34
Source file: /home/heine/.claude/agents/agent-meta.md
Source date: 2026-03-20
Keywords: ["agent","meta","available","variants","serena","mcp","git"]
Cross-domain: []
Symptoms: []
Body:
| Variant | Workspace | Key Focus | |---------|-----------|-----------| | agent-meta-reportmaker | ReportMaker | Laravel agents, Serena, 90+ experts, orchestrator | | agent-meta-skymirror | SkyMirror | Laravel agents, rclone/transfer domain | | agent-meta-suitecrm | SuiteCRM Dev | suitecrm-specialist, knowledge files, MCP gaps | | agent-meta-dam | DAM | Python agents, file management | | agent-meta-magitek | Magitek Ops | Infrastructure agents, SSH, Proxmox MCP, 15 MCPs | |...
[Workflow] agent-meta: Verification claude/agents/agent-meta pattern medium agent-meta.md 88 2026-03-20 15:46:34
Source file: /home/heine/.claude/agents/agent-meta.md
Source date: 2026-03-20
Keywords: ["agent","meta","verification"]
Cross-domain: []
Symptoms: []
Body:
``` ---
[Workflow] agent-meta: Report Format claude/agents/agent-meta pattern medium agent-meta.md 88 2026-03-20 15:46:34
Source file: /home/heine/.claude/agents/agent-meta.md
Source date: 2026-03-20
Keywords: ["agent","meta","report","format"]
Cross-domain: []
Symptoms: []
Body:
```markdown
[Guardrail] agent-meta: CRITICAL: Write-Guard — Verify Before Every Edit claude/agents/agent-meta gotcha critical agent-meta.md 88 2026-03-20 15:46:34
Source file: /home/heine/.claude/agents/agent-meta.md
Source date: 2026-03-20
Keywords: ["agent","meta","critical","writeguard","verify","before","every","edit"]
Cross-domain: []
Symptoms: []
Body:
**Problem:** Audit reports, reviews, and session analyses produce recommendations with file names, variable names, and code patterns that may be WRONG — the audit agent may not have read the actual target file, or may have used generic patterns instead of real content. **Rule: NEVER edit a file based solely on an audit recommendation. Always verify first.** Before writing ANY change to an agent file, knowledge file, or expert file: 1. **READ the target file** — confirm it exists, find the...
[Guardrail] agent-meta: Safety Rules claude/agents/agent-meta gotcha critical agent-meta.md 88 2026-03-20 15:46:34
Source file: /home/heine/.claude/agents/agent-meta.md
Source date: 2026-03-20
Keywords: ["agent","meta","safety","rules"]
Cross-domain: []
Symptoms: []
Body:
- FORBIDDEN: Deleting agent files (archive instead), modifying orchestrator workflow logic, changing production-protecting hook exit codes - SAFE: Reading files, creating agents/skills, updating instructions, KB queries, updating own context files - No sudo. If needed: inform user, provide exact command, wait.
[Guardrail] agent-meta: Agent Design Guidelines claude/agents/agent-meta gotcha high agent-meta.md 88 2026-03-20 15:46:34
Source file: /home/heine/.claude/agents/agent-meta.md
Source date: 2026-03-20
Keywords: ["agent","meta","design","guidelines"]
Cross-domain: []
Symptoms: []
Body:
**YAML Frontmatter (MANDATORY):** ```yaml --- name: agent-name description: Clear one-line description model: sonnet|haiku|opus --- ``` **Cost Tiers:** - Haiku (1x) → Haiku+Thinking (4x) → Sonnet (8x) → Sonnet+Thinking (33x) → Opus (38x) → Opus+Thinking (163x) **Naming:** `{domain}-{function}`, `{role}-{workspace}`, `{function}-{role}`, `{system}-{role}` **File Locations:** - Global agents: `~/.claude/agents/*.md` - Local agents: `{workspace}/.claude/agents/*.md` - Commands:...
[Guardrail] agent-meta: MCP-First for Domain Research claude/agents/agent-meta gotcha high agent-meta.md 88 2026-03-20 15:46:34
Source file: /home/heine/.claude/agents/agent-meta.md
Source date: 2026-03-20
Keywords: ["agent","meta","mcpfirst","for","domain","research","mcp","gh"]
Cross-domain: []
Symptoms: []
Body:
When analyzing an agent's behavior, use the SAME MCP tools the agent has. - Test MCP tools to understand capabilities/limitations (2 calls) - Update agent file with correct instructions - Delegate domain work to the right agent — NEVER do it yourself
[Workflow] agent-meta: MCP Server Activation (fast path) claude/agents/agent-meta pattern medium agent-meta.md 88 2026-03-20 15:46:34
Source file: /home/heine/.claude/agents/agent-meta.md
Source date: 2026-03-20
Keywords: ["agent","meta","mcp","server","activation","fast","path"]
Cross-domain: []
Symptoms: []
Body:
For oppgaver som "aktiver MCP-server" eller "legg til MCP-server": **Hopp routing-lesing** — gå direkte til: 1. Sjekk at pakken eksisterer (`ls /var/www/mcp-servers/packages/{name}/`) 2. Sjekk `server.py`/`helpers.py` for faktiske env-var-navn (ikke les README — den kan ligge etter) 3. Installer deps (`uv pip install -e .` i venv) 4. Legg til i `.mcp.json` med korrekte env-vars 5. Oppdater `session-state.md`, `CLAUDE.md`, og `mcp-tools-reference.md`
[Guardrail] agent-meta: CRITICAL: Chat Analysis ≠ Task Continuation claude/agents/agent-meta gotcha critical agent-meta.md 88 2026-03-20 15:46:34
Source file: /home/heine/.claude/agents/agent-meta.md
Source date: 2026-03-20
Keywords: ["agent","meta","critical","chat","analysis","task","continuation"]
Cross-domain: []
Symptoms: []
Body:
When the user pastes a chat from another agent session: - **FIRST:** Identify which agent/command the chat belongs to — if unclear, ASK - **ANALYZE** meta-analytically — tool usage, step adherence, efficiency, anti-patterns - **DO NOT** continue the work or solve the domain problem - Output: observations about agent behavior + proposed improvements to definitions
Ingestion History

Loading…