# Code Tour (https://jackin.tailrocks.com/internal/code-tour/)



Key call chains for contributors and AI agents working on jackin'. This page is a stub — content will be expanded as behavioral specs are written and the codebase-readability program makes the call chains more readable.

## `jackin load` (CLI path) [#jackin-load-cli-path]

Entry: `main.rs` → `app::run` → `runtime::load_role` (re-exported from `runtime::launch`) → `load_role_with`.

The `load_role_with` pipeline runs five phases: resolve source + trust, resolve/claim instance, resolve launch inputs, build + prepare state, launch + finalize. See the [launch.rs behavioral spec](/internal/specs/runtime-launch/) for the invariants.

## `jackin console` (TUI path) [#jackin-console-tui-path]

Entry: `main.rs` → `app::run` → `console::run_console`. The console runs an Elm Architecture loop: `update` produces `ManagerEffect` values; the effect dispatcher calls services and writes back to state.

## `jackin hardline` (lock-out path) [#jackin-hardline-lock-out-path]

Entry: `main.rs` → `app::run` → `runtime::hardline_agent`. Locks out new capsule sessions on a running container, then attaches the caller as the sole foreground session.
