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
↓ 349 callers
Method
with_context
Create a new memory entry with context
loom/src/fs/memory/types.rs:92
↓ 336 callers
Method
is_empty
Check if the index is empty
loom/src/skills/index.rs:154
↓ 313 callers
Method
exists
Check if the knowledge directory exists
loom/src/fs/knowledge/dir.rs:29
↓ 201 callers
Method
len
(&self)
loom/src/commands/status/ui/tui/state.rs:220
↓ 175 callers
Function
save_stage
Save a stage to disk Serializes the stage to YAML frontmatter + markdown body and writes to `.work/stages/`. Uses depth-prefixed filenames (e.g., `01
loom/src/verify/transitions/persistence.rs:55
↓ 169 callers
Function
load_stage
Load a stage from disk Finds and reads the stage file from `.work/stages/`, handling both prefixed (e.g., `01-stage-id.md`) and non-prefixed (`stage-
loom/src/verify/transitions/persistence.rs:28
↓ 142 callers
Method
is_empty
(&self)
loom/src/commands/status/ui/tui/state.rs:216
↓ 74 callers
Function
transition_stage
Transition a stage to a new status with validation Loads the stage from `.work/stages/{stage_id}.md`, validates and updates its status using validate
loom/src/verify/transitions/state.rs:85
↓ 60 callers
Function
make_stage
(id: &str, name: &str)
loom/src/plan/schema/tests/mod.rs:19
↓ 57 callers
Method
add_dependency
(&mut self, stage_id: String)
loom/src/models/stage/methods.rs:106
↓ 51 callers
Method
add_acceptance_criterion
(&mut self, criterion: AcceptanceCriterion)
loom/src/models/stage/methods.rs:113
↓ 47 callers
Method
root
(&self)
loom/src/fs/work_dir.rs:283
↓ 46 callers
Method
append
Append content to a knowledge file (knowledge files are append-only)
loom/src/fs/knowledge/dir.rs:117
↓ 45 callers
Function
trigger_dependents
Trigger dependent stages when a stage is completed Finds all stages that depend on `completed_stage_id` and checks if all their dependencies are now
loom/src/verify/transitions/state.rs:122
↓ 43 callers
Function
branch_name_for_stage
Branch naming conventions for loom stages Generate loom branch name from stage ID
loom/src/git/branch/naming.rs:4
↓ 40 callers
Function
create_test_stage
(id: &str, name: &str, status: StageStatus)
loom/src/verify/transitions/tests/mod.rs:5
↓ 39 callers
Function
setup_test_workspace
()
loom/src/completions/dynamic/tests.rs:12
↓ 38 callers
Function
clear_status_line
Clear the current line (status line) before printing a message. This prevents output from being mangled when the status line is being updated.
loom/src/orchestrator/core/mod.rs:25
↓ 38 callers
Function
create_test_stage
(status: StageStatus)
loom/src/models/stage/tests/mod.rs:3
↓ 38 callers
Function
run_git
(args: &[&str], cwd: &Path)
loom/src/git/merge/in_progress.rs:204
↓ 38 callers
Method
save_stage
Save stage state to .work/stages/
loom/src/orchestrator/core/persistence.rs:86
↓ 35 callers
Function
create_test_session
Public helpers for submodules
loom/src/orchestrator/signals/tests.rs:24
↓ 35 callers
Function
run_git
(args: &[&str], cwd: &Path)
loom/src/commands/stage/tests/complete_router.rs:12
↓ 34 callers
Function
create_test_stage
()
loom/src/orchestrator/signals/tests.rs:31
↓ 34 callers
Function
validate
Validate the loom metadata
loom/src/plan/schema/validation.rs:171
↓ 31 callers
Method
assign_to_stage
(&mut self, stage_id: String)
loom/src/models/session/methods.rs:102
↓ 31 callers
Function
home_dir
()
loom/src/completions/install.rs:17
↓ 30 callers
Function
build
Build the SYSTEM + USER prompt for the supplied dispute. `plan_path` is the live plan markdown (used to surface acceptance criteria as the agent sees
loom/src/orchestrator/adjudication/prompt.rs:49
↓ 30 callers
Method
remove
Remove heartbeat for a stage (when session ends)
loom/src/orchestrator/monitor/heartbeat.rs:222
↓ 30 callers
Function
resolve_target_branch
Resolve target branch from config value or repo default Uses the provided config branch if available, otherwise falls back to the repository's defaul
loom/src/git/branch/operations.rs:88
↓ 30 callers
Function
setup_hook
Install hook script and its dependencies to temp directory and return path
loom/tests/integration/hooks_commit_filter.rs:15
↓ 29 callers
Function
update_stage
Atomically read-modify-write a stage file under a single exclusive lock. This is the lost-update-safe alternative to the load → mutate → `save_stage`
loom/src/verify/transitions/persistence.rs:116
↓ 27 callers
Method
mark_status
Set a stage to an arbitrary status without validation. Use this for simple status updates where no side effects (like updating dependent stages) are
loom/src/plan/graph/mod.rs:187
↓ 27 callers
Method
try_transition
Attempt to transition the stage to a new status with validation. This is the primary method for changing stage status. It validates that the transiti
loom/src/models/stage/methods.rs:155
↓ 26 callers
Function
create_test_worktree
()
loom/src/orchestrator/signals/tests.rs:46
↓ 26 callers
Function
run_git
(args: &[&str], cwd: &Path)
loom/src/commands/stage/merge_verify.rs:83
↓ 26 callers
Function
run_git_checked
Run a git command, check for success, and return stdout as a trimmed String. On failure, bails with the full command + directory + exit code + stdout
loom/src/git/runner.rs:40
↓ 25 callers
Function
execute
Execute the map command
loom/src/commands/map.rs:11
↓ 25 callers
Function
run_git
(args: &[&str], cwd: &Path)
loom/src/orchestrator/merge_attribution.rs:318
↓ 25 callers
Function
validate
Validate the integrity of the work directory
loom/src/commands/status.rs:133
↓ 24 callers
Function
apply_amendment
Apply a runtime amendment to a single stage. Steps (all under flock on `.work/plan_versions/.lock`): 1. Resolve `plan_path` (parameter is preferred;
loom/src/plan/amendment.rs:409
↓ 24 callers
Function
create_valid_stage
Helper to create a minimal valid stage definition
loom/tests/e2e/criteria_validation/mod.rs:23
↓ 24 callers
Function
get_branch_head
Get the HEAD commit SHA of a branch Uses `git rev-parse` to resolve the branch name to its HEAD commit SHA. # Arguments `branch` - The branch name t
loom/src/git/branch/ancestry.rs:76
↓ 24 callers
Function
resolve_base_branch
Resolve the base branch for a stage based on its dependencies. # Logic With progressive merge, stages are only scheduled when all dependencies are `
loom/src/git/worktree/base.rs:103
↓ 24 callers
Function
write_message
Write a length-prefixed JSON message to a stream. Format: 4-byte big-endian length prefix + JSON data # Arguments `stream` - The stream to write to
loom/src/daemon/protocol.rs:202
↓ 23 callers
Function
generate_signal
( session: &Session, stage: &Stage, worktree: &Worktree, dependencies_status: &[DependencyStat
loom/src/orchestrator/signals/generate.rs:29
↓ 22 callers
Function
find_stage_file
Find a stage file by stage ID, regardless of its depth prefix. Searches for files matching the pattern `*-{stage_id}.md` or `{stage_id}.md` in the st
loom/src/fs/stage_files.rs:29
↓ 22 callers
Function
git_ok
Run a setup `git` command and assert it succeeded, surfacing stderr on failure. Without this, a failed setup step is swallowed and only manifests late
loom/src/git/merge/mod.rs:427
↓ 22 callers
Function
locked_write
Write file contents crash-atomically with an exclusive (write) lock. Acquires an exclusive lock on the parent directory, then writes to a sibling `<f
loom/src/fs/locking.rs:264
↓ 21 callers
Function
create_metadata
Helper to create minimal valid metadata with given stages
loom/tests/e2e/criteria_validation/mod.rs:55
↓ 21 callers
Function
load_config
Load and parse config.toml from a work directory # Arguments `work_dir` - Path to the .work directory (not the config file itself) # Returns `Ok(Som
loom/src/fs/work_dir.rs:60
↓ 21 callers
Function
load_stage
Load a stage from .work/stages/
loom/src/orchestrator/continuation/context.rs:90
↓ 21 callers
Function
setup_work_dir
()
loom/src/commands/stage/tests/mod.rs:30
↓ 20 callers
Function
complete_stage
Test helper: Mark stage as completed in graph
loom/tests/integration/helpers.rs:125
↓ 20 callers
Method
initialize
(&self)
loom/src/fs/work_dir.rs:128
↓ 20 callers
Method
load
(&self)
loom/src/fs/work_dir.rs:160
↓ 20 callers
Method
load_stage
Load stage definition from .work/stages/
loom/src/orchestrator/core/persistence.rs:25
↓ 20 callers
Method
parse
(content: &str)
loom/src/parser/markdown.rs:20
↓ 20 callers
Function
route_complete_for_conflicts
( stage: &Stage, sessions: &[Session], all_stages: &[Stage], repo_root: &Path, work_dir: &
loom/src/commands/stage/complete.rs:126
↓ 20 callers
Function
safe_open_dirfd
Open `work_dir` as a dirfd suitable as a base for the rest of this module. The dirfd has `O_DIRECTORY | O_NOFOLLOW | O_CLOEXEC`; if `work_dir` itself
loom/src/fs/safe_fs.rs:59
↓ 18 callers
Function
create_test_stage
(id: &str, status: StageStatus)
loom/src/commands/stage/tests/mod.rs:21
↓ 18 callers
Function
extract_yaml_frontmatter
Extract YAML frontmatter from markdown content and deserialize it. Delegates to [`extract_frontmatter_raw`] for the indentation-aware extraction, the
loom/src/parser/frontmatter.rs:126
↓ 18 callers
Function
generate_settings_json
Generate Claude Code settings JSON from sandbox config
loom/src/sandbox/settings.rs:242
↓ 18 callers
Function
run_acceptance
Run all acceptance criteria for a stage with default configuration This is a convenience wrapper around `run_acceptance_with_config` that uses the de
loom/src/verify/criteria/runner.rs:17
↓ 18 callers
Function
run_verify
(plan_path: &std::path::Path, extra_args: &[&str])
loom/tests/integration/plan_verify.rs:179
↓ 18 callers
Function
save_test_stage
(work_dir: &Path, stage: &Stage)
loom/src/commands/stage/tests/mod.rs:39
↓ 18 callers
Method
update_context
(&mut self, tokens: u32)
loom/src/models/session/methods.rs:119
↓ 17 callers
Method
apply_pending_verdicts
Apply verdict files that haven't been applied yet (no `applied.marker`). Idempotent under crash recovery: a `.applying` marker is written before mutat
loom/src/orchestrator/adjudication/mod.rs:223
↓ 17 callers
Method
detect_session_changes
Detect session status changes and context levels
loom/src/orchestrator/monitor/detection.rs:133
↓ 17 callers
Method
try_mark_queued
Mark the stage as queued with validation. # Returns `Ok(())` if the transition succeeded, `Err` if invalid
loom/src/models/stage/methods.rs:221
↓ 17 callers
Method
valid_transitions
Returns the list of valid statuses this status can transition to.
loom/src/models/stage/transitions.rs:120
↓ 16 callers
Function
append_entry
Append an entry to a stage's memory journal
loom/src/fs/memory/storage.rs:56
↓ 16 callers
Function
run_git
(args: &[&str], cwd: &Path)
loom/tests/integration/merge_conflict_recovery.rs:33
↓ 16 callers
Function
setup_env
()
loom/src/plan/tests/amendment.rs:39
↓ 16 callers
Function
validate_id
Validates that an ID is safe for use in file paths. An ID is valid if: - It is not empty - It is no longer than MAX_ID_LENGTH characters - It contain
loom/src/validation.rs:51
↓ 16 callers
Function
verdict_file
(disputes_root: &std::path::Path, stage_id: &str, id: u32)
loom/src/models/dispute.rs:100
↓ 15 callers
Function
compute_all_levels
Compute levels for all stages in a collection. Returns a HashMap mapping stage IDs to their computed levels.
loom/src/plan/graph/levels.rs:68
↓ 15 callers
Method
expand
Expand all variables in a criterion string. Variables use the format `${VARIABLE_NAME}`. Unknown variables are left unchanged. # Example ```ignore
loom/src/verify/context.rs:83
↓ 15 callers
Function
init_test_repo
Test helper: Create a temporary git repository with initial commit
loom/tests/integration/helpers.rs:12
↓ 15 callers
Method
mark_executing
Mark a stage as executing. Validates that the stage is currently in `Queued` status.
loom/src/plan/graph/mod.rs:139
↓ 15 callers
Method
mark_merged
Mark a stage as merged to the merge point. This is called after progressive merge verifies and merges a completed stage. After marking as merged, dep
loom/src/plan/graph/mod.rs:318
↓ 15 callers
Method
project_root
Get the project root (parent of .work directory)
loom/src/fs/work_dir.rs:288
↓ 15 callers
Method
try_mark_running
Mark the session as running with validation. # Returns `Ok(())` if the transition succeeded, `Err` if invalid
loom/src/models/session/methods.rs:165
↓ 15 callers
Function
validate_bash_command
Validate a bash command for worktree isolation violations. # Arguments `command` - The bash command to validate `current_stage` - The current stage I
loom/src/hooks/validators/bash.rs:126
↓ 14 callers
Function
create_test_session
(status: SessionStatus)
loom/src/models/session/tests/helpers.rs:3
↓ 14 callers
Function
create_test_stage
(id: &str, name: &str, status: StageStatus)
loom/tests/e2e/manual_mode.rs:31
↓ 14 callers
Function
create_test_work_dir
(temp_dir: &TempDir)
loom/src/fs/plan_lifecycle.rs:305
↓ 14 callers
Method
initialize
Initialize the knowledge directory with default files
loom/src/fs/knowledge/dir.rs:63
↓ 14 callers
Function
list_all_stages
List all stages from `.work/stages/` Reads all `.md` files in the stages directory and parses them into Stage structs. # Arguments `work_dir` - Path
loom/src/verify/transitions/persistence.rs:179
↓ 14 callers
Function
locked_read
Read file contents with a shared (read) lock. Acquires a shared lock on the parent directory before reading, allowing multiple concurrent readers but
loom/src/fs/locking.rs:167
↓ 14 callers
Method
mark_completed
Mark a stage as completed and update dependent stages. # Returns A vector of stage IDs that became ready (transitioned to `Queued`) as a result of t
loom/src/plan/graph/mod.rs:164
↓ 14 callers
Method
read
Read a knowledge file
loom/src/fs/knowledge/dir.rs:96
↓ 14 callers
Function
safe_extract_path
Safely resolves a zip entry path, protecting against zip slip attacks. Returns the safe output path if the entry is valid, or an error if: - The path
loom/src/commands/self_update/zip.rs:92
↓ 14 callers
Method
try_mark_blocked
Mark the stage as blocked with validation. # Returns `Ok(())` if the transition succeeded, `Err` if invalid
loom/src/models/stage/methods.rs:253
↓ 14 callers
Function
write_plan
(dir: &std::path::Path, filename: &str, content: &str)
loom/tests/integration/plan_verify.rs:173
↓ 13 callers
Function
are_all_dependencies_satisfied
Check if all dependencies of a stage are satisfied A dependency is satisfied if: - Its status is `Completed`, AND - `merged` is true, AND - (non-know
loom/src/verify/transitions/state.rs:181
↓ 13 callers
Function
build_test_graph
Test helper: Build execution graph from stage definitions
loom/tests/integration/helpers.rs:88
↓ 13 callers
Method
check_pending_disputes
Scan `.work/disputes/<stage>/<n>/` for pending disputes and spawn workers for each. Skips disputes that: - already have a `verdict.md` (worker succee
loom/src/orchestrator/adjudication/mod.rs:111
↓ 13 callers
Function
create_branch_with_file
Test helper: Create a branch with a commit adding a file
loom/tests/integration/helpers.rs:59
↓ 13 callers
Function
create_test_session
(id: &str, stage_id: &str)
loom/tests/e2e/manual_mode.rs:24
next →
1–100 of 3,851, ranked by callers