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
↓ 13 callers
Function
create_test_stage
Helper to create a test stage
loom/tests/e2e/merge.rs:9
↓ 13 callers
Function
create_test_worktree
(stage_id: &str)
loom/tests/e2e/manual_mode.rs:38
↓ 13 callers
Function
ensure_loom_permissions_to
Testable variant: pass `Some(dir)` to redirect hook installation to a temp directory. Production callers use `ensure_loom_permissions` which passes `N
loom/src/fs/permissions/settings.rs:49
↓ 13 callers
Function
find_repo_root_from_cwd
Find the main repository root from any path within a worktree or the main repo. Given a path like `/home/user/project/.worktrees/my-stage/src/lib/mod
loom/src/git/worktree/paths.rs:37
↓ 13 callers
Method
force_status_with_reason
Force the stage into `status`, bypassing transition validation. This is the **single sanctioned** direct-assignment API. Every place that previously
loom/src/models/stage/methods.rs:178
↓ 13 callers
Function
generate_handoff
Generate a handoff file for a session transitioning due to context exhaustion # Arguments `session` - The session being handed off `stage` - The stag
loom/src/handoff/generator/mod.rs:33
↓ 13 callers
Function
is_process_alive
Check if a process with the given PID is alive Uses `nix::sys::signal::kill` with signal `None` (null signal / signal 0) to check process existence.
loom/src/process/mod.rs:50
↓ 13 callers
Function
make_stage
(id: &str, status: StageStatus)
loom/src/commands/stage/tests/complete_router.rs:44
↓ 13 callers
Function
merge_config
Merge plan-level sandbox config with stage-level overrides. Precedence for `permission_mode`: stage > plan > [`default_mode_for`]. Explicit plan/stag
loom/src/sandbox/config.rs:60
↓ 13 callers
Function
parse_from_markdown
Parse a type from markdown content with YAML frontmatter Generic function that extracts YAML frontmatter and deserializes it into the target type. #
loom/src/parser/frontmatter.rs:18
↓ 12 callers
Function
complete_stage
Complete a stage following the proper state machine transitions. Transitions: Ready -> Executing -> Completed. Also sets merged = true which is requi
loom/tests/e2e/helpers/utils.rs:19
↓ 12 callers
Method
drain_completed_workers
Drain `completion_rx` and join any handles whose workers signalled completion. Called once per orchestrator tick.
loom/src/orchestrator/adjudication/mod.rs:394
↓ 12 callers
Function
format_signal_content
Format signal content using structured sections for KV-cache efficiency Signal sections (Manus pattern): 1. STABLE PREFIX - Fixed header that never c
loom/src/orchestrator/signals/format/mod.rs:35
↓ 12 callers
Method
icon
Get Unicode icon for this activity status
loom/src/commands/status/data/mod.rs:27
↓ 12 callers
Function
init
()
loom/src/commands/knowledge/mod.rs:128
↓ 12 callers
Function
init_repo
()
loom/src/commands/stage/tests/complete_router.rs:25
↓ 12 callers
Function
make_acceptance_yaml
(cmd: &str)
loom/src/plan/tests/amendment.rs:121
↓ 12 callers
Function
make_work_dir
(repo: &Path)
loom/src/commands/stage/tests/complete_router.rs:37
↓ 12 callers
Function
parse_and_validate
Parse `raw` and either return a usable verdict (possibly coerced) or signal that the stage must be escalated to human review.
loom/src/orchestrator/adjudication/verdict.rs:39
↓ 12 callers
Function
print_logo_header
Print the loom logo with a subtitle for human-facing commands.
loom/src/utils.rs:10
↓ 12 callers
Function
set_permissions
Set permissions in a settings Value
loom/src/git/worktree/settings.rs:275
↓ 12 callers
Function
setup_work_dir
()
loom/src/fs/worktree_files/tests.rs:7
↓ 12 callers
Function
validate_structural_preflight
Validate structural aspects of the plan before execution (pre-flight checks). Returns a list of warning messages for issues that don't prevent execut
loom/src/plan/schema/validation.rs:559
↓ 12 callers
Method
with_context_percent
Set context percentage
loom/src/handoff/schema/v2.rs:79
↓ 12 callers
Function
write_dispute
(work_dir: &Path, stage_id: &str, id: u32)
loom/tests/adjudication_e2e.rs:54
↓ 11 callers
Method
add_file_pattern
(&mut self, pattern: String)
loom/src/models/stage/methods.rs:118
↓ 11 callers
Method
all
Get all hook events
loom/src/hooks/config.rs:57
↓ 11 callers
Method
base_branch
Get the base branch for merging
loom/src/fs/work_dir.rs:31
↓ 11 callers
Method
build_command
Build a command to spawn this terminal with a title, working directory, and command to execute # Arguments `title` - Window title for the terminal `w
loom/src/orchestrator/terminal/emulator.rs:113
↓ 11 callers
Function
complete_subcommands
Complete subcommands for a parent command.
loom/src/completions/dynamic/commands.rs:38
↓ 11 callers
Function
create_stage_file
(work_dir: &WorkDir, stage_id: &str, merged: bool)
loom/src/fs/plan_lifecycle.rs:327
↓ 11 callers
Function
create_test_stage
Helper function to create a test stage with specific parameters. Stages created here are `StageType::Knowledge` so they bypass the git ancestry check
loom/tests/failure_resume.rs:22
↓ 11 callers
Function
create_work_dir_structure
(base: &std::path::Path)
loom/tests/e2e/manual_mode.rs:16
↓ 11 callers
Function
detect_project_languages
Detect programming languages used in a project Returns a Vec of detected languages based on manifest files: - Rust: Cargo.toml - TypeScript: tsconfig
loom/src/language.rs:65
↓ 11 callers
Function
extract_with_patterns
Shared implementation: iterate over pre-compiled (Regex, kind) pairs, run against `content`, and collect symbol definitions with line numbers.
loom/src/verify/duplicate_detection.rs:271
↓ 11 callers
Method
file_path
Get the path to a specific knowledge file
loom/src/fs/knowledge/dir.rs:91
↓ 11 callers
Function
handle_dispute_criteria
( work_dir: &Path, stage_id: &str, criterion_index: usize, reason: String, evidence_commit
loom/src/daemon/server/dispute.rs:38
↓ 11 callers
Function
init_repo
()
loom/tests/integration/merge_conflict_recovery.rs:46
↓ 11 callers
Function
make_registry
(work_dir: &Path, endpoint: String)
loom/tests/adjudication_e2e.rs:260
↓ 11 callers
Function
make_work_dir
(repo_root: &Path)
loom/tests/integration/merge_conflict_recovery.rs:58
↓ 11 callers
Method
match_skills
Match skills against input text Returns up to `max` skills sorted by relevance score (descending). Only skills with score >= 2.0 are returned (at lea
loom/src/skills/index.rs:137
↓ 11 callers
Function
path_to_cstring
(bytes: &[u8])
loom/src/fs/safe_fs.rs:109
↓ 11 callers
Function
plan_versions_dir
Path to `.work/plan_versions/`. Returned as an absolute path when `work_dir` is absolute. The foundations stage (parallel sibling) is expected to add
loom/src/plan/amendment.rs:160
↓ 11 callers
Function
read_active
Read all non-expired soft signals from `<work_dir>/monitor/soft-signals.jsonl`. - If the file does not exist, returns `Ok(vec![])`. - Blank lines and
loom/src/orchestrator/monitor/soft_signals.rs:64
↓ 11 callers
Function
read_journal
Read a stage's memory journal
loom/src/fs/memory/storage.rs:82
↓ 11 callers
Function
run_git
(args: &[&str], cwd: &Path)
loom/tests/phantom_merge.rs:47
↓ 11 callers
Function
safe_locked_write_in_workdir
Write `content` to `relpath` under `dirfd` with an exclusive flock, refusing every symlink along the path. The file is truncated and rewritten atomica
loom/src/fs/safe_fs.rs:300
↓ 11 callers
Method
spawn
Unified spawn for every native session type. The per-kind variation (window title / PID-file key prefix, prompt, model/effort source, working directo
loom/src/orchestrator/terminal/native/mod.rs:230
↓ 11 callers
Method
try_complete
Complete the stage with validation. Computes and stores `duration_secs` from `started_at` to completion. # Returns `Ok(())` if the transition succee
loom/src/models/stage/methods.rs:197
↓ 11 callers
Function
verify_truth_checks
Verify enhanced truth checks with extended success criteria
loom/src/verify/goal_backward/truths.rs:16
↓ 11 callers
Function
write_stage
(work_dir: &Path, stage: &Stage)
loom/tests/adjudication_e2e.rs:20
↓ 10 callers
Function
branch_exists
Check if a branch exists
loom/src/git/branch/operations.rs:40
↓ 10 callers
Method
build_lines
Build tree lines for rendering
loom/src/commands/status/ui/tree_widget.rs:116
↓ 10 callers
Function
build_test_graph
(stages: Vec<(&str, Vec<&str>)>)
loom/src/git/worktree/base.rs:277
↓ 10 callers
Function
complete
Mark a stage as complete, optionally running acceptance criteria. If acceptance criteria pass, auto-verifies the stage and triggers dependents. If --n
loom/src/commands/stage/complete.rs:337
↓ 10 callers
Function
complete_stage_ids
Complete stage IDs from .work/stages/*.md # Arguments `cwd` - Current working directory (project root) `prefix` - Partial stage ID prefix to filter
loom/src/completions/dynamic/stages.rs:17
↓ 10 callers
Function
expand_env_vars
Expand ${ENV_VAR} patterns in strings
loom/src/sandbox/config.rs:125
↓ 10 callers
Function
extract_field
Extract a field value from markdown content. Handles markdown bold formatting. Field should be just the name without bold markers or colons. For exam
loom/src/orchestrator/signals/recovery_parsing.rs:161
↓ 10 callers
Function
init_test_repo
()
loom/src/git/worktree/base.rs:204
↓ 10 callers
Function
is_ancestor_of
Check if a commit is an ancestor of a branch. Uses `git merge-base --is-ancestor` to check if the given commit is reachable from the branch head. #
loom/src/git/branch/ancestry.rs:25
↓ 10 callers
Function
make_stage
(id: &str, status: StageStatus)
loom/tests/integration/merge_conflict_recovery.rs:65
↓ 10 callers
Function
merge_head_exists
Cheap predicate: is there a `MERGE_HEAD` at this repo or worktree path?
loom/src/git/merge/in_progress.rs:100
↓ 10 callers
Function
parse_plan_content
Parse plan content (for testing without file system)
loom/src/plan/parser/mod.rs:35
↓ 10 callers
Function
read_message
Read a length-prefixed JSON message from a stream. Format: 4-byte big-endian length prefix + JSON data # Arguments `stream` - The stream to read fro
loom/src/daemon/protocol.rs:227
↓ 10 callers
Method
scroll_by
Scroll by a delta, clamping to bounds.
loom/src/commands/status/ui/tui/state.rs:26
↓ 10 callers
Function
serialize_stage_to_markdown
Serialize a Stage to markdown with YAML frontmatter Creates a markdown file with YAML frontmatter containing the stage data followed by a markdown bo
loom/src/verify/transitions/serialization.rs:32
↓ 10 callers
Function
truncate
Truncate a string safely by character count, not byte count. This ensures we don't break UTF-8 encoding by cutting mid-character. Adds "..." ellipsis
loom/src/utils.rs:257
↓ 10 callers
Method
with_goals
Set the overall goals
loom/src/handoff/generator/content.rs:52
↓ 10 callers
Function
write_config
(work_dir: &WorkDir, plan_path: &std::path::Path)
loom/src/fs/plan_lifecycle.rs:319
↓ 10 callers
Function
write_settings
Write Claude Code settings.local.json to worktree .claude/ directory
loom/src/sandbox/settings.rs:77
↓ 9 callers
Function
complete_flags
Complete flags for a given command path. `command_path` is a slice of command words, e.g. `["stage", "complete"]`.
loom/src/completions/dynamic/commands.rs:81
↓ 9 callers
Function
complete_stage_ids_filtered
Complete stage IDs filtered by allowed statuses. Reads stage files and parses YAML frontmatter to extract the `status:` field. Only returns stages wh
loom/src/completions/dynamic/stages.rs:26
↓ 9 callers
Function
compute_hash
Compute SHA-256 hash of content, returning first 16 hex characters
loom/src/orchestrator/signals/cache.rs:44
↓ 9 callers
Function
create_journal
Create a new memory journal for a stage
loom/src/fs/memory/storage.rs:39
↓ 9 callers
Function
create_plan_file
(temp_dir: &TempDir, filename: &str)
loom/src/fs/plan_lifecycle.rs:311
↓ 9 callers
Function
create_valid_metadata
Helper function to create a valid LoomMetadata for testing
loom/src/plan/schema/tests/mod.rs:51
↓ 9 callers
Function
detect_terminal
()
loom/src/orchestrator/terminal/native/detection.rs:25
↓ 9 callers
Function
extract_yaml_metadata
Extract YAML content from metadata block. Thin shim around [`extract_yaml_metadata_with_ranges`] that returns only the YAML body.
loom/src/plan/parser/extraction.rs:53
↓ 9 callers
Function
generate_hooks_settings
Generate settings.json content with hooks configuration This merges session-specific hooks into existing settings.json while preserving global hooks
loom/src/hooks/generator.rs:21
↓ 9 callers
Method
header
()
loom/src/commands/status/ui/theme.rs:39
↓ 9 callers
Function
init_test_repo
()
loom/src/git/branch/status.rs:106
↓ 9 callers
Function
needs_more_evidence
(reason: impl Into<String>)
loom/src/orchestrator/adjudication/verdict.rs:256
↓ 9 callers
Function
parse_base_branch_from_config
Parse base_branch from config.toml in a work directory. This is a convenience function for extracting the base_branch field from the plan configurati
loom/src/fs/mod.rs:54
↓ 9 callers
Function
parse_stage_from_markdown
Parse a Stage from markdown with YAML frontmatter Expects content in the format: ```markdown --- id: stage-1 name: Test Stage ... --- # Stage body c
loom/src/verify/transitions/serialization.rs:24
↓ 9 callers
Method
source_path
Get the plan source path
loom/src/fs/work_dir.rs:26
↓ 9 callers
Function
test_config
Test helper: build a HooksConfig with sensible defaults (AcceptEdits) so existing assertions hold.
loom/src/hooks/tests.rs:10
↓ 9 callers
Method
try_mark_merge_blocked
Mark the stage as merge blocked (merge failed with actual error, not conflicts). This indicates the merge operation failed due to an error (not confl
loom/src/models/stage/methods.rs:318
↓ 9 callers
Method
try_transition
Attempt to transition the session to a new status with validation. This is the primary method for changing session status. It validates that the tran
loom/src/models/session/methods.rs:154
↓ 9 callers
Function
update
(file: String, content: Option<String>)
loom/src/commands/knowledge/mod.rs:63
↓ 9 callers
Function
write_signal_file
Write a signal file to the signals directory, creating it if needed. Replaces the duplicated dir-create + path-build + write pattern found across all
loom/src/orchestrator/signals/helpers.rs:17
↓ 8 callers
Method
accumulate_attempt_time
Accumulate time from the current execution attempt. Calculates elapsed time since `attempt_started_at`, adds it to `execution_secs`, and clears `atte
loom/src/models/stage/methods.rs:540
↓ 8 callers
Function
admin_token_path
Path to the per-project admin token: `<work_dir>/admin.token`. Mode 0o600 (owner-only rw). Kept per-project rather than in a shared runtime directory
loom/src/daemon/server/client.rs:45
↓ 8 callers
Function
append
Append a soft signal as one JSON line to `<work_dir>/monitor/soft-signals.jsonl`. The parent directory is created on the first write.
loom/src/orchestrator/monitor/soft_signals.rs:47
↓ 8 callers
Function
attribute_main_repo_merge
Attribute the main-repo active merge (if any) to a specific stage. Algorithm (first match wins): 1. No active merge -> `None`. 2. **BaseConflict carv
loom/src/orchestrator/merge_attribution.rs:114
↓ 8 callers
Function
build_gc_system_prompt
(model: &str, dry_run: bool, metrics: &GcMetrics)
loom/src/commands/knowledge/gc.rs:162
↓ 8 callers
Function
build_graph_display
Build a visual representation of the dependency graph using layered levels
loom/src/commands/graph/display.rs:40
↓ 8 callers
Function
check_knowledge_recommendations
Check for knowledge-related recommendations (non-fatal warnings) Returns a list of warning messages when: - Plan has root stages (no dependencies) bu
loom/src/plan/schema/validation.rs:882
↓ 8 callers
Function
cleanup_after_merge
Perform full cleanup after a successful merge This function removes all resources associated with a stage after its branch has been successfully merg
loom/src/git/cleanup/batch.rs:26
↓ 8 callers
Method
command
Get the shell command string for this criterion
loom/src/models/stage/types.rs:329
↓ 8 callers
Function
complete_plan_files
Complete plan file paths from doc/plans/*.md # Arguments `cwd` - Current working directory (project root) `prefix` - Partial filename prefix to filt
loom/src/completions/dynamic/plans.rs:17
← previous
next →
101–200 of 3,851, ranked by callers