⛰️ LifeOS — The AI-powered Life Operating System that helps you hill climb to wherever you're going.
rename: WorkCommand pack → ContextSearch (/context-search + /cs)
Daniel Miessler2b15c6c7cd94
diff --git a/Packs/WorkCommand/INSTALL.md b/Packs/ContextSearch/INSTALL.mdsimilarity index 55%rename from Packs/WorkCommand/INSTALL.mdrename to Packs/ContextSearch/INSTALL.mdindex fa2351ad..5da5a301 100644--- a/Packs/WorkCommand/INSTALL.md+++ b/Packs/ContextSearch/INSTALL.md@@ -1,4 +1,4 @@-# Work Command v1.0.0 - Installation Guide+# Context Search v1.1.0 - Installation Guide**This guide is designed for AI agents installing this pack into a user's infrastructure.**@@ -17,11 +17,11 @@Before starting, greet the user:```-"I'm installing Work Command v1.0.0 — instant recall of prior work sessions by topic.+"I'm installing Context Search v1.1.0 — search prior work to add context to any request.This pack adds two slash commands:-- /w [topic] — short form for quick access-- /work [topic] — descriptive form+- /context-search [topic] — full name for discoverability+- /cs [topic] — shortcut for quick accessLet me analyze your system and guide you through installation."```@@ -47,24 +47,29 @@ elseecho "INFO Commands directory does not exist (will be created)"fi-# Check for existing w.md or work.md commands-if [ -f "$CLAUDE_DIR/commands/w.md" ]; then- echo "WARNING Existing /w command found at: $CLAUDE_DIR/commands/w.md"+# Check for existing context-search.md or cs.md commands+if [ -f "$CLAUDE_DIR/commands/context-search.md" ]; then+ echo "WARNING Existing /context-search command found at: $CLAUDE_DIR/commands/context-search.md"else- echo "OK No existing /w command (clean install)"+ echo "OK No existing /context-search command (clean install)"fi-if [ -f "$CLAUDE_DIR/commands/work.md" ]; then- echo "WARNING Existing /work command found at: $CLAUDE_DIR/commands/work.md"+if [ -f "$CLAUDE_DIR/commands/cs.md" ]; then+ echo "WARNING Existing /cs command found at: $CLAUDE_DIR/commands/cs.md"else- echo "OK No existing /work command (clean install)"+ echo "OK No existing /cs command (clean install)"+fi++# Check for legacy /w and /work commands (from prior version)+if [ -f "$CLAUDE_DIR/commands/w.md" ] || [ -f "$CLAUDE_DIR/commands/work.md" ]; then+ echo "INFO Legacy /w or /work commands found (from Work Command v1.0.0)"fi# Check for PAI MEMORY structure (optional, enhances results)-if [ -d "$CLAUDE_DIR/MEMORY/wORK" ]; then- echo "OK PAI MEMORY/wORK directory exists (full functionality available)"+if [ -d "$CLAUDE_DIR/MEMORY/WORK" ]; then+ echo "OK PAI MEMORY/WORK directory exists (full functionality available)"else- echo "INFO PAI MEMORY/wORK not found (command will work but may return fewer results)"+ echo "INFO PAI MEMORY/WORK not found (command will work but may return fewer results)"fiif [ -f "$CLAUDE_DIR/MEMORY/STATE/work.json" ]; then@@ -93,12 +98,13 @@ Tell the user what you found:```"Here's what I found on your system:- Commands directory: [exists / will be created]-- Existing /w command: [found — will ask about conflict / not found]-- Existing /work command: [found — will ask about conflict / not found]+- Existing /context-search command: [found — will ask about conflict / not found]+- Existing /cs command: [found — will ask about conflict / not found]+- Legacy /w or /work commands: [found (from Work Command v1.0.0) / not found]- PAI MEMORY structure: [found (full functionality) / not found (basic functionality)]- Git repository: [found / not found]-[If MEMORY not found]: Note: The Work Command searches PAI's MEMORY directories+[If MEMORY not found]: Note: Context Search searches PAI's MEMORY directoriesfor prior work sessions. Without PAI installed, the command will still work butwill only search git history. For full functionality, consider installing PAI:https://github.com/danielmiessler/Personal_AI_Infrastructure"@@ -112,12 +118,12 @@ https://github.com/danielmiessler/Personal_AI_Infrastructure"### Question 1: Conflict Resolution (if existing commands found)-**Only ask if existing /w or /work command detected:**+**Only ask if existing /context-search or /cs command detected:**```json{"header": "Conflict — Existing Command",- "question": "An existing /w or /work command was found. How should I proceed?",+ "question": "An existing /context-search or /cs command was found. How should I proceed?","multiSelect": false,"options": [{"label": "Backup and Replace (Recommended)", "description": "Creates timestamped backup of existing command, then installs new version"},@@ -127,7 +133,23 @@ https://github.com/danielmiessler/Personal_AI_Infrastructure"}```-### Question 2: Command Selection+### Question 2: Legacy Cleanup (if /w or /work found)++**Only ask if legacy /w or /work commands detected:**++```json+{+ "header": "Legacy Commands",+ "question": "Legacy /w and /work commands were found from Work Command v1.0.0. Context Search replaces these. Remove them?",+ "multiSelect": false,+ "options": [+ {"label": "Remove legacy commands (Recommended)", "description": "Deletes w.md and work.md — /context-search and /cs replace them"},+ {"label": "Keep legacy commands", "description": "Leaves /w and /work in place alongside the new commands"}+ ]+}+```++### Question 3: Command Selection```json{@@ -135,19 +157,19 @@ https://github.com/danielmiessler/Personal_AI_Infrastructure""question": "Which command names would you like to install?","multiSelect": false,"options": [- {"label": "Both /w and /work (Recommended)", "description": "/w for quick access, /work for discoverability"},- {"label": "Only /w", "description": "Short form only"},- {"label": "Only /work", "description": "Descriptive form only"}+ {"label": "Both /context-search and /cs (Recommended)", "description": "/context-search for discoverability, /cs for quick access"},+ {"label": "Only /context-search", "description": "Full name only"},+ {"label": "Only /cs", "description": "Shortcut only"}]}```-### Question 3: Final Confirmation+### Question 4: Final Confirmation```json{"header": "Install",- "question": "Ready to install Work Command v1.0.0?",+ "question": "Ready to install Context Search v1.1.0?","multiSelect": false,"options": [{"label": "Yes, install now (Recommended)", "description": "Copies command files to ~/.claude/commands/"},@@ -160,8 +182,8 @@ https://github.com/danielmiessler/Personal_AI_Infrastructure"**If user chose "Show me what will change":**```"Files to be created:-- ~/.claude/commands/w.md (slash command definition)-- ~/.claude/commands/work.md (slash command definition, same content)+- ~/.claude/commands/context-search.md (slash command definition)+- ~/.claude/commands/cs.md (slash command definition, shortcut)No other files will be modified. No hooks, no configuration changes."```@@ -176,12 +198,12 @@ Then re-ask the final confirmation question.```bashCLAUDE_DIR="$HOME/.claude"-BACKUP_DIR="$CLAUDE_DIR/Backups/work-command-$(date +%Y%m%d-%H%M%S)"+BACKUP_DIR="$CLAUDE_DIR/Backups/context-search-$(date +%Y%m%d-%H%M%S)"mkdir -p "$BACKUP_DIR"# Backup existing commands-[ -f "$CLAUDE_DIR/commands/w.md" ] && cp "$CLAUDE_DIR/commands/w.md" "$BACKUP_DIR/w.md" && echo "Backed up w.md"-[ -f "$CLAUDE_DIR/commands/work.md" ] && cp "$CLAUDE_DIR/commands/work.md" "$BACKUP_DIR/work.md" && echo "Backed up work.md"+[ -f "$CLAUDE_DIR/commands/context-search.md" ] && cp "$CLAUDE_DIR/commands/context-search.md" "$BACKUP_DIR/context-search.md" && echo "Backed up context-search.md"+[ -f "$CLAUDE_DIR/commands/cs.md" ] && cp "$CLAUDE_DIR/commands/cs.md" "$BACKUP_DIR/cs.md" && echo "Backed up cs.md"echo "Backup created at: $BACKUP_DIR"```@@ -219,29 +241,29 @@ mkdir -p "$CLAUDE_DIR/commands"**Copy files based on user's command selection:**-**For "Both /w and /work" (default):**+**For "Both /context-search and /cs" (default):**```bashPACK_DIR="$(pwd)"CLAUDE_DIR="$HOME/.claude"-cp "$PACK_DIR/src/commands/w.md" "$CLAUDE_DIR/commands/w.md"-cp "$PACK_DIR/src/commands/work.md" "$CLAUDE_DIR/commands/work.md"-echo "Installed /w and /work commands"+cp "$PACK_DIR/src/commands/context-search.md" "$CLAUDE_DIR/commands/context-search.md"+cp "$PACK_DIR/src/commands/cs.md" "$CLAUDE_DIR/commands/cs.md"+echo "Installed /context-search and /cs commands"```-**For "Only /w":**+**For "Only /context-search":**```bashPACK_DIR="$(pwd)"CLAUDE_DIR="$HOME/.claude"-cp "$PACK_DIR/src/commands/w.md" "$CLAUDE_DIR/commands/w.md"-echo "Installed /w command"+cp "$PACK_DIR/src/commands/context-search.md" "$CLAUDE_DIR/commands/context-search.md"+echo "Installed /context-search command"```-**For "Only /work":**+**For "Only /cs":**```bashPACK_DIR="$(pwd)"CLAUDE_DIR="$HOME/.claude"-cp "$PACK_DIR/src/commands/work.md" "$CLAUDE_DIR/commands/work.md"-echo "Installed /work command"+cp "$PACK_DIR/src/commands/cs.md" "$CLAUDE_DIR/commands/cs.md"+echo "Installed /cs command"```**Mark todo as completed.**@@ -257,34 +279,34 @@ echo "Installed /work command"```bashCLAUDE_DIR="$HOME/.claude"-echo "=== Work Command Verification ==="+echo "=== Context Search Verification ==="# Check command files existecho "Checking command files..."-[ -f "$CLAUDE_DIR/commands/w.md" ] && echo "OK /w command installed" || echo "SKIP /w not installed (user chose /work only)"-[ -f "$CLAUDE_DIR/commands/work.md" ] && echo "OK /work command installed" || echo "SKIP /work not installed (user chose /w only)"+[ -f "$CLAUDE_DIR/commands/context-search.md" ] && echo "OK /context-search command installed" || echo "SKIP /context-search not installed (user chose /cs only)"+[ -f "$CLAUDE_DIR/commands/cs.md" ] && echo "OK /cs command installed" || echo "SKIP /cs not installed (user chose /context-search only)"# Check frontmatter is validecho "Checking frontmatter..."-if [ -f "$CLAUDE_DIR/commands/w.md" ]; then- head -1 "$CLAUDE_DIR/commands/w.md" | grep -q "^---" && echo "OK w.md has valid frontmatter" || echo "ERROR w.md missing frontmatter"+if [ -f "$CLAUDE_DIR/commands/context-search.md" ]; then+ head -1 "$CLAUDE_DIR/commands/context-search.md" | grep -q "^---" && echo "OK context-search.md has valid frontmatter" || echo "ERROR context-search.md missing frontmatter"fi-if [ -f "$CLAUDE_DIR/commands/work.md" ]; then- head -1 "$CLAUDE_DIR/commands/work.md" | grep -q "^---" && echo "OK work.md has valid frontmatter" || echo "ERROR work.md missing frontmatter"+if [ -f "$CLAUDE_DIR/commands/cs.md" ]; then+ head -1 "$CLAUDE_DIR/commands/cs.md" | grep -q "^---" && echo "OK cs.md has valid frontmatter" || echo "ERROR cs.md missing frontmatter"fi# Check file contents are completeecho "Checking file contents..."-if [ -f "$CLAUDE_DIR/commands/w.md" ]; then- grep -q "WORK RECALL" "$CLAUDE_DIR/commands/w.md" && echo "OK w.md contains work recall template" || echo "ERROR w.md incomplete"- grep -q "work.json" "$CLAUDE_DIR/commands/w.md" && echo "OK w.md references session registry" || echo "ERROR w.md missing search sources"+if [ -f "$CLAUDE_DIR/commands/context-search.md" ]; then+ grep -q "CONTEXT SEARCH" "$CLAUDE_DIR/commands/context-search.md" && echo "OK context-search.md contains context search template" || echo "ERROR context-search.md incomplete"+ grep -q "work.json" "$CLAUDE_DIR/commands/context-search.md" && echo "OK context-search.md references session registry" || echo "ERROR context-search.md missing search sources"fi# Check data sources (informational, not blocking)echo ""echo "Data source availability (informational):"[ -f "$CLAUDE_DIR/MEMORY/STATE/work.json" ] && echo " OK work.json — session registry available" || echo " INFO work.json — not found (install PAI for this feature)"-[ -d "$CLAUDE_DIR/MEMORY/wORK" ] && echo " OK MEMORY/wORK — PRD directory available" || echo " INFO MEMORY/wORK — not found (install PAI for this feature)"+[ -d "$CLAUDE_DIR/MEMORY/WORK" ] && echo " OK MEMORY/WORK — PRD directory available" || echo " INFO MEMORY/WORK — not found (install PAI for this feature)"[ -f "$CLAUDE_DIR/MEMORY/STATE/session-names.json" ] && echo " OK session-names.json — session names available" || echo " INFO session-names.json — not found (install PAI for this feature)"[ -d "$CLAUDE_DIR/.git" ] && echo " OK .git — git history available" || echo " INFO .git — not found (git history search unavailable)"@@ -301,17 +323,21 @@ echo "=== Verification Complete ==="### On Success```-"Work Command v1.0.0 installed successfully!+"Context Search v1.1.0 installed successfully!What's available:-- /w [topic] — quick search for prior work-- /work [topic] — same command, descriptive name+- /context-search [topic] — search prior work to add context+- /cs [topic] — same command, quick shortcut++Two usage modes:+- Standalone: /cs authentication — browse prior work, then ask a question+- Paired: /cs authentication + 'now add rate limiting' — search then execute-Try it now: Type '/w' followed by any topic you've worked on before.+Try it now: Type '/cs' followed by any topic you've worked on before.-Example: /w authentication-Example: /w dashboard-Example: /w deploy+Example: /cs authentication+Example: /cs dashboard+Example: /cs deployNote: Results improve the more you use PAI's work tracking system (PRDs, session names, git commits)."```@@ -319,7 +345,7 @@ Note: Results improve the more you use PAI's work tracking system (PRDs, session### On Success (Without PAI MEMORY)```-"Work Command v1.0.0 installed successfully!+"Context Search v1.1.0 installed successfully!The commands are ready, but PAI's MEMORY system isn't installed yet.Right now, the commands will search git history only.@@ -327,7 +353,7 @@ Right now, the commands will search git history only.For full functionality (PRD search, session registry, work directories), install PAI:https://github.com/danielmiessler/Personal_AI_Infrastructure-Try it now: /w [any topic]"+Try it now: /cs [any topic]"```### On Failure@@ -358,7 +384,7 @@ This is expected if PAI's MEMORY system isn't installed. The command searches PA### Command works but results are sparse-The Work Command searches data created by PAI's Algorithm (PRDs, session metadata). The more you use PAI's structured workflow, the richer the search results become.+Context Search searches data created by PAI's Algorithm (PRDs, session metadata). The more you use PAI's structured workflow, the richer the search results become.---@@ -366,10 +392,10 @@ The Work Command searches data created by PAI's Algorithm (PRDs, session metadat| File | Purpose ||------|---------|-| `src/commands/w.md` | Primary slash command — short form `/w` |-| `src/commands/work.md` | Alias slash command — descriptive form `/work` |+| `src/commands/context-search.md` | Primary slash command — full name `/context-search` |+| `src/commands/cs.md` | Shortcut slash command — quick form `/cs` |-Both files contain identical logic. The only difference is the `name` field in the frontmatter (`W` vs `work`), which determines the slash command name in Claude Code.+Both files contain identical logic. The only difference is the `name` field in the frontmatter (`Context Search` vs `cs`), which determines the slash command name in Claude Code.---@@ -378,27 +404,28 @@ Both files contain identical logic. The only difference is the `name` field in t### From Claude Code```-/w authentication-/w dashboard redesign-/w deploy-/work security audit-/work blog publishing+/context-search authentication+/context-search dashboard redesign+/cs deploy+/cs security audit+/cs blog publishing```### How It Works-When you type `/w [topic]`, Claude Code:-1. Loads the command template from `~/.claude/commands/w.md`+When you type `/cs [topic]`, Claude Code:+1. Loads the command template from `~/.claude/commands/cs.md`2. Substitutes `$ARGUMENTS` with your topic-3. The AI executes the five parallel searches defined in the template+3. The AI executes the parallel searches defined in the template4. Results are presented in a structured format5. The AI reads the most recent matching PRD for full context+6. In standalone mode, waits for your request; in paired mode, executes the accompanying task### Integration with PAI-If you have PAI installed, the Work Command becomes significantly more powerful:+If you have PAI installed, Context Search becomes significantly more powerful:- **work.json** provides structured session metadata-- **MEMORY/wORK/*/PRD.md** provides full context, criteria, and decisions+- **MEMORY/WORK/*/PRD.md** provides full context, criteria, and decisions- **session-names.json** provides human-readable session names- **Git history** provides commit-level detaildiff --git a/Packs/WorkCommand/README.md b/Packs/ContextSearch/README.mdsimilarity index 52%rename from Packs/WorkCommand/README.mdrename to Packs/ContextSearch/README.mdindex 51e381bd..6281f86b 100644--- a/Packs/WorkCommand/README.md+++ b/Packs/ContextSearch/README.md@@ -1,19 +1,19 @@----name: Work Command-pack-id: danielmiessler-work-command-v1.0.0-version: 1.0.0+name: Context Search+pack-id: danielmiessler-context-search-v1.1.0+version: 1.1.0author: danielmiessler-description: Instant recall of prior work sessions by topic — search PRDs, git history, session names, and work directories with a single slash command+description: Search prior work to add context to any request — search PRDs, git history, session names, and work directories with a single slash command, standalone or paired with a tasktype: skillpurpose-type: [productivity, workflow, context-recovery]platform: claude-codedependencies: []-keywords: [work-recall, session-search, context-recovery, PRD, slash-command, resume-work, prior-work, session-history, commands]+keywords: [context-search, session-search, context-recovery, PRD, slash-command, resume-work, prior-work, session-history, commands]----# Work Command+# Context Search-> Instant recall of prior work sessions by topic — never lose context between sessions again.+> Search prior work to add context to any request — never lose context between sessions again.---@@ -32,7 +32,12 @@ The fundamental issue: your AI infrastructure generates valuable work artifacts## The Solution-The Work Command adds two slash commands (`/w` and `/work`) that automatically detect your environment and search the right data sources.+Context Search adds two slash commands (`/context-search` and `/cs`) that automatically detect your environment and search the right data sources.++The command supports two usage modes:++1. **Standalone** — Search and browse previous work on a topic, then wait for a request. Use this to familiarize yourself before asking.+2. **Paired with a request** — Search first, load the context, then execute an accompanying task informed by that context. Use this to ground a request in prior work.**Any Claude Code install (vanilla):**1. **Conversation History** (`history.jsonl`) — Every prior prompt you've sent, with timestamps and project context@@ -62,8 +67,8 @@ This pack is designed for AI-assisted installation. Give this directory to your| Component | File | Purpose ||-----------|------|---------|-| Primary command | `src/commands/w.md` | `/w` slash command — short form for quick access |-| Alias command | `src/commands/work.md` | `/work` slash command — descriptive form |+| Primary command | `src/commands/context-search.md` | `/context-search` slash command — full name for discoverability |+| Shortcut command | `src/commands/cs.md` | `/cs` slash command — short form for quick access |**Summary:**- **Files created:** 2@@ -76,12 +81,13 @@ This pack is designed for AI-assisted installation. Give this directory to yourThis sounds similar to `git log --grep` which also searches past work. What makes this approach different?-Work recall searches up to eight data sources simultaneously — conversation history, git commits, project memory, session metadata, PRD content, session names, and work directories. A git grep only finds commit messages. Work recall finds everything: what you asked, what was decided, what the criteria were, and where it left off. It works on any Claude Code install out of the box, and gets richer if you have PAI installed.+Context Search searches up to eight data sources simultaneously — conversation history, git commits, project memory, session metadata, PRD content, session names, and work directories. A git grep only finds commit messages. Context Search finds everything: what you asked, what was decided, what the criteria were, and where it left off. It works on any Claude Code install out of the box, and gets richer if you have PAI installed.- Works on vanilla Claude Code — no PAI required- Auto-detects environment and searches available sources- Output is structured for instant AI context loading- PAI users get additional PRD and session registry search+- Two modes: standalone browsing or paired with a task request---@@ -89,10 +95,11 @@ Work recall searches up to eight data sources simultaneously — conversation hi| Trigger | What Happens ||---------|--------------|-| `/w authentication` | Searches all 5 sources for "authentication", presents structured results |-| `/work dashboard` | Same search using the longer alias |-| `/w deploy` | Finds all sessions related to deployment work |-| `/w helios` | Finds project-specific sessions by name |+| `/context-search authentication` | Searches all sources for "authentication", presents structured results, waits for a request |+| `/cs authentication` | Same search using the shortcut |+| `/cs deploy` then ask a question | Finds all sessions related to deployment, loads context, then answers the question informed by that context |+| `/context-search helios` | Finds project-specific sessions by name |+| `/cs dashboard` + "now refactor the sidebar" | Paired mode: loads dashboard context, then executes the refactor request |The command accepts any topic as a free-text argument. Matching is case-insensitive and partial — searching "auth" will match "authentication", "auth-middleware", etc.@@ -100,60 +107,77 @@ The command accepts any topic as a free-text argument. Matching is case-insensit## Example Usage-### Finding Prior Work+### Standalone Mode (Search + Wait)```-User: /w authentication+User: /cs authenticationAI responds:-═══ WORK RECALL: authentication ══════════════════+=== CONTEXT SEARCH: authentication ====================-📋 MATCHING SESSIONS (sorted by most recent first):+MATCHING SESSIONS (sorted by most recent first):- • 20260312-143000_fix-auth-middleware — Fix authentication middleware race condition+ * 20260312-143000_fix-auth-middleware — Fix authentication middleware race conditionPhase: complete | Progress: 8/8 | Effort: standardStarted: 2026-03-12 | Last updated: 2026-03-12Key context: Fixed race condition in auth token refresh causing 401 errorsCriteria status: 8 passed / 8 total- • 20260310-091500_add-oauth-flow — Add OAuth2 login flow+ * 20260310-091500_add-oauth-flow — Add OAuth2 login flowPhase: complete | Progress: 12/12 | Effort: extendedStarted: 2026-03-10 | Last updated: 2026-03-10Key context: Implemented OAuth2 PKCE flow with Google and GitHub providersCriteria status: 12 passed / 12 total-🔗 RELATED COMMITS (last 20):- • a1b2c3d Fix auth middleware race condition (2026-03-12)- • d4e5f6g Add OAuth2 PKCE flow (2026-03-10)+RELATED COMMITS (last 20):+ * a1b2c3d Fix auth middleware race condition (2026-03-12)+ * d4e5f6g Add OAuth2 PKCE flow (2026-03-10)++WORK DIRECTORIES:+ * 20260312-143000_fix-auth-middleware/+ * 20260310-091500_add-oauth-flow/-📂 WORK DIRECTORIES:- • 20260312-143000_fix-auth-middleware/- • 20260310-091500_add-oauth-flow/+----------------------------------------------------───────────────────────────────────────────────+"I've loaded context on authentication. The most recent session fixed a race+condition in auth middleware. What would you like to do?"+```++### Paired Mode (Search + Execute)-"I've caught up on authentication. The most recent session fixed a race condition-in auth middleware. Ready to continue — what would you like to work on?"+```+User: /cs authentication+ Now add rate limiting to the auth endpoints++AI responds:+=== CONTEXT SEARCH: authentication ====================+[same structured results as above]+---------------------------------------------------++"I've loaded context on authentication. Based on the prior work — especially+the OAuth2 PKCE flow and the auth middleware fix — I'll now add rate limiting+to the auth endpoints..."++[proceeds to execute the task with full context]```### No Results```-User: /w quantum-computing+User: /cs quantum-computingAI responds:-═══ WORK RECALL: quantum-computing ══════════════════+=== CONTEXT SEARCH: quantum-computing ====================-📋 MATCHING SESSIONS: None found+MATCHING SESSIONS: None found-🔗 RELATED COMMITS: None found+RELATED COMMITS: None found-📂 WORK DIRECTORIES: None found+WORK DIRECTORIES: None found-───────────────────────────────────────────────+----------------------------------------------------"No prior work found on quantum-computing. Ready to start fresh —-what would you like to build?"+"No prior work found on quantum-computing. What would you like to do?"```---@@ -184,9 +208,9 @@ If you use a different directory structure for your work tracking, you can edit| Customization | File | Impact ||--------------|------|--------|-| Change work registry path | `w.md` / `work.md` | Searches your custom work.json location |-| Change work directory path | `w.md` / `work.md` | Searches your custom PRD directory |-| Add additional search sources | `w.md` / `work.md` | Extends search to cover more data |+| Change work registry path | `context-search.md` / `cs.md` | Searches your custom work.json location |+| Change work directory path | `context-search.md` / `cs.md` | Searches your custom PRD directory |+| Add additional search sources | `context-search.md` / `cs.md` | Extends search to cover more data |---@@ -207,14 +231,21 @@ If you use a different directory structure for your work tracking, you can edit## Works Well With- **PAI Core Install** — Provides the MEMORY directory structure for full functionality-- **PAI Algorithm Skill** — Generates the PRDs that Work Command searches+- **PAI Algorithm Skill** — Generates the PRDs that Context Search searches---## Changelog+### 1.1.0 - 2026-03-15+- Renamed from Work Command to Context Search+- Commands changed from `/w` and `/work` to `/context-search` and `/cs`+- Added dual-mode usage: standalone (search + wait) and paired (search + execute request)+- Output header changed from "WORK RECALL" to "CONTEXT SEARCH"+- Shortcut `/cs` added for quick access+### 1.0.0 - 2026-03-13-- Initial release+- Initial release as Work Command- Two commands: `/w` (short) and `/work` (descriptive)- Five parallel search sources- Structured output format with recency sortingdiff --git a/Packs/WorkCommand/VERIFY.md b/Packs/ContextSearch/VERIFY.mdsimilarity index 71%rename from Packs/WorkCommand/VERIFY.mdrename to Packs/ContextSearch/VERIFY.mdindex 7fabd7a3..c524e24d 100644--- a/Packs/WorkCommand/VERIFY.md+++ b/Packs/ContextSearch/VERIFY.md@@ -1,4 +1,4 @@-# Work Command Verification+# Context Search Verification> **FOR AI AGENTS:** Complete this checklist AFTER installation. Every file check must pass before declaring the pack installed. Data source checks are informational only.@@ -10,8 +10,8 @@```bashCLAUDE_DIR="$HOME/.claude"-[ -f "$CLAUDE_DIR/commands/w.md" ] && echo "OK w.md" || echo "MISSING w.md"-[ -f "$CLAUDE_DIR/commands/work.md" ] && echo "OK work.md" || echo "MISSING work.md"+[ -f "$CLAUDE_DIR/commands/context-search.md" ] && echo "OK context-search.md" || echo "MISSING context-search.md"+[ -f "$CLAUDE_DIR/commands/cs.md" ] && echo "OK cs.md" || echo "MISSING cs.md"```**Expected:** At least one command file present (both if user chose "Both").@@ -20,7 +20,7 @@ CLAUDE_DIR="$HOME/.claude"```bashCLAUDE_DIR="$HOME/.claude"-for cmd in w.md work.md; do+for cmd in context-search.md cs.md; doif [ -f "$CLAUDE_DIR/commands/$cmd" ]; thenhead -1 "$CLAUDE_DIR/commands/$cmd" | grep -q "^---" && echo "OK $cmd frontmatter" || echo "ERROR $cmd missing frontmatter"grep -q "^name:" "$CLAUDE_DIR/commands/$cmd" && echo "OK $cmd has name field" || echo "ERROR $cmd missing name field"@@ -36,21 +36,21 @@ done```bashCLAUDE_DIR="$HOME/.claude"-for cmd in w.md work.md; do+for cmd in context-search.md cs.md; doif [ -f "$CLAUDE_DIR/commands/$cmd" ]; thenecho "Checking $cmd content..."- grep -q "WORK RECALL" "$CLAUDE_DIR/commands/$cmd" && echo " OK Has work recall header" || echo " ERROR Missing work recall header"+ grep -q "CONTEXT SEARCH" "$CLAUDE_DIR/commands/$cmd" && echo " OK Has context search header" || echo " ERROR Missing context search header"grep -q "work.json" "$CLAUDE_DIR/commands/$cmd" && echo " OK References session registry" || echo " ERROR Missing session registry search"- grep -q "MEMORY/wORK" "$CLAUDE_DIR/commands/$cmd" && echo " OK References work directories" || echo " ERROR Missing work directory search"+ grep -q "MEMORY/WORK" "$CLAUDE_DIR/commands/$cmd" && echo " OK References work directories" || echo " ERROR Missing work directory search"grep -q "git.*log" "$CLAUDE_DIR/commands/$cmd" && echo " OK References git history" || echo " ERROR Missing git history search"grep -q "session-names" "$CLAUDE_DIR/commands/$cmd" && echo " OK References session names" || echo " ERROR Missing session name search"grep -q "PRD.md" "$CLAUDE_DIR/commands/$cmd" && echo " OK References PRD files" || echo " ERROR Missing PRD search"- echo " All 5 search sources present"+ echo " All search sources present"fidone```-**Expected:** All 5 search sources referenced in each command file.+**Expected:** All search sources referenced in each command file.---@@ -63,7 +63,7 @@ CLAUDE_DIR="$HOME/.claude"echo "Data sources:"[ -f "$CLAUDE_DIR/MEMORY/STATE/work.json" ] && echo " AVAILABLE work.json (session registry)" || echo " UNAVAILABLE work.json (install PAI for this)"-[ -d "$CLAUDE_DIR/MEMORY/wORK" ] && echo " AVAILABLE MEMORY/wORK (PRD directory)" || echo " UNAVAILABLE MEMORY/wORK (install PAI for this)"+[ -d "$CLAUDE_DIR/MEMORY/WORK" ] && echo " AVAILABLE MEMORY/WORK (PRD directory)" || echo " UNAVAILABLE MEMORY/WORK (install PAI for this)"[ -f "$CLAUDE_DIR/MEMORY/STATE/session-names.json" ] && echo " AVAILABLE session-names.json" || echo " UNAVAILABLE session-names.json (install PAI for this)"[ -d "$CLAUDE_DIR/.git" ] && echo " AVAILABLE git history" || echo " UNAVAILABLE git history"```@@ -75,18 +75,18 @@ echo "Data sources:"Mark each item as complete:```markdown-## Work Command Installation Verification+## Context Search Installation Verification### Files-- [ ] At least one command file installed (w.md or work.md)+- [ ] At least one command file installed (context-search.md or cs.md)- [ ] Command file(s) have valid YAML frontmatter-- [ ] Command file(s) contain all 5 search source sections+- [ ] Command file(s) contain all search source sections- [ ] Command file(s) contain output format template-- [ ] Command file(s) contain post-results instructions+- [ ] Command file(s) contain dual-mode instructions (standalone and paired)### Functional (manual test)-- [ ] Typing /w [topic] in Claude Code triggers the command-- [ ] Typing /work [topic] in Claude Code triggers the command (if installed)+- [ ] Typing /context-search [topic] in Claude Code triggers the command+- [ ] Typing /cs [topic] in Claude Code triggers the command (if installed)- [ ] Command returns structured output or "no matches found"```@@ -97,7 +97,7 @@ Mark each item as complete:After installation, restart Claude Code and run:```-/w test+/cs test```**Expected behavior:**@@ -113,6 +113,6 @@ If the command isn't recognized, ensure you restarted Claude Code after installaWhen all file checks pass:-1. **Confirm to user:** "Work Command installation verified successfully"-2. **Recommend:** "Try it now: `/w` followed by any topic you've worked on"+1. **Confirm to user:** "Context Search installation verified successfully"+2. **Recommend:** "Try it now: `/cs` followed by any topic you've worked on"3. **Note:** "Restart Claude Code if the commands aren't recognized yet"diff --git a/Packs/WorkCommand/src/commands/w.md b/Packs/ContextSearch/src/commands/context-search.mdsimilarity index 68%rename from Packs/WorkCommand/src/commands/w.mdrename to Packs/ContextSearch/src/commands/context-search.mdindex a4365911..c1da085b 100644--- a/Packs/WorkCommand/src/commands/w.md+++ b/Packs/ContextSearch/src/commands/context-search.md@@ -1,16 +1,22 @@----name: w-description: Search all prior work by topic to recall context and resume sessions. Use when wanting to find, recall, or continue previous work on any topic.+name: Context Search+description: Search prior work to add context to a request, or browse previous sessions on a topic. Use before/after a request to ground it in past work, or standalone to recall and familiarize before asking.argument-hint: [topic]----# Work Recall+# Context SearchSearch all prior work for: **$ARGUMENTS**## Your Task-You are recalling prior work on the topic "$ARGUMENTS". Search across ALL available sources, synthesize what you find, and present an actionable summary so the user can immediately resume or start fresh work on this topic.+You are searching prior work on the topic "$ARGUMENTS". Search across ALL available sources, synthesize what you find, and present a context summary.++**Two usage modes:**++1. **Standalone (no accompanying request):** Search, present findings, familiarize yourself with the context, then wait for a request. Say: "I've loaded context on [topic]. What would you like to do?"++2. **Paired with a request (context search used before or after a task request):** Search first, load the context, then execute the accompanying request informed by that context. Do NOT start the request until context search is complete.## Step 1: Detect Environment@@ -55,7 +61,7 @@ Use Grep to search for "$ARGUMENTS" in `~/.claude/MEMORY/WORK/` across PRD filesPresent your findings as:```-═══ WORK RECALL: $ARGUMENTS ══════════════════+═══ CONTEXT SEARCH: $ARGUMENTS ══════════════════📋 MATCHING SESSIONS (sorted by most recent first):@@ -82,11 +88,13 @@ Omit any section that has no results. Only show sections with actual matches.## After Presenting Results-After showing the summary:--1. **If matches found:** Read the most recent matching PRD (if PAI) or summarize the most recent conversation context. Then say: "I've caught up on [topic]. The most recent session was [X]. Ready to continue — what would you like to work on?"+**Mode 1 — Standalone (no accompanying request):**+1. If matches found: Read the most recent matching PRD (if PAI) or summarize the most recent conversation context. Then say: "I've loaded context on [topic]. The most recent session was [X]. What would you like to do?"+2. If no matches found: Say: "No prior work found on [topic]. What would you like to do?"-2. **If no matches found:** Say: "No prior work found on [topic]. Ready to start fresh — what would you like to build?"+**Mode 2 — Paired with a request:**+1. If matches found: Read the most recent matching PRD (if PAI) or summarize the most recent conversation context. Then proceed to execute the accompanying request, fully informed by the recovered context.+2. If no matches found: Proceed with the request anyway, noting that no prior context was found.## Importantdiff --git a/Packs/WorkCommand/src/commands/work.md b/Packs/ContextSearch/src/commands/cs.mdsimilarity index 69%rename from Packs/WorkCommand/src/commands/work.mdrename to Packs/ContextSearch/src/commands/cs.mdindex 5532bf48..877ee8c3 100644--- a/Packs/WorkCommand/src/commands/work.md+++ b/Packs/ContextSearch/src/commands/cs.md@@ -1,16 +1,22 @@----name: work-description: Search all prior work by topic to recall context and resume sessions. Use when wanting to find, recall, or continue previous work on any topic.+name: cs+description: Search prior work to add context to a request, or browse previous sessions on a topic. Shortcut for /context-search.argument-hint: [topic]----# Work Recall+# Context SearchSearch all prior work for: **$ARGUMENTS**## Your Task-You are recalling prior work on the topic "$ARGUMENTS". Search across ALL available sources, synthesize what you find, and present an actionable summary so the user can immediately resume or start fresh work on this topic.+You are searching prior work on the topic "$ARGUMENTS". Search across ALL available sources, synthesize what you find, and present a context summary.++**Two usage modes:**++1. **Standalone (no accompanying request):** Search, present findings, familiarize yourself with the context, then wait for a request. Say: "I've loaded context on [topic]. What would you like to do?"++2. **Paired with a request (context search used before or after a task request):** Search first, load the context, then execute the accompanying request informed by that context. Do NOT start the request until context search is complete.## Step 1: Detect Environment@@ -55,7 +61,7 @@ Use Grep to search for "$ARGUMENTS" in `~/.claude/MEMORY/WORK/` across PRD filesPresent your findings as:```-═══ WORK RECALL: $ARGUMENTS ══════════════════+═══ CONTEXT SEARCH: $ARGUMENTS ══════════════════📋 MATCHING SESSIONS (sorted by most recent first):@@ -82,11 +88,13 @@ Omit any section that has no results. Only show sections with actual matches.## After Presenting Results-After showing the summary:--1. **If matches found:** Read the most recent matching PRD (if PAI) or summarize the most recent conversation context. Then say: "I've caught up on [topic]. The most recent session was [X]. Ready to continue — what would you like to work on?"+**Mode 1 — Standalone (no accompanying request):**+1. If matches found: Read the most recent matching PRD (if PAI) or summarize the most recent conversation context. Then say: "I've loaded context on [topic]. The most recent session was [X]. What would you like to do?"+2. If no matches found: Say: "No prior work found on [topic]. What would you like to do?"-2. **If no matches found:** Say: "No prior work found on [topic]. Ready to start fresh — what would you like to build?"+**Mode 2 — Paired with a request:**+1. If matches found: Read the most recent matching PRD (if PAI) or summarize the most recent conversation context. Then proceed to execute the accompanying request, fully informed by the recovered context.+2. If no matches found: Proceed with the request anyway, noting that no prior context was found.## Importantdiff --git a/Packs/README.md b/Packs/README.mdindex e345f50d..18714010 100644--- a/Packs/README.md+++ b/Packs/README.md@@ -17,7 +17,7 @@ PackName/Point your AI to the pack directory:```-"Install the WorkCommand pack from PAI/Packs/WorkCommand/"+"Install the ContextSearch pack from PAI/Packs/ContextSearch/"```Your AI reads `INSTALL.md` and walks through a 5-phase wizard: system analysis, user questions, backup, installation, verification.@@ -30,7 +30,7 @@ Or manually: read `INSTALL.md`, copy files from `src/` to the specified location| Pack | Description ||------|-------------|-| [WorkCommand](WorkCommand/) | `/w` and `/work` — search prior work sessions by topic |+| [ContextSearch](ContextSearch/) | `/context-search` and `/cs` — search prior work to add context |### Skills