Views
No views yet
1# Index a directory — reads .rs files, creates PhaseNodes with SDR encoding
2cargo run --release -- mirror-index src/ai
3
4# Load existing mirror and index another directory
5cargo run --release -- mirror-index src/corefuga_mirror_nodes.bin (phase nodes), fuga_mirror_tm.bin (TM), fuga_mirror_jepa.bin (HJEPA).1# Train on existing mirror nodes (5 epochs, chunk=1)
2cargo run --release -- train-predictor 5
3
4# With larger chunks for sequence patterns
5cargo run --release -- train-predictor 10 --chunk 31# Builds top-4000 char-level token vocab from indexed .rs files
2# then trains TM on 20000+ token bigram steps
3# then generates tokens
4cargo run --release -- generate-code "fn new" --tokens-> :: => != == >= <= += -= && ||cargo run --release -- generate-code "fn new" --tokens( ) { } [ ] , :: . ' -> \ + identifiers, numbers1# Beam search over PhaseNode graph
2cargo run --release -- generate-code "struct Foo"
3
4# Autoregressive mode (generates full snippets)
5cargo run --release -- generate-code "fn new" --gen
6
7# With beam width and temperature
8cargo run --release -- generate-code "async fn" --beam 3 --temp 1.21# Self-query — find matching phase nodes
2cargo run --release -- self-query "async fn handle"
3
4# Evaluate mirror quality
5cargo run --release -- eval
6
7# Inspect text or file
8cargo run --release -- inspect "fn new() -> Self"
9cargo run --release -- inspect src/main.rs1# All library tests
2cargo test --lib
3
4# Anomaly detection (Inhibition of Return, overshoot)
5cargo test --test test_anomaly_detection -- --nocapture
6
7# JEPA / TM / MoE tests
8cargo test --test jepa_test
9cargo test --test hierarchical_jepa_test
10cargo test --test moe_routing_test| Component | Description |
|---|---|
| Hypervector | 8192-bit, ~2% density (~164 active bits), XOR bind / sum bundle / permute |
| Hierarchical JEPA | L0 (static), L1 (macro), L2 (metacognition) with ls_bind phase-shift |
| Temporal Memory | Cells with DendriteSegments, learn_segment / reinforce / prune / predict_next |
| SDR (Sparse Distributed Representation) | encode_text() → deterministic hash-based sparse binary vector |
| Tokenizer | Char-level: splits identifiers from operators, multi-char operator recognition |
| WTA | Winner-Take-All with Inhibition of Return (fatigue = wins × 10, decay every 10 steps) |
| AnomalyEvent | Detects phase overload — pred_count > 100 or power_mw > 500 triggers overshoot |