← bobbyjohnstx.github.io

tinycode

Local-first AI coding assistant. A single Go binary embeds everything — TUI, HTTP server, session management, LLM client, and 36 plugins. No runtime dependencies. Works with any OpenAI-compatible endpoint: Ollama, vLLM, LM Studio, OpenRouter, or your own infrastructure.

Install

Three ways to start

Single binary for local dev. Container for teams. Operator for platform engineering.

Homebrew
$ brew install bobbyjohnstx/tap/tinycode
macOS and Linux
From source
$ git clone && make build
$ ./dist/tinycode
Requires Go 1.27+
Container
$ podman run -it --network host quay.io/bjohns/tinycode-container:latest
podman or docker
What's New

v2.10 highlights

  • Persistent memory (v2.10) — model-written notes persisted as MEMORY.md per git repo root. Notes tool for read/write/list. Disabled for subagents.
  • Background tasks (v2.10) — bash background: true and timeout-to-background promotion. Background task completion wakes the parent session.
  • LLM-as-judge (v2.10) — /goal without a verification command uses the model to evaluate transcript evidence instead.
  • Tool output spilling (v2.10) — oversized tool output spills to a retained file with preview and path hint. 7-day TTL, 100-file cap.
  • Local instruction files (v2.10) — @path imports in instruction files (depth 4, cycle detection). AGENTS.local.md and CLAUDE.local.md discovered automatically. Instructions discovered on read as you navigate the tree.
  • Path-scoped rules (v2.10) — rules in .tinycode/rules/ with frontmatter paths globs. Agent-scoped hooks and skill preloading in subagents.
  • Shell write classification (v2.10) — mutation heuristic detects >, >>, tee, find -delete, sed -i, sort -o. Rewind shows unrestored shell-written paths.
  • Writable roots (v2.10) — /roots add adds extra writable directories. Write/edit denied outside all roots even with auto-approve.
  • Scratch threads (v2.9) — /scratch [prompt] opens a throwaway side conversation. Shift+S toggles. /worktree creates isolated git worktree sessions.
  • /thinking everywhere (v2.8) — /thinking works on all providers: vLLM, LM Studio, OpenRouter, Ollama, Anthropic. Gemini 3.x support.

Full release notes: CHANGELOG.md

First 5 Minutes

Install, run, build something

Four workflows that show what tinycode does in practice. Copy-paste these into your terminal after installing.

Debug a failing test

$ tinycode /path/to/project

# In the TUI, type:
The test in auth_test.go is failing with "token expired."
Find the root cause and fix it.

# Or use the debug skill directly:
/debug auth_test.go is failing with "token expired"

Plan a feature before writing code

# Switch to plan mode — read-only, safe to explore
$ tinycode /path/to/project

# Press Tab to switch to the plan agent, then:
Add a /health endpoint that returns pod name,
uptime, and connected LLM providers.

# tinycode writes a plan to .tinycode/plans/
# Review it, approve, switch to build mode to execute

Review a pull request

$ tinycode /path/to/project

# Ask the code-reviewer agent:
/ask code-reviewer Review the diff on the current branch
against main. Focus on correctness and security.

Explore an unfamiliar codebase

$ tinycode /path/to/new-project

# Ask the architect agent:
/ask architect How is authentication handled in this project?
Trace from the HTTP handler to the token validation.
Terminal UI

The primary interface

Built with bubbletea (Elm architecture). Starts instantly, runs anywhere a terminal does, keeps you in the same environment as your code.

# Start in the current directory
$ tinycode

# Or point at a specific project
$ tinycode /path/to/project

# Resume last session
$ tinycode -c

# Headless API server
$ tinycode serve

Key features

  • Persistent memory — model-written notes in MEMORY.md per repo. Notes tool for read/write/list, persisted across sessions.
  • Background tasks — bash background: true, timeout-to-background promotion. Completion wakes the parent session automatically.
  • Scratch threads — /scratch [prompt] opens a throwaway side conversation. Shift+S toggles. /scratch keep saves it.
  • Collapsed output — tool blocks and thoughts collapsed by default. V expands all tools, T expands thoughts. Oversized tool output spills to retained files with preview.
  • Multi-agent orchestration — /swarm runs parallel agents as goroutines with specialist subagent types; --plan shows decomposition before dispatch.
  • Workflow commands — /effort adjusts reasoning depth, /goal runs autonomous loops (with LLM-as-judge when no verification command given), /branch forks conversations, /worktree creates an isolated git worktree session, /chdir changes directory mid-session.
  • Extended thinking — /thinking controls reasoning budget (off/low/medium/high/max) across all providers: vLLM, LM Studio, OpenRouter, Ollama, Anthropic.
  • Built-in tools — monitor watches background processes and writes to stdin pipes, notepad survives compaction, report_findings for structured review output.
  • Safety boundaries — /roots add sets writable directories; writes denied outside all roots. Shell write classification detects mutations (>, tee, sed -i). Rewind warns about unrestored shell-written files.
  • Hooks — shell hooks with SHA-256 trust, args list for direct exec, continue: true for advisory before-hooks. Agent-scoped hooks in subagents.
  • Prompt presets — /preset <name> runs saved prompt templates from presets.json.
  • Session management — resume from CLI (-c/-r), archive, HTML export, /warnings, incremental chat rendering during streaming.

Configuration

# ~/.config/tinycode/config.json (JSONC supported)
{ "model": "ollama/qwen3.5:9b", "small_model": "ollama/qwen3.5:1.7b" }

# Provider auto-discovery at startup:
# Ollama  → 127.0.0.1:11434   (override: OLLAMA_HOST)
# LM Studio → 127.0.0.1:1234  (override: TINYCODE_LMSTUDIO_HOST)
# vLLM    → requires env var   (TINYCODE_VLLM_HOST)
# OpenRouter → requires key    (OPENROUTER_API_KEY)
Web UI & API

Embedded web interface

SolidJS web UI embedded in the binary via go:embed. Same conversation, agent, and tool capabilities as the TUI, served from the built-in HTTP server.

$ tinycode serve    # headless REST + SSE API server
$ tinycode web      # server + web UI
$ tinycode attach http://host:4096  # remote TUI client
  • Non-interactive mode — tinycode run <prompt> runs a prompt and exits. --fail-on-tool-error for CI pipelines, fail-closed question handling, JSON permission hardening.
  • Remote attach — tinycode attach <url> connects a full TUI to a headless tinycode serve instance.
  • Import / export — tinycode export --sanitize redacts paths, secrets, and tool args. tinycode import restores session from JSON.
  • System prompt override — --append-system-prompt and --append-system-prompt-file inject custom instructions.
  • External editor — /editor opens $EDITOR; /editor @file edits a file directly.
IDE Integration

Agent Client Protocol

tinycode supports the Agent Client Protocol (ACP) for IDE integration. Editors connect to tinycode via stdio.

# Start an ACP server for your editor
$ tinycode acp --cwd /path/to/project
  • VS Code extension — reference extension included at packages/vscode-extension/. See docs/acp-integration.md for building custom integrations.
  • Supported editors — VS Code, Zed, JetBrains (any editor implementing ACP).
Agents, Skills & Plugins

23 agents, 7 skills, 36 plugins

Tab cycles build, general, ops, plan, architect, code-reviewer. Models at 14B and under receive compact prompts. Plugins are standalone Go binaries over JSON-RPC.

Built-in agents

build
Default, delegates to specialists
general
Plain assistant
ops
Cluster & host administration
plan
Read-only research & planning
architect
Design and trade-offs
code-reviewer
Severity-rated review
code-simplifier
Clarity and maintainability
debugger
Root-cause analysis
executor
Scoped code changes
analyst
Acceptance criteria
critic
Plan and gap review
designer
UI implementation
document-specialist
External docs & references
explore
Fast codebase search
git-master
Commits, rebase, history
qa-tester
Interactive CLI testing
scientist
Data analysis & research
scout
Upstream dependency source
security-reviewer
OWASP Top 10, CVEs
test-engineer
Tests and TDD
tracer
Competing explanations
verifier
Proof a change works
writer
Technical documentation

Skills & slash commands

Slash commands like /debug, /review, /trace, /plan, /verify, and /test invoke the matching agent. Bundled skills provide checklists and workflows.

  • /scratch — throwaway side conversation; /scratch keep saves, Shift+S toggles
  • /worktree — create a git worktree and start a child session in it
  • /chdir — change working directory mid-session
  • /preset — run saved prompt templates from presets.json
  • /warnings — show session-scoped warnings; /warnings clear resets
  • /instructions — show scoped instruction block listing
  • /roots — manage writable directories; /roots add <path> allows writes outside the session root
  • /incident — incident response checklist for the ops agent
  • /change — change management workflow for the ops agent
  • /host — host administration checklist for the ops agent
  • /doctor — diagnose tinycode configuration and environment issues
  • /mcp-setup — configure MCP servers via guided menu
  • /remember — triage session findings across memory surfaces
  • /deepinit — generate per-directory AGENTS.md files across a codebase

Plugins

36 built-in plugins ship as standalone Go binaries. Build custom plugins with the Go SDK in pkg/plugin/. See docs/plugin-development.md.

  • Built-in — code-review, context-pruning, handoff, notify
  • General — log-sanitizer, safety-net, pilot, telemetry, wiki
  • OpenShift — ocp-context-injection, ocp-obs-metrics, ocp-obs-logging, ocp-must-gather, ocp-odf, ocp-virt
  • Ansible — aap-bridge
  • RHOAI — rhoai-serving, rhoai-pipelines, rhoai-mlflow
  • Platform — satellite, quay, rhdh, tekton, rhacm, rhacs, rh-api-catalog, rh-dev-content, rh-ecosystem-catalog, rhdp-provisioner, container-linter, lightwell
  • Diagnostics — audit-logs, etcd-diag, ingress-inspect, insights, semgrep
Container

tinycode-container

github.com/bobbyjohnstx/tinycode-container

OCI container image packaging tinycode with tmux and git. Built on UBI9, multi-arch (amd64 + arm64), OpenShift arbitrary-UID compatible.

# Run with Ollama on the host network
$ podman run -it --network host \
  -e TINYCODE_SERVER_PASSWORD=changeme \
  quay.io/bjohns/tinycode-container:latest

# With a remote vLLM endpoint
$ podman run -it -p 4096:4096 \
  -e TINYCODE_VLLM_URL=http://your-vllm-server:8000 \
  -e TINYCODE_SERVER_PASSWORD=changeme \
  quay.io/bjohns/tinycode-container:latest

Deploy to OpenShift / Kubernetes

$ kubectl apply -k k8s/base                  # Deployment + Service + Route
$ kubectl apply -k k8s/overlays/ephemeral     # no PVC, testing only
$ kubectl apply -k k8s/overlays/ingress       # vanilla K8s with Ingress

Features

  • GitOps mode — clone a repo on startup via TINYCODE_GIT_REPO, optional auto-pull on restart.
  • vLLM auto-config — set TINYCODE_VLLM_URL to auto-configure endpoint and model.
  • Cluster-admin mode — TINYCODE_CLUSTER_ADMIN=true downloads oc CLI for cluster management.
  • Swarm tool — includes tmux for supervised multi-worker sessions with shared persistence.
  • RHOAI auto-detection — detects Kubernetes environment and disables LSP downloads in air-gapped clusters.
Operator

tinycode-operator

github.com/bobbyjohnstx/tinycode-operator

Kubernetes Operator for OpenShift. Manages TinycodeInstance custom resources with Helm-based reconciliation. Handles Routes, PVCs, SCCs, vLLM auto-probing, and pod lifecycle.

Install the operator

$ git clone https://github.com/bobbyjohnstx/tinycode-operator
$ cd tinycode-operator
$ make push IMAGE_ORG=yourorg IMAGE_TAG=v0.1.0
$ make install OPERATOR_IMAGE=quay.io/yourorg/operator:v0.1.0

Prepare a namespace

$ oc new-project tinycode-dev
$ oc create rolebinding tinycode-operator-admin \
  --clusterrole=admin \
  --serviceaccount=tinycode-operator-system:tinycode-operator-manager \
  -n tinycode-dev
$ oc create secret generic tinycode-password \
  --from-literal=TINYCODE_SERVER_PASSWORD=mysecretpass \
  -n tinycode-dev

Create a TinycodeInstance

apiVersion: tinycode.dev/v1alpha1
kind: TinycodeInstance
metadata:
  name: my-tinycode
spec:
  vllm:
    - name: vllm-qwen3
      url: http://qwen3-30b.qwen3.svc.cluster.local:8080
  model: "vllm-qwen3/qwen3-30b"
  auth:
    passwordSecret: tinycode-password
  storage:
    projectsSize: "20Gi"

Security contexts

  • tinycode-restricted — default. Non-root (UID 1001), all capabilities dropped.
  • tinycode-hostpath — when spec.storage.hostPath is set. Requires cluster-admin approval.
  • tinycode-shell — when spec.shell.enabled: true. Adds hostPID + SYS_PTRACE. Requires review.

Additional capabilities

  • Cross-namespace vLLM discovery — annotate model services with tinycode.dev/discover=vllm, list namespaces in spec.discovery.namespaces.
  • GitOps mode — spec.git.url clones a repo into /projects with optional credentials and auto-pull.
  • Cluster-admin mode — spec.clusterAdmin.enabled mounts kubeconfig and downloads oc CLI.
  • Self-service provisioning — users create their own TinycodeInstance CRs in prepared namespaces. Instance-per-user isolation with no collisions.
  • Vanilla Kubernetes — deploy without the operator using Kustomize manifests from tinycode-container, or Tekton + Argo CD for CI/CD.
Ecosystem

Four projects, one stack

Use whichever level fits your environment.

Single Go binary. TUI, embedded HTTP server + web UI, 23 agents, 7 skills, 36 built-in plugins, Go plugin SDK.
OCI container image. UBI9, multi-arch, OpenShift arbitrary-UID compatible. GitOps, vLLM auto-config, cluster-admin mode.
Kubernetes Operator for OpenShift. TinycodeInstance CRs, Helm reconciliation, SCCs, Routes, vLLM auto-probing, self-service multi-user.
Homebrew formula for brew install bobbyjohnstx/tap/tinycode on macOS and Linux.