Skip to content
LocalForgeLocalForge

Changelog

Update Logs

5 releases · Latest: v2.1.3

v2.1.3LatestNew FeaturePerformanceJune 21, 2026

v2.1.3 — Layer 3 7B upgrade, static analysis, eval suite

What's new in v2.1.3

Layer 3 — Qwen2.5-Coder-7B

Upgraded from the 1.5B model to the 7B model. Measured on a 145-diff labeled corpus:

| Metric | 1.5B | 7B | |---|---|---| | Precision | 0.649 | 0.982 | | F1 | 0.726 | 0.745 | | FPR | 0.727 | 0.018 | | False positives | 40 | 1 |

localforge --install now auto-downloads the 7B model and falls back to 1.5B if already present.

Clean-diff fast path

The advisory engine now skips the model entirely on commits with no risky additions (refactors, deletions, whitespace changes) — keeping latency near zero for clean commits.

Post-inference false positive filter

A new suppressor (filter_false_positives) checks findings against known-safe patterns — parameterized queries, list-form subprocess calls, type-annotated variables — and removes them before writing to the report.

Layer 3.5 — Static Analysis

Deterministic tools now run alongside the LLM for categories that require AST-level reasoning:

  • Python: bandit (security), pylint (dead code, unused imports)
  • JavaScript / TypeScript: eslint (no-unused-vars, no-eval)
  • Go: go vet, staticcheck
  • Rust: cargo clippy (suspicious, correctness, perf, dead_code)

localforge --install auto-installs all available tools.

Layer 3 Eval Suite

  • 145 labeled diffs across 18 categories and 9 languages (90 TP, 55 TN)
  • Precision / recall / F1 / FPR metrics, per-category and per-language breakdowns
  • 4 matplotlib charts + JSON artifact
  • Run with: python3 tests/layer3_eval.py

Download

| Asset | Description | |---|---| | LocalForge-v2.1.3-arm64.dmg | macOS app — drag to Applications | | localforge-v2.1.3-macos-arm64 | CLI binary — for terminal/script installs |

Quick install:

curl -L https://github.com/stalzkie/local-forge/releases/latest/download/localforge-v2.1.3-macos-arm64 \
  -o /tmp/localforge && chmod +x /tmp/localforge && /tmp/localforge --install
View release on GitHub →
v2.1.2Bug FixNew FeatureJune 20, 2026

LocalForge v2.1.2

What's new in v2.1.2

Critical fix — standalone binary now fully self-contained

Previous releases required the surrounding repo or app bundle to be present for --install to work. Users downloading the raw binary from the Releases page would hit:

[LocalForge] ⚠ pre-commit hook source not found
[LocalForge] ⚠ infer.py not found
[LocalForge] ⚠ advisory.py not found

Root cause: run_install() searched for hooks/pre-commit, coreml/infer.py, and coreml/advisory.py as external files relative to the binary or app bundle. A standalone binary download has neither.

Fix: All three files are now embedded directly into the binary at compile time using Rust's include_str!(). --install and --upgrade-all write them from the embedded constants — no external files needed, ever.

A standalone localforge-v2.1.2-macos-arm64 download now fully installs hook, shims, and binary in one command:

curl -L https://github.com/stalzkie/local-forge/releases/download/v2.1.2/localforge-v2.1.2-macos-arm64 \
  -o /tmp/localforge && chmod +x /tmp/localforge && /tmp/localforge --install

Also adds Cargo.toml and Cargo.lock to .localforgeignore to suppress Layer 2 false positives on version bumps.

Requires Apple Silicon (M1/M2/M3/M4). macOS 14+.

View release on GitHub →
v2.1.1New FeatureJune 20, 2026

LocalForge v2.1.1

What's new in v2.1.1

macOS App — Repo Discovery UI

The Repos tab now includes a Scan Folder button that discovers all git repos in any folder you pick (e.g. ~/Developer, ~/Desktop) and shows them in a dedicated section. Each discovered repo displays its hook status and a one-click Protect button that installs LocalForge without touching the terminal. No more hunting for paths.

CLI — Team & Compliance Features

  • localforge --install-org [repo] — generates a localforge-install-org.sh script you can paste into your dev setup doc or Makefile. Each teammate runs it once: downloads binary, sets up ~/.localforge/, adds PATH, installs the hook. No admin rights required.
  • localforge --export-report <json|csv> — exports full scan history for security audits and due diligence. Flags: --last N to limit count, --out path for custom output path.

Version bumps

  • Cargo.toml, CLI --version, and app header all updated to v2.1.1

Installation

curl -L https://github.com/stalzkie/local-forge/releases/download/v2.1.1/localforge-v2.1.1-macos-arm64 \
  -o ~/.localforge/bin/localforge
chmod +x ~/.localforge/bin/localforge
localforge --install

Requires Apple Silicon (M1/M2/M3/M4). macOS 14+.

View release on GitHub →
v2.1.0New FeatureJune 19, 2026

LocalForge v2.1.0

What's new in v2.1.0

Layer 1 — Secret detection

  • Expanded from 7 → 26 patterns across 13 providers
  • New providers: GCP, Azure SAS, Stripe restricted, GitHub Actions secrets, Slack webhooks, Twilio, SendGrid, npm, PyPI, HuggingFace, Anthropic, OpenAI, Shopify, PuTTY, DSA keys, .env assignments
  • Patterns compiled once at startup via once_cell::Lazy — zero per-commit regex cost
  • Only scans + diff lines — removing a secret never triggers a false block

Layer 2 — CoreML classifier

  • Training set: 81 → 297 samples across 11 languages (Python, JS/TS, Java, Go, Rust, C#, PHP, Ruby, Swift, Kotlin, SQL)
  • CV F1 (5-fold stratified): 0.754 ± 0.021 (up from 0.496 ± 0.229)
  • Held-out verification: 32/33 cases (97%)

Layer 3 — LLM advisory

  • All findings from a commit now written to one consolidated report at ~/.localforge/reports/commit_<ts>.txt
  • Language auto-detected from diff file extensions
  • Only added lines reviewed — no false flags on removed code
  • Large diffs chunked at file boundaries, findings merged and deduplicated

Install & packaging

  • localforge --install — one command sets up everything: directory, binary, model, hook, PATH export to .zshrc
  • Auto-detects Qwen model from HuggingFace cache
  • localforge --upgrade-all — syncs hooks across all registered repos
  • Homebrew formula added (Formula/localforge.rb)
  • Notarization and packaging scripts added (scripts/notarize.sh, scripts/package_homebrew.sh)

Tests

  • 43 Rust unit tests (up from 16), including 34 pattern tests: 20 detection, 10 false-positive guards, 4 diff-awareness tests

Installation

curl -L https://github.com/stalzkie/local-forge/releases/download/v2.1.0/localforge-v2.1.0-macos-arm64 \
  -o ~/.localforge/bin/localforge
chmod +x ~/.localforge/bin/localforge
localforge --install

Requires Apple Silicon (M1/M2/M3/M4). macOS 14+.

View release on GitHub →
v2.0.0Bug FixNew FeaturePerformanceJune 18, 2026

LocalForge v2.0.0 — On-Device AI Security Gateway

LocalForge v2.0.0

A Rust-native, MCP-compliant security gateway for Apple Silicon. Intercepts every git commit through a 3-layer hybrid pipeline — entirely on-device, no cloud, no API keys.

What's in v2.0.0

Core pipeline

  • Layer 1 — Rust AST regex: 7 secret patterns (AWS, Stripe, GitHub PAT, private keys, bearer tokens) — blocks in ~41 µs avg, 0% false positive rate
  • Layer 2 — CoreML / Apple Neural Engine: TF-IDF char n-gram + logistic regression classifier — blocks in ~2s, statistical risk scoring
  • Layer 3 — Qwen2.5-Coder-1.5B via MLX: full semantic code review (security · bug risk · code quality) — advisory only, ~3.8s avg, never blocks

macOS App

  • Native SwiftUI terminal-style UI with live scan output
  • Code Review toggle to enable/disable Qwen L3 per session
  • Per-commit .txt advisory reports in ~/.localforge/reports/
  • Folder button to open reports in Finder

MCP Server

  • JSON-RPC 2.0 over TCP (--mcp-port <port>)
  • scan and ping methods for IDE integrations (Cursor, VS Code)

Packaging

  • Distributable DMG via scripts/package_dmg.sh
  • Git hook installer via scripts/install_hook.sh
  • .localforgeignore support for suppressing false positives

Benchmark Results (80 samples)

| Layer | Avg Latency | Detection Rate | False Positive Rate | |---|---|---|---| | L1 — AST Regex | 40.81 µs | 20% (secrets only) | 0% | | L2 — CoreML/ANE | 2,083 ms | 15% | 10% | | L3 — Qwen Advisory | 3.8 s | advisory | advisory-only |

Full benchmark graphs in tests/benchmark_results/.

Requirements

  • macOS 14+ on Apple Silicon (M1/M2/M3/M4)
  • Rust 1.78+
  • Python 3.11+
  • Xcode 16+ (to build the app)

Installation

git clone https://github.com/stalzkie/local-forge.git
cd local-forge
cargo build --release
python3 coreml/build_model.py
# Inside the repo you want to protect:
/path/to/local-forge/scripts/install_hook.sh

See the README for full setup instructions including Qwen model download.


Changelog

v2.0.0 — 2026-06-18

  • Initial release

Patch — 2026-06-18

  • Fixed app icon and in-app header logo rendering blank (white-on-transparent from SVG conversion). Replaced with proper PNG source at all required sizes (16–1024px).

MIT License — Copyright (c) 2026 Stalingrad Samulde Dollosa

View release on GitHub →