Skip to content

Eliminate external subprocess dependencies (curl and wasmtime) #192

@lambda-alpha-labs

Description

@lambda-alpha-labs

Description

This feature replaces the current use of external subprocesses for core functionality with native, in-process implementations. Specifically, it involves refactoring the HTTP networking layer to use Zig's native std.http.Client instead of shelling out to the curl binary, and updating the WASM runtime adapter to statically link a lightweight C-based WASM interpreter (such as wasm3 or the wasmtime C-API) rather than invoking the wasmtime CLI via child processes.

Motivation

NullClaw's primary value proposition is being a strictly self-contained, lightweight static binary that requires no external dependencies. Relying on host-installed tools like curl and wasmtime breaks this guarantee of true portability and introduces unnecessary performance bottlenecks due to continuous process-spawning overhead. By bringing these capabilities entirely in-process, we ensure the application remains completely standalone, reduces invocation latency, and fully adheres to its zero-dependency design philosophy while preserving a minimal memory footprint.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions