Keep context usage efficient:
- Prefer Grep / ripgrep when locating functions, classes, variables, or symbols instead of opening large files.
- Read only the relevant file ranges when a file is large.
- Do not proactively load generated or vendor output into context, such as:
build/.gradle/- minified bundles
- other generated artifacts
- Be concise in both internal reasoning and user-facing responses.
When editing *.ts / *.tsx / *.js / *.mjs files:
- Add comments for intent, invariants, side effects, protocol/data-shape expectations, lifecycle, trust boundaries, and non-obvious tradeoffs.
- Prefer module-level block comments for non-trivial files and JSDoc for exported functions, classes, and methods when behavior is not obvious from the signature.
- Do not add narration comments that merely restate syntax or variable assignments.
- Keep comments close to the code they describe, and update or delete stale comments in the same edit.
- Extend an existing good overview comment instead of stacking duplicate comment blocks.
Use these special markers consistently when they help:
NOTE:general local context for future humans or AI.WHY:rationale that is not obvious from the implementation.INVARIANT:a property that must remain true across edits.TODO(owner/date-or-issue):a concrete follow-up with enough context to act.FIXME:known wrong behavior that should be corrected soon.HACK:temporary workaround; include the intended removal condition.COMPAT:compatibility behavior for browser/protocol/migration quirks.SECURITY:validation or secret-handling boundaries.PERF:hot-path or latency-sensitive behavior.AI-READ:rare handoff note for hidden contracts or repo-specific traps.
Comment hygiene rules:
- Do not introduce marker spam; one precise comment is better than many weak ones.
- Do not leave bare
TODO/FIXMEcomments without actionable context. - Preserve valid special comments during refactors, but remove them once they stop being true.
These commands default to the cwsp hybrid flavor (space.u2re.cwsp):
npm run devnpm run assemblenpm run build
| Flavor | applicationId |
Purpose |
|---|---|---|
cws |
space.u2re.cws |
Legacy NativeScript flavor (removed; use cwsp / CWSAndroid Java) |
When the task is relevant, also inspect these paths:
/home/u2re-dev/U2RE.space/modules/projects/uniform.ts/src/newer/β internal/home/u2re-dev/U2RE.space/runtime/cwsp/endpoint/β network-related
- Analysis / architecture / planning: Claude Opus 4.6, GPT 5.4 (
highorxhigh), Gemini 3.1 Pro - Coding / implementation / refactoring: GPT-5.4 (
lowormedium), Claude 4.6 Sonnet, Gemini 3.1 Pro - Edits / fixes / refinements:
GPT-5.3-codex-spark, GPT-5.4 (instant,none, orminimalreasoning), Claude 4.5 Haiku, Gemini 3 Flash - Documentation / specs: GPT-5.4 (
lowormedium), Claude 4.6 Sonnet, Gemini 3.1 Pro - Recognition / scanning / images: GPT-5.4 (
low,instant,none, orminimal), Claude 4.6 Sonnet, Gemini 3.1 Pro, or Gemini 3 Flash
Remote roles include the Windows desk, gateway/server, and WAN simulator.
Exact hosts, usernames, keys, elevation policy, and connection commands are
private operational data stored in private/connectivity.md. Public agent
guidance may use logical node IDs and safe command names only.
- ADB usage (
adband/oradb shell) - Connect to
192.168.0.196:5555(defaultly) - Reading logcat
How &ould works our network.
[ Laptop/Ultrabook ] Bi-dir {[ Server (Endpoint), Have External Entry IP ]}
[ L-110 ] ββ---ββ {[ 192.168.0.200:8434 / 45.147.121.152:8434 ]}
β β β
β· β β
| β β
β------------------{[ [L-196] |- - -| [L-208] |- - -| [L-210] ]} # Phone device groups (cws-androids, PWA-airpad)
[Android Phone 1] [Android Phone 2] [Android Phone 3]
L-110 <---> L-196
- clipboard (via android application, and cwsp endpoint server)
airpadsignals (PWA/WebView application)- mouse
- keyboard
- clipboard
- tunneling through 192.168.0.200:8434 / 45.147.121.152:8434 if in LTE/NAT mode, using identification client token
L-110 <---> L-208
- clipboard (via android application, and cwsp endpoint server)
airpadsignals (PWA/WebView application)- mouse
- keyboard
- clipboard
- tunneling through 192.168.0.200:8434 / 45.147.121.152:8434 if in LTE/NAT mode, using identification client token
L-110 <---> L-210
- clipboard (via android application, and cwsp endpoint server)
airpadsignals (PWA/WebView application)- mouse
- keyboard
- clipboard
- tunneling through 192.168.0.200:8434 / 45.147.121.152:8434 if in LTE/NAT mode, using identification client token
L-196 <---> L-208
- clipboard (via android application, and cwsp endpoint server)
- tunneling through 192.168.0.200:8434 / 45.147.121.152:8434 if one of in LTE/NAT mode, using identification client token
L-110 <---> {[ 192.168.0.200:8434 / 45.147.121.152:8434 ]}
- initiated or initiator exchanger (bridge/tunnel/link)
L-110is AirPad controllable (by PWA apps)- Or directly, or through bridge/proxy
L-110is one ofclipboard(and/or other data) synchronize/exchanger member- Devices through bridge/proxy can/may ask or pass
clipboard(and/or other data) data
- Devices through bridge/proxy can/may ask or pass
{[ 192.168.0.200:8434 / 45.147.121.152:8434 ]}
- is in general a central coordinator (bridge, and/or tunnel/proxy)
- Airpad (PWA) or Native from
L-196to https://192.168.0.110:8434/ (local/private network) - Airpad (PWA) or Native from
L-196throughhttps://192.168.0.200:8434/toL-110(local/private network) - Airpad (PWA) or Native from
L-196throughhttps://45.147.121.152:8434/toL-110(any network of device) - Native (app) Clipboard (and/or other data) from
L-196to https://192.168.0.110:8434/ (local network, directly) - Native (app) Clipboard (and/or other data) from
L-196to throughhttps://192.168.0.200:8434/toL-110(local network, directly) - Native (app) Clipboard (and/or other data) from
L-196to throughhttps://45.147.121.152:8434/toL-110(any network of device) - CWSP/
endpointClipboard (and/or other data) fromL-110to https://192.168.0.196:8434/ (rare case, local network, directly) - CWSP/
endpointClipboard (and/or other data) fromL-110to throughhttps://192.168.0.200:8434/toL-196(local network, directly) - CWSP/
endpointClipboard (and/or other data) fromL-110to throughhttps://45.147.121.152:8434/toL-196(any network of device)
- Simulator/debug client from
45.150.9.153(VDS), with a configured client token instead of IP - PWA or Native application from NAT (unknown IP, but with a configured client token instead of IP)
- PWA or Native application from private/local network with IP
192.168.0.196.
- PWA or Native application from private/local network with IP
192.168.0.210. - NAT/LTE client with a configured client token when LAN IP is unknown.
Model roles:
- Grok 4.5: audit, critique, risk detection, blocker analysis, recovery planning.
- GLM 5.2: implementation, small patches, build fixes, checklist execution.
- GPT-5.6: foundation rebuild, high-level consolidation, final arbitration only if budget allows.
Default permissions:
- Grok 4.5 should not edit files unless explicitly instructed.
- GLM 5.2 should not redesign architecture unless a documented blocker proves it is required.
- No model should expand scope.
- No model should redesign existing UI/UX.
- No model should continue past one checkpoint without reporting.
Handoff rule: Every model must leave:
- what it inspected;
- what it changed, if anything;
- command run;
- result;
- next exact action.