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

@algiras/ak-coder

v0.1.8

Published

A hackable, hexagonal-architecture LLM agent harness for the terminal — connects to Ollama, OpenRouter, Gemini, Groq, DeepSeek, or any OpenAI-compatible endpoint

Readme

ak-coder

A hackable LLM agent harness for the terminal.

CI npm License: MIT

ak-coder is an open-source coding agent you can run locally, fork, and extend. It connects to any OpenAI-compatible LLM (Ollama, OpenRouter, Gemini, Groq, DeepSeek) and gives it a full set of developer tools — file read/write, bash, semantic search, planning mode, sub-agents, and more.

Documentation →


Install

ak-coder requires Bun ≥ 1.0.

One-shot (no install):

bunx @algiras/ak-coder

Global install:

npm install -g @algiras/ak-coder
ak-coder

From source:

git clone https://github.com/Algiras/ak-coder
cd ak-coder && bun install
bun run apps/cli/src/index.ts

Quick Start

With Ollama (free, fully local):

# 1. Install Ollama and pull a model
brew install ollama
ollama pull gemma3:4b

# 2. Start the agent in your project directory
cd ~/your-project
bunx @algiras/ak-coder

With OpenRouter (cloud, free tier available):

OPEN_ROUTER_KEY=sk-or-... bunx @algiras/ak-coder

Free model used by default: google/gemma-3-27b-it:free. Switch models in ~/.ak-coder/config.json.


Features

  • 15 built-in toolsread_file, write_file, str_replace, patch_file, bash, glob, grep_search, semantic_search, list_directory, web_fetch, delegate_task, plan, and more
  • Multi-provider — Ollama, OpenRouter, Gemini, Groq, DeepSeek, any OpenAI-compatible endpoint
  • Hexagonal architecture — core agent is fully decoupled from I/O; every component is independently testable
  • Plugin system — extend with local MCP servers via plugin.json
  • Skills — custom slash commands via SKILL.md files
  • Plan mode — structured planning without mutations
  • Sub-agents — delegate tasks to parallel agent instances
  • Eval harness — LLM-as-judge evaluation suite with 18 eval cases

Providers

| Provider | Model example | Setup | |----------|--------------|-------| | Ollama (local) | gemma3:4b, llama3.2 | brew install ollama && ollama pull gemma3:4b | | OpenRouter | google/gemma-3-27b-it:free | OPEN_ROUTER_KEY=... | | Gemini | gemini-1.5-flash | Set API key in config | | Groq | llama-3.3-70b-versatile | Set API key in config | | DeepSeek | deepseek-chat | Set API key in config |


Configuration

ak-coder stores config in ~/.ak-coder/config.json. On first run it's created automatically. To switch providers:

ak-coder /providers   # list configured providers
ak-coder /config      # show current config path

Or edit ~/.ak-coder/config.json directly:

{
  "activeProvider": "ollama",
  "providers": {
    "ollama": {
      "baseUrl": "http://127.0.0.1:11434/v1",
      "model": "gemma3:4b"
    }
  }
}

Architecture

ak-coder uses hexagonal architecture — AgentCore never imports Node.js APIs directly; all I/O is routed through typed port interfaces that swap between test doubles and real adapters without touching business logic.

Ports (packages/core/src/ports.ts): FileSystem · TerminalIo · ProcessRunner · LLMService · SessionStore · Logger

CLI adapters (apps/cli/src/adapters/): NodeFileSystem (fs/promises) · NodeProcessRunner (child_process) · NodeTerminalIo (readline, piped mode) · InkTerminalIo (React/Ink rich UI) · OpenAICompatibleLLMService (Ollama, OpenRouter, etc.)

Data flow: user message → AgentCore → ReAct loop → tool calls → port adapters → streamed response

packages/
  core/    — AgentCore, ports, ReAct loop
             tools/    — 15 tools: read_file, write_file, str_replace, patch_file,
                         bash, glob, grep_search, semantic_search, list_directory,
                         web_fetch, delegate_task, plan, index_workspace
             history/  — session persistence, TF-IDF vector store, semantic indexer
             skills/   — custom slash commands loaded from SKILL.md files
             rules/    — workspace rules from AGENTS.md / CLAUDE.md
             mcp/      — MCP client for plugin local servers
             hooks/    — plugin lifecycle hooks (beforeWriteFile, afterWriteFile, …)
             confirmation/ — per-action approval policy
             safety/   — path safety, ignore patterns
  sdk/     — plugin.json manifest format; PluginLoader (~/.ak-coder/plugins/)
  evals/   — LLM-as-judge harness: 18 eval cases, multi-provider reports,
             golden snapshot tests
apps/
  cli/     — Node.js terminal REPL (Ink UI + readline fallback)

See the Architecture ADRs for design decisions.


Contributing

git clone https://github.com/Algiras/ak-coder
cd ak-coder
bun install
bun test              # unit tests
bun run packages/evals/run.ts   # LLM evals (requires Ollama)

License

MIT