lean-ctx-server 3.12.2

The LeanCTX MCP server and its tools on top of LeanCTX | OSS.
Documentation
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
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
// SPDX-License-Identifier: Apache-2.0
//! Why a recursive walk timed out (GH #1655, follow-up to #1089).
//!
//! `ctx_glob` and `ctx_tree` honour `.gitignore`; `ctx_shell` runs the user's
//! own `grep`/`find`, which does not. So a directory invisible to one tool is
//! walked by the other, and a repo with nested checkouts under
//! `.claude/worktrees/` searches a multiple of the intended tree. The reporter
//! hit this twice and diagnosed it both times from memory of his own earlier
//! issue rather than from anything the tool said.
//!
//! This does **not** change what the command traverses. Silently rewriting a
//! user's `grep` would be worse than the timeout — the reporter says so himself
//! and he is right. It only explains, after the fact, what was probably eaten.
//!
//! Honesty constraints, because a hint that guesses is worse than none:
//!
//! - Only directories that **actually exist** under the search root are named.
//! - Counts are real, from a bounded walk; a count that hit the cap is rendered
//!   `N+`, never rounded up into a total.
//! - No percentage of the walk is claimed. We do not know what the command
//!   traversed, only what is there.

use std::path::Path;

/// Commands whose cost scales with the tree, and which do not read `.gitignore`.
const RECURSIVE_TOOLS: &[&str] = &["grep", "egrep", "fgrep", "find", "ack", "ag"];

/// Directories that dominate a walk when present: nested checkouts and
/// dependency trees.
///
/// Deliberately narrower than [`lean_ctx::core::auto_findings::NOISE_PATH_SEGMENTS`],
/// which also lists small directories (`.cursor`, `terminals`) whose presence
/// says nothing about why a walk was slow. Naming those would dilute the hint.
const BULK_DIRS: &[&str] = &[
    ".worktrees",
    "worktrees",
    ".codex-worktrees",
    "node_modules",
    "target",
    "vendor",
    ".venv",
    "venv",
    "site-packages",
    ".next",
    ".cache",
];

/// How deep to look for a bulk directory. `.claude/worktrees/` is two levels
/// down, which is the reported case; three leaves room without turning the
/// search itself into a walk.
const SCAN_DEPTH: usize = 3;

/// Stop counting a directory here. The number only has to be big enough to
/// justify the hint, and this runs on an already-slow error path.
const COUNT_CAP: usize = 5_000;

/// A hint for a timed-out command, or `None` when there is nothing honest to say.
pub(crate) fn walk_hint(command: &str, cwd: &str) -> Option<String> {
    if !is_recursive_walk(command) {
        return None;
    }

    // #1662: `cd repo && grep -rn … .` walks a tree the call's own cwd never
    // named. Scanning the call directory would then look at the wrong place and
    // report nothing, which is indistinguishable from "this walk is fine".
    let moved = lean_ctx::core::command_cwd::final_cwd(command, Some(Path::new(cwd)));
    let base: &Path = match moved.as_deref() {
        Some(dir) => dir,
        // A `cd` this cannot resolve means the directory walked is unknown;
        // naming directories from somewhere else would be a guess.
        None if command.split_whitespace().any(|w| w == "cd") => return None,
        None => Path::new(cwd),
    };

    // Scan what the command actually walks. Now that this runs for every
    // recursive walk rather than only on timeout (#1662), scanning the starting
    // directory regardless of scope would announce `node_modules/` for a
    // `grep -r pattern src/` that never goes near it — a confident hint about a
    // directory the command never entered.
    let mut found: Vec<(String, usize, bool)> = Vec::new();
    for root in walk_roots(command, base) {
        collect_bulk_dirs(&root, &root, 0, &mut found);
    }
    found.sort_by(|a, b| a.0.cmp(&b.0));
    found.dedup_by(|a, b| a.0 == b.0);

    // A directory the command already excludes is not the explanation.
    found.retain(|(rel, _, _)| !command.contains(rel.as_str()));
    if found.is_empty() {
        return None;
    }

    // Biggest first: the directory most likely to explain the timeout leads.
    found.sort_by_key(|f| std::cmp::Reverse(f.1));
    found.truncate(3);

    let named: Vec<String> = found
        .iter()
        .map(|(rel, n, capped)| format!("{rel}/ ({n}{} files)", if *capped { "+" } else { "" }))
        .collect();

    Some(format!(
        "[hint: {} under this path — walked by grep/find, but ignored by \
         ctx_search and ctx_glob, which honour .gitignore. Scope the path, add \
         --exclude-dir, or use ctx_search.]",
        named.join(", ")
    ))
}

/// `output` without a trailing hint from [`walk_hint`]. `ctx_shell(raw=true)`
/// promises verbatim output and already drops its other hints (#2027); the
/// executor appends this one before it knows the caller's mode.
pub(crate) fn strip_walk_hint(output: &str) -> &str {
    match output.rfind("[hint: ") {
        Some(idx)
            if output[idx..].contains("walked by grep/find")
                && output[idx..].trim_end().ends_with("or use ctx_search.]") =>
        {
            &output[..idx]
        }
        _ => output,
    }
}

/// The directories a recursive command was pointed at.
///
/// For a grep-like the first non-flag word is the pattern and the rest are
/// paths; `find` takes its paths first, before any predicate. When no path is
/// given, the walk starts where the command runs.
fn walk_roots(command: &str, base: &Path) -> Vec<std::path::PathBuf> {
    let mut roots = Vec::new();
    for segment in command.split(|c| matches!(c, '|' | ';' | '&')) {
        // #2027: only an invocation that walks contributes roots. A later
        // `grep` reading stdin (`…; echo x | grep -c x`) names no path, and
        // treating that as "walks the cwd" blamed directories nothing entered.
        let Some(tool) = recursive_tool(segment) else {
            continue;
        };
        let mut words = segment.split_whitespace().skip_while(|w| w.contains('='));
        words.next();
        let is_find = tool == "find";
        let mut operands: Vec<&str> = Vec::new();
        for word in words {
            if word.starts_with('-') {
                // A `find` predicate takes arguments (`-name '*.go'`), and its
                // paths are already behind us, so stop at the first one.
                if is_find {
                    break;
                }
                continue;
            }
            operands.push(word);
        }
        let paths = if is_find || operands.is_empty() {
            operands.as_slice()
        } else {
            &operands[1..]
        };
        for path in paths {
            let trimmed = path.trim_matches(['"', '\'']);
            // A path the shell would have to expand is not one to scan.
            if trimmed.is_empty() || trimmed.contains('$') {
                continue;
            }
            let candidate = Path::new(trimmed);
            roots.push(if candidate.is_absolute() || trimmed.starts_with('/') {
                candidate.to_path_buf()
            } else {
                lean_ctx::core::command_cwd::join_in(base, trimmed)
            });
        }
        if paths.is_empty() {
            roots.push(base.to_path_buf());
        }
    }
    // Every walking path was a shell expansion (`"$DIR"`): the walk starts
    // somewhere under the command directory, the closest honest guess.
    if roots.is_empty() {
        roots.push(base.to_path_buf());
    }
    roots
}

/// The tool of one pipeline segment when that invocation walks a tree without
/// reading `.gitignore`: `find`, or a grep-like with its own `-r`/`-R`.
///
/// `rg` is deliberately absent: it honours `.gitignore` already, so a slow `rg`
/// is not explained by an ignored directory and the hint would mislead.
fn recursive_tool(segment: &str) -> Option<&str> {
    let mut words = segment.split_whitespace().skip_while(|w| w.contains('='));
    let tool = words.next()?;
    let tool = tool.rsplit('/').next().unwrap_or(tool);
    if !RECURSIVE_TOOLS.contains(&tool) {
        return None;
    }
    let recursive = tool == "find"
        || words.any(|w| w.starts_with('-') && !w.starts_with("--") && w.contains(['r', 'R']));
    recursive.then_some(tool)
}

/// Does any invocation in this command walk a tree without reading `.gitignore`?
fn is_recursive_walk(command: &str) -> bool {
    command
        .split(|c| matches!(c, '|' | ';' | '&'))
        .any(|segment| recursive_tool(segment).is_some())
}

/// Shallow search for bulk directories, recording each one's bounded file count.
/// Does not descend *into* a match — its own contents are what we are counting.
fn collect_bulk_dirs(root: &Path, dir: &Path, depth: usize, out: &mut Vec<(String, usize, bool)>) {
    if depth > SCAN_DEPTH || out.len() >= 16 {
        return;
    }
    let Ok(entries) = std::fs::read_dir(dir) else {
        return;
    };
    for entry in entries.flatten() {
        let path = entry.path();
        if !entry.file_type().is_ok_and(|t| t.is_dir()) {
            continue;
        }
        let name = entry.file_name().to_string_lossy().into_owned();
        if BULK_DIRS.contains(&name.as_str()) {
            let (count, capped) = count_files(&path);
            if let Ok(rel) = path.strip_prefix(root) {
                out.push((rel.to_string_lossy().into_owned(), count, capped));
            }
            continue; // its contents are the count, not more candidates
        }
        collect_bulk_dirs(root, &path, depth + 1, out);
    }
}

/// Files under `dir`, stopping at [`COUNT_CAP`]. Returns `(count, hit_cap)`.
fn count_files(dir: &Path) -> (usize, bool) {
    let mut stack = vec![dir.to_path_buf()];
    let mut count = 0usize;
    while let Some(next) = stack.pop() {
        let Ok(entries) = std::fs::read_dir(&next) else {
            continue;
        };
        for entry in entries.flatten() {
            match entry.file_type() {
                Ok(t) if t.is_dir() => stack.push(entry.path()),
                Ok(_) => {
                    count += 1;
                    if count >= COUNT_CAP {
                        return (COUNT_CAP, true);
                    }
                }
                Err(_) => {}
            }
        }
    }
    (count, false)
}

#[cfg(test)]
mod tests {
    use super::*;

    fn tmp() -> tempfile::TempDir {
        tempfile::tempdir().unwrap()
    }

    fn make_tree(root: &Path, rel: &str, files: usize) {
        let dir = root.join(rel);
        std::fs::create_dir_all(&dir).unwrap();
        for i in 0..files {
            std::fs::write(dir.join(format!("f{i}.go")), b"x").unwrap();
        }
    }

    #[test]
    fn recognises_recursive_grep_but_not_rg() {
        assert!(is_recursive_walk("grep -rn needle ."));
        assert!(is_recursive_walk("grep -Rn needle ."));
        assert!(is_recursive_walk("find . -name '*.go'"));
        assert!(is_recursive_walk("cd /x && grep -rn a ."));
        // Non-recursive grep walks nothing.
        assert!(!is_recursive_walk("grep needle file.txt"));
        // rg honours .gitignore, so an ignored directory does not explain it —
        // claiming otherwise would send the reader after the wrong cause.
        assert!(!is_recursive_walk("rg needle"));
    }

    /// The reporter's shape: full checkouts two levels down under `.claude/`.
    #[test]
    fn names_nested_checkouts_with_real_counts() {
        let t = tmp();
        make_tree(t.path(), ".claude/worktrees/a", 12);
        make_tree(t.path(), ".claude/worktrees/b", 8);
        make_tree(t.path(), "src", 3);

        let hint = walk_hint("grep -rn needle .", t.path().to_str().unwrap())
            .expect("a hint for a recursive grep over a tree with nested checkouts");
        assert!(hint.contains("worktrees"), "{hint}");
        assert!(
            hint.contains("20 files"),
            "real count, not an estimate: {hint}"
        );
        assert!(hint.contains("ctx_search"), "{hint}");
        assert!(!hint.contains('%'), "no invented percentage: {hint}");
    }

    /// A command that already excludes the directory has been diagnosed
    /// already; repeating it is noise.
    #[test]
    fn stays_quiet_when_the_command_already_excludes_it() {
        let t = tmp();
        make_tree(t.path(), ".worktrees/a", 5);
        assert!(
            walk_hint(
                "grep -rn needle . | grep -v '.worktrees'",
                t.path().to_str().unwrap()
            )
            .is_none()
        );
    }

    #[test]
    fn stays_quiet_without_bulk_directories() {
        let t = tmp();
        make_tree(t.path(), "src", 4);
        assert!(walk_hint("grep -rn needle .", t.path().to_str().unwrap()).is_none());
    }

    #[test]
    fn stays_quiet_for_a_non_walking_command() {
        let t = tmp();
        make_tree(t.path(), "node_modules/x", 5);
        assert!(walk_hint("cargo test", t.path().to_str().unwrap()).is_none());
    }

    /// A huge tree must not be counted exhaustively on an error path; the cap
    /// is reported as `N+` rather than passed off as a total.
    #[test]
    fn a_capped_count_is_marked_as_a_floor() {
        let (n, capped) = (COUNT_CAP, true);
        let rendered = format!("{n}{} files", if capped { "+" } else { "" });
        assert!(rendered.starts_with("5000+"), "{rendered}");
    }
}

#[cfg(test)]
mod gh1662 {
    use super::*;

    /// A repo with the two directories that dominate a `grep -r`.
    fn repo_with_bulk() -> tempfile::TempDir {
        let dir = tempfile::tempdir().expect("tempdir");
        for bulk in ["node_modules", ".git"] {
            let sub = dir.path().join(bulk);
            std::fs::create_dir_all(&sub).expect("mkdir");
            for i in 0..40 {
                std::fs::write(sub.join(format!("f{i}.js")), "x").expect("write");
            }
        }
        std::fs::write(dir.path().join("main.go"), "package main").expect("write");
        dir
    }

    /// The reported shape: a recursive grep piped into `head`. `head` closes
    /// early, so the visible output arrives fast while the walk runs on.
    #[test]
    fn a_piped_recursive_grep_is_still_a_recursive_walk() {
        assert!(is_recursive_walk(
            "grep -rn \"spine-go/mocks\" --include=*.go . | head"
        ));
    }

    #[test]
    fn a_piped_recursive_grep_gets_the_hint() {
        let repo = repo_with_bulk();
        let hint = walk_hint(
            "grep -rn \"mocks\" --include=*.go . | head",
            &repo.path().to_string_lossy(),
        );
        let hint = hint.expect("bulk directories under the walked path must be named");
        assert!(hint.contains("node_modules/"), "{hint}");
        assert!(hint.contains("ctx_search"), "{hint}");
    }

    /// The walked tree is the one the command `cd`s into, not the call's own.
    #[test]
    fn the_hint_follows_a_leading_cd() {
        let repo = repo_with_bulk();
        let elsewhere = tempfile::tempdir().expect("tempdir");

        let command = format!(
            "cd {} && grep -rn \"mocks\" --include=*.go . | head",
            repo.path().display()
        );
        let hint = walk_hint(&command, &elsewhere.path().to_string_lossy());
        assert!(
            hint.is_some_and(|h| h.contains("node_modules/")),
            "the scan must follow the cd, not the call directory"
        );
    }

    /// A `cd` into a directory this cannot resolve leaves the walked tree
    /// unknown — better silent than naming directories from somewhere else.
    #[test]
    fn an_unresolvable_cd_stays_silent() {
        let repo = repo_with_bulk();
        let hint = walk_hint(
            "cd \"$REPO\" && grep -rn x . | head",
            &repo.path().to_string_lossy(),
        );
        assert!(hint.is_none(), "must not guess: {hint:?}");
    }
}

#[cfg(test)]
mod gh1662_scope {
    use super::*;

    fn repo_with_bulk() -> tempfile::TempDir {
        let dir = tempfile::tempdir().expect("tempdir");
        let nm = dir.path().join("node_modules");
        std::fs::create_dir_all(&nm).expect("mkdir");
        for i in 0..40 {
            std::fs::write(nm.join(format!("f{i}.js")), "x").expect("write");
        }
        std::fs::create_dir_all(dir.path().join("src")).expect("mkdir");
        std::fs::write(dir.path().join("src/main.go"), "package main").expect("write");
        dir
    }

    /// Now that the hint fires for every recursive walk and not only on
    /// timeout, it must not announce a directory the command never enters.
    #[test]
    fn a_scoped_walk_is_not_blamed_on_a_directory_outside_its_scope() {
        let repo = repo_with_bulk();
        let cwd = repo.path().to_string_lossy();

        assert!(
            walk_hint("grep -rn pattern src/", &cwd).is_none(),
            "src/ holds no bulk directory"
        );
        assert!(
            walk_hint("grep -rn pattern .", &cwd).is_some(),
            "a walk rooted at the repo does hit node_modules"
        );
    }

    #[test]
    fn find_takes_its_paths_before_the_predicates() {
        let repo = repo_with_bulk();
        let cwd = repo.path().to_string_lossy();

        assert!(walk_hint("find src -name '*.go'", &cwd).is_none());
        assert!(walk_hint("find . -name '*.go'", &cwd).is_some());
    }

    /// An absolute path argument is scanned as given, not joined onto the cwd.
    #[test]
    fn an_absolute_path_argument_is_used_as_is() {
        let repo = repo_with_bulk();
        let elsewhere = tempfile::tempdir().expect("tempdir");
        let command = format!("grep -rn pattern {}", repo.path().display());

        assert!(walk_hint(&command, &elsewhere.path().to_string_lossy()).is_some());
    }

    /// A path the shell would expand is not something to scan; the command's
    /// own directory remains the honest fallback.
    #[test]
    fn an_unexpandable_path_falls_back_to_the_command_directory() {
        let repo = repo_with_bulk();
        let cwd = repo.path().to_string_lossy();
        assert!(walk_hint("grep -rn pattern \"$DIR\"", &cwd).is_some());
    }
}

#[cfg(test)]
mod gh1680 {
    use super::*;

    /// The reporter's case: `grep -rn PATTERN /abs/path/outside/file.go` run
    /// from a project root that contains `node_modules/`. The hint named three
    /// directories under the cwd and asserted they were "walked by grep/find" —
    /// grep read exactly one file, and none of them are under it.
    #[test]
    fn an_explicit_path_outside_the_root_is_not_blamed_on_the_cwd() {
        let repo = tempfile::tempdir().expect("tempdir");
        let bulk = repo.path().join("node_modules");
        std::fs::create_dir_all(&bulk).expect("mkdir");
        for i in 0..40 {
            std::fs::write(bulk.join(format!("f{i}.js")), "x").expect("write");
        }

        let elsewhere = tempfile::tempdir().expect("tempdir");
        let target = elsewhere.path().join("types.go");
        std::fs::write(&target, "package main").expect("write");

        let command = format!("grep -rn \"EvConnected\" {}", target.display());
        let hint = walk_hint(&command, &repo.path().to_string_lossy());

        assert!(
            hint.is_none(),
            "grep read one file outside the root; nothing under the cwd was walked: {hint:?}"
        );
    }

    /// The same command rooted at the cwd still gets the hint — the fix must
    /// not silence the case the hint exists for.
    #[test]
    fn the_intended_case_still_fires() {
        let repo = tempfile::tempdir().expect("tempdir");
        let bulk = repo.path().join("node_modules");
        std::fs::create_dir_all(&bulk).expect("mkdir");
        for i in 0..40 {
            std::fs::write(bulk.join(format!("f{i}.js")), "x").expect("write");
        }
        std::fs::write(repo.path().join("main.go"), "package main").expect("write");

        let hint = walk_hint(
            "grep -rn \"EvConnected\" --include=*.go .",
            &repo.path().to_string_lossy(),
        );
        assert!(
            hint.is_some_and(|h| h.contains("node_modules/")),
            "a walk rooted at the repo does traverse node_modules"
        );
    }

    /// A single explicit file is not a tree, so even under the cwd the advice
    /// ("scope the path", "add --exclude-dir") would have nothing to act on.
    #[test]
    fn a_single_file_operand_never_produces_a_hint() {
        let repo = tempfile::tempdir().expect("tempdir");
        let bulk = repo.path().join("node_modules");
        std::fs::create_dir_all(&bulk).expect("mkdir");
        for i in 0..40 {
            std::fs::write(bulk.join(format!("f{i}.js")), "x").expect("write");
        }
        let file = repo.path().join("main.go");
        std::fs::write(&file, "package main").expect("write");

        let hint = walk_hint(
            &format!("grep -rn x {}", file.display()),
            &repo.path().to_string_lossy(),
        );
        assert!(hint.is_none(), "{hint:?}");
    }

    /// GH #2027: the reporter's control table. Each invocation is judged on its
    /// own: a scoped `grep -r` followed by a stdin-reading `grep` walks only the
    /// scope, so nothing under the cwd outside it may be named.
    #[test]
    fn a_later_stdin_grep_does_not_turn_a_scoped_walk_into_a_cwd_walk() {
        let repo = tempfile::tempdir().expect("tempdir");
        for (rel, files) in [
            (".claude/worktrees/a", 6),
            ("node_modules/x", 6),
            ("tariff", 2),
        ] {
            let dir = repo.path().join(rel);
            std::fs::create_dir_all(&dir).expect("mkdir");
            for i in 0..files {
                std::fs::write(dir.join(format!("f{i}.go")), "x").expect("write");
            }
        }
        let cwd = repo.path().to_string_lossy().to_string();

        for quiet in [
            "grep -rn 'func mergeRates' tariff",
            "grep -rn 'func mergeRates' tariff | head -5",
            "grep -rn 'func mergeRates' tariff; echo done",
            "grep -n 'func mergeRates' tariff/f0.go; echo helper | grep -c helper",
            "grep -rn 'func mergeRates' tariff; echo helper | grep -c helper",
            "grep -rn 'func mergeRates' tariff; ls tariff | grep -c helper",
            "grep -rn x tariff | grep -v _test",
        ] {
            assert!(walk_hint(quiet, &cwd).is_none(), "{quiet}");
        }
        // A second invocation that walks the cwd itself still earns the hint.
        let hint = walk_hint("grep -rn x tariff; grep -rn y .", &cwd).expect("cwd walk");
        assert!(hint.contains("node_modules/"), "{hint}");

        // raw=true strips exactly that hint and nothing else.
        let out = format!("tariff/a.go:1:x\n{hint}");
        assert_eq!(strip_walk_hint(&out), "tariff/a.go:1:x\n");
        assert_eq!(
            strip_walk_hint("[hint: something else]"),
            "[hint: something else]"
        );
    }
}