Haldwani Times
Haldwani Times
Technology

tokensafe 5.0.3

tokensafe 5.0.3
Photo / Illustration: Haldwani Times Editorial Desk

Skip to main content Switch to mobile version tokensafe 5.0.3 Your AI agent is smart enough to code all day. Now it actually can. Local runtime firewall & zero-loss context optimizer for AI coding agents.

pip install tokensafe==5.0.3 Copy PIP instructions

Your AI agent is smart enough to code all day. Now it actually can. Stop letting bloated file reads, noisy test dumps, and broken prompt caches drain your limits by lunch. TokenSafe runs locally, filtering context down to what the model actually touches while keeping secrets out of git. Works with Cursor, Claude Code, Codex, Windsurf, Google Antigravity, Kimi Code, and ChatGPT.

Install • Quickstart • What's New in v4.0 • Why TokenSafe • Benchmarks • Pricing • FAQ • Reference • Website & Docs

TokenSafe 4.0 is a major architecture release designed for Zero Mid-Day Lockouts, 3-Second Turn Latency, Exact Code Context (Zero Loss), and Developer Flow:

⚡ SQLite FTS5 BM25 Code Indexer & Search (scoped_search, tokensafe search): Native SQLite full-text search with trigram tokenization and BM25 relevance ranking (<1ms) across the repository. Replaces raw terminal grep entirely with zero-token-waste search.

🔗 SQLite Graph Cache & Cross-Boundary Route Linking: Persistent SQLite caching (.tokensafe/cache/graph.db) with bidirectional semantic linking between frontend client endpoints (fetch, axios, apiClient) and backend HTTP routes (FastAPI, Express, Flask, Next.js).

🖼️ Vision Image Downscaler (optimize_image, tokensafe optimize-image): Automatically scales down oversized screenshots, architecture diagrams, and mockups (>1024px) via Pillow or macOS sips, saving 50–75% vision tokens while keeping original files intact.

🧠 Anti-Stuck Dead-Ends Ledger (get_mistakes, tokensafe mistakes): Persistent project memory tracking failed hypotheses, loop guard trips, and git reverts to prevent agents from cycling through already-failed solutions.

🧹 Transcript Superseded Output Pruning (prune_superseded, tokensafe prune-superseded): Prunes obsolete intermediate tool reads that were superseded by subsequent edits or re-reads in long agent transcripts (-30-40% context).

🧼 ANSI Escape Sequence Stripper: Cleans all ANSI/VT100 escape codes from tool outputs, test runners, and proxy streams before they enter model context.

👻 Ghost Tokens Auditor (tokensafe doctor): Detects and cleans redundant multi-IDE configuration files (.cursorrules, CLAUDE.md, .windsurfrules, .clinerules) and oversized rule files, saving 2,000–5,000 wasted ghost tokens on every turn.

🛡️ Exact Code Context & Reversible Stash (expand_ref): 100% byte-exact target symbol preservation with reversible 8-char hash anchors (#a1b2c3d4) to instantly recover any folded block.

🌲 C# Tree-sitter Support: Native AST slicing and God Nodes detection for C# (tree-sitter-c-sharp) alongside TypeScript, JavaScript, Python, Go, Rust, Java, Kotlin, and PHP.

Connect TokenSafe to the AI coding agents on your workstation in one command:

# Option 1: Zero-Install via npx (recommended) npx tokensafe # Option 2: Python / PyPI pip install tokensafe && tokensafe # Option 3: Direct shell script (macOS / Linux) curl -fsSL https://tokensafe.dev/install.sh | bash The installer detects which agents live on your machine, registers the TokenSafe MCP server, injects project rules, and wires lifecycle hooks where the agent supports them.

Runtime requirements

CPython 3.10+ (3.11+ recommended). If no suitable interpreter is found, the npm launcher provisions a pinned, SHA-256-verified CPython 3.12 build into ~/.tokensafe/runtime and installs the dependencies there, so TokenSafe works on a machine without Python. One-time download: 25 MB on macOS, 47 MB on Windows, 53-68 MB on Linux. Opt out with TOKENSAFE_NO_DOWNLOAD=1, force a specific interpreter with TOKENSAFE_PYTHON=/path/to/python3, relocate the whole tree with TOKENSAFE_HOME.

cryptography>=42.0 is the only required Python dependency (Ed25519 license checks, under 1 ms per validation).

Optional accelerators, installed by default but not required: tree-sitter plus grammar wheels for AST-accurate slicing across 10 languages (without them the slicer falls back to stdlib heuristics; disable with TOKENSAFE_TREESITTER=off), and Pillow for cross-platform image downscaling (macOS falls back to sips).

The managed runtime is pinned in bin/python-runtime.json: CPython 3.12.16 from astral-sh/python-build-standalone, five platform builds, every archive verified against a hardcoded SHA-256 before extraction.

Claude Desktop / Cursor MCP config:

{ "mcpServers": { "tokensafe": { "command": "npx", "args": ["-y", "tokensafe", "mcp"] } } } Cloud features (team metrics, managed distillation, shared team cache, billing) run on the remote endpoint https://api.tokensafe.dev/mcp with Authorization: Bearer . Four public tools work without a key, so ChatGPT connects with authentication set to None.

Full per-agent configuration, hook details, and the Codex/ChatGPT setup live in docs/AGENT_SETUP.md.

# View live savings dashboard in your terminal tokensafe stats ⚡ TOKENSAFE CONTEXT OPTIMIZER DASHBOARD Total Tokens Saved: 4,524,156 tokens Efficiency Gain: [████████████████████████░░] 92.5% Context Traffic: 4,889,255 raw → 370,574 optimized (2,132 events) • Command Sanitizer (CLI) : 727,300 tokens saved (263 events) • Architecture Graph : 758,256 tokens saved (13 events) • Multi-turn History Fold : 2,897,897 tokens saved (471 events) • Prompt Compactor (local+cache) : 43,502 tokens saved (1,255 events) # Audit your environment: MCP tool overhead, skills tax, risky settings tokensafe doctor # Recursive security & hygiene audit of a repository tokensafe guard audit # Preview prompt compaction on custom input tokensafe test "fix the validate_token method in src/auth.py to check jwt expiration" # Map architectural hotspots before multi-file changes tokensafe graph # Disable a heavy MCP server without editing JSON tokensafe mcp disable # Compile and preview the Friday team ROI digest tokensafe digest # Scaffold a new token-optimized project for AI agents tokensafe create my-app --template fullstack # tokensafe-ui + tokensafe-python tokensafe create my-service --template go # tokensafe-backend (Go) # Retrofit existing apps for AI agents (out-of-the-box stack detection) tokensafe integrate # Generates .tokensafe/oumv.json with safe defaults tokensafe adapters # Catalog of frontend & backend OUMV adapters tokensafe oumv doctor # Verify live dev-server & static AST capabilities # Activate a Team or Solo license key tokensafe activate TS2.eyJlbWFpbCI6... The full command reference (24 commands) is in Reference.

Giving coding agents raw access to entire repositories creates three daily costs:

Senior hours burned on AI PRs: reading 2,000-line modules for a 10-line fix makes models forget imports, invent methods, and regress adjacent code.

Secret leaks and unsafe shortcuts: static prompt rules in .cursorrules wear off mid-session. Agents hardcode fallback credentials, disable TLS checks, or stage .env files with git add ..

Mid-sprint quota stops and blind spend: bloated diffs, lockfiles, and verbose MCP schemas burn 5-hour limits while engineering leads lack per-seat ROI visibility.

A $29 seat pays for itself by saving one hour of senior code review or preventing one leaked key. Typical payback: 1 to 3 days of team usage.

One contrast: an agent asked to change one helper in a 1,420-line file receives 94 lines of target logic and type contracts instead of the whole module. The same principle applies to terminal output, diffs, and session history.

When an operation is blocked, the agent sees an explicit, constructive message:

🛡️ TokenSafe Guard: Blocked a hardcoded secret fallback in config.py. Leave the default empty or read from os.environ at runtime. 10 Core Engine Capabilities

Why TokenSafe agents ship working code on the first pass without burning quotas or leaking keys:

Deeper mechanics (language matrix, AST syntax trees, cache tiers, governor) live in docs/ARCHITECTURE.md.

Reads, ingress, recovery, and host coverage

Compaction is the most expensive event in a long session, and a full re-read after every edit is the most common one. TokenSafe now handles both explicitly.

Only hosts with a context-injection surface receive hook-injected digests (Claude Code, ZCode, Kimi Code, Antigravity). Cursor, Codex, Claude Desktop, Windsurf, Cline/Roo, and Copilot get the MCP tools, rules, transcript recall, and the fallback compaction detector; their host contracts expose no equivalent injection point today.

What happens on the first prompt

You install TokenSafe, open a project in your agent, and the first turn does the wiring:

Detect the stack (React/Vue/Solid/Angular + Vite, FastAPI, Flask, Django, Go/Gin|Chi, Node/Express|Fastify, Next.js, Elysia on Bun, ASP.NET Core, Spring, Laravel/Symfony, or nothing supported) — every supported app in a monorepo, not just the first.

Activate the adapters: frontend — tokensafe dev serves OUMV from an inline Vite config; no file in the repository changes;

FastAPI — a global ~/.tokensafe/pyhooks/sitecustomize.py mounts mount_tokensafe(app) when the server runs through tokensafe run-backend uvicorn ...;

Go — one AutoMount() line between tokensafe:oumv markers, byte-exact backup in ~/.tokensafe/inject/, go build validated; --revert restores the entrypoint and go.mod/go.sum when they were not edited after inject (net/http gets a printed manual recipe instead, and Echo is reported as planned);

Node (Express/Fastify) — one mountTokensafe(app) / registerTokensafe(app) line, same markers and byte-exact revert; ASP.NET Core — one AddTokensafe()/UseTokensafe() pair;

Next.js (App Router) — three generated files: app/api/tokensafe/route.ts (createNextRouteHandlers, bridge on), app/api/tokensafe/bridge/route.ts (the browser bridge) and instrumentation-client.ts (installNextBridge, Next ≥ 15.3); older Next gets the two route files plus a manual snippet. --revert deletes exactly the files it created and restores a pre-existing v1 route it upgraded;

Elysia (Bun) — one app.use(oumv()) line before app.listen() (tokensafe-backend-node/elysia), same markers and byte-exact revert;

Flask / Django — certified WSGI adapters mounted explicitly: mount_tokensafe(app) in the app factory (wraps app.wsgi_app) or mount_tokensafe(application) in wsgi.py; tokensafe inject --status prints the recipe and writes nothing, because the WSGI application is yours to wrap.

Brief the agent — a short routing block (hook context and MCP instructions) says which stack is worked through OUMV and which through the TokenSafe tools. Nothing is written into the repository by the brief.

Without a live runtime oumv stays useful and says what it did: observe/understand/index answer from the static graph, verify answers a labelled static subset (OFFLINE_STATIC_VERIFY: file exists, syntax, OCC version, symbol/route presence) instead of failing, and observe on a file at L1+ returns the same skeleton a read would and seeds the read cache — a later smart_read_file on that file returns a pointer instead of the body again.

tokensafe inject --status # what would be wired, and where tokensafe inject --dry-run # same, but explicit tokensafe inject # apply every detected app (config + Python autoload + adapter lines) tokensafe inject --revert # undo every patch: Go entrypoint/modules, .NET csproj, Next files, Python hook, config tokensafe create shop --template react-fastapi # greenfield with everything pre-wired tokensafe oumv doctor # readiness: adapter installed? runtime live? blocking reasons Full matrix and details: docs/OUMV.md.

Measured agent matrix v7 (Go + React, DeepSeek — 3 tasks × 5 runs × 3 arms)

Real 12-assertion oracle re-run after every step; tokens and cost from the provider's usage payload. baseline = file/search/command tools, tokensafe = this product's MCP server (smart_read_file(endpoint="POST /api/…") in one call → apply_edits with the hunk and inline verify="auto"), oumv = the OUMV runtime measured in November 2026 (observe L3 returns the handler, its version and the same-package callees; applyEdit mode=patch carries an inline verify probe and an actionable -32009). The Go sandbox is the benchmark module plus 200 generated service files; the React sandbox is a TaskManager store + component whose declared npm test is the oracle.

vs baseline — Go: oumv -79.2% input, -77.8% cost, -55.1% steps; tokensafe -74.4%, -76.4%, -48.3%. React: oumv -46.7% input, -52.7% cost, -14.9% steps; tokensafe -34.9%, -50.4%, -12.2%. Every session in both matrices solved — the v6 max-steps flounder on product-validation is gone. On Go the protocol arm creates the fix in 2.0 calls against the product arm's 3.2 and ties it on the other two tasks; on React a component has no endpoint for a route slice, so the protocol arm's getSource → patch path wins there as well.

Full method, per-task tables, both targets, the min–max spread and the limits (one model, alias drift between dates, cache-hit share): OUMV_AGENT_MATRIX_V7.md in the backend repo, generated from the run JSON by go/benchmark/render_agent_matrix.py. The previous measured run is OUMV_AGENT_MATRIX_V5.md.

--- | :--- | :--- | :---: | :---: | :---: | :---: | | Frontend (UI) | tokensafe-ui | React 18/19 vs. TokenSafe UI | 21.0x | -95% (1.5k vs 32.5k) | 1 vs 6 turns | Zero reactive stale closures | | Backend (Python) | tokensafe-python | Vanilla FastAPI vs. TokenSafe UARP | 23.5x | -96% (1.4k vs 33.3k) | 1 vs 6 turns | 0 DB pollution (automatic rollback) | | Backend (Go) | tokensafe-backend | Vanilla Gin vs. TokenSafe Backend | 24.6x | -96% (1.3k vs 33.9k) | 1 vs 6 turns | 0 DB pollution + in-memory compiler guard |

Reference run across 10 production engineering scenarios (169,761 baseline tokens down to 8,173 tokens, -95.2% net context reduction, -99.4% peak single-scenario reduction, +30.6% turn latency speedup with 100% accuracy retention):

Prompt compaction, graph topology (SWE-06), dep_mode="signature" slicing (SWE-07), repeat-read pointer dedup (SWE-09), and parametric slot cache hits (SWE-10) are measured live (1,368 optimized tokens) while baselines (169,761), turn counts, and output estimates (6,805 tokens) are modeled constants. See METRICS.md and BENCHMARK_REPORT.md.

Why "Up to 99%" (Multiplicative Math & Honest Boundaries)

TokenSafe combines two multiplicative savings layers rather than relying on AST compression alone:

Context Token Reduction (-85% to -99.4%): Graph-guided dep_mode="signature" keeps only the edited symbol body intact while collapsing imports and 1-hop dependency implementations into signatures (-95.4% in SWE-07), Architecture Discovery maps repos in < 350 tokens vs. full crawls (-99.4% in SWE-06), and repeat reads resolve to ~75-token integrity pointers (-98.8% in SWE-09, or -99.56% on raw file re-reads).

KV-Cache Prefix Locking (90.8% hit rate at 0.10x cached-read rate): The Append-Only Epoch Governor (ContextGovernor) freezes history prefixes monotonically up to 80% of the model context window while PromptCacheNormalizer strips volatile metadata, sorts tool schemas, and injects provider cache_control breakpoints / prompt_cache_key. In a live 20-turn replay over src/*.py (BENCHMARK_REPORT.md):

Honest bounds: When ~85–95% fewer context tokens combine with a 90%+ KV-cache hit rate billed at 0.10x, cached input spend approaches 1–2% of uncached cost (up to ~99% savings) on graph-first, repeat-read, and cache-warm workflows. Total session invoices typically fall 80–97% because newly generated output tokens and first-turn cache writes are never discounted by KV-caching.

How to read these numbers: this benchmark is a simulated harness. Compression ratios and 20-turn KV-prefix byte matches are computed live from real files, while baselines and turn speedups are modeled. Production events in TokenSafe are explicitly labeled measured or estimated (see METRICS.md).

Real-Repository Benchmark (measured on live clones)

No modeling: fifteen popular repositories across 10 languages (Python, TypeScript, JavaScript, Go, Rust, Java, Ruby, PHP, C#, Swift, C) cloned at HEAD, scenarios pre-registered before measurement (tokensafe/bench_scenarios.json), every token counted on real bytes, and deterministic zero-loss gates that disqualify any scenario they fail. Curated rows (all rows in docs/BENCHMARK_REAL.md):

Aggregate: ~25.7M measured tokens saved per traced pass over all 15 repositories in 10 languages (186 gated-OK rows; input at $3/M, output axis at $15/M, KV-cache hits billed at $0.30/M). Clean pytest suites honestly score ~0-3% — savings are never invented. 17 gate-FAILs and 21 skips are published with reasons on the live page (e.g. fastapi's test-output: strict warning filters escalate a pytest-asyncio deprecation into a pytest INTERNALERROR; whole-repo API surfaces bigger than hub crawls for fastapi/httpie; httpie's core.py refuses skeletonization — one function is most of the file). Full table + raw JSON: docs/BENCHMARK_REAL.md · live page: https://tokensafe.dev/bench · methodology post: https://tokensafe.dev/blog/real-repo-benchmark-5-repos. Reproduce:

tokensafe bench --real # all 15 pre-registered repos tokensafe bench --real --repo=pallets/flask # one repo tokensafe bench --real --here # your current repository Head-to-Head Competitor Benchmark (Measured on Real Repositories)

We cloned 8 popular open-source repositories across Python, Go, C, and Java, and tested JayPokale/Chisle, alexgreensh/token-optimizer, and TokenSafe (v4.1.2) on the exact same hub files and target functions. Every token was counted with a calibrated BPE tokenizer on real bytes.

Deterministic zero-loss gates disqualify any output where the code fails to compile/parse, or where the targeted function is missing. Savings without code correctness are just destructive truncation.

Key empirical takeaways:

Chisle scores 0.0% reduction on code reads: its lifecycle hook hardcodes const NEVER_COMPRESS = ['read', 'edit', 'write'] to avoid breaking diffs without an AST parser.

token-optimizer failed 6 out of 8 zero-loss gates: on Python files, its structure_map.py emits invalid pseudo-YAML text outlines and caps methods at 4 (MAX_SKELETON_METHODS_PER_CLASS = 4), discarding up to 56 methods including the target function. On Go, C, and Java, it performs blind regex truncation.

TokenSafe achieves 34.1% to 79.9% real token reduction with a 100% Gate PASS rate: using native Tree-sitter AST polyglot grammars, TokenSafe keeps 100% of the target function's executable body intact byte-for-byte, produces valid syntax, and enables 0ms bit-exact restoration via #hash and expand_ref.

Architectural Comparison: TokenSafe vs. Competitors

Why token-optimizer Reports Smaller Token Numbers (and Why It Fails Zero-Loss Gates)

When running benchmarks on large repositories, developers often ask: Why does token-optimizer show 317 tokens on Flask while TokenSafe shows 3,784 tokens?

The answer lies in what each tool actually passes to the model:

Pseudo-YAML vs. Executable Code: token-optimizer replaces Python source code with a plain text outline (lines: 1687\nimports (50):\nclasses (1): ...). This is not valid Python syntax; running ast.parse() on it raises an immediate SyntaxError.

Arbitrary Method Dropping: In structure_map.py, token-optimizer enforces MAX_SKELETON_METHODS_PER_CLASS = 4. Flask's App class defines over 60 methods. token-optimizer took the first 4 methods and discarded the other 56 methods, including the exact target function full_dispatch_request the agent was supposed to inspect and edit!

The Book Analogy: Tearing out 98% of the pages in a novel and handing someone only a 4-line table of contents reduces token count by 98%, but completely destroys the chapter. If an agent cannot see the function body, it cannot fix bugs or generate valid diffs; it is forced to hallucinate code.

TokenSafe's Zero-Loss Guarantee: TokenSafe reduces Flask from 18,864 down to 3,784 tokens (-79.9%) using native Tree-sitter AST parsing. It preserves 100% of the target function's executable body byte-for-byte, keeps 1-hop typed caller contracts, produces 100% valid Python syntax, and allows any folded block to be recovered via #hash and expand_ref.

Why Chisle Shows 0% on File Reads: JayPokale/Chisle lacks an AST parser. To prevent models from hallucinating edits against missing code, its lifecycle hook hardcodes const NEVER_COMPRESS = ['read', 'edit', 'write']. As a result, reading code files (the largest source of context consumption) passes 100% uncompressed into context.

Why Alternative Approaches Fall Short

Prompt Engineering Alone (Chisle) Cannot Enforce Contracts: Prompt rulesets like Chisle ("be concise", "caveman prose", "YAGNI code") rely entirely on the LLM's willingness to follow negative instructions. As context grows past 10–15 messages, models suffer Lost in the Middle amnesia, ignore prompt rules, and revert to dumping 2,000 lines of boilerplate. Furthermore, truncating bash command outputs via shell pipes permanently destroys tracebacks and compiler errors, causing agents to enter infinite repair loops.

Heuristic Regex Slicing (token-optimizer) Breaks on Real Codebases: Regex-based AST slicing fails when parsing modern polyglot codebases with nested generics (>), decorators, async generators, and multi-line macros. TokenSafe uses native C Tree-sitter grammars across 13 languages with exact start/end byte offsets, eliminating bracket miscounts while preserving 1-hop caller contracts.

The Zero-Loss Invariant (#hash & expand_ref): Unlike tools that irreversibly discard folded content, TokenSafe hashes every compressed artifact into an 8-character anchor ([TokenSafe folded: #a1b2c3d4 ...]). Any agent can call tokensafe:expand_ref('a1b2c3d4') to retrieve 100% bit-exact original bytes in 0ms without re-running commands.

Pre-Git Security vs. Blind Agents: Autonomous coding agents frequently run git add . containing .env files or introduce hardcoded API keys as fallback parameters in environment lookups. TokenSafe is the only tool with an inline security guard that blocks both credential fallbacks and secret file reads locally before anything reaches LLM transcripts or git commits.

TokenSafe labels every savings event as one of:

measured: the model literally received fewer bytes than the tool produced (sliced file reads, filtered command output, AST skeletons).

estimated: the model received a compact artifact and saved tokens are counted against a reasonable baseline (architecture graph vs. a full repo crawl; folded history digest injected while raw history stays in context).

Totals always display the split (X metered · Y est.). When a live metric is missing, the UI shows — rather than a placeholder number. USD figures are derived approximations (tokens × $1.5 / 1M), not provider invoices. Full contract: METRICS.md.

Pricing and 7-Day Team Trial

TokenSafe follows an open-core model: verify local context savings and guardrails on your own repo first, then roll out team caching, org policies, and per-seat ROI.

Working solo? Individual Solo plans start at $9 / mo ($89 / yr).

7-Day Free Trial · Offline Ed25519 Seat Keys (TS2.*) · Zero Source Code Transmitted · Cancel anytime

Start a 7-Day Team Trial Run Free Locally

Does my source code leave my machine? No. Slicing, guarding, compaction, and metrics run locally. The cloud receives only counters (token totals and event types), never file contents or prompts. Set TOKENSAFE_TELEMETRY_DISABLED=1 to disable all telemetry sync; local features keep working.

How does offline license verification work? License keys are TS2.* tokens signed with Ed25519. Your client verifies the signature offline against an embedded public key and caches the result for up to an hour. Enforcement never requires a network round trip.

What do measured and estimated mean? measured means the model literally received fewer bytes than the tool produced. estimated means savings are counted against a reasonable modeled baseline. The dashboard always shows the split and never invents numbers for missing data.

What exactly does the $29/seat plan include? Unlimited compaction and managed cloud distillation (zero API keys for developers), the shared L3 monorepo cache, org-wide guard policies, the Friday per-seat ROI digest, and centralized seat provisioning and revocation. Billed annually it is $290/seat/year (~$24/seat/mo).

Can we self-host? The Enterprise & VPC plan covers a private VPC Docker proxy with BYOK provider keys, zero-telemetry / air-gapped mode, and SAML/OIDC SSO, deployed together with the TokenSafe engineering team: corp@tokensafe.dev.

What happens if a hook fails? All hook adapters fail open: an internal error never stalls your agent. Failures are logged locally so they can be reported and fixed, not silently swallowed.

Observation is free on every plan. The write tools (oumv_mutate, oumv_preview, oumv_verify, oumv_build) need Solo or higher: guest and free run OUMV's read-only profile, where those methods are absent and answer -32601.

Endpoint: https://api.tokensafe.dev/mcp, auth Authorization: Bearer .

tokensafe stats / markdown / html Savings analytics (terminal / .md report / dashboard) tokensafe search [--path

] Fast SQLite FTS5 BM25 code search (<1ms) tokensafe index [dir] [--clear] Index repository into SQLite FTS5 trigram database tokensafe expand-ref Restore folded tool/command/file result by its 8-char hash tokensafe optimize-image Downscale image >1024px via Pillow or macOS sips tokensafe prune-superseded Prune obsolete intermediate tool reads from transcript tokensafe mistakes [list|record|clear] Anti-stuck dead-ends ledger & prompt guard tokensafe web Fetch web page/docs and print clean compact Markdown tokensafe wrap Run command with compact output folding & ANSI stripping tokensafe doctor [--cleanup] Audit MCP tool overhead, ghost tokens & conflicts tokensafe benchmark Zero-context-loss benchmark suite (simulated harness) tokensafe bench --real Measured benchmark on real repos (zero-loss gates) tokensafe graph / map / skeleton Architecture graph / API surface / AST skeleton of a file tokensafe test "" Preview prompt compaction on custom input tokensafe guard "" Pre-flight safety check for a shell command tokensafe guard audit [path] Recursive source audit for secrets & vulnerabilities tokensafe digest [--send] Compile (and optionally dispatch) the weekly team digest tokensafe integrate [--dry-run] Detect project stack and scaffold OUMV Retrofit config tokensafe adapters Show catalog of frontend/backend OUMV adapters tokensafe oumv doctor Audit OUMV runtime connectivity and capabilities tokensafe mcp list|disable|enable Manage configured MCP servers tokensafe proxy [port] Local transparent AI proxy (127.0.0.1:8765/v1) tokensafe proxy on/off/status Daemon + agent wiring with one-command rollback tokensafe install / setup [--all] Configure detected agent environments tokensafe update / check-update Self-update / check for a newer version tokensafe activate Activate a Team or Solo license key tokensafe login / logout Authorize or unlink this device via browser tokensafe license Show active tier and trial state tokensafe providers List distillation providers and active mode tokensafe sync Sync local telemetry with the cloud dashboard tokensafe prune [--days N] Compact metrics database (roll old events) tokensafe vacuum Reclaim SQLite disk space tokensafe tests [pytest] Run the unit test suite (compact failure report) tokensafe reset Reset all local token metrics tokensafe --version Print version and exit Proxy mode & agent coverage (v3.0.0)

One command wires everything it safely can:

tokensafe proxy on # installs a keep-alive daemon (launchd/systemd), wires Claude Code, prints manual steps for the rest tokensafe proxy status # health, wiring state, last traffic tokensafe proxy off # rollback: unwires agents (previous base URL restored) and removes the daemon The daemon keeps the proxy alive on 127.0.0.1:8765, on rewires agents only after a verified /health answer (a dead proxy never bricks an agent), and every wiring is backed up for off. tokensafe install and tokensafe update ask interactively whether to enable the proxy (skipped in non-TTY/scripted runs); prefer manual? Run tokensafe proxy in a terminal and point your agent's base URL at http://127.0.0.1:8765 yourself:

Proxy-only (A/B/D): Tool Result Ledger (folds aged tool results in-flight, TOKENSAFE_TOOL_LEDGER=0 to disable), session-stable cold-tool pruning (opt-in: TOKENSAFE_TOOL_PRUNING=1, TOKENSAFE_TOOL_PRUNE_KEEP, TOKENSAFE_TOOL_PRUNE_ALLOWLIST), managed-cloud history distillation (paid, opt-in: TOKENSAFE_HISTORY_DISTILL=1).

Hooks (all agents): PostToolUse stdout compaction, PreToolUse shell/secret guards, Output Guard steering full-file writes to surgical edits, prompt compaction, history folding.

Folded originals are archived under ~/.tokensafe/data/tool_ledger/ and every fold carries a deterministic re-hydration anchor — nothing is destroyed, and already-folded results are never re-processed (KV-cache stable).

OUMV Retrofit: Universal Agent Runtime & Progressive Adoption

TokenSafe integrates with the OUMV Protocol (Observe, Understand, Mutate, Verify), providing AI coding agents with a structured, machine-readable interface to existing web and backend applications without requiring framework migrations.

Out-of-the-Box Stack Detection: TokenSafe automatically detects your application stack (package.json, go.mod, pyproject.toml, Vite, Next.js, FastAPI, Gin) and configures agent tooling dynamically.

Level 1 Static AST Fallback: When live dev-servers are offline, oumv_observe and oumv_understand gracefully fall back to zero-config static AST component trees and route maps with evidence tracking.

Consolidated Adapters: Frontend: tokensafe-ui/react, tokensafe-ui/vue, and the zero-footprint Vite bridge (tokensafe-ui/vite) that also serves Solid (--framework solid) and Angular (--framework angular, Vite/Analog dev server), with a session token stored in the per-workspace descriptor (~/.tokensafe/runtimes/.json, mode 0600).

Backend: Go (gin, chi, stdhttp), Node (express, fastify, next, elysia), Python (fastapi, starlette, flask, django), ASP.NET Core and the JDK/PHP sidecars in tokensafe-backend — eighteen manifests in the OUMV adapter matrix, every claim backed by a committed certificate.

Guarded Mutations, Enabled by Default: oumv_mutate works out of the box on Solo and above and guards every write — mandatory OCC expectedVersion, workspace path jail, syntax pre-flight, backup of previous bytes. Opt out with permissions.mutate: false in .tokensafe/oumv.json.

Automatic Wiring CLI: tokensafe inject activates every detected app (Vite wrapper, Python autoload, marker-delimited Go/.NET lines), tokensafe inject --revert undoes every patch and restores pre-existing files, and tokensafe oumv doctor reports readiness with blocking reasons.

Greenfield Recipes: tokensafe create --template react-fastapi|react-go|vue-gin|fastapi|gin generates a normal project in your stack with OUMV already wired.

More documentation: docs/OUMV.md · docs/AGENT_SETUP.md · docs/ARCHITECTURE.md · docs/API.md · METRICS.md

Development and License

The client runs on CPython 3.10+ with cryptography>=42.0 as its only required runtime dependency for Ed25519 license checks and fail-closed RS256 session verification. tree-sitter grammars and Pillow are optional accelerators with stdlib fallbacks, so the engine still slices, guards, and records metrics when they are absent. If no Python 3.10+ exists, the npm launcher downloads a pinned, SHA-256-verified CPython into ~/.tokensafe/runtime; all AST slicing, SQLite metrics, MCP tooling, and guardrails run on the standard library (details).

# Run the unit test suite (compact failure report; full: --traceback / -v) tokensafe tests Contributing: CONTRIBUTING.md

Security policy and vulnerability reporting: SECURITY.md

Metrics and honesty contract: METRICS.md

Trademark policy and certification mark rules: TRADEMARK.md

Apache-2.0 for versions 4.7.0 and newer. Versions up to and including 4.6.4 were released under MIT and remain MIT forever — that grant cannot be withdrawn, and those tags stay forkable.

Commercial licenses are available for self-hosted B2B and enterprise VPC deployments, support and indemnity. Questions: corp@tokensafe.dev · tokensafe.dev

"TokenSafe" and "OUMV Certified" are trademarks of Oleg Savelev. Apache-2.0 section 6 excludes trademark rights: the code is open, the names are not.

Released: Dec 1, 2026

Author: TokenSafe Team

Both files in this release have provenance metadata.

View provenance details

Apache-2.0 View SPDX License List

ai llm tokens token-optimization context-window cursor claude antigravity codex mcp mcp-server ast proxy jwt ed25519 zero-trust

Development Status 5 - Production/Stable

Intended Audience Developers

Programming Language Python :: 3

Topic Software Development :: Build Tools

Release files for tokensafe 5.0.3

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

Source distribution (sdist)

Built distribution (wheel)

Total release size: 2.2 MB

Release files / tokensafe-5.0.3.tar.gz

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Dec 1, 2026.

Release files / tokensafe-5.0.3-py3-none-any.whl

Security for tokensafe 5.0.3

Both files in this release have been uploaded with provenance metadata.

With provenance tokensafe-5.0.3.tar.gz Dec 1, 2026

With provenance tokensafe-5.0.3-py3-none-any.whl Dec 1, 2026

Attestation for tokensafe-5.0.3.tar.gz

Attestation for tokensafe-5.0.3-py3-none-any.whl

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

Dec 2, 2026 2 release files Full provenance

Dec 1, 2026 2 release files Full provenance

Nov 30, 2026 2 release files Full provenance

Nov 29, 2026 2 release files Full provenance

Nov 28, 2026 2 release files Full provenance

Nov 27, 2026 2 release files Full provenance

Nov 27, 2026 2 release files Loss of provenance

Nov 26, 2026 2 release files Full provenance

Nov 26, 2026 2 release files No provenance

Nov 25, 2026 2 release files No provenance

Nov 24, 2026 2 release files No provenance

Nov 23, 2026 2 release files No provenance

Nov 22, 2026 2 release files No provenance

Nov 21, 2026 2 release files No provenance

Nov 20, 2026 2 release files No provenance

Nov 19, 2026 2 release files No provenance

Nov 18, 2026 2 release files No provenance

Nov 17, 2026 2 release files No provenance

Nov 16, 2026 2 release files No provenance

Nov 15, 2026 2 release files No provenance

Nov 14, 2026 2 release files No provenance

Nov 13, 2026 2 release files No provenance

Nov 12, 2026 2 release files No provenance

Nov 11, 2026 2 release files No provenance

Nov 10, 2026 2 release files No provenance

Yanked reason: Bump-only accidental release; never existed in git/npm history (1.8.0 → 2.0.0).

Nov 9, 2026 2 release files No provenance

Nov 8, 2026 2 release files No provenance

"PyPI", "Python Package Index", and the blocks logos are registered trademarks of the Python Software Foundation.

© 2026 Python Software Foundation

Deployed from 147871d

Source Attribution: This report incorporates information referenced or syndicated from Pypi.org. Read original coverage at Pypi.org.

More from Technology →
Haldwani Times
Haldwani Times Independent News & Editorial
Login
MARKETS & FINANCE
BRENT CRUDE: $78.40 -0.52% SENSEX: 81,450.20 +0.42% NIFTY 50: 24,820.15 +0.38% GOLD (24K): ₹74,500/10g -0.18% USD/INR: ₹95.54 +0.10%

ADMINISTRATIVE LEADERSHIP

Mr. Narendra Modi
Mr. Narendra Modi
Mr. Lt. Gen. Gurmit Singh
Mr. Lt. Gen. Gurmit Singh
Mr. Pushkar S. Dhami
Mr. Pushkar S. Dhami
Mr. Lalit M. Rayal
Mr. Lalit M. Rayal
Mr. Gajraj S. Bisht
Mr. Gajraj S. Bisht

Top Headlines & Breaking Stories

View All News →

Haldwani Times – Everything in Haldwani: News, Shops, Businesses & Services

Haldwani Times is the premier digital news and commercial discovery platform built specifically for the citizens, business owners, students, professionals, and visitors of Haldwani, Nainital district, and the wider Kumaon region of Devbhoomi Uttarakhand. As the economic gateway to the Kumaon Himalayas, Haldwani is a bustling metropolis connecting the plains of northern India with the scenic mountain districts of Nainital, Almora, Pithoragarh, Bageshwar, Champawat, and Udham Singh Nagar. Haldwani Times serves as the definitive digital heartbeat of the city, bringing breaking hyperlocal news, verified commercial directories, educational updates, healthcare guides, Mandi Bhav rates, and civic announcements onto a single unified, trusted platform.

The Definitive Source for Breaking Haldwani News & Civic Updates

Haldwani stands as one of the fastest-growing urban conglomerates and commercial engines in northern India. Positioned in the fertile Terai-Bhabhar belt at the foothills of the Shivalik range, the twin cities of Haldwani and Kathgodam form the administrative and logistical nerve center for the entire Kumaon division. With rapid urbanization, expanding commercial infrastructure, flourishing educational centers, and increasing inter-state transit, the demand for fast, fact-checked, and unbiased local journalism has never been greater. Haldwani Times delivers 24/7 comprehensive news coverage built on rigorous journalistic standards: - **Hyperlocal Civic News:** Real-time coverage of municipal corporation affairs, city drainage projects, traffic management blueprints, and road widening drives across Tikonia, Mukhani, Kusumkhera, Bareilly Road, and Rampur Road. - **Administrative Directives:** Official notifications from the District Magistrate (DM) Nainital, Senior Superintendent of Police (SSP), and state secretariat decisions affecting citizen welfare. - **Kumaon Weather & Disaster Alerts:** Timely mountain rainfall warnings, landslide advisories along NH-109 (Haldwani-Nainital Highway), and emergency bulletins during the monsoon and winter seasons. - **Education & Campus News:** Timely reports on Kumaon University examination schedules, Uttarakhand Board (UBSE) results, medical college admissions, and competitive coaching updates. - **Commercial & Market Trends:** Daily wholesale Mandi Bhav rates from Haldwani Subzi Mandi, real estate trends, retail market festivals, and local business openings. - **Cultural & Pahadi Heritage:** In-depth feature stories celebrating Kumaoni folk traditions, Aipan art, Nanda Devi festivals, and local community milestones.

Everything in Haldwani on One Unified Digital Ecosystem

Beyond traditional news reporting, Haldwani Times is engineered as an exhaustive local discovery engine. Historically, finding verified local business telephone numbers, emergency hospital contacts, specialized doctors, reliable plumbers, or trusted real estate consultants in Haldwani required asking neighbors or browsing outdated social media posts. Haldwani Times eliminates this friction by organizing every commercial, professional, and civic resource into searchable, verified categories. Whether you are a newly arrived resident in Kusumkhera looking for high-speed broadband providers, a parent searching for reputable CBSE schools near Kaladhungi Road, or a tourist seeking taxi rentals to Nainital, our portal delivers accurate, verified, and actionable information in seconds.

Local Shops, Retail Hubs & Traditional Bazaars in Haldwani

The retail commerce of Haldwani spans centuries-old traditional bazaars and modern commercial complexes: - **Bada Bazaar & Mangal Parao:** The historic retail heart of Haldwani, renowned for traditional Kumaoni wedding jewelry (Pauji, Guloband, Nath), brass utensils, ethnic handlooms, and wholesale clothing. - **Nainital Road & Tikonia Commercial Corridor:** Modern multi-brand retail showrooms, electronics stores, authorized smartphone service centers, branded footwear outlets, and international apparel stores. - **Bareilly Road & Rampur Road Trade Hubs:** Major agricultural machinery dealers, hardware and building material wholesalers, furniture manufacturing units, plywood distributors, and automobile showrooms. - **Subzi Mandi & Wholesale Grain Market:** One of the largest agricultural distribution centers in North India, supplying fresh vegetables, hill fruits (apples, peaches, plums), and organic Pahadi pulses (Gahat, Bhatt, Rajma) across northern states.

Healthcare Hub of Kumaon: Hospitals & Emergency Services

Haldwani serves as the premier medical lifeline for all six hill districts of Kumaon. Patients travel from Almora, Pithoragarh, Bageshwar, and Champawat to access specialized clinical treatments in Haldwani: - **Government Healthcare Institutions:** Dr. Susheela Tiwari Government Medical College & Hospital (STGH) and Base Hospital Haldwani provide tertiary trauma care, specialized super-specialties, pediatric ICUs, and 24/7 emergency response. - **Private Multi-Specialty Hospitals:** Advanced private medical centers specializing in cardiology, joint replacements, neurology, critical care, nephrology, and advanced laparoscopic surgeries. - **Diagnostic Centers & 24/7 Pharmacies:** Fully automated pathology laboratories, high-resolution MRI/CT scan centers, and round-the-clock emergency pharmacies clustered around Medical College Road, Kaladhungi Road, and Rampur Road.

Education, Colleges, Coaching Academies & Youth Development

Haldwani is the educational capital of the Kumaon region, home to thousands of ambitious students preparing for medical, engineering, defense, and civil services careers: - **Premier Degree Colleges:** Motiram Baburam Government Post Graduate College (MBPG College) and Women's Degree College providing extensive undergraduate and postgraduate humanities, commerce, and science programs. - **Competitive Coaching Ecosystem:** Highly reputed coaching academies for NEET UG, JEE Main & Advanced, UPSC Civil Services, UKPSC/UKSSSC, NDA, CDS, and Banking examinations along Kaladhungi Road and Tikonia. - **Affiliated Schooling Infrastructure:** Esteemed CBSE, ICSE, and Uttarakhand Board schools imparting value-based holistic education with modern sports and laboratory facilities.

Real Estate, Housing Colonies & Urban Expansion Trends

Driven by rapid infrastructure expansion and high quality of life, Haldwani's real estate market is expanding outward into organized residential colonies: - **Prime Residential Localities:** Highly sought-after residential sectors in Mukhani, Kusumkhera, Kaladhungi Road, Judge Farm, Daharia, and Bhotia Parao offering planned housing, green parks, and modern civic amenities. - **Commercial Property Investments:** Thriving commercial retail complexes, office spaces, and warehouse hubs developing rapidly along the proposed Haldwani Ring Road and transport corridors. - **Property Advisory & RERA Compliance:** In-depth real estate updates, circle rate revisions by the Nainital district administration, and buyer advisory guidelines for safe property acquisitions.

Strategic Transit Gateway, Tourism Routes & Kumaon Himalayan Connectivity

Haldwani-Kathgodam is the vital transit bridge connecting the plains of Delhi NCR and Uttar Pradesh with the hill stations of Uttarakhand: - **Kathgodam Railway Terminal:** Connecting Kumaon directly to New Delhi (Shatabdi Express, Ranikhet Express), Lucknow, Kolkata, Jammu, and Dehradun. - **ISBT Haldwani:** Operating round-the-clock interstate and mountain bus routes managed by Uttarakhand Transport Corporation (UTC) and private deluxe coaches. - **Pantnagar Airport (PGH):** Located just 26 km from Haldwani, offering scheduled domestic flights to New Delhi, Dehradun, Pithoragarh, and regional hubs. - **Himalayan Tourism Hub:** The primary staging point for journeys to Nainital (34 km), Bhimtal (30 km), Mukteshwar (72 km), Kainchi Dham (42 km), Almora (90 km), Ranikhet (80 km), and Jim Corbett National Park (55 km).

Gaula River Mining, Ecological Balance & The Bhabhar Economy

The Gaula River represents the undisputed economic and hydrological lifeline of Haldwani and the broader Nainital district. Originating from the Sattal-Bhimtal catchment in the lesser Himalayas, the river flows south past Kathgodam and Haldwani before merging into the Ramganga. For generations, the Gaula riverbed has provided the foundation for both regional agriculture and the construction economy across northern India: - **Regulated Minor Mineral Extraction:** During the open mining season (typically October to May), thousands of registered tractor-trolleys and heavy dumpers harvest riverbed gravel, sand, and boulders under strict surveillance by the Uttarakhand Forest Development Corporation and the Nainital district administration. - **Livelihood Support for Over 50,000 Families:** The Gaula mining economy directly and indirectly sustains vehicle owners, drivers, mechanics, diesel pump stations, roadside eateries, and local laborers, circulating over ₹500 crore into Haldwani's local markets annually. - **Environmental Safeguards & Flood Mitigation:** In strict adherence to High Court and National Green Tribunal (NGT) directives, scientific replenishment studies, satellite GPS tracking on transport vehicles, and seasonal mining bans during the monsoon protect the river's ecological balance and prevent bank erosion along low-lying residential sectors.

Culinary Landscape: From Traditional Kumaoni Rasoi to Modern Cafes

Haldwani's gastronomic scene reflects a delightful blend of rustic mountain traditions and cosmopolitan dining: - **Authentic Kumaoni Specialties:** Local restaurants and heritage dhabas serve traditional mountain delicacies cooked in iron vessels, including Bhatt ki Churkani (black soybean curry), Gahat ke Dubke (horsegram puree), Aloo ke Gutke tempered with wild Himalayan chives (Jamboo) and Jakhiya, and refreshing cucumber Raita flavored with freshly crushed mustard seeds. - **Traditional Confectioneries:** Historic sweet shops along Bada Bazaar and Nainital Road craft Almora's world-famous Bal Mithai (roasted caramelized khoya fudge coated in sugar balls) and Singaudi (sweetened khoya wrapped in wild Malu leaves). - **Vibrant Street Food & Cafe Culture:** As dusk falls, Tikonia and Nainital Road come alive with bustling street food stalls offering steaming Tibetan momos, spiced thukpa, Kathi rolls, and hot Masala Chai, alongside modern rooftop cafes serving specialty Italian coffees and continental snacks.

Cultural Festivals, Folk Heritage & The Aipan Art of Kumaon

Beyond commercial enterprise, Haldwani is the proud cultural showcase of Devbhoomi Uttarakhand: - **Aipan Folk Art Tradition:** The sacred geometrical floor and wall art handcrafted with red ochre (Geru) and white rice paste (Biswar) adorning thresholds, altars, and chowkis during auspicious ceremonies, now preserved through local women's self-help cooperatives. - **Classical Baithki & Khadi Holi:** Unique to Kumaon, musical celebrations starting as early as the month of Paush, featuring classical Hindustani ragas sung in community courtyards followed by energetic Chholiya dance performances during spring. - **Nanda Devi & Chholiya Heritage:** Grand annual fairs celebrating the patron deity Nanda Devi, accompanied by martial sword-and-shield Chholiya dancers whose rhythmic brass trumpets (Ransingha) and hurka drums resonate through the valley.

Public Amenities, Parks & Community Spaces in Haldwani

Urban lifestyle and recreational infrastructure in the city: - **Green Parks & Walking Tracks:** Walkway projects around Daharia, Judge Farm, and Awas Vikas providing lush recreational zones for families and seniors. - **Community Centers & Sports Grounds:** Multi-purpose auditoriums and grounds hosting cultural melas, badminton tournaments, and community celebrations. - **Gaula Barrage & Forest Trails:** Scenic river viewpoints and natural birdwatching areas attracting eco-tourists and local nature enthusiasts on weekends.

Frequently Asked Questions (FAQs)

How can I access live breaking news and weather alerts for Haldwani?

Haldwani Times operates a dedicated 24/7 hyperlocal newsroom providing real-time breaking bulletins, traffic alerts, and meteorological warnings. You can access live news directly from our homepage, subscribe to instant browser push notifications, or view categorical updates on Uttarakhand, Education, and Mandi Bhav. During monsoon and winter weather events, our correspondents provide live updates on NH-109 road blockages and emergency administrative orders issued by the Nainital District Magistrate.

Is Haldwani Times completely free to read for all visitors?

Yes, Haldwani Times offers completely unrestricted, open-access reading to all users without mandatory paywalls. Readers across Haldwani, Uttarakhand, and the global diaspora can freely browse all breaking news reports, investigative articles, business directory listings, and historical archives. Our public-interest mission ensures that essential civic information, emergency hospital directories, and educational circulars remain universally accessible to everyone at zero cost.

How can local business owners list their shop or service in the Haldwani directory?

Local merchants, medical practitioners, schools, and service professionals can register their business by navigating to our 'Business Directory' page and selecting 'Add Listing'. The registration process allows you to input your business name, address, contact numbers, operational hours, services offered, and high-resolution showroom photographs. Once submitted, our local verification team verifies the physical address within 24 hours to ensure high consumer trust and top ranking on Google.

Can I read Haldwani Times articles in Hindi as well as English?

Yes, Haldwani Times features a seamless, native bilingual reading experience tailored for our regional readership. With our one-click language toggle located prominently in the navigation bar, you can instantly switch between English and pure Hindi. Both versions feature carefully crafted editorial phrasing, accurate regional terminology, and culturally resonant storytelling to ensure maximum readability for students, families, and senior citizens alike.

How do I submit news tips, event notices, or press releases to the editorial team?

Our newsroom warmly welcomes verified news tips, community event notices, civic grievances, and official press releases from citizens and local organizations. You can submit your documents, photos, or video evidence directly to our central editorial desk at editorial@haldwanitimes.com or via our Help & Support page. Our senior editors review every submission for factual authenticity, multi-source verification, and public relevance prior to publication.

Where can visitors find authentic Kumaoni Bal Mithai and Singaudi in Haldwani?

Renowned traditional sweet houses clustered along Bada Bazaar, Mangal Parao, Kathgodam Station Road, and Nainital Road specialize in daily batches of authentic Bal Mithai and fragrant Singaudi prepared with pure mountain dairy khoya and natural ingredients.

What transportation options are available for traveling from Haldwani to Nainital and Bhimtal?

Continuous state transport buses (UTC), KMOU coaches, and registered taxi union sharing cabs operate 24/7 from the Haldwani Roadways Bus Station (near Tikonia) and Kathgodam Railway Station. Fares are regulated by the transport department, with mountain travel times ranging between 1 to 1.5 hours.