dirge-code/dirge
Dynamic Intent Resolution Grounding Engine
What it solves
Dirge is a high-performance, minimal coding agent designed to be fast and lightweight while maintaining high reliability even when using cheaper or weaker LLMs. It addresses the common issues of agentic editors—such as high memory consumption, context window degradation, and the loss of session continuity—by implementing a robust agent loop and a tiered memory system.
How it works
Dirge is written in native Rust for speed and low resource usage. It uses a "robust agent loop" to repair malformed tool calls and validate writes via tree-sitter before they touch the disk. Instead of vector embeddings, it relies on inline grep and SQLite FTS5 for search, which it argues is more effective for long-term conversational memory.
To manage context, it uses a bounded budget (default 250k tokens) and a two-tiered memory system: salient entries stay inline, while others are demoted to a breadcrumb index. A post-session orchestrator extracts learnings into persistent project memory and skills. It also integrates with LSP diagnostics and tree-sitter for code intelligence, and can be exposed as an MCP server for delegation from other agents.
Who it’s for
Developers who want a fast, native coding agent that supports a wide variety of LLM providers (including local models via Ollama) and prefers a low-overhead, non-JS based tool.
Highlights
- Extreme Efficiency: Native Rust binary with very low RAM usage (approx 8-15MB) compared to JS-based agents.
- Robustness: Validates code writes with tree-sitter and implements circuit breakers for non-progressing loops.
- ** uma Permission Engine**: A single Policy Decision Point with a
/whycommand to trace authorization decisions. - Multi-Provider Routing: Ability to route different roles (main loop, review, summarization) to different models in one session.
- Project Memory: Persistent per-project memory and a built-in agent-facing kanban issue board.
- Multimodal Support: Supports clipboard image pasting for vision models.
- Janet Plugin System: Extensible at runtime via Janet plugins and Claude-compatible skills.
Related
- Project
- Dispatch
- Project
- Project
- Project