The user installs Cognition Core locally or runs it from a local unpacked bundle.
The UI can be browser-hosted, but model execution remains local and native. There is no always-on model server requirement.
One of these two paths:
- Bundled baseline path
- use the included exemplar artifact
- runs entirely in-process
- Real local model path
- a local GGUF file
- a direct binary such as
llama-cli, a compiled native runtime, or a final.llamafile
- The UI or local shell passes the prompt to Cognition Core.
- Cognition Core writes temporary prompt files locally to avoid shell quoting failures.
- Cognition Core invokes the local runtime directly.
- The runtime is monitored for:
- model loading
- tokenization
- first output / generation start
- idle stalls
- completion or failure
- If no generation begins in time, the run fails loudly.
- A runtime receipt is written locally.
- The user sees the result in the UI or shell.
- adapter and backend identity
- prompt hash and system prompt hash
- runtime timings
- finish reason
- output preview
- metadata trace
scripts/operator/run_local_prompt.sh "Audit this repo and preserve constraints."export COGNITION_RUNTIME_ADAPTER=command
export COGNITION_MODEL_PATH=/absolute/path/to/model.gguf
export COGNITION_COMMAND_TEMPLATE='/absolute/path/to/llama-cli -m {model} -f {combined_prompt_file}'
scripts/operator/run_local_prompt.sh "Summarize the system state and next actions."export COGNITION_RUNTIME_ADAPTER=command
export COGNITION_MODEL_PATH=/absolute/path/to/model.gguf
export COGNITION_COMMAND_TEMPLATE='/absolute/path/to/llama-cli -m {model} -f {combined_prompt_file}'
scripts/operator/benchmark_local_model.shAfter scripts/operator/setup_local_user_runtime.sh, edit .env.direct-runtime once and the operator scripts will auto-load it on each run. That keeps the user path local and simple without requiring a daemon or repeated shell exports.
When you are ready to move from the bundled baseline to your own local model, use:
scripts/operator/register_gguf_runtime.sh --gguf /absolute/path/to/model.gguf --binary /absolute/path/to/llama-cliOr for a final self-contained executable:
scripts/operator/register_gguf_runtime.sh --llamafile /absolute/path/to/model.llamafileThen verify with:
scripts/operator/runtime_status.sh
scripts/operator/run_local_prompt.sh "hello"