Discover and explore top open-source AI tools and projects—updated daily.
Doorman11991AI coding agent for local LLMs
New!
Top 34.6% on SourcePulse
Summary
SmallCode enables coding tasks using small, locally-run LLMs (7B-20B parameters) on consumer hardware. This terminal-native agent compensates for smaller models' limitations—context, tool-calling—via an intelligent, privacy-focused architecture, facilitating local development without cloud reliance.
How It Works
SmallCode's architecture optimizes for small LLMs. It manages context via summarization/budgeting and uses a forgiving parser for imperfect tool calls. Complex tasks decompose into TODO-file managed steps, with editing primarily using safer search-and-replace patches. Key innovations include MarrowScript for generating robust AI cognition logic (caching, validation, budgets) from concise declarations, and BoneScript, compiling .bone files into complete Node.js/TypeScript backends to reduce tool call overhead and boost reliability.
Quick Start & Requirements
npm install -g smallcode or npx smallcode.better-sqlite3 for code graph features requires native compilation tools (Python 3, make, C++ compiler) if prebuilt binaries are unavailable; SmallCode falls back to JSON memory if build fails.SMALLCODE_MODEL and SMALLCODE_BASE_URL in .env. Optional cloud API keys for model escalation.Highlighted Details
.bone files into full Node.js/TypeScript backends, reducing tool calls from 8-15 to 1-2 for improved reliability.SMALLCODE_WEB_BROWSE=true) for web search/fetching with anti-detection.Maintenance & Community
No specific details regarding maintainers, community channels, or roadmap were found in the provided README.
Licensing & Compatibility
Limitations & Caveats
better-sqlite3 prebuilt binaries are unavailable.19 hours ago
Inactive
xingyaoww
olimorris