@holoscript/holollama
v0.2.1
Published
Native HoloScript utilities for planning and operating llama.cpp HoloLlama serving nodes.
Downloads
1,547
Maintainers
Readme
@holoscript/holollama
Native HoloScript utilities for HoloLlama llama.cpp serving nodes.
This package does not bundle model weights or a llama.cpp binary. It turns an
authorable @llama_serve HoloScript block into deterministic operating
artifacts: launch command, PowerShell launcher, systemd unit, Windows S4U task,
health probe, and sovereign-device registry JSON.
CLI
npm install -g @holoscript/holollama
holollama doctor --json
holollama mesh --profile jetson-orin --team-id team_... --json
holollama preflight --profile laptop-windows --json
holollama contract --profile laptop-windows --json
holollama lifecycle --team-id team_... --json
holollama lifecycle --profile jetson-orin --live --team-id team_... --json
holollama harness --out ./.ai-ecosystem --team-id local-team --json
holollama profiles
holollama brains
holollama brain --task "compose eerie ambience for a cave level" --json
holollama plan --profile jetson-orin --json
holollama plan --profile laptop-windows --out ./holollama-bundle
holollama plan --code ./serve.holo --out ./holollama-bundleProfiles are operating defaults for the fleet lanes, not hardware claims:
jetson-orin: owned-metal Linux ARM64 text serving lane, using a native/opt/holoscript/llama.cpp/build-holo/bin/llama-server, Qwen3 base model, and Brittney LoRA adapter.laptop-windows: founder laptop Windows vision/tooling lane.vast-linux-gpu: Linux GPU fleet lane.
HoloLlama is not an Ollama wrapper. The Jetson profile expects a native
llama.cpp build owned by the HoloLlama lane; lifecycle --live rejects
Ollama-owned llama-server binaries, model/LoRA drift, ignored GPU layers,
unsafe prompt-cache ceilings, and unified-memory pressure.
Public .ai-ecosystem Harness
.ai-ecosystem is the harness pattern for cloud frontier families and local
agents: a small operating folder that gives agents durable rules, receipt
commands, package entrypoints, and secret boundaries. The founder private
.ai-ecosystem repo is not shipped to users.
HoloLlama includes a clean-room starter at
templates/ai-ecosystem-basic. Copy that folder into a new project's
.ai-ecosystem when an outside human or AI agent needs a minimal HoloLlama
operating harness. The template points agents at package commands such as
holollama doctor, holollama profiles, holollama lifecycle, and
holollama lifecycle --live; it does not assume founder paths, GOLD, private
MCP keys, or local research state.
Use the installer instead of copying by hand:
holollama harness --out ./.ai-ecosystem --team-id local-team --jsonThe command refuses to overwrite changed harness files unless --force is
provided, scans the installed files for founder-private anchors and filled env
secrets, then writes doctor, lifecycle, and install receipts under
.ai-ecosystem/receipts/holollama/.
Override the authored plan with flags such as --model, --model-path,
--host, --port, --ctx, --ngl, --parallel, --register-as, --node,
--platform, --executable, --service-user, --grammar, and --vision.
Operational receipts:
doctor: compiles profile artifacts and emitsholollama.doctor.v1.mesh: resolves read-only HoloMesh board, room, done-log, slot, and knowledge endpoints asholollama.holomesh-readonly-bridge.v1.preflight: proves llama.cpp vision flags and registry capability asholollama.llama-cpp-vision-preflight.v1.contract: proves fleet-bench server contract asholollama.llama-cpp-server-contract.v1: text profiles omit--mmprojand image-token flags, vision profiles include the intended projector and image token window, and sovereign-device registry entries exposecapabilities[]with base endpoints for fleet-router discovery.lifecycle: joins plan, server-contract, preflight, runtime-readiness, mesh bridge, and health probe stages asholollama.fleet-lifecycle.v1. Runtime-readiness is the launched-node gate for benchmark/routing callers: port owner, stalellama-servercleanup,/v1/modelsmultimodal capability, and/props.modalities.vision.lifecycle --live: probes a live HoloLlama node, attachesholollama.lifecycle-doctor.v1, and promotes it into the lifecycle as alive-lifecyclestage. The live probe checks optional systemd service state, read-only SSH/procfs footprint,/health,/v1/models, and a tiny OpenAI-compatible completion. The footprint check catches Jetson-class drift: wrongllama-serverbinary, model/LoRA path drift, ignored GPU layers, unsafe prompt-cache ceilings, RSS pressure against unified memory, and swap already in use. Use--endpoint,--host,--key,--unit,--models-path,--timeout-ms,--prompt,--max-tokens,--no-systemd,--no-footprint, and--require-systemdto adapt the same package to Jetson, laptop, and Vast fleet lanes.HOLOLLAMA_ENDPOINT,JETSON_HOST, andJETSON_KEYare honored by the CLI.
Brains
HoloLlama exposes Brain as the product-facing selector unit. skill remains
accepted as a compatibility alias for older Claude-style callers, but package
receipts return Brain-shaped fields.
import { selectHoloLlamaBrain } from '@holoscript/holollama/brain';
const selection = selectHoloLlamaBrain({
task: 'Compose eerie ambience for a cave level.',
selectedDevice: 'jetson-orin-super',
});
console.log(selection.selectedBrain.id); // audio
console.log(selection.selectedCompatibilitySkill.id); // audioThe selector returns the selected Brain, compatibility skill metadata, consumer
profile, scoring evidence, and the holollama-brain-router.selection.v1 receipt
schema. This lets Jetson, desktop HoloShell, npm consumers, and future language
bridges share one canonical router. The same exports are re-exported from the
main package entry; the /brain subpath stays dependency-light for edge
appliances that only need routing receipts.
Library
import {
buildLlamaServeComposition,
compileHoloLlamaBundle,
doctorHoloLlamaProfiles,
probeHoloLlamaLiveLifecycle,
writeHoloLlamaBundleFiles,
} from '@holoscript/holollama';
const code = buildLlamaServeComposition('jetson-orin');
const bundle = compileHoloLlamaBundle({ code });
await writeHoloLlamaBundleFiles(bundle, './holollama-bundle');
const report = doctorHoloLlamaProfiles();
console.log(report.ok);
const live = await probeHoloLlamaLiveLifecycle({
profile: 'jetson-orin',
endpoint: 'http://192.168.0.119:18080',
skipSystemd: true,
});
console.log(live.runtimeState);Serving Strategy
@holoscript/core owns parsing and compilation. @holoscript/mcp-server exposes
agent tools. @holoscript/holollama is the installable operating surface for
owned local model serving. Fleet hosts consume this package to author, inspect,
materialize, and live-prove serving bundles without installing the full MCP
server.
Run corepack pnpm check:holollama-consumption after building to prove the
built API and CLI are consumable by laptop, Jetson, and Vast fleet lanes. The
gate exercises the operational receipts from built artifacts before publish.
