Scaffold for a local-first autonomous coding agent powered by Ollama and MCP tooling.
- Install dependencies (the CLI uses npm workbench tooling):
Optional but recommended: Install Ollama and pull the model referenced by
npm install
coder.config.json(defaults toqwen2.5-coder:14b). - Run the CLI in dev mode:
npm run dev -- --help
- Build the distributable bundle when ready:
npm run build
- Execute the unit test suite:
npm test - Run the end-to-end demo task (plans, applies diff, runs tests):
Requires a clean git working tree because the agent creates a dedicated branch.
./scripts/demo.sh
- Pass
--use-llmto skip the prebuilt diff and ask the configured Ollama model to generate one on the fly.
- Pass
The current CLI wires up
plan,show,run, andresumewith lightweight helpers (task generation, persistence, and state tracking). MCP-backed execution still needs to be filled in per thespec.mdchecklist.
- LLM-generated diffs for documentation tasks (README.md, AGENTS.md) are not yet reliable; the agent rejects malformed patches until we integrate a more instruction-following model.
src/cli– Command-line entry point (Commander-based surface).src/core– Task planning, persistence, run-state helpers, and git orchestration.src/daemon– Placeholder for the MCP JSON-RPC server.src/utils– Shared filesystem/id utilities.coder.config.json– Default configuration values referenced by future features..coder/– Runtime state, logs (.jsonl), and task/spec artifacts generated by the CLI.- optional
.coder/patches/<taskId>/<stepId>.difffiles can be dropped in to feed edit/doc steps. The demo script copiesexamples/sample-task/patches/s2.diffinto place by default; use--use-llmto rely on the Ollama model instead.
Refer to AGENTS.md and spec.md for contributor guidance and the detailed implementation roadmap.