Runtime Awareness
Full inventory of the runtime environment — platform, tools, services, and cross-boundary capabilities.
Platform
| Property |
Value |
| OS |
Ubuntu 22.04 LTS on WSL2 (kernel 6.6.x) |
| Host |
Windows, mirrored networking (networkingMode=mirrored) |
| systemd |
Enabled |
| WSL interop |
Enabled, appendWindowsPath=true |
| Windows user |
FaroukBakari → /mnt/c/Users/FaroukBakari/ (full R/W) |
Compute Resources
| Resource |
Allocation |
| CPU |
16 cores |
| RAM |
24 GB |
| Swap |
48 GB |
| GPU |
NVIDIA RTX 4090 (24 GB VRAM), CUDA 12.4, driver 591.59 |
| Storage |
C: (886G), D: (1.9T), E: (17T), F: (1.9T), G: (977G), WSL root (1T) |
Networking
- Mirrored mode: WSL and Windows share
localhost — no port forwarding needed
- Dev servers started in WSL are directly accessible from Windows browsers and vice versa
- Firewall: disabled in WSL config
Tool Access
Core Tools (Claude Code CLI)
Read, Edit, Write, Glob, Grep, Bash, WebFetch, WebSearch, Task (subagents), TodoWrite, AskUserQuestion, EnterPlanMode.
Session Introspection Commands
User-invocable slash commands (agent cannot invoke directly — recommend when relevant):
| Command |
Shows |
When |
/context |
Context usage grid |
Before large tasks, context pressure |
/cost |
Token stats |
After heavy tool use |
/compact [focus] |
Manual compaction with optional focus |
Context filling up |
Auto-compaction: Happens silently at limits — no agent signal. Mitigation: Compact Instructions (CLAUDE.md §5) defines preservation priorities. PreCompact hook fires with trigger: "manual"/"auto".
IDE MCP Bridge
| Tool |
Capability |
mcp__ide__getDiagnostics |
Read VS Code language diagnostics (type errors, lint warnings) |
mcp__ide__executeCode |
Execute Python code in active Jupyter kernel |
VS Code CLI (code)
Available via .vscode-server remote CLI. Can:
- Open files/diffs in the editor (
code -g file:line, code -d file1 file2)
- Install/list/uninstall extensions
- Open folders/workspaces
Windows Executables (via WSL Interop)
| Executable |
Use Case |
powershell.exe |
Windows system commands, registry, scheduled tasks |
cmd.exe |
Windows shell commands |
explorer.exe |
Open folders/URLs in Windows (explorer.exe ., explorer.exe https://...) |
clip.exe |
Copy stdout to Windows clipboard (echo text | clip.exe) |
wslpath |
Path translation: wslpath -w /home/... → \\wsl$\..., wslpath -u 'C:\...' → /mnt/c/... |
| Chrome |
"/mnt/c/Program Files/Google/Chrome/Application/chrome.exe" — launch with optional URL |
NOT Available
- VS Code extension API (
vscode.runCommand, askQuestions, openSimpleBrowser)
- MCP servers from
.vscode/mcp.json (Playwright MCP, filesystem, context7, tavily, etc.)
Windows-Side VS Code Config
Directly editable from WSL — no manual user intervention needed:
| File |
WSL Path |
| Settings |
/mnt/c/Users/FaroukBakari/AppData/Roaming/Code/User/settings.json |
| Keybindings |
/mnt/c/Users/FaroukBakari/AppData/Roaming/Code/User/keybindings.json |
| MCP config |
/mnt/c/Users/FaroukBakari/AppData/Roaming/Code/User/mcp.json |
| Snippets |
/mnt/c/Users/FaroukBakari/AppData/Roaming/Code/User/snippets/ |
Dev Toolchain
| Tool |
Version |
Notes |
| Node |
22.20.0 |
via nvm |
| Python |
3.11.9 |
project venv at backend/.venv |
| Poetry |
2.2.1 |
|
| Docker |
28.5.2 |
Docker Desktop with WSL integration |
| Git |
2.34.1 |
SSH key at ~/.ssh/id_rsa.pub |
| gh CLI |
2.83.2 |
|
| Make |
4.3 |
|
| Playwright |
1.58.2 |
npm; headless Chromium works in WSL |
VS Code Extensions (notable)
| Extension |
Purpose |
anthropic.claude-code |
Claude Code extension (installed) |
vue.volar |
Vue 3 language support |
ms-python.python + vscode-pylance |
Python IDE |
dbaeumer.vscode-eslint + esbenp.prettier-vscode |
Linting/formatting |
eamodio.gitlens |
Git integration |
ms-toolsai.jupyter |
Jupyter notebooks |
ms-vscode.makefile-tools |
Makefile support |
Running Services
| Service |
Port |
Details |
| Ollama |
11434 |
v0.9.0, llama3.2:1b installed, GPU-accelerated (RTX 4090) |
| n8n |
5678 |
Docker container (n8nio/n8n:latest) + PostgreSQL (5432) |
| Docker Desktop |
— |
Running, WSL integration active |
IB TWS / Gateway
- Installed at
G:\Jts (WSL: /mnt/g/Jts/)
- Configured:
tradingMode=p (paper), timezone Europe/Paris, ibkrBranding=pro
- Not currently running — ports 4001/7497 closed
- When running, accessible via mirrored networking on
localhost
Browser Automation
| Method |
Status |
Use Case |
| WSL headless Chromium |
Works |
Playwright tests, visual verification, CI |
| Windows Chrome (direct launch) |
Works |
Open URLs for user, demo |
| Playwright MCP Chrome profile |
Installed at ~/.cache/ms-playwright/mcp-chrome-* |
Persistent browser sessions |
Cross-Boundary Capabilities Summary
These are actions that span WSL ↔ Windows and are confirmed working:
- Launch Windows GUI apps from WSL (Chrome, Explorer, etc.)
- Edit Windows-side files directly (VS Code config, keybindings, any file on C:-G:)
- Share localhost seamlessly (mirrored networking)
- Copy to clipboard (
| clip.exe)
- Run PowerShell/cmd for Windows-specific operations
- Docker works transparently across WSL ↔ Windows
- GPU compute available for Ollama, CUDA workloads
1---2name: runtime-awareness3description: Full runtime environment inventory — platform, tools, services, paths. Load when checking tooling or capabilities4---56# Runtime Awareness78> Full inventory of the runtime environment — platform, tools, services, and cross-boundary capabilities.910## Platform1112| Property | Value |13|----------|-------|14| **OS** | Ubuntu 22.04 LTS on WSL2 (kernel 6.6.x) |15| **Host** | Windows, mirrored networking (`networkingMode=mirrored`) |16| **systemd** | Enabled |17| **WSL interop** | Enabled, `appendWindowsPath=true` |18| **Windows user** | `FaroukBakari` → `/mnt/c/Users/FaroukBakari/` (full R/W) |1920### Compute Resources2122| Resource | Allocation |23|----------|------------|24| CPU | 16 cores |25| RAM | 24 GB |26| Swap | 48 GB |27| GPU | **NVIDIA RTX 4090** (24 GB VRAM), CUDA 12.4, driver 591.59 |28| Storage | C: (886G), D: (1.9T), E: (17T), F: (1.9T), G: (977G), WSL root (1T) |2930### Networking3132- **Mirrored mode**: WSL and Windows share `localhost` — no port forwarding needed33- Dev servers started in WSL are directly accessible from Windows browsers and vice versa34- Firewall: disabled in WSL config3536---3738## Tool Access3940### Core Tools (Claude Code CLI)4142`Read`, `Edit`, `Write`, `Glob`, `Grep`, `Bash`, `WebFetch`, `WebSearch`, `Task` (subagents), `TodoWrite`, `AskUserQuestion`, `EnterPlanMode`.4344### Session Introspection Commands4546User-invocable slash commands (agent cannot invoke directly — recommend when relevant):4748| Command | Shows | When |49|---------|-------|------|50| `/context` | Context usage grid | Before large tasks, context pressure |51| `/cost` | Token stats | After heavy tool use |52| `/compact [focus]` | Manual compaction with optional focus | Context filling up |5354**Auto-compaction**: Happens silently at limits — no agent signal. Mitigation: `Compact Instructions` (CLAUDE.md §5) defines preservation priorities. `PreCompact` hook fires with `trigger: "manual"/"auto"`.5556### IDE MCP Bridge5758| Tool | Capability |59|------|------------|60| `mcp__ide__getDiagnostics` | Read VS Code language diagnostics (type errors, lint warnings) |61| `mcp__ide__executeCode` | Execute Python code in active Jupyter kernel |6263### VS Code CLI (`code`)6465Available via `.vscode-server` remote CLI. Can:66- Open files/diffs in the editor (`code -g file:line`, `code -d file1 file2`)67- Install/list/uninstall extensions68- Open folders/workspaces6970### Windows Executables (via WSL Interop)7172| Executable | Use Case |73|------------|----------|74| `powershell.exe` | Windows system commands, registry, scheduled tasks |75| `cmd.exe` | Windows shell commands |76| `explorer.exe` | Open folders/URLs in Windows (`explorer.exe .`, `explorer.exe https://...`) |77| `clip.exe` | Copy stdout to Windows clipboard (`echo text \| clip.exe`) |78| `wslpath` | Path translation: `wslpath -w /home/...` → `\\wsl$\...`, `wslpath -u 'C:\...'` → `/mnt/c/...` |79| Chrome | `"/mnt/c/Program Files/Google/Chrome/Application/chrome.exe"` — launch with optional URL |8081### NOT Available8283- VS Code extension API (`vscode.runCommand`, `askQuestions`, `openSimpleBrowser`)84- MCP servers from `.vscode/mcp.json` (Playwright MCP, filesystem, context7, tavily, etc.)8586---8788## Windows-Side VS Code Config8990Directly editable from WSL — no manual user intervention needed:9192| File | WSL Path |93|------|----------|94| Settings | `/mnt/c/Users/FaroukBakari/AppData/Roaming/Code/User/settings.json` |95| Keybindings | `/mnt/c/Users/FaroukBakari/AppData/Roaming/Code/User/keybindings.json` |96| MCP config | `/mnt/c/Users/FaroukBakari/AppData/Roaming/Code/User/mcp.json` |97| Snippets | `/mnt/c/Users/FaroukBakari/AppData/Roaming/Code/User/snippets/` |9899---100101## Dev Toolchain102103| Tool | Version | Notes |104|------|---------|-------|105| Node | 22.20.0 | via nvm |106| Python | 3.11.9 | project venv at `backend/.venv` |107| Poetry | 2.2.1 | |108| Docker | 28.5.2 | Docker Desktop with WSL integration |109| Git | 2.34.1 | SSH key at `~/.ssh/id_rsa.pub` |110| gh CLI | 2.83.2 | |111| Make | 4.3 | |112| Playwright | 1.58.2 | npm; headless Chromium works in WSL |113114### VS Code Extensions (notable)115116| Extension | Purpose |117|-----------|---------|118| `anthropic.claude-code` | Claude Code extension (installed) |119| `vue.volar` | Vue 3 language support |120| `ms-python.python` + `vscode-pylance` | Python IDE |121| `dbaeumer.vscode-eslint` + `esbenp.prettier-vscode` | Linting/formatting |122| `eamodio.gitlens` | Git integration |123| `ms-toolsai.jupyter` | Jupyter notebooks |124| `ms-vscode.makefile-tools` | Makefile support |125126---127128## Running Services129130| Service | Port | Details |131|---------|------|---------|132| **Ollama** | 11434 | v0.9.0, `llama3.2:1b` installed, GPU-accelerated (RTX 4090) |133| **n8n** | 5678 | Docker container (`n8nio/n8n:latest`) + PostgreSQL (5432) |134| **Docker Desktop** | — | Running, WSL integration active |135136### IB TWS / Gateway137138- **Installed** at `G:\Jts` (WSL: `/mnt/g/Jts/`)139- Configured: `tradingMode=p` (paper), timezone `Europe/Paris`, `ibkrBranding=pro`140- **Not currently running** — ports 4001/7497 closed141- When running, accessible via mirrored networking on `localhost`142143---144145## Browser Automation146147| Method | Status | Use Case |148|--------|--------|----------|149| WSL headless Chromium | Works | Playwright tests, visual verification, CI |150| Windows Chrome (direct launch) | Works | Open URLs for user, demo |151| Playwright MCP Chrome profile | Installed at `~/.cache/ms-playwright/mcp-chrome-*` | Persistent browser sessions |152153---154155## Cross-Boundary Capabilities Summary156157These are actions that span WSL ↔ Windows and are **confirmed working**:1581591. **Launch Windows GUI apps** from WSL (Chrome, Explorer, etc.)1602. **Edit Windows-side files** directly (VS Code config, keybindings, any file on C:-G:)1613. **Share localhost** seamlessly (mirrored networking)1624. **Copy to clipboard** (`| clip.exe`)1635. **Run PowerShell/cmd** for Windows-specific operations1646. **Docker** works transparently across WSL ↔ Windows1657. **GPU compute** available for Ollama, CUDA workloads