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
↓ 4 callers
Function
prepare_continuation
Prepare context for continuing a stage Loads the stage, finds the latest handoff if available, and verifies the worktree exists. Returns all the cont
loom/src/orchestrator/continuation/context.rs:33
↓ 4 callers
Function
query_entries
Query memory entries by search term
loom/src/fs/memory/query.rs:17
↓ 4 callers
Function
read_audit_rows
Read every audit row currently in `.work/plan_versions/audit.md`. Returns an empty vec if the file does not exist.
loom/src/plan/amendment.rs:278
↓ 4 callers
Function
read_content_from_stdin
()
loom/src/commands/knowledge/mod.rs:47
↓ 4 callers
Function
read_heartbeat
Read a heartbeat file
loom/src/orchestrator/monitor/heartbeat.rs:255
↓ 4 callers
Function
read_merge_signal
Read and parse a merge signal file. Returns `None` if the signal file doesn't exist or isn't a merge signal.
loom/src/orchestrator/signals/merge.rs:101
↓ 4 callers
Function
read_plan
(env: &TestEnv)
loom/src/plan/tests/amendment.rs:93
↓ 4 callers
Function
refresh_worktree_settings_local
Merge permissions from main repo's settings.local.json into a worktree. This is the public interface for refreshing permissions in a worktree. Instea
loom/src/git/worktree/settings.rs:156
↓ 4 callers
Method
render
Render the UI.
loom/src/commands/status/ui/tui/app.rs:266
↓ 4 callers
Function
request_file
(disputes_root: &std::path::Path, stage_id: &str, id: u32)
loom/src/models/dispute.rs:96
↓ 4 callers
Function
resolve_stage_id
Resolve stage ID from argument or LOOM_STAGE_ID environment variable
loom/src/commands/handoff/create.rs:124
↓ 4 callers
Function
run_acceptance_with_display
Run acceptance criteria and print standardized output. Returns `true` when all criteria pass, `false` otherwise.
loom/src/commands/stage/acceptance_runner.rs:153
↓ 4 callers
Function
run_git
Run a git command and return the raw Output. Wraps `Command::new("git")` with `current_dir` and error context. Sets `LC_ALL=C` and `LANG=C` so git ou
loom/src/git/runner.rs:22
↓ 4 callers
Function
run_git_bool
Run a git command and return true if exit code is 0. Silently swallows errors (both spawn failures and non-zero exits). Use this for status checks li
loom/src/git/runner.rs:82
↓ 4 callers
Function
safe_create_dir_all_in_workdir
Create every component of `relpath` as a directory under `dirfd`, refusing to traverse any symlink. Idempotent: existing directories are accepted, exi
loom/src/fs/safe_fs.rs:247
↓ 4 callers
Function
seed_stage
(work_dir: &Path, id: &str)
loom/src/verify/transitions/persistence.rs:225
↓ 4 callers
Function
session_to_markdown
Serialize a session to its on-disk markdown representation: YAML frontmatter (the authoritative machine-readable form parsed back via [`crate::parser:
loom/src/fs/session_files.rs:46
↓ 4 callers
Function
setup
()
loom/tests/plan_amendment_integration.rs:37
↓ 4 callers
Function
signals_path
(work_dir: &Path)
loom/src/orchestrator/monitor/soft_signals.rs:40
↓ 4 callers
Function
stage_file_path
Get the stage file path, creating a new path with depth prefix. # Arguments `stages_dir` - Path to the stages directory `depth` - The topological dep
loom/src/fs/stage_files.rs:118
↓ 4 callers
Function
strip_embedded_content
Strip heredoc bodies and -m/--message quoted content from a command. This prevents false positives where pattern words appear inside message text.
loom/src/hooks/validators/bash.rs:71
↓ 4 callers
Method
surface_unresolved_merge
Remove active-session tracking for an unresolved merge and print user-facing recovery instructions. Used by all non-finalizing arms of `handle_merge_
loom/src/orchestrator/core/merge_handler.rs:203
↓ 4 callers
Method
total_len
Total byte length of the assembled prompt. Used by tests + the truncation pass to enforce [`MAX_PROMPT_BYTES`].
loom/src/orchestrator/adjudication/prompt.rs:38
↓ 4 callers
Method
try_approve_review
Approve human review and resume execution. Transitions from NeedsHumanReview back to Executing. # Returns `Ok(())` if the transition succeeded, `Err
loom/src/models/stage/methods.rs:343
↓ 4 callers
Method
update_ready_status
Update which stages are ready (all deps satisfied and merged). # Returns A vector of stage IDs that transitioned from `WaitingForDeps` to `Queued`.
loom/src/plan/graph/mod.rs:108
↓ 4 callers
Function
validate_acceptance_criterion
Validate a single acceptance criterion Acceptance criteria must: - Not have an empty or whitespace-only command - Not contain control characters (exc
loom/src/plan/schema/validation.rs:16
↓ 4 callers
Function
verify
Re-run acceptance criteria and complete a stage that previously failed. This command is useful when: - A stage is in CompletedWithFailures state and
loom/src/commands/stage/verify.rs:28
↓ 4 callers
Method
verify_and_finalize_merge
Verify merge succeeded and update stage state accordingly. This helper encapsulates the common pattern of verifying a merge via git ancestry check an
loom/src/orchestrator/core/merge_handler.rs:319
↓ 4 callers
Function
verify_binary_signature
Verify the cryptographic signature of downloaded binary content. Uses minisign signature format for verification. Returns Ok(()) if signature is valid
loom/src/commands/self_update/signature.rs:19
↓ 4 callers
Function
verify_checksum
Verify content matches expected SHA256 checksum. Returns Ok(()) if checksum matches, Err with details if verification fails.
loom/src/commands/self_update/signature.rs:77
↓ 4 callers
Function
verify_plan_versions_consistency
Verify and reconcile `.work/plan_versions/` against the live plan file and target stage files. Called from orchestrator startup. Recovery cases (exec
loom/src/plan/amendment.rs:707
↓ 4 callers
Method
with_context_percent
Set the context usage percentage
loom/src/handoff/generator/content.rs:46
↓ 4 callers
Method
with_current_branch
Set current branch
loom/src/handoff/generator/content.rs:70
↓ 4 callers
Method
with_decisions
Add decisions made
loom/src/handoff/generator/content.rs:64
↓ 4 callers
Method
with_files_modified
Set files modified
loom/src/handoff/schema/v2.rs:128
↓ 4 callers
Method
with_plan_id
Set plan ID
loom/src/handoff/generator/content.rs:88
↓ 4 callers
Function
write_events
Write a `tool-events.jsonl` file into the given temp directory.
loom/src/orchestrator/monitor/tool_analysis.rs:135
↓ 3 callers
Function
abort_merge
Abort a merge in progress
loom/src/git/merge/mod.rs:279
↓ 3 callers
Function
add_settings_local_to_main_gitignore
Exclude `.claude/settings.local.json` from the main repo's git exclude. Used for knowledge stages that run in the main repo without a dedicated workt
loom/src/git/worktree/settings.rs:495
↓ 3 callers
Method
all_passed
Check if all criteria passed
loom/src/verify/criteria/result.rs:76
↓ 3 callers
Function
append_completion_rules
Append completion rules shared between standard and integration-verify prefixes
loom/src/orchestrator/signals/cache.rs:96
↓ 3 callers
Function
append_execution_rules_intro
Append the common "## Execution Rules" intro used by IV, knowledge-distill, and knowledge. Standard prefix uses a slightly different wording ("both a
loom/src/orchestrator/signals/cache.rs:144
↓ 3 callers
Function
append_git_staging_rules
Append the 3 core git staging rules (shared by standard and integration-verify)
loom/src/orchestrator/signals/cache.rs:206
↓ 3 callers
Function
append_path_boundaries
Append path boundaries table (shared by standard and integration-verify prefixes)
loom/src/orchestrator/signals/cache.rs:54
↓ 3 callers
Function
apply_default_mode
Write Claude Code's `permissions.defaultMode` into a settings JSON value. Uses the camelCase string Claude Code expects (e.g. `"acceptEdits"`, `"bypa
loom/src/sandbox/settings.rs:15
↓ 3 callers
Method
as_v2
Get V2 handoff if available
loom/src/handoff/schema/parsing.rs:36
↓ 3 callers
Method
assign_session
(&mut self, session_id: String)
loom/src/models/stage/methods.rs:135
↓ 3 callers
Function
atomic_write_locked
Crash-atomically write `content` to `path`, assuming the caller already holds the relevant directory lock (e.g. via [`locked_dir_update`]). This is t
loom/src/fs/locking.rs:157
↓ 3 callers
Function
attempt_progressive_merge
Attempt to progressively merge a completed stage into the merge point. This function handles the git merge operations and updates the stage's merge-r
loom/src/commands/stage/progressive_complete.rs:48
↓ 3 callers
Function
audit
(max_file_lines: usize, max_total_lines: usize, quiet: bool)
loom/src/commands/knowledge/audit.rs:8
↓ 3 callers
Method
block_stranded_stage
Mark a stage Blocked with an `InfrastructureError` after a failure that occurred *after* it was already marked Executing but *before* a session was su
loom/src/orchestrator/core/stage_executor.rs:620
↓ 3 callers
Method
bucket
Classify this status into a coarse [`StatusBucket`]. The mapping matches the established daemon/CLI semantics: - `NeedsHandoff` and `WaitingForInput`
loom/src/models/stage/types.rs:916
↓ 3 callers
Function
build_system_prompt
Build the system prompt for the Claude session.
loom/src/commands/knowledge/bootstrap.rs:103
↓ 3 callers
Function
check_git_available
Check if git is available
loom/src/git/worktree/checks.rs:13
↓ 3 callers
Method
check_session_alive
Check if a session is still alive. Delegates to the backend-aware [`LivenessService`] when available (the production path). When no liveness service
loom/src/orchestrator/monitor/handlers.rs:51
↓ 3 callers
Function
clean_state_directory
Remove the .work/ state directory Returns true if the directory was removed
loom/src/commands/clean.rs:403
↓ 3 callers
Function
cleanup_heartbeat_for_session
Remove the on-disk heartbeat file for a session's stage when the session reaches a terminal status (crash/completion). Heartbeat files are keyed by st
loom/src/orchestrator/monitor/detection.rs:28
↓ 3 callers
Function
cleanup_terminal
Restore terminal to a clean state. This function: - Shows the cursor (if hidden) - Resets text attributes (colors, bold, etc.) - Clears the current l
loom/src/utils.rs:139
↓ 3 callers
Function
cleanup_work_directory
Remove the existing .work/ directory
loom/src/commands/init/cleanup.rs:46
↓ 3 callers
Method
clear_merge_resolver_attempts
Clear the persisted merge-resolver attempt counter for `stage_id`. Called once a merge is finalized so a later, unrelated conflict on the same stage
loom/src/orchestrator/core/merge_handler.rs:984
↓ 3 callers
Function
collect_completion_summary
Collect completion summary from all stage files. Gathers timing information and final status for all stages, calculates total duration and success/fa
loom/src/daemon/server/status.rs:269
↓ 3 callers
Function
compact
Compact `soft-signals.jsonl` in place, keeping only non-expired rows. The file is append-only and never pruned during normal operation, so over a lon
loom/src/orchestrator/monitor/soft_signals.rs:151
↓ 3 callers
Function
complete_shell_types
Complete shell type names (bash, zsh, fish).
loom/src/completions/dynamic/commands.rs:129
↓ 3 callers
Function
compute_connector
Compute the tree connector prefix for a stage at a given level. Indents 3 columns per level and uses `└─ ` for the last stage at any level, `├─ ` oth
loom/src/commands/common/tree.rs:14
↓ 3 callers
Function
compute_stage_levels
Compute the topological level for each stage. Level = max(levels of all dependencies) + 1, with roots at level 0.
loom/src/commands/graph/levels.rs:12
↓ 3 callers
Function
count_content_sections
(content: &str)
loom/src/commands/knowledge/check.rs:160
↓ 3 callers
Function
count_pattern_in_source
(root: &Path, pattern: &str)
loom/src/map/detectors.rs:281
↓ 3 callers
Function
create_conflict_in_main
(repo_root: &Path, stage_id: &str)
loom/src/orchestrator/merge_attribution.rs:351
↓ 3 callers
Function
create_pid_dir
Create the pids directory if it doesn't exist
loom/src/orchestrator/terminal/native/pid_tracking.rs:26
↓ 3 callers
Function
create_signal_file
(work_dir: &std::path::Path, session_id: &str)
loom/src/fs/worktree_files/tests.rs:42
↓ 3 callers
Function
create_temp_git_repo
Creates a temporary git repository with initial commit Returns a TempDir that must be kept in scope for the lifetime of the test
loom/tests/e2e/helpers/git.rs:11
↓ 3 callers
Function
create_test_handoff
(stage_id: &str, work_dir: &std::path::Path)
loom/src/orchestrator/continuation/tests.rs:52
↓ 3 callers
Function
create_test_stage
(id: &str, status: StageStatus)
loom/src/commands/stage/verify.rs:185
↓ 3 callers
Method
default_content
Get default content for a knowledge file type
loom/src/fs/knowledge/dir.rs:293
↓ 3 callers
Function
delete_branch
Test helper: Delete a branch
loom/tests/integration/helpers.rs:155
↓ 3 callers
Function
delete_file
Delete a file, treating "not found" as success.
loom/src/commands/pressure/mod.rs:326
↓ 3 callers
Function
detect_languages_from_files
Detect programming languages from a list of file paths or glob patterns. Inspects each entry's file extension — handling globs like `src/**/*.rs`, `f
loom/src/language.rs:101
↓ 3 callers
Function
detect_project_type
Detect the project type based on manifest files
loom/src/map/detectors.rs:8
↓ 3 callers
Function
detect_stage_type
Detect the stage type from a definition. Uses explicit `stage_type` field if set, otherwise falls back to detecting stage type based on ID or name pa
loom/src/plan/schema/detect.rs:12
↓ 3 callers
Function
download_text_with_limit
Download text content with size limit enforcement.
loom/src/commands/self_update/client.rs:99
↓ 3 callers
Function
download_with_limit
Download content with size limit enforcement. Checks Content-Length header first, then enforces limit during streaming.
loom/src/commands/self_update/client.rs:61
↓ 3 callers
Function
expand_paths
Expand all paths in the config Only expands environment variables (`${VAR}`), NOT tildes (`~`). Tilde paths are passed through to Claude Code's setti
loom/src/sandbox/config.rs:155
↓ 3 callers
Function
extract_field_raw
Extract a simple scalar field value from raw frontmatter text
loom/src/commands/skill_index.rs:254
↓ 3 callers
Function
extract_loom_section
Extract the loom section from the full hook content
loom/src/git/hooks.rs:94
↓ 3 callers
Function
extract_permissions
Extract allow and deny permission arrays from settings
loom/src/fs/permissions/sync.rs:174
↓ 3 callers
Function
extract_stage_id
Extract stage ID from a stage filename. Handles both prefixed (`01-stage-id.md`) and non-prefixed (`stage-id.md`) formats. # Arguments `filename` -
loom/src/fs/stage_files.rs:81
↓ 3 callers
Function
extract_yaml_from_handoff
Extract YAML content from a handoff file. Supports two formats: 1. YAML frontmatter (content between --- markers at start of file) 2. Pure YAML (file
loom/src/handoff/schema/parsing.rs:57
↓ 3 callers
Function
file_stem
Extract the file stem (filename without extension) from a path string.
loom/src/verify/wiring_detection.rs:191
↓ 3 callers
Method
filename
Get the filename for this knowledge file type
loom/src/fs/knowledge/types.rs:17
↓ 3 callers
Function
filter_for_session
Filter a [`SoftSignal`] slice down to those belonging to `session_id`. Used by callers that have already loaded the active signals once for the curre
loom/src/orchestrator/monitor/soft_signals.rs:132
↓ 3 callers
Function
find_hooks_dir
Find the loom hooks directory Looks for hooks in: 1. `$LOOM_HOOKS_DIR` environment variable (for testing/override) 2. `~/.claude/hooks/loom/` (standa
loom/src/hooks/generator.rs:191
↓ 3 callers
Function
find_repo_root
Walk up from plan_path.parent() looking for a directory containing `.git`. Handles both `.git` directories and `.git` files (worktrees).
loom/src/commands/plan/verify.rs:89
↓ 3 callers
Function
find_repo_root
Walk up from the current directory to find the repo root (parent of .worktrees).
loom/src/commands/stage/merge.rs:401
↓ 3 callers
Method
find_unresolved
Check if a criterion contains any unresolved variables. Returns a list of variable names that were not resolved.
loom/src/verify/context.rs:94
↓ 3 callers
Function
flock_exclusive
(fd: &OwnedFd)
loom/src/fs/safe_fs.rs:639
↓ 3 callers
Function
format_base_conflict_signal_content
( session: &Session, stage: &Stage, source_branches: &[String], target_branch: &str, confl
loom/src/orchestrator/signals/base_conflict.rs:64
↓ 3 callers
Function
format_dependency_table
Format a table showing dependency status for inclusion in signals
loom/src/orchestrator/signals/format/helpers.rs:7
↓ 3 callers
Function
format_knowledge_signal_content
Format the content for a knowledge stage signal
loom/src/orchestrator/signals/knowledge.rs:46
↓ 3 callers
Function
generate_signal_with_metrics
Generate a signal file with metrics about section sizes Returns both the signal path and metrics about the signal's structure. Use this for debugging
loom/src/orchestrator/signals/generate.rs:379
↓ 3 callers
Function
generate_signal_with_skills
( session: &Session, stage: &Stage, worktree: &Worktree, dependencies_status: &[DependencyStat
loom/src/orchestrator/signals/generate.rs:53
← previous
next →
501–600 of 3,851, ranked by callers