r4w CLAUDE.md

r4w CLAUDE.md is an instructions file for coding agents from joemooney/r4w. It costs 31,574 tokens per session, scanned A, original, MIT.

Instructions for working on R4W, a Rust platform for developing, testing, and deploying software-defined-radio waveforms. They describe the project structure, reusable signal-processing libraries, waveform implementations, and commands for running its tools.

In plain words
What is it for?
Use them when navigating the R4W repository, editing Rust DSP or waveform code, working with GNSS simulations, or running the project’s graphical interface and development commands.
Why use it?
They give a coding agent the project context needed to make changes in the correct component. They also identify the main areas for digital filters, GNSS signal scenarios, coordinates, and waveform development.

Instructions file

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add instructions/joemooney/r4w/claude-md
Clone the repo
git clone --depth 1 https://github.com/joemooney/r4w

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for r4w CLAUDE.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/joemooney/r4w/claude-md.svg)](https://agentmods.dev/instructions/joemooney/r4w/claude-md)
Your own site
<a href="https://agentmods.dev/instructions/joemooney/r4w/claude-md"><img src="https://agentmods.dev/badge/instructions/joemooney/r4w/claude-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 31,574 This file is loaded in full into every session.
When invoked 31,574 The same file — it is already loaded in full.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.31574 $0.31574
Opus 5 $0.15787 $0.15787
Sonnet 5 $0.06315 $0.06315
Haiku 4.5 $0.03157 $0.03157

Measured 4d ago against content hash 963e6265345b, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

r4w CLAUDE.md scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 4d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

CLAUDE.md · 668 lines

How it starts

The opening of the file, as written. The whole thing — 668 lines — stays where its author put it; the contents beside it link to each section on GitHub.

CLAUDE.md

This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.

Project Overview

R4W - Rust for Waveforms - A platform for developing, testing, and deploying SDR waveforms in Rust. Provides reusable DSP libraries, educational tools, and production-ready components for waveform development.

Architecture

  • r4w-core: Core DSP algorithms, timing, RT primitives, configuration
    • waveform/: 42+ waveform implementations (including GNSS: GPS L1 C/A, GPS L5, GLONASS L1OF, Galileo E1)
    • waveform/gnss/environment/: Keplerian orbits, Klobuchar ionosphere, Saastamoinen troposphere, multipath presets, antenna patterns
    • waveform/gnss/scenario*.rs: Multi-satellite GNSS IQ scenario generation with realistic channel effects
    • coordinates.rs: ECEF/LLA coordinate types, geodetic conversions, look angles, range rate, FSPL
    • filters/: Digital filters with trait-based architecture
      • traits.rs: Filter, RealFilter, FirFilterOps, FrequencyResponse traits
      • fir.rs: FirFilter with lowpass/highpass/bandpass/bandstop, Kaiser window design
      • iir.rs: IirFilter with Butterworth, Chebyshev I/II, Bessel via cascaded biquads
      • polyphase.rs: PolyphaseDecimator, PolyphaseInterpolator, Resampler, HalfbandFilter
      • remez.rs: Parks-McClellan equiripple FIR design (RemezSpec builder)
      • pulse_shaping.rs: RRC, RC, Gaussian filters (also implement Filter traits)
      • windows.rs: Hamming, Hann, Blackman, Kaiser window functions
    • agc.rs: Automatic Gain Control (Agc, Agc2, Agc3 - basic/dual-rate/fast-acquisition)
    • carrier_recovery.rs: Costas loop for BPSK/QPSK/8PSK carrier recovery
    • clock_recovery.rs: Mueller & Muller symbol timing recovery, FreqXlatingFirFilter
    • crc.rs: CRC engine (CRC-8, CRC-16 CCITT/IBM, CRC-32, CRC-32C) with table lookup
    • equalizer.rs: Adaptive equalizer (LMS, CMA, Decision-Directed) with Filter trait
    • signal_source.rs: Signal generator (Tone, TwoTone, Chirp, Noise, Square, DC, Impulse)
    • squelch.rs: Power squelch gate with ramp transitions (equiv. to GNU Radio pwr_squelch_cc)
    • ofdm.rs: OFDM modulator/demodulator (WiFi-like, DVB-T 2K, simple configs)
    • pfb_channelizer.rs: Polyphase filter bank channelizer with windowed-sinc prototype filter
    • correlator.rs: Cross-correlation sync word detector (Barker codes, dynamic threshold, holdoff)
    • scrambler.rs: LFSR scrambler/descrambler (additive/multiplicative, WiFi/DVB-S2/Bluetooth/V.34)
    • differential.rs: Differential encoder/decoder (DBPSK/DQPSK/D8PSK, complex-domain DPSK)
    • packet_framing.rs: Packet formatter/parser (sync word, headers, CRC, AX.25/ISM configs)
    • nco.rs: NCO/VCO + FM modulator/demodulator (PLL building block, frequency translation)
    • snr_estimator.rs: SNR estimation (M2M4, split-spectrum, signal+noise, EVM methods)
    • symbol_mapping.rs: Constellation mapper/demapper (BPSK/QPSK/8PSK/16QAM/64QAM, soft LLR)
    • probe.rs: Measurement probes (Power/PAPR, EVM, constellation scatter, freq offset, rate)
    • pll.rs: Second-order PLL, DC blocker (IIR highpass), sample delay (circular buffer)
    • costas_loop.rs: Costas loop carrier recovery (BPSK/QPSK/8PSK decision-directed)
    • constellation_receiver.rs: Combined AGC + Costas + symbol demapper receiver
    • goertzel.rs: Goertzel single-frequency DFT + MultiGoertzel + DTMF detector
    • burst_detector.rs: Power-based burst detector with hysteresis (SOB/EOB events)
    • noise.rs: Colored noise generator (white/pink/brown/blue/violet) + AWGN helpers
    • stream_tags.rs: Metadata propagation (TagStore, TagValue, range queries, well-known keys)
    • filters/cic.rs: CIC decimator/interpolator for high-ratio sample rate conversion
    • filters/adaptive.rs: Adaptive filters (LMS, NLMS, RLS) for equalization/cancellation
    • filters/fractional_resampler.rs: MMSE interpolating resampler for arbitrary rate conversion
    • freq_xlating_fir.rs: Frequency-translating FIR filter (mixing + FIR + decimation)
    • fm_emphasis.rs: FM pre-emphasis/de-emphasis (US 75us / EU 50us, 1-pole IIR)
    • quadrature_demod.rs: FM discriminator y[n] = gain * arg(x[n] * conj(x[n-1]))
    • access_code_detector.rs: Bit-level sync word detector with Hamming distance threshold
    • fll_band_edge.rs: FLL band-edge coarse frequency sync (band-edge FIR + 2nd-order loop)
    • type_conversions.rs: Complex/Real converters (Mag, MagSq, Arg, Real, Imag, MagPhase)
    • stream_control.rs: Head (first N), SkipHead (drop N), Throttle (rate-limit)
    • log_power_fft.rs: Windowed FFT to dB power with exponential averaging
    • pdu.rs: PDU↔tagged stream conversion, message debug (Hex/Text/Decimal/Summary)
    • ofdm_channel_est.rs: OFDM pilot-based channel estimation (LS/smoothed), ZF/MMSE equalization
    • ssb_modem.rs: SSB modulator/demodulator (Hilbert transform phasing method, BFO)
    • wavelet.rs: DWT analysis/synthesis (Haar/Db4/Sym4), soft/hard threshold denoising
    • cpm.rs: CPM/GMSK/GFSK/MSK modulation (constant-envelope, Gaussian/LRC pulse shapes)
    • dynamic_channel.rs: Composite time-varying channel (fading + CFO/SRO drift + AWGN)
    • burst_tagger.rs: Power-based burst detection, tagged stream mux/align
    • stream_to_streams.rs: Round-robin stream demux/mux (StreamToStreams, StreamsToStream), I/Q deinterleave
    • argmax.rs: Index-of-max (argmax/argmin for f64 and mag_sqrd), ArgmaxBlock, top_k functions
    • threshold.rs: Hysteresis threshold detector, rising/falling edge detection, stateless comparison
    • pdu_filter.rs: PDU metadata filtering (FilterRule, PduFilter AND-logic, PduRouter first-match)
    • regenerate_bb.rs: Bit regeneration pulse stretcher, PulseGenerator, rect/trapezoidal pulses
    • patterned_interleaver.rs: Custom-pattern stream interleaving/deinterleaving of N streams (f64, bytes)
    • bitwise_ops.rs: XOR/AND/OR/NOT for byte and boolean streams, hamming_distance, popcount, parity
    • peak_hold.rs: Signal peak tracking with exponential decay (PeakHold, AbsPeakHold, PeakHoldDb)
    • multiply_matrix.rs: Complex and real matrix-vector multiplication (identity, scalar, diagonal, from_rows)
    • glfsr_source.rs: Galois and Fibonacci LFSR PN sequence generators (maximal-length polynomials 2-31 bits)
    • additive_scrambler.rs: LFSR-based stream scrambling (DVB x^15+x^14+1, WiFi x^7+x^4+1 presets, auto-reset)
    • stretch.rs: Signal normalization and range mapping (stretch, stretch_to_range, clip, StreamStretch)
    • nlog10.rs: Logarithmic scaling (to_db, from_db, to_dbm, from_dbm, power_to_db, iq_to_db)
    • dpll.rs: Second-order digital PLL with PI loop filter (Dpll carrier tracking, BinaryDpll clock recovery)
    • endian_swap.rs: Byte order conversion (16/32/64-bit swap, typed swap_i16/u16/i32/u32/f32/f64, reverse_bits)
    • iq_balance.rs: IQ imbalance estimation/correction (IqBalanceCorrector fixed gain/phase, AdaptiveIqBalance LMS-based online)
    • peak_to_average.rs: PAPR/crest factor measurement (papr_db, papr_db_complex, crest_factor, PaprEstimator streaming windowed)
    • correlate_estimate.rs: Time-domain cross-correlation (cross_correlate, cross_correlate_complex, find_delay, autocorrelate, correlation_coefficient)
    • bin_statistics.rs: Per-FFT-bin statistical accumulation (BinStatistics min/max/mean/variance, accumulate_max_hold, dynamic_range)
    • check_lfsr.rs: LFSR sequence verification for BER testing (LfsrChecker, synchronize offset detection, generate_reference, cumulative BER)
    • timing_error_detector.rs: Gardner, Mueller-Muller, Early-Late Gate, Zero-Crossing TEDs for clock recovery (real/complex, streaming TimingErrorDetector block)
    • cma_equalizer.rs: Constant Modulus Algorithm blind equalizer (CMA-2-2, CMA-1-2, RCA variants), Godard cost function, dispersion constant computation, QPSK/16-QAM presets
    • pdu_to_tagged_stream.rs: PDU to tagged stream converter (reverse of tagged_stream_to_pdu), queue-based with drain/drain_one/drain_limited, max queue depth, roundtrip support
    • vector_quantizer.rs: Vector quantization codebook encoder/decoder, Euclidean/Manhattan/EuclideanSquared metrics, k-means codebook training, uniform scalar codebook generation
    • frequency_xlating_fft_filter.rs: Frequency-translating FFT filter with NCO mixing, overlap-save FFT convolution, decimation, windowed-sinc lowpass design (Hamming window)
    • constellation_demapper.rs: Soft bit demapping via max-log-MAP (BPSK/QPSK fast-path, generic ConstellationDemapper for arbitrary constellations, hard/soft output)
    • eye_diagram.rs: Eye diagram generator with trace accumulation (mean_trace, envelope, eye_opening, timing_jitter_rms for ISI assessment)
    • evm_calculator.rs: Error Vector Magnitude measurement (RMS/peak/percentile EVM in linear/dB/percent, streaming EvmCalculator with history)
    • valve.rs: Stream gating and flow control (Open/Closed/CountedBurst/Triggered modes, gate_signal, extract_segments)
    • pfb_arb_resampler.rs: Polyphase filterbank arbitrary resampler (linear interpolation between branches, Blackman-Harris prototype, derivative filters)
    • cyclic_autocorrelation.rs: Cyclostationary signal analysis (cyclic autocorrelation, spectral correlation, feature detection, modulation classification)
    • random_pdu_gen.rs: Random PDU test traffic generator (Poisson/Uniform/Fixed inter-arrival, seeded LCG PRNG, traffic statistics)
    • mmse_interpolator.rs: 8-tap MMSE FIR fractional delay (128-step mu quantization, windowed-sinc with Nuttall window, cubic/linear helpers)
    • fractional_delay.rs: Thiran all-pass IIR and Lagrange FIR fractional sample delay (maximally flat group delay)
    • linear_equalizer.rs: Adaptive FIR equalizer (LMS, RLS, CMA, Kurtotic algorithms, training/decision-directed modes)
    • trellis_coding.rs: FSM-based trellis encoder + Viterbi decoder for TCM and convolutional codes
    • protocol_formatter.rs: Pluggable HeaderFormat trait, DefaultHeaderFormat (access code + repeated length + CRC), CounterHeaderFormat
    • ctcss_squelch.rs: CTCSS sub-audible tone encoder/decoder for FM repeater access (Goertzel detection, 38 standard EIA/TIA tones)
    • ofdm_frame_equalizer.rs: Per-subcarrier ZF/MMSE equalization with pilot-based channel estimation, linear interpolation
    • power_amplifier_model.rs: Nonlinear PA behavioral models (Saleh, Rapp, Ghorbani, polynomial, limiter) with AM/AM, AM/PM distortion, P1dB compression point
    • power_amplifier_dpd.rs: Digital Pre-Distortion with memory polynomial, LMS/RLS indirect learning architecture, NMSE metric
    • median_filter.rs: Sliding-window median filter with dual-heap O(log n), complex/weighted variants, 2D hybrid median for spectrogram denoising
    • cordic.rs: CORDIC rotator for sin/cos, atan2, polar/rect conversions, NCO, hardware-efficient iterative algorithm using shifts and adds
    • tagged_file_sink.rs: Stream-tag-triggered IQ file segmentation for burst recording
    • cfar.rs: CFAR detector (CA-CFAR, GO-CFAR, SO-CFAR, OS-CFAR) for 1D power data, Cfar2D for range-Doppler maps
    • chirp_z_transform.rs: Chirp-Z Transform (Bluestein's algorithm), zoom_fft for high-resolution spectral analysis
    • permute.rs: Vector index permutation with validation, inverse/compose/bit-reversal, StreamPermuter block-mode
    • noise_reduction.rs: Spectral subtraction and Wiener noise reduction with MMSE filtering
    • savitzky_golay.rs: Savitzky-Golay polynomial smoothing and differentiation filter with cached coefficients
    • sigma_delta.rs: Sigma-delta modulator/demodulator with error-feedback (EFB) structure, 1st/2nd/3rd order, multi-bit quantizer, CIC sinc³ decimation filter, theoretical SNR computation, NTF magnitude
    • farrow_resampler.rs: Farrow polynomial structure for continuously variable fractional resampling, linear/quadratic/cubic interpolation via Horner evaluation, variable ratio on-the-fly, resample_to_length utility
    • empirical_mode.rs: Empirical Mode Decomposition (EMD) via sifting process + Hilbert-Huang Transform, extracts IMFs (Intrinsic Mode Functions) from non-stationary signals, cubic spline envelope interpolation, instantaneous frequency/amplitude
    • ambiguity_function.rs: Radar waveform delay-Doppler analysis, full 2D ambiguity surface |χ(τ,ν)|², zero-Doppler and zero-delay cuts, LFM chirp and Barker code generators, mainlobe width measurement, complex signal support
    • pulse_compressor.rs: Matched filtering for radar (LFM chirp/Barker/polyphase code references), Hamming/Chebyshev/Taylor sidelobe windows, time-domain and FFT-domain processing, processing gain, range resolution
    • mti_filter.rs: Moving Target Indication/Detection for pulsed radar (single/double/triple cancellers, binomial weights, custom FIR slow-time filters, DopplerFilterBank for MTD with windowing, blind speed calculation, frequency response)
    • fountain_code.rs: Luby Transform rateless erasure codes (ideal/robust soliton degree distributions, belief propagation peeling decoder, streaming encode/decode, deterministic PRNG)
    • cross_ambiguity_function.rs: Passive bistatic radar CAF (direct and batched correlation, LMS/NLMS/ECA-B direct-path interference cancellation, target detection with SNR estimation, bistatic range conversion)
    • feedforward_timing_estimator.rs: Non-data-aided burst-mode timing recovery (Oerder-Meyr spectral line, M-th power, squaring, Gardner feedforward algorithms, linear/cubic/Farrow/sinc interpolation)
    • adaptive_modcod.rs: Adaptive Modulation and Coding link adaptation (DVB-S2 ACM 28-entry modcod table, LTE CQI 15 entries, Wi-Fi MCS 10 entries, MaxThroughput/MaxReliability/TargetEfficiency strategies, hysteresis/EMA SNR averaging/backoff margin)
    • mimo_detector.rs: MIMO detection algorithms (Schnorr-Euchner sphere decoder, K-best tree search, exhaustive ML, MMSE-SIC, QR decomposition, soft LLR output, ConstellationSet QPSK/16QAM/64QAM/256QAM)
    • doppler_pre_correction.rs: Satellite Doppler pre-compensation (Constant/LinearRamp/Polynomial/Tabulated profiles, phase-continuous NCO, Doppler rate computation, LEO satellite comms/deep-space links)
    • cognitive_engine.rs: Dynamic spectrum access decision engine (OODA loop IEEE 802.22, Greedy/EpsilonGreedy/UCB1/ThompsonSampling strategies, SpectrumBand with BandPriority/RegulatoryStatus, PU detection/handoff/vacancy prediction)
    • raptor_code.rs: RaptorQ erasure codes RFC 6330 (systematic rateless LDPC+HDPC pre-coding over LT, near-zero reception overhead, 3GPP MBMS/ATSC 3.0/DVB-H, belief propagation peeling decoder)
    • polar_code.rs: Arikan's 5G NR polar codes (PolarEncoder butterfly transform, PolarDecoder recursive SC decoding, Bhattacharyya channel reliability ordering)
    • msk_modulator.rs: MSK (Minimum Shift Keying, h=0.5 continuous-phase FSK) modulator/demodulator, GMSK variant with configurable BT product Gaussian pre-filter, phase-accumulation demod (GSM, satellite)
    • oqpsk_modulator.rs: Offset QPSK modulator/demodulator (Q delayed by T/2, +-pi/2 phase transitions, PAPR analysis, ZigBee 802.15.4, CDMA IS-95)
    • frequency_hopping.rs: FHSS controller (Pseudorandom/Sequential/Fixed/Adaptive hop patterns, Bluetooth 79ch/1600hps and military HF presets, processing gain)
    • link16_jtids_processor.rs: Link 16/JTIDS physical layer (MIL-STD-6016, educational only): GF(2^5) arithmetic, RS(31,15) encoder/decoder (BM+Chien+Forney), 32-chip CCSK modulator/demodulator, LFSR frequency hop sequence (51 hops 969-1206 MHz), symbol interleaver, TDMA slot framer (128 slots/epoch), J-series/PPLI message formatter, MSK baseband, RF link budget with jam margin
    • dect_processor.rs: DECT (Digital Enhanced Cordless Telecommunications) physical layer per ETSI EN 300 175: GFSK modem (BT=0.5, 1.152 Mbit/s, h=0.5, Gaussian pre-filter), TDMA/TDD 10ms frame (24 slots, FP TX slots 0-11 / PP TX slots 12-23), CRC-8 A-field (64 bits), B-field (320 bits), 17-bit LFSR scrambler (x^17+x^14+1), preamble/sync word detection (FP: 0xE98A77CE, PP: 0x16758831), RSSI-based channel selection (Europe 1880-1900 MHz / US 1920-1930 MHz), DECT-2020/NR+ (pi/2-BPSK, pi/4-QPSK, 16-QAM, 64-QAM, OFDM, HARQ Chase combining), 62 tests
    • digital_down_converter.rs: DDC with NCO mixer, 3-stage CIC decimation, windowed-sinc FIR compensation filter, retuning, reset
    • digital_up_converter.rs: DUC with CIC interpolation, FIR compensation filter, NCO mixer for baseband-to-IF upconversion
    • sigma_delta_modulator.rs: Sigma-delta modulation/demodulation for ADC/DAC, configurable order (1st-3rd), oversampling ratio
    • reed_solomon.rs: Reed-Solomon codec over GF(2^8), generator polynomial 0x11D, configurable t-symbol error correction
    • fmcw_radar.rs: FMCW radar processor with chirp generation, beat frequency mixing, range/Doppler FFT processing, range-Doppler map, automotive 77 GHz preset
    • viterbi_decoder.rs: Convolutional encoder (rate 1/n) with hard/soft Viterbi decoding, traceback, NASA k=7 and GSM k=5 presets
    • esprit.rs: ESPRIT DOA estimation (LS/TLS variants, ULA steering vectors, complements MUSIC DOA)
    • convolutional_interleaver.rs: Forney-type convolutional interleaver/deinterleaver (DVB-S2 I=12/M=17, GSM I=4/M=19 presets, burst error dispersal)
    • unscented_kalman_filter.rs: Unscented Kalman Filter with UkfModel trait, sigma point generation, predict/update cycle, NEES metric
    • sar_processor.rs: SAR Range-Doppler Algorithm (range compression, RCMC, azimuth compression, point target generation, Doppler centroid estimation)
    • wola_channelizer.rs: Weighted Overlap-Add analysis/synthesis filterbank (Hann/Hamming/Blackman/Kaiser windows, channel frequency response)
    • dynamic_range_compressor.rs: Compressor/limiter/expander/noise gate with attack/release envelope follower, soft knee, RMS/peak detection, makeup gain, static compression curve for visualization
    • teager_kaiser_energy.rs: Teager-Kaiser Energy Operator (TKEO) instantaneous energy, AM/FM demodulation via TKEO, streaming processor, transient detection
    • wigner_ville_distribution.rs: WVD/PWVD/SPWVD time-frequency analysis, analytic signal, instantaneous frequency extraction, 2D time-frequency surface with marginals
    • lattice_filter.rs: Lattice and lattice-ladder filter structures, Levinson-Durbin recursion, Burg's method for AR estimation, PARCOR coefficients, LSF
    • prony_method.rs: Prony's method for parametric exponential signal modeling, matrix pencil method, companion matrix eigenvalue solver, MDL order estimation, parametric PSD
    • cepstral_analysis.rs: Real/power/complex cepstrum, pitch detection, homomorphic filtering (source-filter separation), MFCCs, mel filterbank, spectral envelope
    • blind_source_separation.rs: FastICA with deflation, PCA whitening, 3 nonlinearities (LogCosh, Exp, Cube), kurtosis, negentropy, correlation metrics
    • phase_vocoder.rs: STFT-based time-stretch, pitch-shift, spectrogram, robotize, whisperize effects with overlap-add synthesis
    • compressive_sensing.rs: OMP (greedy), ISTA/FISTA (proximal gradient) sparse recovery from underdetermined systems, random/DCT sensing matrices, RIP constant estimation
    • zero_crossing_detector.rs: ZCR computation, frequency estimation, ZcrAnalyzer with energy, VoiceActivityDetector (energy+ZCR with hangover), spectral centroid/flatness, modulation classification
    • subspace_tracker.rs: PAST/OPAST adaptive rank-d subspace tracking, projection, projection error, dimension estimation, subspace angle
    • cic_filter.rs: CIC decimation/interpolation without multiplications, passband compensator FIR design
    • overlap_save.rs: Overlap-Save and Overlap-Add streaming FFT block convolution, direct convolution reference
    • lms_filter.rs: Standard LMS, Normalized LMS (NLMS), Leaky LMS adaptive filters for system identification and noise cancellation
    • stft.rs: Short-Time Fourier Transform with configurable windows (Hann/Hamming/Blackman), Inverse STFT with OLA perfect reconstruction, COLA constraint checking
    • music_doa.rs: MUSIC direction-of-arrival estimation with Hermitian eigendecomposition (augmented real form + Jacobi), MDL/AIC source enumeration, test snapshot generation
    • rake_receiver.rs: RAKE multipath combining for DSSS/CDMA (MRC, equal-gain, selection diversity), finger management, delay estimation
    • modulation_classifier.rs: Automatic modulation classification via higher-order cumulants (C20/C40/C42), kurtosis, sigma_af feature extraction
    • tdoa_estimator.rs: Time Difference of Arrival geolocation with GCC-PHAT cross-correlation, iterative least-squares solver
    • fm_stereo_decoder.rs: FM stereo multiplex decoder with 19 kHz pilot PLL, 38 kHz DSB-SC demodulation, de-emphasis filter
    • phase_noise_model.rs: Oscillator phase noise synthesis from L(f) PSD masks and Leeson model, configurable noise floor and corner frequencies
    • ofdm_sync_schmidl_cox.rs: Schmidl-Cox OFDM symbol timing and coarse/fine CFO estimation (delayed autocorrelation, timing metric M(d), preamble generator)
    • ofdm_carrier_allocator.rs: OFDM subcarrier mapping (CarrierAllocator TX, CarrierSerializer RX), WiFi 802.11a and LTE presets, guard bands, DC null, pilot insertion
    • trellis_metrics.rs: Branch metric computation for trellis-based decoding (Euclidean, squared Euclidean, Manhattan, Hamming, ViterbiCombined, metrics_to_llr)
    • link_budget.rs: RF link budget calculator (builder pattern, FSPL, cascaded NF via Friis, thermal noise floor, max range estimation)
    • fec_generic_api.rs: Unified FEC framework (GenericEncoder/GenericDecoder traits, streaming FecEncoderBlock/FecDecoderBlock, AsyncFecEncoder/AsyncFecDecoder, FecCodecRegistry, built-in Repetition and ParityCheck codecs)
    • fec/: Forward Error Correction
      • convolutional.rs: Convolutional encoder + Viterbi decoder (hard/soft decision)
      • reed_solomon.rs: RS encoder/decoder over GF(2^8) (CCSDS, DVB, custom configs)
      • polar.rs: Polar code encoder/decoder (5G NR, SC/SCL algorithm, Bhattacharyya construction)
      • Standard codes: NASA K=7 rate 1/2, GSM K=5, 3GPP K=9 rate 1/3
    • analysis/: Spectrum analyzer, waterfall generator, signal statistics, peak detection
    • timing.rs: Multi-clock model (SampleClock, WallClock, HardwareClock, SyncedTime)
    • rt/: Lock-free ring buffers, buffer pools, RT thread spawning
    • config.rs: YAML-based configuration system
  • r4w-sim: SDR simulation, HAL traits, channel models
    • hal/: StreamHandle, TunerControl, ClockControl, SdrDeviceExt traits
    • channel.rs: AWGN, Rayleigh, Rician, CFO, TDL multipath (EPA/EVA/ETU), Jake's Doppler
    • doppler.rs: Jake's/Clarke's, Flat, and Gaussian Doppler models
    • scenario/: Generic multi-emitter IQ scenario engine (trajectory, emitter trait, Doppler/FSPL/noise)
    • simulator.rs: Software SDR simulator
  • r4w-fpga: FPGA acceleration (Xilinx Zynq, Lattice iCE40/ECP5)
  • r4w-sandbox: Waveform isolation (8 security levels)
  • r4w-gui: Educational egui application (run with cargo run --bin r4w-explorer)
    • views/pipeline_wizard.rs: Visual pipeline builder with 724+ blocks in 11 categories (incl. GNSS), TX/RX/Channel loading, type-aware test panel
    • views/block_metadata.rs: Block documentation, formulas, code links, tests, performance info
  • r4w-cli: Command-line interface (run with cargo run --bin r4w)
  • r4w-web: WebAssembly entry point for browser deployment

Read the full file on GitHub · 668 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 4d ago First seen · 668 lines · 31,574 tokens per session scan A 963e6265345b

Subscribe to this mod's changes

r4w CLAUDE.md is an instructions file published in the GitHub repository joemooney/r4w (5 stars, last pushed 6mo ago), licensed MIT. It adds 31,574 tokens to every session, about $0.1579 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other instructions, from other repositories

vscode buildNext.instructions.md

Working notes and architecture documentation for the new esbuild-based build system in build/next. Use when making changes to the new build pipeline (transpile/bundle commands, NLS plugin, source-map handling, resource copying, or self-hosting watch tasks).

microsoft/vscode · 6,785 tokens

spec-kit AGENTS.md

AGENTS.md instructions for github/spec-kit, covering agents.md, about spec kit and specify, quickstart — add a new integration in 5 steps, integration architecture and integrationmanifest — file tracking.

github/spec-kit · 7,104 tokens

codex AGENTS.md

AGENTS.md instructions for openai/codex, covering rust/codex-rs, the codex-core crate, code review rules, crate api surface and model visible context.

openai/codex · 5,182 tokens

vscode oss-third-party-notices.instructions.md

Instructions for microsoft/vscode, covering vs code oss third-party-notices pipeline, architecture, pipeline flow in ci, applying the notice (cutover) and fallback chain (never fail the build).

microsoft/vscode · 5,001 tokens

langchain AGENTS.md

AGENTS.md instructions for langchain-ai/langchain, covering global development guidelines for the langchain monorepo, corridor security analysis, project architecture and context, monorepo structure and development tools & commands.

langchain-ai/langchain · 4,345 tokens

deepseek-harness AGENTS.md

AGENTS.md instructions for deepseek-ai/deepseek-harness, covering agents.md, pre-release stance: foundation over blast radius, repository layout, commands and host sandbox failures.

deepseek-ai/deepseek-harness · 3,719 tokens