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
Method
to_settings_hooks
Generate session-specific hooks for Claude Code settings.json (new format) This creates ONLY session-specific hooks that should be added to worktree
loom/src/hooks/config.rs:163
↓ 2 callers
Method
to_yaml
Serialize to YAML string
loom/src/handoff/schema/v2.rs:134
↓ 2 callers
Method
total
(&self)
loom/src/commands/status/ui/tui/state.rs:56
↓ 2 callers
Function
transform_worktree_path
Transform a worktree-specific permission path to a portable path Returns Some(transformed_permission) if the path was transformed, None if the permis
loom/src/fs/permissions/sync.rs:216
↓ 2 callers
Method
try_auto_merge
Attempt auto-merge for a completed stage. Returns `true` if the merge succeeded or was not needed (stage can be marked Completed). Returns `false` if
loom/src/orchestrator/core/merge_handler.rs:479
↓ 2 callers
Method
try_mark_crashed
Mark the session as crashed with validation. # Returns `Ok(())` if the transition succeeded, `Err` if invalid
loom/src/models/session/methods.rs:189
↓ 2 callers
Method
try_mark_waiting_for_input
Mark the stage as waiting for input with validation. # Returns `Ok(())` if the transition succeeded, `Err` if invalid
loom/src/models/stage/methods.rs:245
↓ 2 callers
Method
try_reject_review
Reject human review and block the stage. Transitions from NeedsHumanReview to Blocked and updates the review reason. # Arguments `reason` - Why the
loom/src/models/stage/methods.rs:374
↓ 2 callers
Method
tui_style
Returns the ratatui style for this status
loom/src/models/stage/types.rs:853
↓ 2 callers
Function
unsupported_marker_path
Path to the `.work/remote_control-unsupported` marker file.
loom/src/remote_control.rs:206
↓ 2 callers
Function
update_plan_source_path
Update the plan source path in config.toml. Goes through the centralized `fs::work_dir` API so comments and unknown keys (other tables, sandbox snaps
loom/src/fs/plan_lifecycle.rs:71
↓ 2 callers
Function
update_ready_status
Update which stages are ready (all deps satisfied AND merged). A stage transitions from `WaitingForDeps` to `Queued` when: - It has no dependencies,
loom/src/plan/graph/scheduling.rs:19
↓ 2 callers
Method
valid_transitions
Returns the list of valid statuses this status can transition to.
loom/src/models/session/transitions.rs:64
↓ 2 callers
Function
validate_domain_pattern
Validate a domain pattern
loom/src/plan/schema/validation.rs:56
↓ 2 callers
Function
validate_filesystem_config
Validate filesystem configuration
loom/src/plan/schema/validation.rs:81
↓ 2 callers
Function
validate_markdown_files
(dir: &std::path::Path, entity_type: &str)
loom/src/commands/status/validation.rs:7
↓ 2 callers
Function
validate_network_config
Validate network configuration
loom/src/plan/schema/validation.rs:118
↓ 2 callers
Function
validate_work_dir_state
Validate that the .work directory is in the expected state In the main repository, .work should be a directory. In a worktree, .work should be a syml
loom/src/fs/work_integrity.rs:87
↓ 2 callers
Function
verify_wiring
Verify all wiring checks find their patterns in source files. For each wiring check, verifies that: 1. The source file exists 2. The file is readable
loom/src/verify/goal_backward/wiring.rs:24
↓ 2 callers
Function
version_supported
Whether a parsed version triple satisfies [`MIN_REMOTE_CONTROL_VERSION`]. The single source of truth for the version gate, shared by [`claude_support
loom/src/remote_control.rs:108
↓ 2 callers
Function
wait_for_condition
Polls a predicate function until it returns true or timeout is reached Useful for waiting for asynchronous operations to complete in tests
loom/tests/e2e/helpers/utils.rs:43
↓ 2 callers
Function
window_exists_by_title_for_terminal
(title: &str, terminal: &TerminalEmulator)
loom/src/orchestrator/terminal/native/window_ops.rs:380
↓ 2 callers
Method
with_key_decisions
Set key decisions
loom/src/handoff/schema/v2.rs:91
↓ 2 callers
Method
with_memory_content
Set memory content from session journal
loom/src/handoff/generator/content.rs:100
↓ 2 callers
Method
with_next_actions
Set next actions
loom/src/handoff/schema/v2.rs:97
↓ 2 callers
Function
wrapper_script_path
Get the path to a wrapper script for a tracking key.
loom/src/orchestrator/terminal/native/pid_tracking.rs:49
↓ 2 callers
Function
wrappers_dir
Get the path to the wrappers directory
loom/src/orchestrator/terminal/native/pid_tracking.rs:21
↓ 2 callers
Function
write_completion_marker
Write a completion marker file to signal that orchestration has finished. The status broadcaster detects this file and sends OrchestrationComplete to
loom/src/daemon/server/orchestrator.rs:142
↓ 2 callers
Function
write_config
Write the document back to `.work/config.toml`, crash-atomically and under the `.work/` directory lock. The write goes through [`crate::fs::locking::
loom/src/fs/work_dir.rs:383
↓ 2 callers
Function
write_heartbeat
Write a heartbeat file
loom/src/orchestrator/monitor/heartbeat.rs:263
↓ 2 callers
Function
write_knowledge_sandbox
Write sandbox settings for a knowledge-scoped Claude session. When `allow_writes` is false (dry-run), Write is denied entirely. Returns original `.cl
loom/src/commands/knowledge/spawn.rs:40
↓ 2 callers
Function
write_plan_with_code_review
Write a plan file with an integration-verify stage carrying `code_review` dimensions, plus a `config.toml` whose `source_path` points at it. Mirrors t
loom/src/orchestrator/signals/tests.rs:502
↓ 2 callers
Function
write_plan_with_metadata_markers
Write a plan file with the full `<!-- loom METADATA -->` markers that `apply_amendment` requires to splice the amended YAML back into the document. Th
loom/tests/adjudication_e2e.rs:93
↓ 2 callers
Function
write_remote_control_config
Persist the Remote Control config (`[remote_control]`).
loom/src/fs/work_dir.rs:503
↓ 2 callers
Function
write_section
(work_dir: &Path, section: &str, value: &T)
loom/src/fs/work_dir.rs:450
↓ 2 callers
Function
write_stale_config
Write a minimal `.work/config.toml` that includes a stale `[project_execution]` table along with a valid `[plan]` section.
loom/tests/e2e/daemon_config/stale_project_execution.rs:41
↓ 2 callers
Function
write_unsupported_marker
Write the `.work/remote_control-unsupported` marker. Best-effort: write errors are returned to the caller, which typically ignores them (the marker i
loom/src/remote_control.rs:219
↓ 1 callers
Function
active_stuck_sessions
Collect the set of session IDs that currently have an active `PossiblyStuck` soft signal, reading the soft-signals file exactly once (P-5). Mirrors t
loom/src/daemon/server/status.rs:111
↓ 1 callers
Method
add_skill
Add a skill to the index
loom/src/skills/index.rs:96
↓ 1 callers
Method
age
Get the age of this heartbeat
loom/src/orchestrator/monitor/heartbeat.rs:88
↓ 1 callers
Function
align_table
Align a markdown table by normalizing column widths.
skills/loom-md-tables/fix-md-tables.py:45
↓ 1 callers
Method
all_stages_terminal
(&self)
loom/src/orchestrator/core/recovery.rs:948
↓ 1 callers
Function
analyze_dependencies
Analyze dependencies from manifest files
loom/src/map/detectors.rs:44
↓ 1 callers
Function
analyze_dir_recursive
( _base: &Path, current: &Path, depth: usize, max_depth: usize, output: &mut Vec<String>,
loom/src/map/detectors.rs:146
↓ 1 callers
Function
analyze_gc_metrics_with_promoted
Analyze GC metrics with configurable promoted block threshold
loom/src/fs/knowledge/gc.rs:52
↓ 1 callers
Function
analyze_knowledge_completeness
( knowledge: &KnowledgeDir, project_root: &std::path::Path, src_path: Option<String>, )
loom/src/commands/knowledge/check.rs:117
↓ 1 callers
Function
analyze_src_coverage
( knowledge: &KnowledgeDir, project_root: &std::path::Path, src_path: Option<String>, )
loom/src/commands/knowledge/check.rs:174
↓ 1 callers
Function
analyze_structure
Analyze directory structure
loom/src/map/detectors.rs:135
↓ 1 callers
Function
append_audit_row
Append a single audit row via `safe_append_in_workdir` (O_APPEND + flock).
loom/src/plan/amendment.rs:349
↓ 1 callers
Function
append_git_staging_full
Append git staging rules with danger box (standard prefix only)
loom/src/orchestrator/signals/cache.rs:188
↓ 1 callers
Function
applied_marker_path
Helper used by `mod.rs::apply_pending_verdicts`: returns the path to the applied-marker for a given (stage, dispute).
loom/src/orchestrator/adjudication/worker.rs:297
↓ 1 callers
Function
apply_fixes
Attempt to fix detected issues
loom/src/commands/repair.rs:683
↓ 1 callers
Function
apply_patch_to_runtime_stage
( stage: &mut Stage, field: AmendmentField, patch: &AmendmentPatch, value: &ParsedAmendmentVal
loom/src/plan/amendment.rs:903
↓ 1 callers
Function
apply_patch_to_stage_def
( stage: &mut StageDefinition, field: AmendmentField, patch: &AmendmentPatch, value: &ParsedAm
loom/src/plan/amendment.rs:877
↓ 1 callers
Method
apply_verdict_inner
( &self, work_dir: &Path, stage: &mut Stage, record: &DisputeVerdictRecord,
loom/src/orchestrator/adjudication/mod.rs:313
↓ 1 callers
Function
archive_stage_file
Archive a stage file by moving it to the archive directory
loom/src/fs/worktree_files/stages.rs:11
↓ 1 callers
Function
are_all_dependencies_satisfied_cached
Cached form of [`are_all_dependencies_satisfied`] for the per-tick spawn guard. The spawn-time phantom-merge guard runs on every orchestrator poll fo
loom/src/verify/transitions/state.rs:264
↓ 1 callers
Method
as_settings_value
Return the camelCase string Claude Code expects in `settings.json` under `permissions.defaultMode`.
loom/src/models/stage/types.rs:115
↓ 1 callers
Function
attempt_auto_merge
Attempt to auto-merge a completed stage This function: 1. Checks if the stage has a worktree 2. Attempts to merge the stage branch to the target bran
loom/src/orchestrator/auto_merge.rs:70
↓ 1 callers
Function
audit_content
(env: &TestEnv)
loom/src/plan/tests/amendment.rs:97
↓ 1 callers
Function
backoff_for
(attempt: u32)
loom/src/orchestrator/adjudication/client.rs:179
↓ 1 callers
Function
base_branch_exists
Check if a base branch exists for a stage # Arguments `stage_id` - The stage ID to check `repo_root` - Path to the repository root # Returns `true`
loom/src/git/cleanup/base.rs:78
↓ 1 callers
Method
blocked_stage_keeps_daemon_alive
Whether a graph-Blocked stage should keep the watch-mode daemon alive. Returns `true` when the stage file shows a crash auto-retry is still pending (
loom/src/orchestrator/core/recovery.rs:103
↓ 1 callers
Function
branch_exists_ref
Resolve whether a ref (branch name or SHA) exists, swallowing all errors. Used by [`commits_ahead_of`] to disambiguate "range failed because the bran
loom/src/git/branch/ancestry.rs:132
↓ 1 callers
Function
broadcast_to_subscribers
Broadcast a response to all subscribers, removing any that fail.
loom/src/daemon/server/broadcast.rs:225
↓ 1 callers
Function
build_cross_stage_summary
Build cross-stage change summary for integration-verify stages. For each completed dependency, aggregates file assignments and stage metadata to give
loom/src/orchestrator/signals/generate.rs:410
↓ 1 callers
Function
build_embedded_context_with_stage
Build embedded context with optional stage-specific task state (no session memory)
loom/src/orchestrator/signals/generate.rs:233
↓ 1 callers
Function
build_execution_graph
Build execution graph from .work/stages/ files. This function now delegates to the shared implementation in plan::graph::loader.
loom/src/daemon/server/orchestrator.rs:152
↓ 1 callers
Method
build_graph
(&self)
loom/src/plan/graph/loader.rs:32
↓ 1 callers
Function
build_levels_output
( stages: &[StageDefinition], levels_map: &std::collections::HashMap<String, usize>, )
loom/src/commands/plan/verify.rs:102
↓ 1 callers
Function
build_merge_report
Build a merge status report for a collection of stages. # Arguments `stages` - The stages to check `merge_point` - The branch/commit to check against
loom/src/git/merge/status.rs:156
↓ 1 callers
Function
build_sandbox_summary
Build sandbox summary from stage configuration
loom/src/orchestrator/signals/generate.rs:626
↓ 1 callers
Function
build_session_summary
(session: &Session)
loom/src/commands/status/data/collector.rs:180
↓ 1 callers
Function
build_skill_match_text
Build text for skill matching from stage metadata
loom/src/orchestrator/signals/generate.rs:209
↓ 1 callers
Function
build_system_prompt
()
loom/src/orchestrator/adjudication/prompt.rs:62
↓ 1 callers
Function
build_tool_commands
Return build tool commands that should be excluded from sandboxing for detected languages
loom/src/sandbox/settings.rs:200
↓ 1 callers
Function
build_user_prompt
( plan_path: &Path, stage: &Stage, dispute: &DisputeRequest, work_dir: &Path, )
loom/src/orchestrator/adjudication/prompt.rs:91
↓ 1 callers
Function
build_wiring_checklist
Build wiring checklist from stage memories for integration-verify. Reads memory entries from all completed stages and extracts wiring-related notes i
loom/src/orchestrator/signals/generate.rs:513
↓ 1 callers
Function
cached_preflight_enabled
Memoized version-probe result, keyed by nothing — `claude --version` is invariant for the lifetime of a process. `None` means "not yet probed".
loom/src/remote_control.rs:228
↓ 1 callers
Method
can_transition_to
Check if transitioning from the current status to the new status is valid. Valid transitions: - `Spawning` -> `Running` | `Crashed` (process can cras
loom/src/models/session/transitions.rs:23
↓ 1 callers
Function
capture_baseline
Capture a baseline by running the configured command and extracting failure/warning patterns. # Arguments `stage_id` - The stage ID this baseline is
loom/src/verify/baseline/capture.rs:29
↓ 1 callers
Function
change
Record a file change in the memory journal
loom/src/commands/memory/handlers.rs:109
↓ 1 callers
Function
check_all_issues
Check for all potential issues
loom/src/commands/repair.rs:229
↓ 1 callers
Function
check_cross_stage_wiring_coverage
Check that artifact-producing stages are covered by wiring verification somewhere in the DAG. For each Standard stage that declares artifacts, this f
loom/src/plan/schema/validation.rs:813
↓ 1 callers
Function
check_directory_structure
(work_dir: &WorkDir)
loom/src/commands/status/diagnostics.rs:7
↓ 1 callers
Function
check_for_uncommitted_changes
Check for uncommitted changes and bail if found This prevents starting orchestration with a dirty repository, which could cause issues with worktree
loom/src/commands/run/checks.rs:39
↓ 1 callers
Method
check_level
Calculate context level using this configuration.
loom/src/handoff/detector.rs:74
↓ 1 callers
Function
check_log_rotation
Check if log file was rotated (inode changed) or truncated (size < position). Returns new reader and inode if rotation/truncation detected.
loom/src/daemon/server/broadcast.rs:103
↓ 1 callers
Function
check_memory_covers_unwired
Check if memory entries mention unwired files
loom/src/commands/stage/complete.rs:683
↓ 1 callers
Function
check_migration
Check for outdated completion setups and print migration instructions
loom/src/completions/install.rs:229
↓ 1 callers
Function
check_parsing_errors
(work_dir: &WorkDir)
loom/src/commands/status/diagnostics.rs:33
↓ 1 callers
Function
check_rc_files
(home: &Path)
loom/src/completions/install.rs:244
↓ 1 callers
Function
check_retry_eligibility
Check if a blocked stage is eligible for automatic retry *right now*. A stage is eligible for retry if: - It is retryable at all (`is_retry_pending`:
loom/src/orchestrator/core/recovery.rs:84
↓ 1 callers
Function
check_stale_files
(home: &Path)
loom/src/completions/install.rs:279
↓ 1 callers
Function
check_wiring_pattern_quality
Check wiring pattern quality and return a warning if the pattern is weak. Returns Some(warning_message) if the pattern is: - Too short (< 5 character
loom/src/plan/schema/validation.rs:756
↓ 1 callers
Function
check_worktree_support
Check if git worktree is supported (git 2.15+)
loom/src/git/worktree/checks.rs:27
↓ 1 callers
Function
classify_and_validate
(json: Value)
loom/src/orchestrator/adjudication/verdict.rs:120
↓ 1 callers
Function
classify_code
Pure classification of a child exit code (`None` = killed by a signal).
loom/src/commands/pressure/mod.rs:316
↓ 1 callers
Function
classify_exit
Classify a finished child process for pipeline control.
loom/src/commands/pressure/mod.rs:311
↓ 1 callers
Function
classify_failure
Classifies a failure based on the close reason string. Analyzes the close_reason text to determine what type of failure occurred. This enables approp
loom/src/orchestrator/retry.rs:100
← previous
next →
901–1,000 of 3,851, ranked by callers