Coding rules for any project and language, with a check of the agent's own diff before it delivers, and the project's AGENTS.md kept without being asked: the skill swcode's agent works by.
A coding agent for local models. It runs an LLM agent with file, terminal and web tools in your project, and you follow along or steer it from a web app on your computer or phone.
web app (computer, phone) ──socket──▶ swcode daemon ──HTTP──▶ llm-server
sessions, agent loop, the model(s)
tools, permissions
Features
Local-first: works with llama.cpp's llm-server, vLLM, or any OpenAI-compatible API. Runs on your machine, stays on your machine.
Code and Chat: a Code session puts the agent to work in a project; a Chat is a conversation with the model in no project, which searches and reads the web and draws pictures, but touches no files and runs no commands.
Agent with tools: reads, writes and edits files, runs commands (foreground and background, their output shown as it comes), searches code with grep/glob, browses the web, takes screenshots, draws images. Reads of one reply run together, an edit forgives a difference of indentation, and a project can run a formatter or a linter after each edit, whose findings go back to the agent.
Plans and questions: for a task of several steps the agent keeps a plan you watch it work through; it asks you multiple-choice questions when a decision is yours, and a command that asks for a password (sudo, ssh) runs in a terminal of the app, where you type it while the agent waits for the result.
Subagents: the agent can spin up parallel explore subagents to search the codebase or the web while it keeps working, on a smaller model if you give them one. You define agents of your own too, with the tools you give them — writing and running commands included.
Worktrees: a session can work in a git worktree of its own, on a branch of its own beside the repository, so several sessions change the same project without stepping on each other.
Schedules: a project starts a session on a prompt by itself, every hour, day or week, from its Config tab.
Review and commit: a session's Changes button shows what its folder has uncommitted, file by file, and commits it with your message.
Permissions: choose how much the agent can do without asking — run everything, ask before commands, or ask for everything. A request is answered for this call, for the session, or for the project: its Config tab lists what its sessions do without asking.
Trust: a folder you add as a project speaks for itself only once you trust it: until then its AGENTS.md and its skills are kept from the agent, and its commands keep their sandbox.
Sandbox: on Linux (this computer, WSL, a server over SSH) the agent's commands run in a bubblewrap sandbox: they write only in the project, and your keys are not there. What must leave it asks first.
Projects: sessions are grouped by project; a project's page lists its sessions, sets what its new sessions start with, and turns its skills on and off.
Skills: reusable instructions for recurring tasks, loaded from your home folder or the project, and run as /<skill>.
MCP servers: list Model Context Protocol servers in a file and the agent has their tools beside its own, asking before it calls one.
Headless runs: swcode run "<prompt>" starts a session from the command line and waits for its turn, for scripts and CI; the session stays in the app.
Evals: a dozen small tasks in evals/, scored on success, steps, tokens and time against your own llm-server, to judge a change of prompt, tool or model (npm run eval).
Slash commands: /new starts a session with the same settings, /compact summarizes the conversation now, /peek asks the agent something beside its work without entering the conversation, /help lists them all.
Composer: paste or drop pictures for models that see them, dictate your message with the microphone (your browser's speech recognition), and queue messages while a turn runs. What you were typing is still there when you come back to a page.
Models and presets: several llm-servers and models side by side, presets that pick the main agent's model and the subagents', a thinking level per session, and a token economy mode that asks for shorter answers.
Prompt cache: each agent keeps its own llm-server slot, so a long conversation only processes what is new; the side panel shows how much of the prompt the cache served, and the model's speed.