npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

aiforcecli-local

v0.1.0

Published

Standalone local coding-agent CLI for DeepSeek, GLM, and Qwen models through Ollama.

Downloads

20

Readme

aiforcecli-local

A standalone, local-first coding-agent CLI for DeepSeek, GLM, and Qwen models running through Ollama. The npm package is aiforcecli-local, and the installed executable is aiforce-local. It can run independently or through the aiforcecli-chat adapter.

Capabilities

  • Inspect and search a selected repository.
  • Create text files and apply exact, reviewable replacements.
  • Ask before every shell command, including tests and builds.
  • Stream tool activity and command output.
  • Produce deterministic change summaries and compact diffs without requiring Git.
  • Resume local sessions.
  • Emit JSONL events for automation and future adapters.
  • Use native Ollama tool calling with an enforced fallback for models without native tool support.
  • Run entirely locally with no API keys or per-token fees.

Requirements

  • Node.js 20 or newer
  • Ollama
  • Enough RAM or VRAM for the selected model
  • A model pulled into Ollama

Install for local development

git clone https://github.com/apoorviy/aiforce-local.git
cd aiforce-local
npm test
npm link

Verify the runtime and available presets:

aiforce-local doctor
aiforce-local models

Model setup

aiforce-local pull qwen
aiforce-local pull glm
aiforce-local pull deepseek

Aliases currently resolve to:

  • deepseek -> deepseek-coder-v2:16b
  • glm -> glm4:9b
  • qwen -> qwen2.5-coder:7b

You can supply any exact Ollama tag instead. Upstream availability and model licenses should be checked before redistribution.

Run the coding agent

From a repository:

cd C:\path\to\project
aiforce-local agent "Add input validation and tests" --model glm

Or select a repository explicitly:

aiforce-local agent "Fix the failing parser test" --cwd C:\path\to\project --model qwen

When the agent requests a command, the CLI displays the exact command, repository, and timeout:

Command requested in C:\path\to\project:
  npm test
Timeout: 120000ms
Approve this command? [y/N]

Only y or yes executes it. Non-interactive sessions deny commands automatically.

Resume a session using the identifier printed at startup:

aiforce-local agent "Continue and address the remaining failure" --resume local-... --cwd C:\path\to\project

Emit machine-readable JSONL events:

aiforce-local agent "Explain the project structure" --json

Inference-only commands

The original simple prompt and chat commands remain available:

aiforce-local run "Explain dependency injection" --model qwen
aiforce-local chat --model glm

Type /exit to leave interactive chat.

Safety model

  • Model-directed paths are resolved against the repository's real path.
  • Absolute paths, traversal, symlink escapes, .git, dependency/build directories, and common credential files are blocked.
  • Reads, searches, output, command duration, file size, and agent turns are bounded.
  • Existing files can only be changed through exact text replacement.
  • File deletion is not available.
  • Every shell command requires a separate approval; there is no approve-all option.
  • An ungrounded model response is rejected until the model inspects the repository.
  • Successful edits are fed back as authoritative state to prevent duplicate or stale actions.

Use the agent in a Git repository so ordinary Git review and rollback remain available.

Configuration

  • OLLAMA_HOST: Ollama server URL. Default: http://127.0.0.1:11434.
  • AIFORCE_LOCAL_DATA_DIR: optional base directory for resumable session data.

By default, sessions are stored under the platform's local application-data directory. Session records include prompts and tool results; do not ask the agent to read secrets.

Development and evaluation

npm test
npm run check

The suite includes deterministic behavior evaluations for tool trajectory, command denial, path confinement, editing, grounding enforcement, native-tool fallback, loose GLM tool syntax, and session persistence. Live model quality still depends on the selected model and machine.

Current boundaries

  • Local CLI only; no cloud deployment.
  • Integration with aiforcecli-chat is available through its built-in aiforce-local adapter.
  • No file deletion, browser automation, MCP, or unattended command execution.
  • Smaller local models can be slower and less reliable than hosted coding agents; the grounding and state gates prevent several common failure modes but cannot make every model equally capable.