
Product
PHP and Composer Support Is Now in Beta
Socket’s PHP and Composer support is now in Beta for all customers, with PHP reachability analysis generally available.
@algiras/ak-coder
Advanced tools
A hackable, hexagonal-architecture LLM agent harness for the terminal — connects to Ollama, OpenRouter, Gemini, Groq, DeepSeek, or any OpenAI-compatible endpoint
A hackable LLM agent harness for the terminal.
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.
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
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.
read_file, write_file, str_replace, patch_file, bash, glob, grep_search, semantic_search, list_directory, web_fetch, delegate_task, plan, and moreplugin.jsonSKILL.md files| 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 |
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"
}
}
}
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.
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)
MIT
FAQs
A hackable, hexagonal-architecture LLM agent harness for the terminal — connects to Ollama, OpenRouter, Gemini, Groq, DeepSeek, or any OpenAI-compatible endpoint
The npm package @algiras/ak-coder receives a total of 23 weekly downloads. As such, @algiras/ak-coder popularity was classified as not popular.
We found that @algiras/ak-coder demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.

Product
Socket’s PHP and Composer support is now in Beta for all customers, with PHP reachability analysis generally available.

Product
Socket is bringing experimental protection to Firefox, scanning 97,000+ extensions in Mozilla's official directory for malware and risky updates.

Research
/Security News
Three compromised Rust crates pulled in a malicious dependency that downloaded and executed cross-platform malware during Cargo builds.