Deep context

From kbanc85/claudia · View interactive version

Deep context is an AI agent skill from the GitHub repository kbanc85/claudia. Full-context deep analysis for meeting prep, relationship analysis, or strategic planning. Pulls up to 180 memories across multiple dimensions for comprehensive synthesis. Use when "deep dive", "full context", "everything about", "strategic analysis", or when preparing for important meetings.

How to use this skill

Skill file

Deep Context

Comprehensive deep analysis that leverages the full context window. Pulls memories across multiple dimensions and synthesizes them into an actionable intelligence brief.

When to Use

The Deep Pull

Call the memory_deep_context MCP tool with the target entity or topic. This compound tool executes the full pipeline server-side in a single call:

  1. Entity core (limit=50): Everything known about the target (memories, relationships, metadata)
  2. Semantic recall (limit=50): Broad search to catch indirect references and related topics
  3. Connected entities (top 3 by strength, limit=10 each): Network context around the target
  4. Temporal sweep (limit=30): Observations, learnings, and commitments for time-sensitive items
  5. Episode context (limit=20): Session narratives mentioning the target

All results are deduplicated by memory ID across steps. The tool returns structured JSON with sections for each step plus aggregate stats.

Parameters

All limits are configurable via the tool's input:

| Parameter | Default | Purpose |

|-----------|---------|---------|

| target | (required) | Entity name or topic |

| entity_limit | 50 | Max memories from entity lookup |

| recall_limit | 50 | Max from broad semantic search |

| connected_limit | 10 | Max per connected entity |

| max_connections | 3 | How many connected entities to pull |

| temporal_limit | 30 | Max temporal items |

| episode_limit | 20 | Max episodes |

Fallback (when memory daemon is unavailable)

If the MCP tool is not available, execute these queries manually using memory_about and memory_recall MCP tools sequentially:

  1. memory_about with the target (limit=50)
  2. memory_recall with the target (limit=50)
  3. memory_about for each of the top 3 connected entities (limit=10)
  4. memory_recall with types=["observation","learning","commitment"] (limit=30)
  5. memory_recall for "session with [target]" (limit=20)
  6. Deduplicate by memory ID across all steps

If the memory daemon itself is down, fall back to reading context/ files and people/*.md directly. Note degraded mode in output.

Edge Cases

Synthesis Format

After gathering all data, synthesize into this structure:

**🔍 Deep Context: [Entity Name]**

### Executive Summary
[2-3 sentence overview: who they are, current status, why they matter]

### Key Facts
- [Most important facts, ordered by recency and importance]

### Relationships & Network
- [Entity] → [Connected Person]: [Nature of relationship, strength, recent activity]
- [Map of key connections with context]

### Timeline
- [Chronological view of significant events, decisions, milestones]
- [When relationship started, key inflection points]

### Patterns & Observations
- [Recurring themes across interactions]
- [Communication style observations]
- [Behavioral patterns worth noting]

### Open Items
- **Active commitments**: [What's promised, by whom, when]
- **Waiting on**: [What we're expecting from them]
- **Unresolved**: [Questions, tensions, or decisions pending]

### Strategic Implications
- [What this context means for upcoming decisions]
- [Risks to watch]
- [Opportunities to consider]

---
*Deep context assembled from [N] memories across [M] entities. Data spans [date range].*

Guardrails

Performance Notes

This skill makes 6-8 CLI calls (Steps 1-5 plus up to 3 connected entity lookups). Total memory budget: ~180 max (50+50+30+30+20). Designed for the 1M context window where pulling this many memories is practical without compaction risk. For quick lookups, use claudia memory about directly. Reserve /deep-context for when you need the full picture.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.