codemaxxing

repository·main·Indexed 41 days ago

https://github.com/jshchnz/codemaxxing

A CLI tool designed to maximize GitHub contribution graphs by generating large volumes of low-quality, high-verbosity code ("slop"). It supports multiple languages including Java, Python, JavaScript/TypeScript, and Go. Features include a "sanity" flag to control code style from corporate enterprise to unhinged chaos, a "turbo" mode for automated generation and git committing, and an "enterprise" mode that provides a 10x line multiplier.

Tokens
5.3K
Snippets
17
Records
21
Agent score
52%

What's inside codemaxxing

  1. Use TURBO mode for continuous commits

    main

    The --turbo flag enables a continuous loop of: generating files $\rightarrow$ git add $\rightarrow$ git commit. This is designed to rapidly increase your GitHub contribution graph. While running, the CLI displays live statistics including total lines, commits, files, lines per second, and commits per minute.

    codemaxxing --lines 100000 --turbo --sanity 50
  2. Quick Start with codemaxxing

    main

    Use the codemaxxing command with various flags to generate code. Common patterns include:

    • Corporate Enterprise Slop: High sanity level.
    • Unhinged Chaos: Zero sanity level.
    • Turbo Mode: Continuous generation and auto-committing.
    • Enterprise Mode: Multiplies line count by 10x.
    • Language Targeting: Specify a language using --lang.
    # Generate 10,000 lines of corporate enterprise slop
    codemaxxing --lines 10000 --sanity 100
    
    # Generate 10,000 lines of pure unhinged chaos
    codemaxxing --lines 10000 --sanity 0
    
    # TURBO MODE: auto-generate and auto-commit in a tight loop
    codemaxxing --lines 100000 --turbo --sanity 50
    
    # Enterprise mode (10x multiplier because enterprise)
    codemaxxing --lines 10000 --enterprise
    
    # Target specific languages
    codemaxxing --lines 5000 --lang java --sanity 80
  3. Configure Turbo mode execution via GenerationConfig

    main

    The run_turbo function relies on a GenerationConfig object to control the automation loop. The following parameters influence the Turbo/Forever behavior:

    ParameterDescription
    linesThe target number of lines to generate (used in TURBO mode).
    foreverBoolean. If True, enables FOREVER mode (infinite loop). If False, enables TURBO mode.
    batch_sizeThe number of files to generate and commit in a single batch.
    push_everyAn integer specifying how many commits to perform before executing a git push.
    branchThe specific git branch to use for the session.
    output_dirThe directory where generated files and .session-stats.json will be stored.
    sanityControls the 'chaos' level of the generated content.
    langThe target programming language.
  4. Configure generation parameters with GenerationConfig

    main

    The GenerationConfig dataclass is used to control the behavior of the code generation process. You can instantiate it to specify the volume of code, the 'sanity' level (ranging from chaos to corporate style), target languages, and execution modes like turbo or enterprise.

    Key behaviors:

    • Sanity Scaling: The sanity value is clamped between 0.0 (full chaos) and 1.0 (corporate cringe).
    • Enterprise Multiplier: If enterprise is set to True, the requested number of lines is automatically multiplied by 10.
    from codemaxxing.config import GenerationConfig
    
    config = GenerationConfig(
        lines=1000,
        sanity=0.8,
        lang="python",
        enterprise=True
    )
    # config.lines will be 10000 due to the enterprise multiplier
  5. Target specific programming languages

    main

    Use the --lang flag to specify the target language for code generation. Supported languages include:

    • java: Generates enterprise patterns like AbstractSingletonProxyFactoryBean with getters, setters, and inner classes.
    • python: Generates metaclasses, abstract bases, and 15-parameter constructors.
    • javascript/typescript: Generates callback hell, promise chains, and deep type wrappers.
    • go: Generates interface{} usage, if err != nil { return nil, nil } chains, and goroutines.
    • Generic: Generates deep nested if/else blocks, wrapper functions, and fake unit tests.
  6. Configure code chaos with --sanity

    main

    The --sanity flag (range 0-100) controls the style and chaos level of the generated code:

    • 100 (Corporate Enterprise): Generates highly verbose, enterprise-style names like AbstractSingletonProxyFactoryBeanManagerImpl.
    • 50 (Concerning): Generates odd or questionable names like EnhancedYeetOrchestrator.
    • 0 (Full Chaos): Generates nonsensical or meme-heavy names like xX_Destroyer_Xx_SkibidiHandler_Ligma.
    | Sanity | Style | Example |
    |--------|-------|---------|
    | 100 | Corporate Enterprise | `AbstractSingletonProxyFactoryBeanManagerImpl` |
    | 50 | Concerning | `EnhancedYeetOrchestrator` |
    | 0 | Full Chaos | `xX_Destroyer_Xx_SkibidiHandler_Ligma` |
  7. Generate code using generate()

    main

    The generate function creates a list of GeneratedFile objects based on a provided GenerationConfig. It continues selecting random generators for the specified language until the cumulative line count meets or exceeds the config.lines requirement. Each file is generated using the config.sanity level and an incrementing file index.

    from codemaxxing.generator import generate
    from codemaxxing.config import GenerationConfig
    
    config = GenerationConfig(
        lang="python",
        lines=100,
        sanity=50
    )
    
    files = generate(config)
  8. Generate a batch of files with generate_batch()

    main

    The generate_batch function allows for generating a specific number of files (batch_size) starting from a particular index (start_index). This is useful for parallelizing or chunking generation tasks. It returns a list of GeneratedFile objects.

    from codemaxxing.generator import generate_batch
    from codemaxxing.config import GenerationConfig
    
    config = GenerationConfig(
        lang="typescript",
        lines=500,
        sanity=10
    )
    
    # Generate 10 files starting from index 0
    files = generate_batch(config, batch_size=10, start_index=0)
  9. Write generated files to disk with write_files()

    main

    The write_files function takes a list of GeneratedFile objects and writes their content to the specified output_dir. It automatically creates any necessary subdirectories. The function returns the total number of lines written across all files.

    from codemaxxing.generator import write_files
    
    # files is a list of GeneratedFile objects
    # output_dir is the target directory
    total_lines = write_files(files, "./output_code")
    print(f"Generated {total_lines} lines.")
  10. Use the EnterprisePythonGenerator to generate Python slop

    main

    The EnterprisePythonGenerator is a specialized generator within the codemaxxing library designed to produce highly verbose, "enterprise-grade" Python code. It simulates complex software architecture by generating modules containing:

    • Metaclasses: Singleton-pattern metaclasses.
    • Abstract Base Classes (ABCs): Classes with multiple @abstractmethod definitions.
    • Enums: Status enums with various enterprise-sounding states (e.g., ORCHESTRATING, TRANSFORMING).
    • Concrete Classes: Complex classes implementing the ABCs, featuring large __init__ methods (8-15 parameters), properties, context manager support (__enter__/__exit__), and factory methods (create).
    • Type Aliases: Verbose Union type aliases.
    • Docstrings and Comments: Generated based on the provided sanity level.

    To use it, call the generate method on an instance of EnterprisePythonGenerator, providing a sanity float (0-100) to control the quality/chaos of the generated code and a file_index for unique filenames.

    from codemaxxing.generators.enterprise_python import EnterprisePythonGenerator
    
    generator = EnterprisePythonGenerator()
    # sanity: 0.0 (chaos) to 100.0 (structured)
    file = generator.generate(sanity=50.0, file_index=1)
    
    print(f"Filename: {file.filename}")
    print(f"Lines: {file.line_count}")
    print(file.content)