Militant Hitchhiker’s Switchblade Pack is a set of multi-function custom nodes for ComfyUI, covering text processing, prompt enhancement, model analysis/quantisation, and advanced scheduling/sampling.
This release reflects Switchblade v1.3 (as initialised in the loader) and includes new nodes for GOD/ARC/ODE EMA, Flux quant, and a Groq-powered prompt enhancer.
custom_nodes directory.“`bash
git clone https://github.com/MilitantHitchhiker/MilitantHitchhiker-SwitchbladePack.git
“`
Notes
groq Python package on first run if missing.__init__.py and a nodes.log file is written at startup for quick discovery.If you plan to use the Groq API Prompt Enhancer, set your API key and optional default system prompt in modules/groq_config.json.
api_key: your Groq API keysystem_prompt: optional default system prompt used unless overridden per-nodeYou can also provide an override_system_prompt input on the node to temporarily replace the default.
TextAppender_v2)Concatenate up to five text inputs; control how they’re joined and optionally append the result to a file in ComfyUI’s output directory.
text1..text5, input_delimiter (e.g. \n), output_delimiter (e.g. \n), output_file (“none” to disable)STRING (the concatenated text)MilitantAI/Switchblade/Text ProcessingTypical use
text1..text5.\n to represent newlines for delimiters.output_file to a filename to append the result; otherwise it only returns the text.IntegratedRandomPromptGenerator)Randomly selects one item from up to four dictionary files and joins them.
ComfyUI/input/Dictionaries (recursively scanned)dict1_file..dict4_file (or “none”), enable_dict1..enable_dict4, dict1_delimiter..dict4_delimiter (default ;), output_delimiter (default , ), seedSTRINGMilitantAI/Switchblade/Text ProcessingTip: Use ; as the default item delimiter inside your .txt dictionaries.
GroqAPIPromptEnhancer)Send text to Groq chat models to enhance prompts.
gemma2-9b-it, llama-3.1-8b-instant, llama-3.3-70b-versatilemodel, text, optional override_system_promptSTRING (enhanced text)modules/groq_config.jsonMilitantAI/Switchblade/Text ProcessingModelAnalyserNode)Analyses a model’s state dict and returns a JSON summary.
modelSTRING (JSON: structure, size, blocks, dtypes, totals)MilitantAI/Switchblade/Model MergingFluxQuantNode)Converts the model’s tensors to a selected precision, analyses them, and saves the processed model to ComfyUI’s output directory.
model, precision (auto, float32, float16, bfloat16, float8_e5m2, float8_e4m3fn)STRING (analysis JSON; also prints save status)_.safetensors MilitantAI/Switchblade/Model MergingARC Scheduler)Deterministic, gently warped descendent schedule; returns SIGMAS suitable for advanced samplers.
model, steps, denoiseSIGMASMilitantAI/Switchblade/GenerationProduces a baseline descending SIGMAS schedule (high → low) with denoise control.
model, steps, denoiseSIGMASMilitantAI/Switchblade/GenerationReturns a SAMPLER wrapping a GOD-Flow sampler with synergy-adapted step behaviour.
SAMPLERMilitantAI/Switchblade/GenerationLike the GOD Sampler (Advanced) but with a god_strength control.
god_strengthSAMPLERMilitantAI/Switchblade/GenerationDetail-aware ODE sampler with EMA-stabilised cone shaping and late-step detail emphasis.
stats_downsample, detail_gain_max, detail_power, detail_schedule_powerSAMPLERMilitantAI/Switchblade/GenerationGOD Scheduler (Advanced) or ARC Scheduler → connect to KSampler (Advanced) sigmas input.GOD Sampler (Advanced) or GOD Sampler (Advanced) Ext. → connect to SamplerCustom sampler input.ODE EMA Sampler → connect to SamplerCustom sampler input.Flux Quant Node and Model Analyser → connect their model input to your loaded model.Text Appender and Prompt Generator (Dictionary) for pre/post text tasks in your workflow.Contributions are welcome! Please open an issue or PR on the GitHub repository.
v1.3
GOD Scheduler (Advanced), GOD Sampler (Advanced), GOD Sampler (Advanced) Ext., ODE EMA Sampler.ARC Scheduler for deterministic ARC-warped schedules.Flux Quant Node for precision conversion + analysis + save.Groq API Prompt Enhancer with modules/groq_config.json config.Text Appender now uses input_delimiter and output_delimiter and writes to ComfyUI output when output_file is set.Prompt Generator (Dictionary) defaults to ; as item delimiter and scans ComfyUI/input/Dictionaries recursively.arc_lr_scheduler.py → ARC_scheduler.py.model_save.py (Save Flux Model v2) exists but is disabled in __init__.py in this release.MIT