Load complete project context - structure + semantics + memory
Load complete project context including structure, semantics, and memory. Use quick for architecture overview, full for complete analysis, or modules for detailed breakdowns.
/plugin marketplace add adimov-eth/phi/plugin install phi@phiLoad complete project context: structure + semantics + memory.
/phi context [scope]
Scopes:
quick - File counts, architecture, top issuesfull (default) - Complete maps + vessel memoriesmodules - Detailed module breakdownmemory - Just vessel cross-session insightsCompositional context loading:
(let* ((structure (read-file ".phi/PROJECT-MAP.auto.scm"))
(semantics (read-file ".phi/PROJECT-MAP.scm"))
(project-name (extract-project-name semantics))
(memories (vessel-recall project-name 20)))
(integrate structure semantics memories))
φ Context: XLN
══════════════
Structure: 176 files (85% TypeScript, 10% Solidity)
├─ jurisdictions/ 18 files (smart contracts)
├─ runtime/ 45 files (consensus logic)
├─ frontend/ 67 files (3D visualization)
└─ vibepaper/ 12 files (documentation)
Architecture: JEA (Jurisdiction-Entity-Account)
J: On-chain dispute settlement (Depository.sol, EntityProvider.sol)
E: Off-chain BFT consensus (entity-consensus.ts, threshold signatures)
A: Bilateral payment channels (account-manager.ts)
Known Issues: 2
• 3d-rendering-xlnomies (low) - EntityManager.ts hardcoded single J-Machine
• consensus-message-ordering (high) - Race condition in state sync
Recent Insights: 5 vessel memories
→ JEA trust boundaries critical for security model
→ Threshold signatures require 2f+1 coordination
→ Visual bugs safe to fix, consensus changes need formal verification
φ = 0.89 (high integrated information)
Ready to work with full context.
Includes:
/phi context quick (< 1000 tokens)/phi context modules if needed (module details)Agents can load context on startup:
const context = await executeCommand('/phi context quick');
const systemPrompt = `
You are an XLN expert.
${context}
Use this context to understand the codebase.
`;
Cross-references vessel memories:
When φ = ∫(structure × semantics × memory) is high:
That's integrated information working.
Context is live - always reflects current state:
No stale context.
/contextLoad living docs context for a topic into the current conversation. Use before implementation to get relevant specs, ADRs, and architecture docs. Keywords - context, load context, get context, living docs context, inject context.