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
↓ 5 callers
Function
setup_git_repo
()
loom/src/git/cleanup/base.rs:94
↓ 5 callers
Function
snapshot_filename
Compute the snapshot filename for a given version.
loom/src/plan/amendment.rs:165
↓ 5 callers
Function
status_indicator
Get status indicator symbol with color Returns a styled Span with the appropriate Unicode symbol
loom/src/commands/status/ui/widgets.rs:65
↓ 5 callers
Function
tail_tool_events
Read the last `n` tool events from `.work/tool-events.jsonl`. This is a **true tail**: rather than reading and parsing the entire (unbounded, append-
loom/src/hooks/events.rs:280
↓ 5 callers
Function
temp_work
()
loom/src/orchestrator/adjudication/feedback.rs:118
↓ 5 callers
Method
try_mark_merge_conflict
Mark the stage as having merge conflicts. This sets both the status to MergeConflict and the merge_conflict flag. The stage work is complete but cann
loom/src/models/stage/methods.rs:274
↓ 5 callers
Method
try_mark_paused
Mark the session as paused with validation. # Returns `Ok(())` if the transition succeeded, `Err` if invalid
loom/src/models/session/methods.rs:173
↓ 5 callers
Function
validate_content
Validate memory entry content
loom/src/fs/memory/persistence.rs:80
↓ 5 callers
Function
with_cwd
Guarded cwd change: restores the prior cwd even if the closure panics. We use #[serial] on tests that enter this helper to avoid races.
loom/tests/phantom_merge.rs:112
↓ 5 callers
Method
work_dir
Expose work dir for detection logic that needs filesystem access.
loom/src/orchestrator/monitor/handlers.rs:41
↓ 5 callers
Function
write_all_at
(fd: &OwnedFd, mut buf: &[u8], relpath: &Path)
loom/src/fs/safe_fs.rs:647
↓ 5 callers
Function
write_plan_sandbox
Persist the plan-level sandbox config (`[plan_sandbox]`).
loom/src/fs/work_dir.rs:490
↓ 4 callers
Function
add_prefix_to_filename
Add a prefix to the plan filename, preserving the directory
loom/src/fs/plan_lifecycle.rs:25
↓ 4 callers
Function
add_settings_local_to_worktree_gitignore
Exclude `.claude/settings.local.json` from the worktree's per-worktree git exclude. Git stores per-worktree state at `<repo>/.git/worktrees/<stage-id
loom/src/git/worktree/settings.rs:487
↓ 4 callers
Method
all_nodes
Get all nodes
loom/src/plan/graph/mod.rs:265
↓ 4 callers
Function
analyze_codebase
Analyze a codebase and return structured findings
loom/src/map/analyzer.rs:22
↓ 4 callers
Method
analyze_gc_metrics
Analyze GC metrics for knowledge files
loom/src/fs/knowledge/dir.rs:369
↓ 4 callers
Function
append_anti_slop_guidance
Append anti-slop forcing-function (understand-first ladder + banned list)
loom/src/orchestrator/signals/cache.rs:152
↓ 4 callers
Function
append_common_footer
Append binary usage, state files, and context recovery (shared by all prefix types)
loom/src/orchestrator/signals/cache.rs:170
↓ 4 callers
Function
append_rejection
Write rejection feedback: the adjudicator concluded the criterion is correct and the agent must fix the implementation. Overwrites any prior content.
loom/src/orchestrator/adjudication/feedback.rs:43
↓ 4 callers
Function
atomic_write
Crash-atomically write `content` to `path` via a temp file + `rename`. The caller MUST already hold the parent-directory lock (see [`lock_parent_dir`
loom/src/fs/locking.rs:76
↓ 4 callers
Method
begin_attempt
Begin a new execution attempt. Sets `attempt_started_at` to the given timestamp and initializes `execution_secs` to 0 if not already set.
loom/src/models/stage/methods.rs:528
↓ 4 callers
Method
binary
Get the binary name for this terminal
loom/src/orchestrator/terminal/emulator.rs:54
↓ 4 callers
Method
build
Build an execution graph from stage definitions
loom/src/plan/graph/mod.rs:36
↓ 4 callers
Method
build
(self)
loom/src/fs/memory/types.rs:123
↓ 4 callers
Function
build_execution_graph
Build execution graph from .work/stages/ files or fall back to plan file. This function accepts either a `WorkDir` reference or a raw `Path` to the .
loom/src/plan/graph/loader.rs:19
↓ 4 callers
Function
build_gc_initial_prompt
(model: &str, dry_run: bool)
loom/src/commands/knowledge/gc.rs:235
↓ 4 callers
Function
build_graph_impl
Internal implementation that handles both WorkDir and Path cases.
loom/src/plan/graph/loader.rs:56
↓ 4 callers
Function
build_grep_pattern
Build a grep extended-regex pattern that matches symbol definitions in supported languages, tailored by `kind` to reduce false positives.
loom/src/verify/duplicate_detection.rs:380
↓ 4 callers
Function
build_stage_summary
Build a StageSummary from a Stage and optional associated Session. `stuck_session_ids` is a pre-built set of session IDs that have an active `Possibl
loom/src/commands/status/data/collector.rs:104
↓ 4 callers
Function
calculate_progress
Calculate progress summary from stages
loom/src/commands/status/data/collector.rs:196
↓ 4 callers
Method
can_transition_to
Check if transitioning from the current status to the new status is valid. Valid transitions: - `WaitingForDeps` -> `Queued` | `Skipped` (when depend
loom/src/models/stage/transitions.rs:28
↓ 4 callers
Function
cleanup_all_base_branches
Clean up all base branches in the repository This deletes all branches matching the pattern `loom/_base/*`. Useful for cleaning up after all stages a
loom/src/git/cleanup/base.rs:50
↓ 4 callers
Function
cleanup_base_branch
Clean up the base branch for a stage Base branches are created when a stage has multiple dependencies that need to be merged together. They follow th
loom/src/git/cleanup/base.rs:24
↓ 4 callers
Function
cleanup_session_resources
Clean up resources associated with a completed stage This function performs best-effort cleanup and logs warnings on failure: 1. Updates session stat
loom/src/commands/stage/session.rs:20
↓ 4 callers
Function
cleanup_stage_files
Clean up all session-related files (PID file and wrapper script)
loom/src/orchestrator/terminal/native/pid_tracking.rs:142
↓ 4 callers
Function
clear_feedback
Remove the feedback file (idempotent). Called once the agent's follow-up dispute is filed, so a future Accept verdict doesn't carry stale text into th
loom/src/orchestrator/adjudication/feedback.rs:105
↓ 4 callers
Function
color_by_index
Get a color by index, cycling through the palette
loom/src/commands/status/ui/tree_widget.rs:42
↓ 4 callers
Function
complete_memory_entry_types
Complete memory entry types for `loom memory list --entry-type` # Arguments `prefix` - Partial entry type prefix to filter results # Returns List
loom/src/completions/dynamic/memory.rs:17
↓ 4 callers
Function
compute_stage_levels
Compute topological level for each stage (level = max(dep_levels) + 1)
loom/src/commands/status/render/graph.rs:40
↓ 4 callers
Function
config_path
(work_dir: &Path)
loom/src/fs/work_dir.rs:351
↓ 4 callers
Function
continue_session
Continue work on a stage after a handoff Creates a new session, generates signal file with handoff reference, optionally spawns terminal session, and
loom/src/orchestrator/continuation/mod.rs:60
↓ 4 callers
Function
count_amendments_for_stage
Count the number of amendments successfully applied to `stage_id` by reading the audit log. The audit log is the source of truth for the per-stage ame
loom/src/plan/amendment.rs:684
↓ 4 callers
Function
create_http_client
Create an HTTP client with security-focused timeout configuration. Prevents indefinite hangs on slow or unresponsive servers. - connect_timeout: Maxim
loom/src/commands/self_update/client.rs:22
↓ 4 callers
Function
create_loom_branch_with_commit
Create a branch, add one commit, return the commit SHA. Leaves caller on `main`.
loom/tests/phantom_merge.rs:62
↓ 4 callers
Function
create_stage_file
(work_dir: &std::path::Path, stage_id: &str)
loom/src/fs/worktree_files/tests.rs:51
↓ 4 callers
Function
create_stage_from_definition
Create a Stage from a StageDefinition
loom/src/commands/init/plan_setup.rs:225
↓ 4 callers
Function
create_test_stage
(id: &str)
loom/src/orchestrator/auto_merge.rs:169
↓ 4 callers
Function
create_worktree_settings
Create settings.json for a worktree with trust setting and inherited config. This function: 1. Reads the main repo's settings.json (if it exists) 2.
loom/src/git/worktree/settings.rs:312
↓ 4 callers
Method
effective_model
Returns the effective model for this stage. Uses the explicit override if set, otherwise falls back to the stage-type default.
loom/src/models/stage/methods.rs:80
↓ 4 callers
Function
enforce_tool_events_retention
Enforce a size-based retention policy on the append-only tool-events telemetry files under `work_dir`. For each retained file that exceeds [`RETENTIO
loom/src/hooks/events.rs:341
↓ 4 callers
Function
escape_shell_single_quote
Escape a string for use in single-quoted shell strings. In shell single quotes, the only character that needs special handling is the single quote it
loom/src/orchestrator/terminal/emulator.rs:28
↓ 4 callers
Function
extract_plan_name
Extract plan name from first H1 header
loom/src/plan/parser/extraction.rs:29
↓ 4 callers
Function
extract_yaml_frontmatter
Extract YAML frontmatter from markdown content
loom/tests/e2e/helpers/yaml.rs:6
↓ 4 callers
Function
fallback_description
Extract the first paragraph after the heading as a fallback description.
loom/src/commands/review/generate.rs:164
↓ 4 callers
Function
feedback_path
Path to `.work/disputes/<stage>/feedback.md`. The parent directory is created on demand so the first dispute against a stage works without a prior `mk
loom/src/orchestrator/adjudication/feedback.rs:25
↓ 4 callers
Function
find_session_for_stage
Find a single session ID for a stage. Scans `.work/sessions/` for a session assigned to the given stage. Returns the first matching session ID found.
loom/src/fs/session_files.rs:161
↓ 4 callers
Function
find_sessions_for_stage
Find all session IDs associated with a stage. Scans `.work/sessions/` and returns IDs of all sessions assigned to the given stage. Useful for cleanup
loom/src/fs/session_files.rs:210
↓ 4 callers
Function
find_work_dir
Find the .work directory. Walks upward from the current directory looking for a `.work` directory, the same way git searches for `.git`.
loom/src/commands/common/mod.rs:20
↓ 4 callers
Function
find_worktree_root_from_cwd
Find the worktree root directory from any path within that worktree. Given a path like `/home/user/project/.worktrees/my-stage/src/lib/module.rs`, re
loom/src/git/worktree/paths.rs:109
↓ 4 callers
Function
format_dep_annotation
Format an inline dependency annotation: ` ← dep1, dep2` placed right after the stage id. Colors each dep using the shared color map. Returns an empty
loom/src/commands/common/tree.rs:29
↓ 4 callers
Function
format_handoff_markdown
Format HandoffContent into V2 format with YAML frontmatter and markdown body. The V2 format includes: - YAML frontmatter (between --- markers) with s
loom/src/handoff/generator/formatter.rs:14
↓ 4 callers
Function
format_skill_recommendations
Format task progression information for inclusion in signals
loom/src/orchestrator/signals/format/sections.rs:837
↓ 4 callers
Function
format_stage_context_section
Format the "## Stage Context" section showing stage name and description. Returns an empty string if the stage has no description. Shared across merg
loom/src/orchestrator/signals/helpers.rs:85
↓ 4 callers
Function
generate_integration_verify_stable_prefix
Stable prefix for integration-verify stages (final quality gate)
loom/src/orchestrator/signals/cache.rs:353
↓ 4 callers
Function
generate_knowledge_distill_stable_prefix
Stable prefix for knowledge-distill stages (runs in worktree, after integration-verify)
loom/src/orchestrator/signals/cache.rs:491
↓ 4 callers
Function
generate_recovery_signal
Generate a recovery signal file
loom/src/orchestrator/signals/recovery.rs:19
↓ 4 callers
Function
get_next_handoff_number
Get the next sequential handoff number for a stage Scans existing handoff files in .work/handoffs/ and returns the next available number.
loom/src/handoff/generator/numbering.rs:10
↓ 4 callers
Function
get_plan_source_path
Get the plan source path from config.toml This is a convenience wrapper around `crate::fs::get_source_path` that accepts a `WorkDir` reference instea
loom/src/fs/plan_lifecycle.rs:63
↓ 4 callers
Method
get_plan_str
Get a string value from the plan section (e.g., "source_path", "base_branch", "plan_id")
loom/src/fs/work_dir.rs:18
↓ 4 callers
Function
init_repo
()
loom/src/commands/stage/merge_verify.rs:96
↓ 4 callers
Function
init_repo
()
loom/src/orchestrator/core/recovery.rs:1116
↓ 4 callers
Function
init_repo_with_main
Initialize a real temporary git repo with an initial commit on `main`. Returns the TempDir so callers can keep it alive for the duration of the test.
loom/src/verify/transitions/tests/dependency_satisfaction_real_git.rs:25
↓ 4 callers
Function
init_repo_without_commits
(path: &Path)
loom/src/git/repository.rs:160
↓ 4 callers
Method
is_passed
Check if all verifications passed
loom/src/verify/goal_backward/result.rs:70
↓ 4 callers
Method
is_session_alive
(&self, session: &Session)
loom/src/orchestrator/terminal/native/mod.rs:444
↓ 4 callers
Function
is_table_row
Check if a line is a markdown table row.
skills/loom-md-tables/fix-md-tables.py:8
↓ 4 callers
Method
leaf_stages
(&self)
loom/src/plan/graph/mod.rs:286
↓ 4 callers
Function
list
List all sessions
loom/src/commands/sessions.rs:14
↓ 4 callers
Function
list_signals
(work_dir: &Path)
loom/src/orchestrator/signals/crud.rs:103
↓ 4 callers
Function
load_and_truncate_failure_output
Load `failure_output_path` and truncate the contents at the last UTF-8 char boundary that fits within `FAILURE_OUTPUT_MAX_BYTES` (4KB). Avoids the mul
loom/src/commands/stage/dispute_criteria.rs:87
↓ 4 callers
Function
load_baseline
Load a baseline from the stage's directory # Arguments `stage_id` - The stage ID to load baseline for `work_dir` - Path to the .work directory # Ret
loom/src/verify/baseline/capture.rs:95
↓ 4 callers
Function
load_handoff_content
Load handoff content from a markdown file # Arguments `handoff_path` - Path to the handoff markdown file # Returns The full markdown content of the
loom/src/orchestrator/continuation/context.rs:53
↓ 4 callers
Function
lock_or_recover
Lock a mutex, recovering from poison if necessary. Logs a warning if the mutex was poisoned but continues with the data.
loom/src/daemon/server/broadcast.rs:232
↓ 4 callers
Function
locked_dir_update
Acquire an exclusive advisory lock on `dir` for the duration of `f`. This is the multi-file analogue of [`locked_update`]: it locks a *directory (a s
loom/src/fs/locking.rs:139
↓ 4 callers
Method
main_project_root
Get the main project root by following symlinks. In a worktree, `.work` is a symlink pointing to `../../.work` (the main repo's .work). This method r
loom/src/fs/work_dir.rs:299
↓ 4 callers
Function
make_amendment
(suffix: &str)
loom/tests/plan_amendment_integration.rs:71
↓ 4 callers
Function
make_stage
(id: &str)
loom/src/commands/stage/merge_verify.rs:108
↓ 4 callers
Function
make_test_stage
(id: &str)
loom/src/git/merge/status.rs:209
↓ 4 callers
Method
mark_active
Sets the worktree status to Active
loom/src/models/worktree.rs:81
↓ 4 callers
Function
merge_permission_vecs
Merge two permission vectors, removing duplicates
loom/src/git/worktree/settings.rs:261
↓ 4 callers
Function
minimal_plan
Returns a minimal valid plan Single stage with minimal required fields, useful for basic tests.
loom/tests/e2e/fixtures/plans.rs:62
↓ 4 callers
Function
normalize_text
Normalize text for matching: lowercase, replace separators with spaces
loom/src/skills/matcher.rs:7
↓ 4 callers
Function
parse_signal_content
Parse signal file content with format validation. This function parses a signal file and extracts structured content. It also validates the format an
loom/src/orchestrator/signals/parse.rs:89
↓ 4 callers
Function
parse_signal_sections
Parse markdown content into sections keyed by `## ` headers. Returns a map from section name to the non-empty trimmed lines in that section. Lines be
loom/src/orchestrator/signals/helpers.rs:146
↓ 4 callers
Function
parse_skill_triggers
Parse a SKILL.md file and extract trigger keywords from all sources. Tries serde_yaml parsing first; falls back to line-by-line text extraction when
loom/src/commands/skill_index.rs:130
↓ 4 callers
Function
parse_worktree_list
Parse git worktree list --porcelain output Example input: ```text worktree /home/user/repo HEAD abc123def456 branch main worktree /home/user/repo/.w
loom/src/git/worktree/parser.rs:29
↓ 4 callers
Method
persistence_work_dir
(&self)
loom/src/orchestrator/core/persistence.rs:133
↓ 4 callers
Function
plan_steps
Build the ordered list of steps for `rounds` rounds. Each round: delete the report (so a failed Codex write can't leave `/address` reading the previo
loom/src/commands/pressure/mod.rs:191
↓ 4 callers
Function
plan_yaml_with_effort
(effort: &str)
loom/src/plan/schema/tests/reasoning_effort_tests.rs:22
← previous
next →
401–500 of 3,851, ranked by callers