RepoPilot

ajeetdsouza / zoxide

Search ajeetdsouza/zoxide

GitHub

Code

How ajeetdsouza/zoxide is laid out, and where to start for common changes.

C
Architecture grade
score 64/100
8+
Import cycles
lower is better
26
Files mapped
58 imports between them
84%
Layering
of imports point one way

From the map of which files import which, built when the code was last read in full. It shows what depends on what, not a reading order.

Module map

Shade by
Entry points and orchestratorsShared coreFoundationdb3 files · 1 commitconfig1 file · 0 commitserror1 file · 0 commitsutil1 file · 0 commitscmd8 files · 1 commitimport6 files · 0 commitsshell1 file · 0 commitsmain1 file · 0 commits

8 modules, 20 links. A link means one module imports another; thicker lines mean more imports. Select a module to trace it: blue lines go to what it uses, orange lines come from what uses it.

db3511Shared core
config1310Shared core
error1300Foundation
util1320Shared core
cmd8261Orchestrator
import6220Shared core
shell1210Shared core
main1070Entry or leaf

Where to start reading

  1. Repository root
  2. Repository root
  3. Likely start-up file
  4. Suggested starting pointAI
  5. Suggested starting pointAI
  6. Suggested starting pointAI
  7. Suggested starting pointAI
  8. Suggested starting pointAI

Find files for a task

AI

Add support for a new shell

  • Add a new shell variant to the Shell enum in src/shell.rs

Add a new history import source

  • Export the parser in src/import.rs and add it to the import dispatcher
  • Update src/cmd/import.rs to route the new source and call the appropriate parser
  • Add integration test in tests/completions.rs or a new test file to validate import output

Modify frecency algorithm

  • Review the scoring logic in src/db/dir.rs (rank/frecency calculation)
  • Adjust decay constants or weighting in src/db/mod.rs query logic
  • Update src/cmd/query.rs if ranking heuristics or sorting order need changes
  • Test with existing database or add unit tests for the new scoring behavior

Trace runtime behavior

Add or update tests

Change build or automation

RepoPilot lists up to 500 files, so a file missing here may still exist.

  • Files marked “likely” are guessed from their names.

Code quality and hotspots

Largest source files

  • Branch points7 per file on average
  • Code issues0 errors, 5 warnings
  • Largest file394 lines
  • Hotspot load0 high-risk files

Static checks on the 15 largest source files.

Tests, CI and tooling

  • CIGitHub Actions5 workflows
  • Tests1 test fileRust test · 0.04 test files per source file (file count, not coverage)
  • Dependency updatesDependabot

Test folders: tests

Hotspots

Files that change often and branch heavily, highest first. Branch points count if, loop, case, catch, ternary, && and || in the file.