2026-11-27 16:21 UTC

arcKode: local coding agent targets codebase context on modest hardware

state: expiredheat: lowuncertainty: mediumrelevance: mediumlocal-inference codebase-context sqlite memory-efficiency coding-agentGovind Gopalakrishnan

What is this?

Govind Gopalakrishnan’s arcKode is an AGPL-3.0 local-first coding agent, launched as a Show HN project. Its README says it uses Tree-sitter parsing and a SQLite/FTS5 index to retrieve code symbols, pack context to a token budget, and apply anchored edits with file snapshots, using Ollama-compatible local models. The project is aimed at constrained-VRAM machines, but the supplied sources provide no independent testing or benchmarks to verify its performance or ~6GB suitability.

Why it matters

arcKode is a practical experiment in making local coding agents more useful on modest hardware: it combines structural code indexing, token-budgeted retrieval and guarded edits with Ollama-hosted models. That could appeal to developers prioritizing privacy or avoiding cloud APIs, but the sources document the author’s design claimsβ€”not verified coding quality, speed, or performance on ~6GB VRAM. Its significance is therefore as an accessible tool to try, not evidence of a proven advance over established coding agents.

Current assessment

Govind Gopalakrishnan introduced arcKode through a Show HN post; the supplied evidence is the launch and the author’s GitHub README, not independent evaluation. The README describes an AGPL-3.0, Python 3.12+ CLI that runs with Ollama-compatible local models; parses supported code with Tree-sitter; stores file and symbol metadata in SQLite/FTS5; selects context using search and token-budget packing; and applies ordered, anchored edits with snapshots and path checks. It recommends qwen2.5-coder:7b, while the example configuration uses smaller qwen2.5-coder:1.5b models and an 8,192-token window. These details indicate a workflow intended to stretch limited model context and hardware while keeping code local. The roughly 6GB VRAM target and privacy, accuracy, safety, and codebase-wide effectiveness remain project claims: no benchmarks, independent tests, or user feedback are included. Worth tracking if adoption or comparative results emerge; for now, developers can evaluate it on their own projects, especially if local inference and data control matter more than proven performance.

Measured heat

no measured readings yet β€” the hourly heat pass fills this in

How the heat travelled

10-14 13:00⭐ origin echo-reconstructedOriginal Show HN launch of the author's own tool. README: "Local-first AI coding agent that indexes your codebase and operates within compac
govindgcoder (iamgovindg on HN; Govind G) on github (echo) Β· attributed from hn.story.50098198
β€”
10-15 01:56first on hacker news Β· published Β· +12.9hShow HN: Give (low vRAM) local sLLMs codebase-wide context with SQLite (attempt)
iamgovindg
β€”
10-15 01:56amplified on hacker news πŸ‘‘hn.story.50098198
iamgovindg
peak 3 Β· 0 comments Β· 100% of case engagement
10-15 02:20our radar first saw it Β· +13.3hdiscovery anchor: hn.story.50098198β€”

Evidence (2) β€” ⭐ canonical anchor

sourceobjectauthorscorecomments
🟧 hnShow HN: Give (low vRAM) local sLLMs codebase-wide context with SQLite (attempt)
Retrieved article excerpt

Open article Β· Retrieved 2026-10-15T02:23:15.182401+00:00

# arcKode

**Local-first AI coding agent that indexes your codebase and operates within compact VRAM constraints.**

[License: AGPL-3.0](https://www.gnu.org/licenses/agpl-3.0.html)
[Python 3.12+](https://www.python.org/downloads/)
[Built with Typer](https://typer.tiangolo.com/)
[Tree-sitter](https://tree-sitter.github.io/)

Most local AI coding tools treat your project as a flat wall of text. arcKode doesn’t.

It parses your codebase with Tree-sitter to build a live symbol graph: functions, classes, imports, call edges; then uses that graph to scope what the model actually needs to see. No hallucinated file paths. Just the slice of code that matters for the task.

> You can also input the generated codebase.json as a high level map for other coding agents.

Changes are planned as an ordered edit sequence across files, applied as targeted patches against anchored positions in live source.

The whole loop runs locally (LLMs exposed via `ollama serve`). No data leaves your machine.

arcKode works with any Ollama-compatible model; qwen2.5-coder:7b is the recommended default tho.

#### example:

[generated-html](https://private-user-images.githubusercontent.com/171372797/670757770-1efbb41e-5e3d-4603-b422-05c42c877ef4.svg?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3OTIwMzEyOTQsIm5iZiI6MTc5MjAzMDk5NCwicGF0aCI6Ii8xNzEzNzI3OTcvNjcwNzU3NzcwLTFlZmJiNDFlLTVlM2QtNDYwMy1iNDIyLTA1YzQyYzg3N2VmNC5zdmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjYxMDE1JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI2MTAxNVQwMjIzMTRaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT05ZjFlMTA3ODc4OGNjYmJiOGFkMTQxZGQ4MGUyOGUxMjkyNzA3MmJlYzhjMmM0MTY5MmE2OWQxYzdhYmNmYTEzJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZyZXNwb25zZS1jb250ZW50LXR5cGU9aW1hZ2UlMkZzdmclMkJ4bWwifQ.3cfR_yyzOY2ZApFvcGCjAybJ_H2Sw0zfOXSaY_L_ueM)


---

## Features

- **Zero external dependencies**: Runs entirely on local models via Ollama; no API keys, no cloud calls, no data leaves your machine
- **Semantic code understanding**: Tree-sitter parsing across 11 languages produces precise symbol-level blocks with signatures, dependencies, and summaries
- **Token-aware context packing**: Reciprocal-rank fusion with exact-name boosting fits maximum signal into a fixed token budget
- **Two-mode operation**: Single-shot edits for surgical changes; multi-step planner+coder for complex refactors with confirmation at each step
- **Built-in safety**: Automatic snapshots before every write, anchored edits with occurrence control, path containment checks
- **Incremental indexing**: SHA-256 change detection re-processes only modified files; summaries persist across runs

---

## Quick Start

**Prerequisites:** Python 3.12+, [Ollama](https://ollama.com/) running locally, [uv](https://docs.astral.sh/uv/)

```
# 1. Clone the repository
git clone [https://github.com/govindgcoder/arcKode.git](https://github.com/govindgcoder/arcKode.git)
cd arcKode

# 2. Install runtime dependencies
uv sync

# 3. Pull required models (one-time)
ollama pull qwen2.5-coder:7b

# 4. Install as a tool
uv tool install .

# 5. Index your project and start coding
cd /path/to/your/project
arckode index
arckode do "your task description here"
```

> **Note:** The `uv tool install .` step is intentional friction: it ensures you run the exact code you audited.

---

## Usage Examples

### Basic: Single-file edit

```
arckode do "rename the variable 'count' to 'total' in utils/metrics.py"
```

### Intermediate: Cross-file refactor with planning

```
arckode do "extract the validation logic from handlers/auth.py into a new validators/auth.py module"
```

### Advanced: Multi-step feature with auto-confirm

```
arckode do "add request ID middleware and thread it through the logging context" --mode multi --yes
```

### Inspect the index

```
# View last execution plan
arckode show plan

# Search indexed symbols
arckode show context --query "authenticate"

# Full codebase JSON export
arckode show index
```

### Configuration

```
# View current settings
arckode config

# Override models
arckode config --planner-model "qwen3.5:4b"

# Adjust thinking effort
arckode config --think-level high
```

---

## Architecture Overview

```
β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”     β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”     β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚  User Request   │────▢│ Query Expansion  │────▢│ Keyword Search  β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜     β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜     β””β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”˜
                                                          β”‚
                                                          β–Ό
β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”     β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”     β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚  Apply Changes  │◀────│   Coder Model    │◀────│ Context Packer  β”‚
β”‚  (anchored,     β”‚     β”‚  (JSON patches)  β”‚     β”‚ (RRF + budget)  β”‚
β”‚   snapshots)    β”‚     β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜     β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
β””β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”˜
         β”‚
         β–Ό
β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚    Re-index     β”‚
β”‚  (incremental)  β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
```

**Index structure** (`.vc/vcdb.db`):

- `files`: path, hash, language, size, imports
- `blocks`: symbol metadata, byte ranges, dependencies, summaries
- `blocks_fts`: FTS5 full-text search (parent\_file unindexed)

---

## Supported Languages

| Language | Extensions | Parser |
| --- | --- | --- |
| Python | `.py` | tree-sitter-python |
| JavaScript | `.js` | tree-sitter-javascript |
| TypeScript | `.ts`, `.tsx` | tree-sitter-typescript |
| Go | `.go` | tree-sitter-go |
| Rust | `.rs` | tree-sitter-rust |
| Java | `.java` | tree-sitter-java |
| C# | `.cs` | tree-sitter-c-sharp |
| Kotlin | `.kt`, `.kts` | tree-sitter-kotlin |
| Swift | `.swift` | tree-sitter-swift |



---

## Configuration

Configuration file locations (precedence order):

1. `$ARKCODE_CONFIG` (environment variable)
2. `./.arkrc` (project-local)
3. `~/.config/arckode/config.json` (user global)

```
{
  "ollama_url": "http://localhost:11434",
  "coder_model": "qwen2.5-coder:1.5b",
  "planner_model": "qwen2.5-coder:1.5b",
  "context_window": 8192,
  "reserved_output_tokens": 4096,
  "system_prompt_tokens": 2048,
  "think_level": "low",
  "think_overrides": {}
}
```

**Token budget** = `context_window - reserved_output_tokens - system_prompt_tokens` (default 2048)

---

## License

AGPL-3.0-only: see [LICENSE](https://www.google.com/search?q=LICENSE) for details.
iamgovindg30
🟧 echo.github ⭐Original Show HN launch of the author's own tool. README: "Local-first AI coding agent that indexes your codebase and operates within compacgovindgcoder (iamgovindg on HN; Govind G)β€”β€”

Interpretation history

Decision trace