Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/cosmix/loom
/ functions
Functions
3,851 in github.com/cosmix/loom
⨍
Functions
3,851
◇
Types & classes
262
↓ 2 callers
Function
claude_args
argv (after the binary) for a Claude spawn. `slash` is the full positional slash invocation; `marker` is injected into the appended system prompt so t
loom/src/commands/pressure/mod.rs:231
↓ 2 callers
Function
claude_should_stop
Map a foreground Claude outcome to a stop decision. A driver-initiated completion is always success; a self-exit is classified normally.
loom/src/commands/pressure/mod.rs:489
↓ 2 callers
Function
clean_worktrees
Clean up all loom worktrees and their branches Returns (worktrees_removed, branches_removed) counts
loom/src/commands/clean.rs:277
↓ 2 callers
Method
cleanup
Clean up socket, PID, token, and completion marker files. CRITICAL (A-1/O-7): This only removes files when THIS process was the live daemon — i.e. it
loom/src/daemon/server/lifecycle.rs:478
↓ 2 callers
Function
cleanup_branch
Clean up the branch for a stage # Arguments `stage_id` - The stage ID whose branch to delete `repo_root` - Path to the repository root `force` - Forc
loom/src/git/cleanup/branch.rs:18
↓ 2 callers
Function
cleanup_multiple_stages
Clean up multiple stages at once # Arguments `stage_ids` - List of stage IDs to clean up `repo_root` - Path to the repository root `config` - Cleanup
loom/src/git/cleanup/batch.rs:135
↓ 2 callers
Function
cleanup_orphaned_sessions
Kill any orphaned loom sessions from previous runs
loom/src/commands/init/cleanup.rs:40
↓ 2 callers
Function
cleanup_stage_files
Clean up all files associated with a stage after successful merge This function removes or archives: - Session files associated with the stage - Sign
loom/src/fs/worktree_files/cleanup.rs:25
↓ 2 callers
Method
cleanup_terminal
Cleanup terminal state (leave alternate screen, disable raw mode). Sets cleaned_up flag to prevent double cleanup in Drop.
loom/src/commands/status/ui/tui/app.rs:248
↓ 2 callers
Function
cleanup_worktree
Clean up a single worktree for a stage # Arguments `stage_id` - The stage ID whose worktree to remove `repo_root` - Path to the repository root `forc
loom/src/git/cleanup/worktree.rs:17
↓ 2 callers
Function
close_iterm2_window
(escaped_title: &str)
loom/src/orchestrator/terminal/native/window_ops.rs:128
↓ 2 callers
Function
close_terminal_app_window
(escaped_title: &str)
loom/src/orchestrator/terminal/native/window_ops.rs:106
↓ 2 callers
Function
close_window_by_title
(title: &str)
loom/src/orchestrator/terminal/native/window_ops.rs:18
↓ 2 callers
Function
close_window_by_title_for_terminal
(title: &str, terminal: &TerminalEmulator)
loom/src/orchestrator/terminal/native/window_ops.rs:186
↓ 2 callers
Function
codex_report_path
Sibling report path for a plan: `codex-<basename>` next to the plan.
loom/src/commands/pressure/mod.rs:162
↓ 2 callers
Function
collect_status_data
Collect all status data from the work directory
loom/src/commands/status/data/collector.rs:250
↓ 2 callers
Function
color_by_index
Get a color by index, cycling through the palette Used for position-based color assignment where adjacent items should have different colors.
loom/src/commands/graph/colors.rs:63
↓ 2 callers
Function
complete_after_subcommand
Complete after a subcommand (two-level depth).
loom/src/completions/dynamic/mod.rs:182
↓ 2 callers
Function
complete_model_names
Complete model names for --model flag.
loom/src/completions/dynamic/commands.rs:134
↓ 2 callers
Function
complete_trigger_types
Complete handoff trigger types for --trigger flag.
loom/src/completions/dynamic/commands.rs:139
↓ 2 callers
Function
complete_with_merge
Complete a stage with merge, triggering dependents on success. This is the standard completion path for stages after acceptance criteria pass. It att
loom/src/commands/stage/progressive_complete.rs:166
↓ 2 callers
Function
completion_file_paths
(home: &Path)
loom/src/completions/install.rs:331
↓ 2 callers
Method
compute_levels
Compute execution levels for all stages based on dependencies.
loom/src/commands/status/ui/tui/state.rs:70
↓ 2 callers
Function
compute_stage_levels
Compute topological level for each stage (level = max(dep_levels) + 1)
loom/src/commands/status/ui/tree_widget.rs:47
↓ 2 callers
Function
configure_loom_hooks
Configure loom hooks in settings object using host paths. Hook scripts are accessed at `~/.claude/hooks/loom/` on the host filesystem. Returns true
loom/src/fs/permissions/hooks.rs:417
↓ 2 callers
Function
context_pct_terminal_color
Get the terminal color for a context percentage. Returns red if >= WARNING threshold, yellow if >= HEALTHY threshold, green otherwise.
loom/src/utils.rs:227
↓ 2 callers
Function
create_branch_with_commit
Create a branch at the current HEAD, add a commit with a new file, and return the SHA of that new commit. Leaves the caller on `main` when done.
loom/src/verify/transitions/tests/dependency_satisfaction_real_git.rs:73
↓ 2 callers
Function
create_test_baseline
(stage_id: &str, failures: Vec<String>)
loom/src/verify/baseline/compare.rs:154
↓ 2 callers
Function
create_test_plan
Helper to create a minimal valid plan file
loom/src/commands/init/tests.rs:19
↓ 2 callers
Function
create_test_stage
(id: &str)
loom/src/orchestrator/signals/base_conflict.rs:189
↓ 2 callers
Function
create_test_stage
()
loom/src/orchestrator/signals/recovery.rs:54
↓ 2 callers
Function
create_test_stage
()
loom/src/orchestrator/signals/knowledge.rs:160
↓ 2 callers
Function
default_branch
Get the default branch (main or master)
loom/src/git/branch/operations.rs:49
↓ 2 callers
Function
detect_at
Inspect a single repo or worktree path, returning the merge if present. `is_worktree=true` means the caller knows this is a worktree directory (relev
loom/src/git/merge/in_progress.rs:112
↓ 2 callers
Function
detect_in_progress_merge_at_worktree
Inspect a worktree path, returning the active merge if present.
loom/src/git/merge/in_progress.rs:162
↓ 2 callers
Function
detect_stage_id
Detect stage ID from current worktree branch. Checks if the current git branch follows the loom worktree naming pattern `loom/<stage-id>` and extract
loom/src/commands/common/mod.rs:42
↓ 2 callers
Function
detect_stage_type_from_id_name
Detect the stage type from an id and name alone, using the same id/name pattern heuristics as [`detect_stage_type`]. This is the heuristic half of de
loom/src/plan/schema/detect.rs:29
↓ 2 callers
Function
detect_worktree_status
( stage_id: &str, repo_root: &Path, work_dir: &Path, )
loom/src/daemon/server/status.rs:135
↓ 2 callers
Function
detect_worktree_status_with_target
Detect the worktree status for a stage, using a precomputed `target_branch`. This is the hot-path variant called once per stage by `collect_status`;
loom/src/daemon/server/status.rs:153
↓ 2 callers
Function
detected
(name: &str)
loom/src/orchestrator/signals/format/sections.rs:907
↓ 2 callers
Function
determine_recovery_reason
Determine recovery reason from stage state
loom/src/commands/stage/recover.rs:198
↓ 2 callers
Function
dispute
(criterion_index: usize)
loom/src/orchestrator/adjudication/prompt.rs:382
↓ 2 callers
Function
download_verify_and_extract_zip
Download, verify checksum, and extract a zip file.
loom/src/commands/self_update/mod.rs:322
↓ 2 callers
Method
drain_completed_adjudicator_workers
Drain the worker→orchestrator completion channel and join any handles whose workers have reported done.
loom/src/orchestrator/core/orchestrator.rs:478
↓ 2 callers
Function
drive_dispute_to_applied
Drive one dispute through the registry to apply.marker. Used to land successful amendments in the cap-exceeded e2e test. Re-seeds the stage to `NeedsA
loom/tests/adjudication_e2e.rs:668
↓ 2 callers
Function
ensure_loom_hooks_local
Write loom hooks and env vars to `.claude/settings.local.json` This merges loom hooks and environment variables into the existing settings.local.json
loom/src/fs/permissions/settings.rs:154
↓ 2 callers
Function
ensure_loom_permissions
Ensure `.claude/settings.json` has loom permissions configured This function: 1. Installs loom hook scripts to ~/.claude/hooks/loom/ 2. Creates `.cla
loom/src/fs/permissions/settings.rs:43
↓ 2 callers
Function
ensure_parent
(path: &Path)
loom/src/orchestrator/adjudication/feedback.rs:32
↓ 2 callers
Function
ensure_plan_versions_dir
Ensure `.work/plan_versions/` exists. Idempotent. Created with mode 0o700 (state directory).
loom/src/plan/amendment.rs:177
↓ 2 callers
Function
execute
Execute the stop command to gracefully shut down the daemon. Order of operations: 1. Verify daemon is running. 2. Read `admin.token`. If unreadable →
loom/src/commands/stop.rs:30
↓ 2 callers
Function
extract_context_percent
Extract context percentage from close reason string
loom/src/commands/stage/recover.rs:245
↓ 2 callers
Function
extract_importable_name
Extract the importable name from a file path. For `src/cache/store.rs` this is `store`. For `src/cache.rs` this is `cache`.
loom/src/verify/wiring_detection.rs:186
↓ 2 callers
Function
extract_plan_overview
Extract overview and proposed changes sections from plan markdown
loom/src/orchestrator/signals/generate.rs:311
↓ 2 callers
Method
failure_count
Get consecutive failure count for a stage
loom/src/orchestrator/monitor/failure_tracking.rs:141
↓ 2 callers
Method
finalize_merge_resolution
Finalize a resolved merge: write `merged=true`, transition to Completed, update the graph, and clean up the signal + active session. PHANTOM-MERGE IN
loom/src/orchestrator/core/merge_handler.rs:225
↓ 2 callers
Function
find_claude_process
(worktree_path: &Path, session_id: &str)
loom/src/orchestrator/terminal/native/pid_tracking.rs:201
↓ 2 callers
Function
find_crash_report
Find crash report for a session
loom/src/commands/stage/recover.rs:225
↓ 2 callers
Function
find_entry_points
Find entry points in the codebase
loom/src/map/detectors.rs:95
↓ 2 callers
Function
find_live_merge_session_for_stage
Find a live merge resolver session for the given stage by scanning `.work/signals/` for merge signals. For each match on `stage_id`, loads the corres
loom/src/orchestrator/signals/merge.rs:49
↓ 2 callers
Function
fix_hooks_local
Configure hooks and env in settings.local.json
loom/src/commands/repair.rs:860
↓ 2 callers
Function
format_memory_for_handoff
Format memory for inclusion in handoff file
loom/src/fs/memory/export.rs:104
↓ 2 callers
Function
format_memory_for_signal
Format memory entries for embedding in a signal
loom/src/fs/memory/export.rs:10
↓ 2 callers
Method
gaps
Get gaps if any
loom/src/verify/goal_backward/result.rs:75
↓ 2 callers
Function
gc
Execute the knowledge gc command — compact knowledge files via Claude session.
loom/src/commands/knowledge/gc.rs:13
↓ 2 callers
Function
generate_crash_report
Generate a crash report file in the crashes directory Creates a markdown file with crash diagnostics including: - Timestamp and session/stage info -
loom/src/orchestrator/spawner.rs:77
↓ 2 callers
Function
generate_recovery_session_id
Generate a session ID for recovery
loom/src/commands/stage/recover.rs:217
↓ 2 callers
Function
generate_summary
Generate a summary of the memory journal (for context threshold)
loom/src/fs/memory/query.rs:32
↓ 2 callers
Method
generate_summary
Generate a compact summary of all knowledge for embedding in signals
loom/src/fs/knowledge/dir.rs:222
↓ 2 callers
Function
generate_token_hex
Generate a 64-character hex token from 32 cryptographically-strong bytes. Uses `OsRng` (getrandom on Linux, SecRandomCopyBytes on macOS) instead of `
loom/src/daemon/server/lifecycle.rs:24
↓ 2 callers
Function
get_conflicting_files_from_status
Get list of files that would conflict if we merged a branch. This uses `git merge --no-commit` to test the merge, then aborts. Returns the list of co
loom/src/git/merge/mod.rs:233
↓ 2 callers
Function
get_dependency_status
Get dependency status for signal generation
loom/src/orchestrator/core/stage_executor.rs:706
↓ 2 callers
Function
get_src_subdirectories
( project_root: &std::path::Path, src_path: Option<String>, )
loom/src/commands/knowledge/check.rs:215
↓ 2 callers
Method
handle_context_critical
Handle critical context by generating a handoff file Called when a session reaches critical context threshold. Loads session and stage data, creates
loom/src/orchestrator/monitor/handlers.rs:101
↓ 2 callers
Function
handle_force_unsafe_completion
Handle force-unsafe completion mode. Bypasses state machine validation and marks stage as completed directly. This is a manual recovery command for a
loom/src/commands/stage/complete.rs:546
↓ 2 callers
Method
handle_session_crash
Handle session crash by generating a crash report Called when a session crash is detected. Creates a CrashReport, generates the crash report file, an
loom/src/orchestrator/monitor/handlers.rs:129
↓ 2 callers
Function
has_source_extension
Return `true` if the path has a recognised source extension.
loom/src/verify/duplicate_detection.rs:253
↓ 2 callers
Function
hold
Hold a stage (prevent auto-execution even when ready)
loom/src/commands/stage/state.rs:180
↓ 2 callers
Function
init_test_repo
()
loom/src/git/branch/operations.rs:100
↓ 2 callers
Function
install_loom_hooks
Install all loom hooks to ~/.claude/hooks/loom/ Convenience wrapper that installs to the default location. Use `install_loom_hooks_to` for testabilit
loom/src/fs/permissions/hooks.rs:104
↓ 2 callers
Method
is_alive
Return `true` when the session's process is still running. Errors surfaced from the underlying backend bubble up (the monitor treats `Err` as "unknown
loom/src/orchestrator/liveness.rs:51
↓ 2 callers
Function
is_auto_merge_enabled
Check if auto-merge is enabled for a stage Priority (highest to lowest): 1. Stage-level `auto_merge` setting 2. Plan-level `auto_merge` setting 3. Or
loom/src/orchestrator/auto_merge.rs:49
↓ 2 callers
Method
is_dimmed
Returns whether this status should be dimmed
loom/src/models/stage/types.rs:843
↓ 2 callers
Function
is_manually_merged_into
Check whether a stage's loom branch has been merged into `target_branch`. Internal hot-path variant taking a precomputed target branch (P-1(c)).
loom/src/daemon/server/status.rs:203
↓ 2 callers
Method
is_merge_session
Check if a session is a merge session (has a merge signal file)
loom/src/orchestrator/monitor/handlers.rs:62
↓ 2 callers
Function
is_socket_disconnected
Check if an error indicates socket disconnection. Returns true only for actual disconnection errors (EOF, broken pipe, etc.) NOT for timeouts (WouldB
loom/src/commands/status/ui/tui/daemon_client.rs:74
↓ 2 callers
Method
is_terminal
Returns true if this is a terminal state (no valid outgoing transitions).
loom/src/models/session/transitions.rs:81
↓ 2 callers
Function
is_worktree_escape_path
Whether a filesystem deny path is a worktree-relative escape rule. These (`../../**`, `../.worktrees/**`, …) are resolved relative to the directory h
loom/src/sandbox/settings.rs:52
↓ 2 callers
Function
iterm2_window_exists
(escaped_title: &str)
loom/src/orchestrator/terminal/native/window_ops.rs:341
↓ 2 callers
Method
list_files
List all knowledge files that exist
loom/src/fs/knowledge/dir.rs:357
↓ 2 callers
Function
load_config_required
Load config.toml, returning an error if it doesn't exist Use this when config.toml is required (e.g., during execution).
loom/src/fs/work_dir.rs:77
↓ 2 callers
Function
load_last_heartbeat
Load last heartbeat information for a stage
loom/src/commands/stage/recover.rs:185
↓ 2 callers
Function
load_parsed_plan
Load the full parsed plan from config
loom/src/commands/stage/complete.rs:52
↓ 2 callers
Function
load_plan_name
Load the plan name from config.toml and the plan file (best-effort).
loom/src/commands/status/data/collector.rs:240
↓ 2 callers
Function
loom_hooks_config_for_dir
Generate global hooks configuration for a specific hooks directory. Internal helper used by [`loom_hooks_config`] to build the hook table against the
loom/src/fs/permissions/hooks.rs:14
↓ 2 callers
Function
make_stage
(id: &str)
loom/src/plan/tests/amendment.rs:75
↓ 2 callers
Function
make_stage_def
(id: &str)
loom/src/orchestrator/core/persistence.rs:162
↓ 2 callers
Function
make_stage_two_criteria
Stage seeded with two acceptance criteria so a Delete-index-0 amendment still produces a validatable Standard stage (validation requires at least one
loom/tests/adjudication_e2e.rs:38
↓ 2 callers
Function
make_wiring_yaml
(source: &str, pattern: &str, description: &str)
loom/src/plan/tests/amendment.rs:126
↓ 2 callers
Function
mark_stage_merged
Update stage status to Completed and mark as merged after successful merge
loom/src/commands/worktree_cmd.rs:303
↓ 2 callers
Method
max_disputes_per_stage
Maximum number of disputes a stage may file before further dispute requests are refused. See `dispute_budget_exhausted`.
loom/src/models/stage/methods.rs:414
← previous
next →
701–800 of 3,851, ranked by callers