Skip to main content

AlpieLocal

AlpieLocal is a command-line coding agent for exploring repositories, editing code, debugging, and running verification commands. It supports online inference through a configured endpoint and offline inference with local GGUF models through llama.cpp.

For an in-depth explanation of the agent workflow, System 1 controller, tools, verification, and multimodal processing, see Inside AlpieLocal: Architecture Guide.

Requirements

  • Python 3.9 or newer. Python 3.11 or 3.12 is a practical choice for native runtime compatibility.
  • Windows, Linux, or macOS with a compatible Python architecture.
  • Internet access for package installation and the initial model/runtime downloads.
  • Sufficient disk space, RAM, and optional GPU memory for the selected model and context size.
  • Your project's own tools, such as Git, Node.js, or a test runner, when the task requires them.

Offline hardware guidance

The default Q3 text weights occupy approximately 4.4 GiB, and the vision projector adds approximately 0.86 GiB. Loading also needs memory for context/KV cache, compute buffers, the operating system, and project tools.

These are planning estimates for text tasks at 4,096–8,192 tokens, not certified minimum specifications:

Execution mode Practical starting configuration Preferred configuration
CPU only Compatible 64-bit CPU, 4 or more cores, 16 GB system RAM Modern CPU with 8 or more cores and 32 GB RAM
NVIDIA CUDA 16 GB system RAM and 6 GB VRAM with partial GPU offload 32 GB system RAM and 8 GB or more VRAM
Apple Silicon Metal Native arm64 Python and 16 GB unified memory 24–32 GB or more unified memory

Reserve at least 15 GB of free disk space for model assets, the environment, and download caches; source builds and project dependencies can need more. Machines with 8 GB RAM may run into memory pressure and are not the recommended baseline. Larger contexts, images, and video frames increase memory use; the configured 262,144-token ceiling is not a laptop memory recommendation.

A dedicated GPU is optional. CPU inference is slower, and the runtime must match the CPU architecture and instruction support. Bundled CPU wheels cover supported Windows x64 and Linux x64/ARM64 platforms; Intel Macs require a compatible manual build. Apple Silicon uses shared memory rather than separate GPU VRAM. Development probes loaded the model on an RTX 3050 with 6 GB VRAM using partial offload and a 16,384-token context; this does not establish compatibility with every 6 GB GPU.

Before loading, AlpieLocal reports available memory and an attention-cache estimate where the model metadata supports it. A known cache allocation exceeding the applicable memory pool stops before model allocation. Partial offload, unknown layouts, and runtime/vision overhead remain estimates rather than a guarantee of fit. Choose a smaller context explicitly with --ctx-size when needed; setup preserves saved context and output budgets instead of raising them during migration.

To force CPU operation, set the variable before starting chat:

# Windows PowerShell
$env:ALPIELOCAL_CPU = "1"
alpielocal chat --offline --no-thinking --ctx-size 8192
# Linux or macOS
ALPIELOCAL_CPU=1 alpielocal chat --offline --no-thinking --ctx-size 8192

Installation

Global command with pip or pip3

Outside an activated virtual environment, install for your user account with either command:

pip install --user alpielocal
or
pip install alpielocal
pip3 install --user alpielocal
or
pip3 install alpielocal

Use the command associated with your Python 3 installation. Interpreter-specific alternatives are py -m pip install --user alpielocal on Windows and python3 -m pip install --user alpielocal on Linux or macOS.

Ensure Python's user scripts directory is on PATH, reopen your terminal, then check and start the CLI:

alpielocal --version
alpielocal

If pip reports an externally-managed-environment error, use pipx, uv, or a virtual environment as described below. To upgrade a user installation, run pip install --user --upgrade alpielocal or pip3 install --user --upgrade alpielocal.

Global command with pipx

pipx makes alpielocal available across projects while keeping its Python dependencies in a dedicated environment.

Windows PowerShell

py -m pip install --user pipx
py -m pipx ensurepath

Linux, Ubuntu or Debian

sudo apt update
sudo apt install pipx
pipx ensurepath

macOS, with Homebrew

brew install pipx
pipx ensurepath

Open a new terminal, then install and check the command:

pipx install alpielocal
alpielocal --version

For other Linux distributions, use the pipx installation guide linked above. A pipx installation is available from your terminal without activating a project environment.

Python virtual environment

Windows PowerShell

py -3.12 -m venv .venv
.\.venv\Scripts\Activate.ps1
python -m pip install --upgrade pip
python -m pip install alpielocal

If PowerShell blocks activation, install and run through the environment's interpreter directly:

.\.venv\Scripts\python.exe -m pip install alpielocal
.\.venv\Scripts\alpielocal.exe --version

Linux or macOS

python3 -m venv .venv
source .venv/bin/activate
python -m pip install --upgrade pip
python -m pip install alpielocal

On Debian or Ubuntu, install python3-venv if creating the environment fails. Use an installed Python version in place of py -3.12 when necessary.

Install with uv

Install uv using the command for your platform.

Windows PowerShell

powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex"

Linux or macOS

curl -LsSf https://astral.sh/uv/install.sh | sh

Open a new terminal. To make AlpieLocal available across projects in a managed tool environment:

uv tool install --python 3.12 alpielocal
uv tool update-shell

Reopen the terminal if PATH was updated, then run alpielocal --version. Alternatively, create a project environment:

uv venv --python 3.12 .venv

Activate .venv using the Windows or Linux/macOS activation command above, then run:

uv pip install alpielocal
alpielocal --version

uv environments do not need pip installed to use uv pip. Choose either a global tool installation or a project environment so it is clear which CLI and runtime you are using. See the uv tools guide for details.

Existing environments

Activate your existing venv, virtualenv, Conda, uv, or Poetry environment, then install into its Python interpreter:

python -m pip install --upgrade alpielocal
python -c "import sys; print(sys.executable)"
alpielocal --version

If the environment has no pip, use its package manager; for example, uv pip install alpielocal or poetry add alpielocal. AlpieLocal does not require a uv-created environment. Its runtime installer may use uv when available, but targets the interpreter running AlpieLocal.

From this repository

From the repository root, with your chosen environment activated:

python -m pip install -e .
alpielocal --version

For a global command from the checkout, use pipx install . instead. Source installation includes changes that may not yet be available in a published package.

First use

Start interactive chat

Run AlpieLocal from the project you want to work on:

cd path/to/project
alpielocal

The explicit chat command is equivalent:

alpielocal chat

After completing offline initialization, start local chat with:

alpielocal chat --offline --no-thinking --ctx-size 8192

Type your request at the prompt. Use /help for chat commands, /status for session diagnostics, and exit or quit to leave. If installed into a virtual environment, activate it before starting chat.

To type the next request while the current task runs, enable queued input:

alpielocal chat --queue-input
alpielocal chat --offline --no-thinking --ctx-size 8192 --queue-input

This mode keeps one pending request and an editable draft. The pending request starts after the current task finishes and saves its checkpoint; workspace, model, and slash-command changes also wait. Approvals use a separate prompt and require a fresh answer. /cancel or Ctrl+C requests cancellation and clears the pending request; /exit waits for cleanup before leaving. Queued text and drafts belong to the current chat and are not saved across restarts. Redirected input uses standard chat input.

To add direction to the running task, enter /steer Keep the public API unchanged. Steering is accepted during model generation and applied at the next model boundary. The previous response cannot execute tools once superseded. Original requirements and completed edits remain, and verification must cover the added direction. During tools, approvals, or final verification, steering is rejected explicitly and kept in your draft; retry when generation resumes or use /cancel. Steering does not grant command approval or reset execution budgets.

Chat and single-task runs share the same display for tool activity, command diagnostics, diffs, and final status. Streamed answers appear once. Final statuses distinguish completed, partial, failed, cancelled, and needs-input tasks; a disconnected or incomplete response is reported as unverified.

Use --quiet to suppress per-turn output while retaining the final result, or --debug to show available reasoning and diagnostic events. Animation is disabled when output is redirected to a file or pipe. These flags control presentation; --thinking and --no-thinking control model reasoning where supported.

Slash commands in chat

Start alpielocal or alpielocal chat, then enter these commands at the chat prompt:

Command Purpose
/help Show the command directory. Alias: /?
/tags Show inline prompt flags and attachment shortcuts
/status Show the model, mode, estimated context usage, working directory, and attachments. Alias: /info
/cancel With --queue-input, request cancellation of the active task and clear the pending request
/steer <instruction> With --queue-input, add direction to the running task at a safe model boundary
/terminal help Show commands for managed interactive and background processes
/thinking on or /thinking off Enable or disable model reasoning. Alias: /reasoning
/no-thinking Disable reasoning for subsequent requests. Alias: /non-thinking
/debug on or /debug off Enable or disable discovery diagnostics
/offline Select local GGUF inference. Alias: /local
/online Return to the configured online endpoint, preserving the endpoint used before /offline
/model NAME Set the model identifier used for API requests; omit NAME to show it
/image "PATH" Set image attachments for subsequent requests; multiple quoted paths are supported
/image clear Remove active image attachments
/video "PATH" Set video attachments; frames are extracted on the next request
/video clear Remove active video attachments
/url YOUTUBE_URL Set a YouTube video URL for the next request; requires permitted network access
/github OWNER/REPO Set the target GitHub repository for subsequent requests
/cd "DIRECTORY" Change the active workspace. Alias: /workdir
/pwd Show the active workspace
/diff Show the current uncommitted Git diff
/undo Review and restore eligible journaled task changes, with conflict checks
/doctor Run environment and development-tool diagnostics
/research QUERY Ask the researcher subagent to inspect the codebase
/review Ask the reviewer subagent to audit the current diff, or the project if the diff is empty
/test [INSTRUCTIONS] Ask the tester subagent to run project checks with optional instructions
/subagents List specialist subagents and their permitted tools
/sessions List saved conversations. Alias: /history
/save Save the current conversation. Alias: /checkpoint
/init [basic|standard|advanced] Scaffold project documentation and persistent-memory files
/clear Reset the conversation context. Alias: /reset
/exit Leave chat. Aliases: /quit, /q; exit, quit, and q also work

/init creates project documentation; run alpielocal init from your terminal to set up model files and the GGUF runtime. For local coding tasks, use /no-thinking after /offline. /model selects an API model identifier; local GGUF weights are selected through the model configuration described below.

/undo and terminal command alpielocal undo use recorded task changes. Restoration is refused when later edits conflict; unrelated user changes are preserved. Arbitrary shell side effects may fall outside the recorded undo scope.

Managed terminal sessions

At the chat prompt, start a process and use its returned session ID:

/terminal start python -u -c "print(input('Name: '))"
/terminal read <id>
/terminal send <id> Arya
/terminal read <id> <next_cursor>
/terminal list
/terminal stop <id>

read returns buffered output and a next_cursor; pass that cursor to read subsequent output. send appends a newline. For exact whitespace or control input, use a JSON string, such as /terminal write <id> " value = 1\n". /terminal eof <id> closes pipe input after queued bytes. Input receipts distinguish queued bytes from delivered bytes; neither proves the application processed them.

Pipe sessions are the portable path. Linux and macOS additionally support /terminal pty <command> and /terminal resize <id> <rows> <cols>; Windows ConPTY is not implemented. Output is polled and sanitized rather than rendered as a full-screen terminal. Each chat permits four running processes, with a 256 KiB output buffer per process, a 16 KiB pending input limit, and a one-hour runtime ceiling. Processes close on chat exit and are not recreated by session resume.

The agent also has a task-owned terminal tool in both inference modes. Model-proposed input requires fresh approval. Task-owned processes must stop before verification and close when the task ends. User-started /terminal processes belong to the chat and may remain between tasks. Commands start in their owning workspace; use the existing sandbox option when OS containment is required.

For example, inside chat:

/status
/cd "path/to/project"
/no-thinking
/image "screenshots/error.png"
Investigate the error in this screenshot and fix its cause in this project.
/image clear
/diff
/save

For a local video request:

/offline
/no-thinking
/video "path/to/lesson.mp4"
Create concise revision notes from the concepts visible in the sampled frames.
/video clear

Run a single task

Submit a task directly when an interactive conversation is unnecessary:

alpielocal run "Investigate the failing tests, make a targeted fix, and verify it."

Online mode uses the configured inference endpoint. To select your own deployment:

alpielocal run "Explain this repository." --endpoint "https://your-server.example/v1" --model "your-model"

Offline mode requires the setup below.

Offline setup

Initialize models and llama.cpp

While connected to the internet, run this once from your intended workspace:

alpielocal init

Initialization saves configuration, downloads missing model files, and installs or checks llama-cpp-python, the Python binding used to run llama.cpp. A separate llama.cpp CLI installation is not required.

The default assets are:

Asset File
Text model alpie-vl-text-q3_k_m.gguf
Vision projector alpie-vl-mmproj-f16.gguf
Model repository 169Pi/alpie_learn_gguf
Automatic runtime version llama-cpp-python 0.3.35

The default model distribution resolves its built-in credential automatically; users do not normally need to enter HF_TOKEN. Downloads still require valid repository access. Custom private repositories require an authorized Hugging Face login or token.

The automatic installer selects compatible, hash-checked wheels and checks that the runtime imports. It does not compile native code. Setup can be cancelled and rerun; completed downloads are reused. An import check does not establish model generation or task accuracy.

Windows

Use 64-bit Python for the bundled Windows x64 wheels. In PowerShell, activate the environment where AlpieLocal is installed, then run:

alpielocal init
alpielocal run "Say hello" --offline --no-thinking --ctx-size 8192

The installer tries compatible NVIDIA CUDA, Vulkan, and CPU runtimes. GPU use depends on the selected wheel and installed drivers. Native Windows and WSL have separate Python environments and runtime installations; run setup inside the environment you will use.

Linux

Activate your environment and run:

alpielocal init
alpielocal run "Say hello" --offline --no-thinking --ctx-size 8192

The installer selects wheels matching the interpreter architecture and Linux platform. NVIDIA systems can use CUDA; compatible Vulkan and CPU builds are also considered. Linux ARM64 CPU wheels are included for supported platforms.

macOS

On Apple Silicon, use a native arm64 Python installation. Check its architecture:

python -c "import platform; print(platform.machine())"
alpielocal init
alpielocal run "Say hello" --offline --no-thinking --ctx-size 8192

Apple Silicon should report arm64; setup tries Metal, then CPU. An x86_64 Python running under Rosetta does not match the bundled arm64 wheels. The pinned automatic runtime has no Intel Mac wheel; Intel users need a compatible manual runtime installation.

Manual llama.cpp runtime installation

Use alpielocal init first. If your platform has no supported bundled wheel, install a compatible llama-cpp-python into the same environment, then rerun initialization.

The commands below target an activated Python environment. In an activated uv environment without pip, replace python -m pip with uv pip.

NVIDIA CUDA: Windows x64

Check that nvidia-smi detects your GPU. The pinned runtime uses a CUDA 12.4 build and needs a compatible NVIDIA driver and GPU. Install the matching wheel:

python -m pip install --force-reinstall --no-cache-dir --only-binary=:all: "https://github.com/abetlen/llama-cpp-python/releases/download/v0.3.35-cu124/llama_cpp_python-0.3.35-py3-none-win_amd64.whl#sha256=84f7218c1e9cf21014b9770c65064c5a3674dd2f4fbc312c5d6bb40cec0fb269"

NVIDIA CUDA: Linux x64

This bundled CUDA wheel targets glibc 2.35 or newer. On another platform, let initialization select an alternative or use the upstream build instructions.

python -m pip install --force-reinstall --no-cache-dir --only-binary=:all: "https://github.com/abetlen/llama-cpp-python/releases/download/v0.3.35-cu124/llama_cpp_python-0.3.35-py3-none-manylinux_2_35_x86_64.whl#sha256=62fc788a4ecee5a579f40708ccfe0c4d566dd5c9959497bdc0544dbba94d82aa"

Apple Silicon: macOS Metal

Use native arm64 Python and install the Metal wheel. CUDA is for NVIDIA GPUs; Apple Silicon acceleration uses Metal.

python -m pip install --force-reinstall --no-cache-dir --only-binary=:all: "https://github.com/abetlen/llama-cpp-python/releases/download/v0.3.35-metal/llama_cpp_python-0.3.35-py3-none-macosx_11_0_arm64.whl#sha256=faf9a2b38df5cbf9427a074f974c00abbb799185753c474672fd461c198b7a0a"

CPU or source build

For an available CPU wheel, try:

python -m pip install --only-binary=:all: llama-cpp-python==0.3.35 --extra-index-url https://abetlen.github.io/llama-cpp-python/whl/cpu

If no compatible wheel exists, a source build requires a native compiler and build tools. A CPU build can be installed with:

python -m pip install --no-binary=llama-cpp-python llama-cpp-python==0.3.35

Source builds require a C/C++ toolchain on Windows, GCC or Clang on Linux, or Xcode command-line tools on macOS. See the upstream llama-cpp-python installation documentation for CUDA, Metal, and other build options.

Verify the environment afterward:

python -c "from llama_cpp import Llama; print('Runtime import OK')"
alpielocal init

For pipx installations, use pipx runpip alpielocal install in place of python -m pip install so the runtime is installed into AlpieLocal's environment. For a global uv tool installation, prefer alpielocal init, which targets that environment automatically. For manual installation, run uv tool dir, locate alpielocal/bin/python on Linux/macOS or alpielocal/Scripts/python.exe on Windows beneath that directory, and use uv pip install --python "/full/path/to/that/python" with the wheel URL above.

To check whether the installed runtime supports GPU offload:

python -c "import llama_cpp; print('GPU offload support:', llama_cpp.llama_supports_gpu_offload())"

This reports build capability. Confirm actual device use in the model-loading output when starting offline chat. Run import checks through the same environment's Python; a global tool environment is separate from your project's Python.

Run without networking

Once the package, model files, runtime, and project dependencies are installed:

alpielocal --offline --no-thinking --ctx-size 8192
alpielocal run "Fix the failing tests and verify the changes." --offline --no-thinking --ctx-size 8192

Use alpielocal --network-policy deny init to check existing setup assets without downloading them. Offline inference does not provide online services or download missing project dependencies.

--network-policy deny disables network-aware agent tools and selects local inference. Arbitrary shell subprocesses require operating-system isolation for an enforced network boundary. On Linux with bubblewrap installed:

alpielocal run "Inspect and repair the failing test." --offline --no-thinking --sandbox --ctx-size 8192

The configured context ceiling is 262,144 tokens in both modes, with a maximum output setting of 65,537 tokens. Actual generation is constrained by task budgets, available context, model support, and memory. The smaller examples above reduce local memory requirements. Native offline structured tool calls currently require non-thinking generation; use --no-thinking for local coding tasks.

Essential commands

Command Purpose
alpielocal Start interactive chat in the current directory
alpielocal run "TASK" Execute a task
alpielocal plan "TASK" Prepare a plan with an enforced read-only tool allowlist
alpielocal explain path/to/file.py Explain a file or concept
alpielocal diff Inspect recorded changes
alpielocal undo Restore file-tool changes from the last session where possible
alpielocal sessions List saved sessions
alpielocal resume SESSION_ID Resume a saved session
alpielocal doctor Check the environment and available tools
alpielocal --help Show available commands and options

Use --workdir path/to/project to select another workspace. In chat, /help lists commands and /status shows the active model, mode, context usage, and attachments.

Planning returns its answer without changing project files. It uses the configured model with local read-only tool dispatch, even when a legacy API server is configured. Ordinary CLI session state may still be saved.

Place repository-specific setup commands, test commands, and constraints in AGENTS.md. AlpieLocal loads instructions from the Git root through the working directory in both online and offline coding modes. More specific directories take precedence; AGENTS.override.md takes precedence over AGENTS.md in the same directory. Outside a Git repository, only the working directory is checked. Instruction files share a 32 KiB reading budget; files that exceed it are explicitly identified rather than silently cut off. Keep instructions concise and place detailed procedures in skills or supporting documents.

Images, video, and optional tools

Attach media to a task using quoted paths:

alpielocal run "Explain the error shown in this screenshot." --image "screenshot.png"
alpielocal run "Summarize the concepts shown in this video." --video "lesson.mp4" --offline --no-thinking --ctx-size 16384

In chat, use /image "path/to/image.png" or /video "path/to/video.mp4", then submit your request. Image understanding requires a working vision model/projector. Video analysis samples frames; it does not establish full video or audio understanding. Video extraction uses system FFmpeg when available, otherwise the included imageio-ffmpeg binary on supported platforms.

Optional integrations:

Tool Installation or prerequisite
Browser interaction checks python -m pip install "alpielocal[browser]", then python -m playwright install chromium
PDF text extraction python -m pip install "alpielocal[documents]"
Local speech transcription Installed whisper-cli, FFmpeg, and local weights selected by ALPIELOCAL_WHISPER_MODEL
Language-server diagnostics An installed server configured through ALPIELOCAL_LSP_COMMAND as a JSON argument list

For pipx, expose Playwright's command when installing browser support:

pipx inject --include-apps alpielocal playwright
playwright install chromium
pipx inject alpielocal pypdf

Optional runtimes and weights must also be prepared before disconnecting. See the pipx inject reference for environment management.

Configuration

Configuration normally lives in .alpielocal/config.json under the setup directory. Existing .alpiecode configuration and caches remain readable. Model lookup reuses existing home-directory caches or the workspace cache; setup prints the selected path.

Environment variable Purpose
ALPIELOCAL_HOME State and configuration directory
ALPIELOCAL_MODELS_DIR Model cache directory
ALPIELOCAL_MODEL_PATH Explicit local text-model GGUF file
ALPIELOCAL_BASE_URL Online inference endpoint
ALPIELOCAL_API_KEY Online endpoint authentication
ALPIELOCAL_MODEL Online model identifier
ALPIELOCAL_CPU=1 Disable GPU offload

Set a persistent ALPIELOCAL_HOME before initialization if you want to share one setup across workspaces. Keep credentials out of version control.

Troubleshooting

  • Command not found: reopen the terminal after pipx ensurepath, or activate the environment containing AlpieLocal. Check its interpreter with python -c "import sys; print(sys.executable)".
  • Runtime installed in another environment: install or initialize using the same interpreter as the CLI. A pipx installation and a project virtual environment are separate.
  • Wheel extraction or hash error: the installer retries a fresh download once. If it still fails, check the reported asset and platform, update AlpieLocal, and rerun alpielocal init. Do not bypass integrity checks.
  • Model authentication error: cached models may work even when fresh downloads cannot authenticate. Check repository access and the installed distribution's credential configuration.
  • Insufficient memory: reduce --ctx-size, reduce GPU offload with ALPIELOCAL_GPU_LAYERS, or select CPU mode with ALPIELOCAL_CPU=1.
  • Video extraction unavailable: install or update imageio-ffmpeg in the environment running AlpieLocal.

Upgrade AlpieLocal

Use the upgrade command matching your installation method:

Installation Upgrade command
Global uv tool uv tool upgrade alpielocal
Global pipx tool pipx upgrade alpielocal
Python/pip environment python -m pip install --upgrade alpielocal
Activated uv environment uv pip install --upgrade alpielocal
Editable source checkout Update the checkout, then run python -m pip install -e . or uv pip install -e .

Close existing AlpieLocal sessions before upgrading. Activate the relevant environment for environment-based installs, then verify and check offline setup:

alpielocal --version
alpielocal init

Initialization reuses valid cached model files. Upgrading the CLI does not automatically replace existing model weights or guarantee a different runtime build; use the runtime installation instructions when changing acceleration backends.

Execution and session recovery

CLI tasks, interactive chat, API chat, and repository evaluations share a task service around the existing agent runtime. Each task has an ID and ordered events. The service closes the runtime and saves its final checkpoint before delivering the terminal result; overlapping tasks in the same session are rejected within the process. The API also serializes access to its shared model backend.

Session snapshots preserve tool-call arguments, results, attachments, and active context separately from the audit history. Retired source excerpts stay retired after resume. Interrupted tasks remain unverified; continuing a session does not automatically replay commands. Running commands poll task cancellation and stop their owned process group on POSIX or request tree cleanup on Windows. Escaped processes require OS isolation; Windows cleanup depends on the parent process still existing. Streaming backends check cancellation between received chunks and close the current request stream. Cancellation remains cooperative during a blocked network read or native model prefill; it does not unload the shared model.

Context assembly and inference share a token counter that includes tool schemas and reserves output space. Once the local GGUF model is loaded, accounting uses its text tokenizer; otherwise it uses a conservative UTF-8 estimate. Chat-template overhead and visual encoder usage remain estimates, which /status labels explicitly. Context pressure removes optional historical recall before shortening source excerpts; current requirements and tool-call/result pairing are preserved.

Project memory retains up to 256 observations within a 512 KiB archive and selects relevant entries using the current request. Important or pinned entries receive retention priority. Recalled observations are historical data, not current verification; file-backed observations are omitted when their recorded hashes no longer match. Existing memory archives remain readable. Prompt recall and the token-count cache are bounded; the full session audit is retained separately.

Historical retrieval caches lexical terms by content digest, within 512 entries and a 1 MiB estimated storage budget. It rechecks observation eligibility and extracts excerpts after ranking. This reduces repeated processing without dropping older history solely because of its age; full audit storage still grows with the session.

Interactive CLI tasks request approval through the terminal adapter. Commands classified as dangerous require an explicit y or yes for the displayed command and working directory after command preparation. Approval applies to that request only. Denied or unavailable interaction stops the remaining tool calls in the batch, and task snapshots record the decision without storing a reusable grant.

API and evaluation tasks do not read the server's terminal. When required input or approval is unavailable, they end with needs_input; the API does not yet accept approval replies for continuing that task. Unattended framework selection keeps the existing Vanilla default. /undo reviews journaled task changes and refuses restoration when later user changes conflict.

The CLI capability inventory records the comparison baseline, evidence, remaining work, and acceptance criteria for future milestones. It is a development roadmap rather than a feature-parity claim.

Measure context overhead

Run the same synthetic fixture with and without the history cache:

alpielocal profile --turns 256 --samples 5 > context-cached.json
alpielocal profile --turns 256 --samples 5 --no-history-cache > context-uncached.json

The JSON report includes context assembly latency, Python allocation estimates, cache usage, audit growth, and request-preservation checks. It uses synthetic conversation data, requires no model or network, and executes no project tools. Compare repeated runs on the same machine; this measures context handling, not model speed, GPU memory, or coding accuracy.

Verification

AlpieLocal records file mutations and command results, requires behavioral acceptance checks for coding completion, and reruns relevant verification. Review the resulting diff and tests before relying on generated changes. Undo protects detected concurrent edits, but does not cover every arbitrary shell mutation or external side effect.

Bash pipelines preserve failures from earlier stages. Run verification commands with the correct test-runner syntax and without truncating their output.

Python verification recognizes stdlib unittest.TestCase suites and runs them with the project interpreter, including tests in nested directories. Explicit pytest configuration, pytest tests, and mixed or uncertain suites retain pytest verification. A missing runner remains an environment problem. Package commands preserve their requested installer and interpreter; missing pip receives environment-specific recovery guidance.

Verification commands use a temporary Python bytecode-cache namespace to avoid reusing stale code after rapid edits, without deleting existing caches. This applies to Python processes that honor the supplied environment; commands that override it or use -E or -I require separate consideration.

Registering an unchanged acceptance plan preserves its current verification result; it does not execute commands or restore invalidated results. Recognized test-runner summaries that report failures cannot pass on exit code alone. Empty, skipped-only, or expected-failure-only results remain inconclusive. Missing checks receive guidance to repair the check before changing application code.

After acceptance checks pass, coding tasks can receive a coverage review using bounded current source/test excerpts and the original request, with omissions identified. It uses the selected backend and a proposal-only reporting tool, with room for follow-up actions within the existing turn budget. File editing and command execution are unavailable to the reviewer. The reviewer can propose up to three executable behavioral checks anchored to the request. Valid checks run through normal command policy and become required acceptance checks; replacing the agent's own plan cannot remove them. Changes invalidate their results, and the final verification gate reruns them. Source snapshots detect rewrites during a review-check batch and invalidate its result without rolling back files. Invalid or unavailable proposals receive one retry, then leave the task unverified with its files preserved. Model-proposed checks remain fallible; a passing review is not independent proof of complete requirement coverage.

Repeated failed checks or inspection of unchanged source can trigger a brief diagnostic review. Reviews consume the existing turn budget and cannot execute changes or establish completion. Initial source excerpts are retired after edits or executable checks so subsequent decisions use fresh observations.

When a review identifies an invocation or quoting defect in a registered check, a structured diagnosis can restrict the next action to correcting that check's command or reading missing evidence. Other check commands, descriptions, and requirement mappings are preserved. Source, plan, and failure evidence must still match before dispatch. The revised command remains subject to normal validation and execution; the diagnosis alone does not prove that its assertions are correct. Offline thinking reviews use JSON text when native structured tools are unsupported.

Repeated successful check commands do not replace a failed acceptance run. For recognized check commands with identical results and unchanged source, AlpieLocal prompts the agent to reconcile the registered plan after three successes and stops a fourth unchanged repetition as unverified. A justified plan correction still requires execution through check_acceptance.

Rejected overwrites, unmatched edits, and invalid candidate syntax produce targeted recovery guidance without bypassing mutation safeguards. If behavioral acceptance checks pass on the final model turn, the ordinary full verification gate can finish the task without another model call. A final edit or an earlier, invalidated check does not qualify.

An output-limit interruption without tool calls continues within the existing task budget instead of consuming a completion-verification retry. Progress guidance uses each command's latest observed failure; superseded failures remain historical evidence.

For reproducible checks, alpielocal evaluate writes JSON reports with runtime settings, source fingerprints, and available model-file hashes. From a source checkout, run the bundled repository repair cases in fresh workspaces:

alpielocal evaluate --mode offline --suite repository --manifest test/repository_cases/nov11_v1/cases.json --no-thinking --ctx-size 16384 --max-turns 24 --max-output-tokens 4096 --output offline-results.json
alpielocal evaluate --mode online --suite repository --manifest test/repository_cases/nov11_v1/cases.json --no-thinking --max-turns 24 --max-output-tokens 4096 --output online-results.json

Offline evaluation requires cached model files; use --gguf-model path/to/model.gguf to select weights explicitly. The repository cases require Python and Node.js. Reports separate agent completion from independent validation and flag changes outside the allowed files. Existing report files are protected; use a new output filename for each run. These small development cases are regression checks, not a general model benchmark. Use --suite core for model smoke checks, or --suite multimodal to include image checks; both use a fixed 512-token output budget. Thinking can be selected explicitly with --thinking where supported by the backend.

Repository evaluation artifacts include progress checkpoints and a bounded event journal with command outcomes, rejected tool calls, and generation limits. Token usage and finish reasons are recorded when the backend supplies them; missing values remain unknown. An interrupted run does not count as verified completion.

The four-case nov11_v1 suite freezes fixture and validator hashes, keeps validators outside candidate workspaces, and checks the validators against broken, reference, and incomplete repairs. Once results guide development, reruns are development comparisons; use additional unseen tasks to measure generalization.

Metadata

Release files for alpielocal 10.11.10

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for alpielocal 10.11.10
File Size Uploaded Provenance Actions
alpielocal-10.11.10.tar.gz 841.3 kB Without provenance Details for alpielocal-10.11.10.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for alpielocal 10.11.10
File Interpreter ABI Platform Actions
alpielocal-10.11.10-py3-none-any.whl Python 3 none any Details for alpielocal-10.11.10-py3-none-any.whl

Total release size: 1.4 MB

Release files / alpielocal-10.11.10.tar.gz

Download URL alpielocal-10.11.10.tar.gz
Size 841.3 kB
Tags Source
SHA-256 checksum
How to use checksums
da246f045da93a84be141e148b301bb370aee194196814e08ede1d5d3a8fcf5d
BLAKE2b-256 checksum
How to use checksums
72da3e75f771d35fa8217b3d0305d05d3f7806563d7e5e0d39610379cc636d6e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.13

Release files / alpielocal-10.11.10-py3-none-any.whl

Download URL alpielocal-10.11.10-py3-none-any.whl
Size 573.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3d8cb56bb7a05fceb243006c48be4c31d09fafe5fdf09ddf720a46b574548a07
BLAKE2b-256 checksum
How to use checksums
38657da8614b26ff688d9fce703e5d99acd9f914143023d6cc01b65568cd1f2a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.13

Security for alpielocal 10.11.10

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

10.11.10 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page