Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
0d602ce
Add SimAI-OXC integration for optical cross-connect collective commun…
Jan 27, 2026
e4f5beb
Fix SimAI-OXC bugs and improve code quality
Feb 2, 2026
1c89435
Add OXC build directory to gitignore
Feb 2, 2026
be96a65
Remove OXC build artifacts from repository
Feb 2, 2026
5fbb1c8
feat: flatten submodules, add communication domain ranks
yanzhenghao Jun 3, 2026
51bf547
feat: add server and dashboard directories
yanzhenghao Jun 3, 2026
d293d0f
feat: LLDP v3.0.260530 format support with spine topology and multi-leaf
yanzhenghao Jun 5, 2026
6956715
fix: port-level spine-to-leaf mapping, remove device-level aggregation
yanzhenghao Jun 5, 2026
e906064
fix: strip OXC node_id (id) suffix consistently across merger + edg_c…
yanzhenghao Jun 5, 2026
965cb70
fix: strip edge node_ids in resolve_paths srv_leaf_count loop
yanzhenghao Jun 5, 2026
7d47083
feat: F091 EDG init data global persistence across sessions
yanzhenghao Jun 8, 2026
df3668b
refactor: F092 rename serverIps/server_ips to serverIds/server_ids
yanzhenghao Jun 8, 2026
25dfb42
fix: clear wizard EDG data on network switch + split pods by group_id
yanzhenghao Jun 9, 2026
120db6a
feat: v3 lld topology + EDG persistence + multi-link NS3 + fixes
yanzhenghao Jun 10, 2026
9403bee
feat: unfold spine/OXC topology + IP sort fix + EDG persistence
yanzhenghao Jun 10, 2026
16ee574
fix: ProcessList view cmd/error buttons + EDG topology unfold enforce…
yanzhenghao Jun 11, 2026
8604a3c
feat: AICB extensibility -- model registry, LLaMA, MoE routing, Qwen3…
yanzhenghao Jun 15, 2026
2ca91ad
Revert "feat: AICB extensibility -- model registry, LLaMA, MoE routin…
yanzhenghao Jun 15, 2026
2041833
feat: ProcessList progress bar with workload name and ETA display
yanzhenghao Jun 15, 2026
c67fb6c
feat: add Qwen3-8B/14B/32B to workload model config
yanzhenghao Jun 16, 2026
7c8885c
feat: decoupled replay Phase 1 -- SimAI-side flow recording with comp…
yanzhenghao Jun 18, 2026
108d253
feat: add independent NS3 replay binary and CI diff-check script
yanzhenghao Jun 18, 2026
9ab14e1
chore: update ns-3-alibabacloud submodule pointer for decoupled replay
yanzhenghao Jun 18, 2026
4b62f6f
fix: rename binary target to scratch_decoupled_replay for consistency
yanzhenghao Jun 18, 2026
87c2ea3
fix: resolve prev[] rank-ID-to-flow-ID mapping in finalizeFlowFile
yanzhenghao Jun 18, 2026
49b2a58
chore: update ns-3-alibabacloud submodule for binary rename
yanzhenghao Jun 18, 2026
7eb5986
fix: sync ns-3-alibabacloud submodule files with Phase 2 changes
yanzhenghao Jun 18, 2026
fedac76
fix: resolve prev[] rank-ID-to-flow-ID mapping in finalizeFlowFile
yanzhenghao Jun 18, 2026
7898c7f
Merge branch 'feat/decoupled-replay-phase1'
yanzhenghao Jun 18, 2026
32af22f
chore: sync state files and dep_scheduler refinements
yanzhenghao Jun 18, 2026
f1082ce
chore: sync OMC state files
yanzhenghao Jun 18, 2026
55d583c
chore: sync state
yanzhenghao Jun 18, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
The diff you're trying to view is too large. We only load the first 3000 changed files.
65 changes: 65 additions & 0 deletions .claude/CLAUDE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
<!-- OMC:START -->
<!-- OMC:VERSION:4.13.4 -->

# oh-my-claudecode - Intelligent Multi-Agent Orchestration

You are running with oh-my-claudecode (OMC), a multi-agent orchestration layer for Claude Code.
Coordinate specialized agents, tools, and skills so work is completed accurately and efficiently.

<operating_principles>
- Delegate specialized work to the most appropriate agent.
- Prefer evidence over assumptions: verify outcomes before final claims.
- Choose the lightest-weight path that preserves quality.
- Consult official docs before implementing with SDKs/frameworks/APIs.
</operating_principles>

<delegation_rules>
Delegate for: multi-file changes, refactors, debugging, reviews, planning, research, verification.
Work directly for: trivial ops, small clarifications, single commands.
Route code to `executor` (use `model=opus` for complex work). Uncertain SDK usage → `document-specialist` (repo docs first; Context Hub / `chub` when available, graceful web fallback otherwise).
</delegation_rules>

<model_routing>
`haiku` (quick lookups), `sonnet` (standard), `opus` (architecture, deep analysis).
Direct writes OK for: `~/.claude/**`, `.omc/**`, `.claude/**`, `CLAUDE.md`, `AGENTS.md`.
</model_routing>

<skills>
Invoke via `/oh-my-claudecode:<name>`. Trigger patterns auto-detect keywords.
Tier-0 workflows include `autopilot`, `ultrawork`, `ralph`, `team`, and `ralplan`.
Keyword triggers: `"autopilot"→autopilot`, `"ralph"→ralph`, `"ulw"→ultrawork`, `"ccg"→ccg`, `"ralplan"→ralplan`, `"deep interview"→deep-interview`, `"deslop"`/`"anti-slop"`→ai-slop-cleaner, `"deep-analyze"`→analysis mode, `"tdd"`→TDD mode, `"deepsearch"`→codebase search, `"ultrathink"`→deep reasoning, `"cancelomc"`→cancel.
Team orchestration is explicit via `/team`.
Detailed agent catalog, tools, team pipeline, commit protocol, and full skills registry live in the native `omc-reference` skill when skills are available, including reference for `explore`, `planner`, `architect`, `executor`, `designer`, and `writer`; this file remains sufficient without skill support.
</skills>

<verification>
Verify before claiming completion. Size appropriately: small→haiku, standard→sonnet, large/security→opus.
If verification fails, keep iterating.
</verification>

<execution_protocols>
Broad requests: explore first, then plan. 2+ independent tasks in parallel. `run_in_background` for builds/tests.
Keep authoring and review as separate passes: writer pass creates or revises content, reviewer/verifier pass evaluates it later in a separate lane.
Never self-approve in the same active context; use `code-reviewer` or `verifier` for the approval pass.
Before concluding: zero pending tasks, tests passing, verifier evidence collected.
</execution_protocols>

<hooks_and_context>
Hooks inject `<system-reminder>` tags. Key patterns: `hook success: Success` (proceed), `[MAGIC KEYWORD: ...]` (invoke skill), `The boulder never stops` (ralph/ultrawork active).
Persistence: `<remember>` (7 days), `<remember priority>` (permanent).
Kill switches: `DISABLE_OMC`, `OMC_SKIP_HOOKS` (comma-separated).
</hooks_and_context>

<cancellation>
`/oh-my-claudecode:cancel` ends execution modes. Cancel when done+verified or blocked. Don't cancel if work incomplete.
</cancellation>

<worktree_paths>
State: `.omc/state/`, `.omc/state/sessions/{sessionId}/`, `.omc/notepad.md`, `.omc/project-memory.json`, `.omc/plans/`, `.omc/research/`, `.omc/logs/`
</worktree_paths>

## Setup

Say "setup omc" or run `/oh-my-claudecode:omc-setup`.

<!-- OMC:END -->
34 changes: 34 additions & 0 deletions .claude/rules/common/bug-triage.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
---
paths:
- "**/*"
---

# Bug Triage Protocol

When encountering a bug or problem, you MUST:

## Step 1: Output Confidence (MANDATORY)
```
【置信度: HIGH】or【置信度: LOW】+ one-line reason
```

## Step 2: Act on Decision Tree

**HIGH confidence** (all true):
- Root cause clearly identified
- Fix path straightforward, familiar module
- Low risk of side effects or regressions
- No architectural tradeoffs needed

→ Fix directly if scope covers the file. If no feature exists, create a bugfix entry explaining why it's high confidence, then fix.

**LOW confidence** (any true):
- Root cause unclear or only partially understood
- Unfamiliar modules or core algorithms involved
- Multiple valid approaches with non-obvious tradeoffs
- Fix could introduce subtle regressions

→ Give analysis + evidence + options. Escalate to user. Do NOT fix.

## Trigger Keywords
bug, problem, crash, wrong, broken, error, fail, 问题, 不工作, 报错, 不对, 为什么, 分析
194 changes: 194 additions & 0 deletions .claude/settings.local.json ''

Large diffs are not rendered by default.

141 changes: 141 additions & 0 deletions .claude/skills/omc-reference/SKILL.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,141 @@
---
name: omc-reference
description: OMC agent catalog, available tools, team pipeline routing, commit protocol, and skills registry. Auto-loads when delegating to agents, using OMC tools, orchestrating teams, making commits, or invoking skills.
user-invocable: false
---

# OMC Reference

Use this built-in reference when you need detailed OMC catalog information that does not need to live in every `CLAUDE.md` session.

## Agent Catalog

Prefix: `oh-my-claudecode:`. See `agents/*.md` for full prompts.

- `explore` (haiku) — fast codebase search and mapping
- `analyst` (opus) — requirements clarity and hidden constraints
- `planner` (opus) — sequencing and execution plans
- `architect` (opus) — system design, boundaries, and long-horizon tradeoffs
- `debugger` (sonnet) — root-cause analysis and failure diagnosis
- `executor` (sonnet) — implementation and refactoring
- `verifier` (sonnet) — completion evidence and validation
- `tracer` (sonnet) — trace gathering and evidence capture
- `security-reviewer` (sonnet) — trust boundaries and vulnerabilities
- `code-reviewer` (opus) — comprehensive code review
- `test-engineer` (sonnet) — testing strategy and regression coverage
- `designer` (sonnet) — UX and interaction design
- `writer` (haiku) — documentation and concise content work
- `qa-tester` (sonnet) — runtime/manual validation
- `scientist` (sonnet) — data analysis and statistical reasoning
- `document-specialist` (sonnet) — SDK/API/framework documentation lookup
- `git-master` (sonnet) — commit strategy and history hygiene
- `code-simplifier` (opus) — behavior-preserving simplification
- `critic` (opus) — plan/design challenge and review

## Model Routing

- `haiku` — quick lookups, lightweight inspection, narrow docs work
- `sonnet` — standard implementation, debugging, and review
- `opus` — architecture, deep analysis, consensus planning, and high-risk review

## Tools Reference

### External AI / orchestration
- `/team N:executor "task"`
- `omc team N:codex|gemini "..."`
- `omc ask <claude|codex|gemini>`
- `/ccg`

### OMC state
- `state_read`, `state_write`, `state_clear`, `state_list_active`, `state_get_status`

### Team runtime
- `TeamCreate`, `TeamDelete`, `SendMessage`, `TaskCreate`, `TaskList`, `TaskGet`, `TaskUpdate`

### Notepad
- `notepad_read`, `notepad_write_priority`, `notepad_write_working`, `notepad_write_manual`

### Project memory
- `project_memory_read`, `project_memory_write`, `project_memory_add_note`, `project_memory_add_directive`

### Code intelligence
- LSP: `lsp_hover`, `lsp_goto_definition`, `lsp_find_references`, `lsp_diagnostics`, and related helpers
- AST: `ast_grep_search`, `ast_grep_replace`
- Utility: `python_repl`

## Skills Registry

Invoke built-in workflows via `/oh-my-claudecode:<name>`.

### Workflow skills
- `autopilot` — full autonomous execution from idea to working code
- `ralph` — persistence loop until completion with verification
- `ultrawork` — high-throughput parallel execution
- `visual-verdict` — structured visual QA verdicts
- `team` — coordinated team orchestration
- `ccg` — Codex + Gemini + Claude synthesis lane
- `ultraqa` — QA cycle: test, verify, fix, repeat
- `omc-plan` — planning workflow and `/plan`-safe alias
- `ralplan` — consensus planning workflow
- `sciomc` — science/research workflow
- `external-context` — external docs/research workflow
- `deepinit` — hierarchical AGENTS.md generation
- `deep-interview` — Socratic ambiguity-gated requirements workflow
- `ai-slop-cleaner` — regression-safe cleanup workflow

### Utility skills
- `ask`, `cancel`, `note`, `learner`, `omc-setup`, `mcp-setup`, `hud`, `omc-doctor`, `trace`, `release`, `project-session-manager`, `skill`, `writer-memory`, `configure-notifications`

### Keyword triggers kept compact in CLAUDE.md
- `"autopilot"→autopilot`
- `"ralph"→ralph`
- `"ulw"→ultrawork`
- `"ccg"→ccg`
- `"ralplan"→ralplan`
- `"deep interview"→deep-interview`
- `"deslop" / "anti-slop"→ai-slop-cleaner`
- `"deep-analyze"→analysis mode`
- `"tdd"→TDD mode`
- `"deepsearch"→codebase search`
- `"ultrathink"→deep reasoning`
- `"cancelomc"→cancel`
- Team orchestration is explicit via `/team`.

## Team Pipeline

Stages: `team-plan` → `team-prd` → `team-exec` → `team-verify` → `team-fix` (loop).

- Use `team-fix` for bounded remediation loops.
- `team ralph` links the team pipeline with Ralph-style sequential verification.
- Prefer team mode when independent parallel lanes justify the coordination overhead.

## Commit Protocol

Use git trailers to preserve decision context in every commit message.

### Format
- Intent line first: why the change was made
- Optional body with context and rationale
- Structured trailers when applicable

### Common trailers
- `Constraint:` active constraint shaping the decision
- `Rejected:` alternative considered | reason for rejection
- `Directive:` forward-looking warning or instruction
- `Confidence:` `high` | `medium` | `low`
- `Scope-risk:` `narrow` | `moderate` | `broad`
- `Not-tested:` known verification gap

### Example
```text
feat(docs): reduce always-loaded OMC instruction footprint

Move reference-only orchestration content into a native Claude skill so
session-start guidance stays small while detailed OMC reference remains available.

Constraint: Preserve CLAUDE.md marker-based installation flow
Rejected: Sync all built-in skills in legacy install | broader behavior change than issue requires
Confidence: high
Scope-risk: narrow
Not-tested: End-to-end plugin marketplace install in a fresh Claude profile
```
49 changes: 46 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,10 +1,53 @@
.vscode
.idea/
*.iml
*.ipr
*.iws
.DS_Store
*.log
.cur*
*~

# OMC sessions
.omc/sessions/
.omc/notepad.md
.omc/project-memory.json
.omc/state/

# Build artifacts
astra-sim-alibabacloud/build/simai_analytical/build/
astra-sim-alibabacloud/build/astra_ns3/build/
astra-sim-alibabacloud/build/simai_oxc/build/
astra-sim-alibabacloud/extern/
bin/
results/
test/log/
*.log
.cur*
.DS_Store

# Multi-user server runtime data
server/workspaces/
server/auth_config.yaml
deploy/.simai_pids

# Dashboard build artifacts
dashboard/dist/
dashboard/node_modules/
dashboard/.nuxt/
dashboard/.output/
dashboard/playwright-report/
dashboard/test-results/
dashboard/build/

# OXC build artifacts
astra-sim-alibabacloud/build/simai_oxc/build/

# Multi-user server runtime data
server/workspaces/
server/auth_config.yaml
deploy/.simai_pids

# LRA protocol files
init.sh
feature_list.json
progress.md
scripts/lra-gate.py
scripts/lra-stop.py
12 changes: 0 additions & 12 deletions .gitmodules

This file was deleted.

11 changes: 11 additions & 0 deletions .lra_context_warning
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"timestamp": "2026-06-09T03:12:48Z",
"reason": "session end with blockers",
"in_progress": [
{
"id": "F088",
"description": "E2E decoupled replay comparison: coupled vs replay NS3 bytes sent/received must match"
}
],
"dirty_files": []
}
11 changes: 11 additions & 0 deletions .lra_context_warning.last
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"timestamp": "2026-06-05T03:42:50Z",
"reason": "session end with blockers",
"in_progress": [
{
"id": "F090",
"description": "LLDP topology parsing pipeline v2\u2192v3 migration: refactor 9 files (merger.py, ns3_emitter.py, edg_client.py, HomePage.tsx"
}
],
"dirty_files": []
}
1 change: 1 addition & 0 deletions .lra_done_hash
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"done_hash": "3b7b05bf3a57dd2c", "done_count": 71, "progress_hash": "2ba4e15f9bdd41c5", "progress_count": 80}
Loading