1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
[]
# Crate (crates.io) name is `dirge-agent` — the short `dirge` was already
# taken on crates.io. The installed BINARY is still `dirge` (see [[bin]]),
# so users run: `cargo install dirge-agent` then the `dirge` command.
= "dirge-agent"
= "0.19.21"
= "2024"
# MSRV: edition 2024 needs 1.85, but the dependency tree (time, serde_with,
# darling, instability) requires 1.88 — pin there so older toolchains fail
# with a clear version error instead of a cryptic edition/build failure.
= "1.88"
= ["Yogthos <yogthos@gmail.com>"]
= "Minimalistic coding agent written in Rust, optimized for memory footprint and performance"
= "GPL-3.0-only"
= "https://github.com/dirge-code/dirge"
= "https://github.com/dirge-code/dirge"
= "README.md"
= ["ai", "cli", "agent", "llm", "tui"]
= ["command-line-utilities", "development-tools"]
# Keep the published package small (crates.io caps at 10 MiB compressed).
# Exclude vendored native libs, images, and local tooling state; the
# compile-time-embedded `prompts/` (include_dir!) is deliberately NOT
# excluded — it must ship.
= [
"vendor/",
"spikes/",
"img/",
"docs/",
".beads/",
".dirge/",
".github/",
# Marketing / authoring drafts + internal release-process docs —
# not part of the crate's source.
"blog.md",
"publishing.md",
]
# The crate is `dirge-agent` but the command users invoke stays `dirge`.
# Also keeps the binary crate's name `dirge`, so `module_path!()` (and
# thus the `dirge=…` RUST_LOG filter + explicit `dirge::…` tracing
# targets) are unchanged by the package rename.
[[]]
= "dirge"
= "src/main.rs"
[[]]
= "dirge-microvm-runner"
= "src/bin/dirge-microvm-runner.rs"
= ["sandbox-microvm"]
[]
# rig-core is a direct dep solely to pin feature flags (reqwest,
# derive, rustls) — the actual `use rig_core::…` imports come
# through rig's re-exports. cargo-machete can't detect feature-flag
# deps, so it falsely reports rig-core as unused.
= ["rig-core"]
[]
= ["rig-core"]
= ["src/tests/dap/fixtures/test_program.rs"]
[]
# Batteries-included by default: `cargo install dirge-agent` and the
# release binaries get the whole tool (MCP, LSP, ACP, plugins, and every
# tree-sitter language). The two `experimental-ui-*` flags stay opt-in.
# To build a leaner binary, use `--no-default-features --features "…"`.
= [
'loop',
'git-worktree',
'mcp',
'lsp',
'acp',
'plugin',
'semantic-ts',
'semantic-python',
'semantic-bash',
'semantic-clojure',
'semantic-go',
'semantic-ruby',
'semantic-rust',
'semantic-java',
'semantic-c',
'semantic-cpp',
'semantic-elixir',
'semantic-sql',
'semantic-dafny',
'slash-completion',
'mcp-server',
]
# The default feature set minus `plugin` — everything except the Janet
# plugin runtime. Use this for a source build that doesn't need a C/LLVM
# toolchain: the `plugin` feature pulls in `janetrs`/`evil_janet`, which
# compile Janet from C and run `bindgen` (needs a C compiler + libclang).
# On a host missing or mismatching those, `evil_janet` emits opaque FFI
# structs and the build fails (dirge-4xgd, #712). Toolchain-free install:
# `cargo install dirge-agent --no-default-features --features no-plugin`.
= [
'loop',
'git-worktree',
'mcp',
'lsp',
'acp',
'semantic-ts',
'semantic-python',
'semantic-bash',
'semantic-clojure',
'semantic-go',
'semantic-ruby',
'semantic-rust',
'semantic-java',
'semantic-c',
'semantic-cpp',
'semantic-elixir',
'semantic-sql',
'semantic-dafny',
'slash-completion',
'mcp-server',
]
# Windows ships the `no-plugin` set: the Janet bindings can't build on MSVC
# at all (`evil_janet` references `_setjmp`, absent on MSVC, and `janetrs`
# 0.8 passes an i64 to the Windows `fseek`, whose `offset` is `c_long`/i32).
# The release workflow builds the Windows target with this set.
= ['no-plugin']
= []
# Run dirge itself as an MCP server (`dirge mcp`) so another agent (e.g.
# Claude Code) can delegate implementation tasks to dirge and review them.
# Pulls rmcp's server side + stdio transport + the tool macros.
= ["dep:rmcp", "rmcp?/server", "rmcp?/macros", "rmcp?/transport-io", "rmcp?/schemars"]
= []
= [
"dep:rmcp",
"rmcp?/client",
"rmcp?/transport-child-process",
"rmcp?/transport-streamable-http-client-reqwest",
]
= ["dep:agent-client-protocol"]
= ["dep:tree-sitter", "dep:streaming-iterator"]
= ["semantic", "dep:tree-sitter-typescript"]
= ["semantic", "dep:tree-sitter-python"]
= ["semantic", "dep:tree-sitter-bash"]
= ["semantic", "dep:tree-sitter-clojure"]
= ["semantic", "dep:tree-sitter-go"]
= ["semantic", "dep:tree-sitter-ruby"]
= ["semantic", "dep:tree-sitter-rust"]
= ["semantic", "dep:tree-sitter-java"]
= ["semantic", "dep:tree-sitter-c"]
= ["semantic", "dep:tree-sitter-cpp"]
= ["semantic", "dep:tree-sitter-elixir"]
= ["semantic", "dep:tree-sitter-sequel"]
= ["semantic", "dep:tree-sitter-dafny"]
= ["dep:janetrs"]
= ["dep:lsp-types"]
= ["dep:which", "dep:dap"]
= ["dep:libkrun-sys", "dep:russh", "dep:hex"]
# timing-diagnostics: compile-time gate for relay byte accounting
# counters and invariants. No runtime cost when disabled. Used in
# stress tests to identify keystroke-loss points.
= []
# Slash-command tab completion + ghost-suffix hinting. On by default
# (it had been gated off as `experimental-ui-tab-slash`, so default
# builds silently had no command autocomplete). Opt out with
# --no-default-features.
= []
= []
= []
# Entity/relation graph storage + recursive CTE queries over
# structured tool-output facts extracted by Janet compressors.
# Opt-in: creates two new SQLite tables (entities, relations)
# and an entity_search module. PRISM #393.
= []
# The inlined llmtrim engine (src/llmtrim) carries upstream
# `#[cfg(feature = "skeleton"/"tiktoken"/"multimodal")]` blocks whose
# crates we deliberately dropped. Declare those cfg names via check-cfg
# (below) rather than as real features, so the code stays permanently
# excluded — `--all-features` can't accidentally enable it — while
# rustc's unexpected-cfg lint stays quiet under `-D warnings`.
[]
= { = "warn", = [
'cfg(feature, values("skeleton", "tiktoken", "multimodal"))',
] }
[]
# Used by the bash tool for process-group cleanup on timeout
# (F6) — `killpg(pgid, SIGKILL)` to terminate the whole subshell
# tree rather than orphaning bash's children.
= "0.2"
# Native desktop notification backend for the opt-in OS notification feature.
# notify-rust is cross-platform; the backend it compiles is target-gated inside
# the crate, so the feature set differs per platform:
# - macOS: mac-notification-sys (built in on the macOS target; no feature).
# - Windows: WinRT toast (built in on the Windows target; no feature).
# - Linux: needs a D-Bus backend. `z` = zbus, a pure-Rust client, so we avoid
# a system libdbus build/link dependency.
[]
= { = "4", = false }
[]
= { = "4", = false }
[]
= { = "4", = false, = ["z"] }
[]
# CVE-2026 audit (2026-05-27): rig's default features pull a
# sprawling transitive tree:
#
# default → rustls → rig-bedrock → aws-config → aws-smithy-runtime
# → aws-smithy-http-client → hyper-rustls 0.24.2 → rustls 0.21.12
# → rustls-webpki 0.101.7 ← RUSTSEC-2026-0098/0099/0104
#
# default → rustls → rig-fastembed → fastembed → hf-hub → indicatif
# → number_prefix 0.4.0 ← RUSTSEC-2025-0119 (unmaintained)
#
# default → rig-lancedb → lance → tantivy → lru 0.12.5
# ← RUSTSEC-2026-0002 (unsound)
#
# Dirge only uses rig's MCP transport (`rmcp` feature) and the core
# provider/agent/completion APIs. By disabling default features we
# drop ~370 transitive crates (881→508 deps) and eliminate all 6
# cargo-audit findings.
# Pinned to an exact version, not a caret. rig ships breaking API
# changes in patch/minor releases (0.37.0 -> 0.37.1 added a required
# `Text.additional_params` field), and `cargo install dirge-agent`
# resolves without our Cargo.lock, so a caret would let a published
# dirge drift onto an incompatible rig and fail to build (GH #616).
# Bump this deliberately when adopting a new rig.
= { = "=0.39.0", = false, = ["rmcp"] }
# Explicit dep to pin feature flags. Without this, rig (our only
# dep on rig-core) enables `derive` and `reqwest` via its own
# feature resolution, but we want `rustls` explicitly declared so
# future readers understand the TLS backend choice is deliberate.
# cargo-machete reports this as unused — the package.metadata
# block at the top of this file suppresses that false positive.
= { = "=0.39.0", = false, = ["reqwest", "derive"] }
# Macros for emitting `Stream<Item = …>` from async generator-style
# code blocks. Used by `agent_loop::rig_stream` to wrap rig's
# `StreamingCompletionResponse` into our pi-style `StreamEvent`
# stream — the alternative is hand-rolled `impl Stream` with manual
# poll mechanics, which is verbose for multi-yield-per-input logic.
# Already in our Cargo.lock transitively; this declares the
# dependency explicitly so we can `use async_stream`.
= "0.3"
# Display-width-aware char counting for terminal layout. `chars().count()`
# undercounts emoji (e.g. ✅ takes 2 cells in most terminals); markdown
# tables misaligned the right border when cells contained them.
= "0.2"
= { = "1.7", = true, = false, = [
"client",
"transport-child-process",
"transport-streamable-http-client-reqwest",
] }
= { = "4", = ["derive", "env"] }
= "0.29"
# ui-redesign: ratatui migration. Replaces the hand-rolled stdout
# paint paths with widget + Buffer + diff rendering. Uses
# `default-features = false` + `crossterm` backend to share the
# crossterm version already in this tree.
= { = "0.30", = false, = ["crossterm"] }
# Convert the embedded SGR escapes that markdown.rs bakes into chat
# lines (\x1b[1m bold, \x1b[31m colored, etc.) into ratatui Spans at
# paint time. Without this, ratatui's Buffer would render the escape
# sequences as literal characters.
= "8"
= { = "1", = ["derive"] }
= { = "1", = ["preserve_order", "arbitrary_precision"] }
= { = "1", = ["rt", "rt-multi-thread", "macros", "sync", "time", "process", "fs", "io-util", "signal"] }
= "1.0.103"
# Already transitive via rig's `http_client` API (rig re-exports `bytes::Bytes`
# in the request/response types). Declared directly so `provider::codex_http`
# can name `Bytes` when normalizing the Codex `/responses` body — no new crate
# enters the tree.
= "1"
= "0.1"
= { = "0.3", = ["env-filter"] }
= { = "0.4", = ["serde"] }
= { = "1", = ["v4", "serde"] }
= "2"
= "0.3"
# ring-based rustls TLS for reqwest. Faster cold build vs aws-lc-rs
# (~15s vs 76s native C compile). See plans/compile-time-improvements.md
= { = "0.13", = false, = ["rustls-no-provider", "charset", "http2", "system-proxy"] }
# Explicit deps to pin rustls to ring backend instead of aws-lc-rs.
# Required because reqwest/rustls-no-provider enables the deps but
# doesn't specify a crypto backend; cargo would fall back to their
# default features (aws-lc-rs). These override that.
= { = "0.27", = false, = ["ring"] }
= { = "0.26", = false, = ["ring"] }
= { = "0.23", = false, = ["ring"] }
# UI-redesign branch: system CPU / MEM gauges for the [SYSTEM LOAD]
# sub-panel. `default-features = false` + only the modules we use
# keeps the dep small (no disks / networks / processes — just CPU
# + memory polling).
= { = "0.32", = false, = ["system"] }
= "6"
= { = "0.9", = ["serde"] }
= "1"
= "1"
= "0.4.27"
= "0.13"
= "0.7"
= "1"
= { = "0.12.0", = true }
= { = "0.25", = true }
= { = "0.23", = true }
= { = "0.25", = true }
= { = "0.25", = true }
= { = "0.1", = true }
= { = "0.25", = true }
= { = "0.23", = true }
= { = "0.24", = true }
= { = "0.23", = true }
= { = "0.24", = true }
= { = "0.23", = true }
= { = "0.1", = true }
= { = "0.46", = false, = ["resolve-http", "resolve-file", "tls-ring"] }
= { = "0.8", = true }
= "0.17"
= "2"
# Windows-safe canonicalize: returns non-verbatim paths (no `\\?\` prefix)
# unless the path genuinely needs it (long/reserved). Drop-in for
# std::fs::canonicalize; identical behavior on non-Windows.
= "1"
= { = "0.97", = true }
= { = "0.3.5", = true }
= { = "0.3", = true }
= { = "0.1", = true }
= { = "0.31", = ["bundled"] }
# DAP (Debug Adapter Protocol) — optional feature for driving
# debuggers (lldb-dap, dlv, debugpy, node) to fix crashes instead
# of sprinkling print statements. Types are hand-rolled in
# src/dap/types.rs — the dap-types crate on crates.io only has v0.0.1
# which is too incomplete.
# which: locate debug adapter binaries on the system PATH at session
# startup rather than requiring explicit paths in config.
= { = "8", = true }
# dap: Debug Adapter Protocol types from dap-rs. Replaces our hand-rolled
# types in src/dap/types.rs. The `client` feature enables Deserialize on
# response/event types so we can deserialize adapter responses.
= { = "0.4.1-alpha1", = ["client"], = true }
# libkrun-sys: FFI bindings for libkrun (hardware-isolated microVM sandbox).
# Requires libkrun.so and libkrunfw.so installed on the system.
= { = "0.9.5", = true }
# russh: pure-Rust SSH client (no libssh2/OpenSSL — uses the `ring` crypto
# backend so the build needs no system OpenSSL or cmake). Used by the
# microVM sandbox to execute commands inside the guest VM.
= { = "0.62.4", = false, = ["ring"], = true }
# sha2 + hex: OCI layer digest verification for the microVM sandbox.
# Every blob downloaded from the registry is SHA-256 hashed and compared
# against the manifest's declared digest before extraction.
= "0.10"
= { = "0.4", = true }
# base64: decode OpenSSH-format public keys for host-key verification.
= "0.22"
# YAML parser for skill frontmatter (replaces hand-rolled parser in
# `src/extras/skills/format.rs`). `yaml-rust2` is the maintained fork
# of the abandoned `yaml-rust` crate, fully YAML 1.2 compliant.
= "0.11"
# Fuzzy matcher. Used by the Ctrl-F search (test-gated until the
# interactive feature is wired in) and by the few-shot tool-exemplar
# retriever (`agent::exemplars`), which scores curated tool-use
# examples against the user's task to inject the most relevant ones.
= "0.3"
= "2"
= "0.16.2"
# --- compression-engine deps (always-on; was optional via `compression` feature) ---
= { = "2.3.2" }
= { = "1.4.0" }
= { = "0.2.0" }
= { = "1.21.4" }
= { = "0.10.0" }
= { = "1.1.2" }
= { = "0.5.0", = false }
= { = "0.1.25" }
= { = "1.13.3" }
= { = "0.18.0" }
[]
= { = "1", = ["test-util"] }
= "1"
# Profiles tuned with cargo-wizard, then adjusted for dirge's constraints.
#
# `release` — the SHIPPED binary, optimized for runtime SPEED (cargo-wizard
# `fast-runtime`): opt-level=3 + fat LTO + a single codegen unit, still
# `strip`ped so it stays lean. The binary is small enough that we favor
# speed over squeezing the last bytes (the old `opt-level="z"` min-size
# tuning). Both `cargo install dirge-agent` AND the prebuilt release
# binaries use this profile, so every shipped artifact is the fast one.
#
# NOTE: deliberately NOT `panic = "abort"` (which `fast-runtime`/`min-size`
# suggest): the Janet plugin worker relies on `std::panic::catch_unwind`
# (src/plugin/worker.rs) to contain panics from unsafe FFI, and background
# tokio tasks (subagents, background shells) rely on a panicking task NOT
# aborting the whole process. `panic = "abort"` would break both.
#
# We also deliberately do NOT add `-Ctarget-cpu=native`: it would make the
# distributed binary SIGILL on any CPU older than the build host. A user
# building for their OWN machine can set `RUSTFLAGS="-Ctarget-cpu=native"`.
[]
= 3
= true
= 1
= true
= false
# `dev` — fast iterate/test loop (cargo-wizard `fast-compile`). `debug = 0`
# drops debuginfo generation for faster builds; pair with the linker /
# split-debuginfo settings in `.cargo/config.toml`. If you need line numbers
# in a dev backtrace, set `debug = "line-tables-only"`.
[]
= 0