Opinionated configuration for Kilo Code — a local AI coding agent in VS Code. This repo contains system prompts and rule files that shape how Kilo Code interacts with your codebase.
- This setup is opinionated. If you're looking for stable or beginner-friendly templates, start here - rules_template.
- Want to use a similar setup with Roo Code or Cline? That link works for those too.
- Designed for solo dev workflows, not teams.
- Changes often; no stability guaranteed.
rules/&rules-*– structured prompts for behavior controlsystem-prompt-*– main system instructions- Bun-based runtime setup
- Minimal dependencies, zero TypeScript scaffolding
This repo assumes you know what you're doing. Defaults are heavily customized and may break at any time.
The default entry point for large or multi-step prompts is Orchestrator, which is included by default in Kilo Code.
You may define your own prompt flow strategies as needed — this repo stays unopinionated about modes.
- Clone into your project root:
cd your-project-root
git clone https://github.com/shanefully-done/kilocode-rules.git- Rename the directory so Kilo Code can detect it:
mv kilocode-rules .kilocode- Kilo Code will automatically detect
.kilocodeand apply the rules.
Note: To enable Memory Bank, switch to Architect mode and run "initialize memory bank". For details, see the Memory Bank docs: https://kilocode.ai/docs/advanced-usage/memory-bank
This repo is configured to run under Bun instead of npm or pnpm:
- Faster install and runtime
- Native TypeScript + file watcher
- Cleaner scripts
If you're not using Bun, install it first:
curl -fsSL https://bun.sh/install | bash- Base prompt structure and configuration largely forked from
rules_template
- Keep prompts minimal and specific.
- Use Orchestrator for complex flows — or define your own logic.
- Disable conflicting VS Code extensions (like Copilot) for clean integration.