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
↓ 6 callers
Method
get_node
Get a specific node by ID
loom/src/plan/graph/mod.rs:260
↓ 6 callers
Function
get_uncommitted_changes_summary
Get a summary of uncommitted changes for display Returns a human-readable summary of staged and unstaged changes. # Arguments `repo_root` - Path to
loom/src/git/branch/status.rs:54
↓ 6 callers
Function
git_dir_for_repo_path
Resolve the `.git` directory for any repo or worktree path. Handles `.git` as a directory or as a file containing `gitdir: <path>`, resolving relativ
loom/src/git/merge/in_progress.rs:60
↓ 6 callers
Function
init_repo
()
loom/src/git/merge/in_progress.rs:217
↓ 6 callers
Function
init_repo
()
loom/src/orchestrator/merge_attribution.rs:331
↓ 6 callers
Function
install_pre_commit_hook
Install the pre-commit hook to the repository's .git/hooks directory This function: 1. Creates the hooks directory if it doesn't exist 2. Appends the
loom/src/git/hooks.rs:32
↓ 6 callers
Function
kill
Kill one or more sessions by ID/prefix, or all sessions for a stage
loom/src/commands/sessions.rs:51
↓ 6 callers
Method
label
Get a short label for this status
loom/src/commands/status/data/mod.rs:37
↓ 6 callers
Function
make_event
Build a minimal JSON event line with the given fields.
loom/src/orchestrator/monitor/tool_analysis.rs:144
↓ 6 callers
Function
make_signal
(session_id: &str, stage_id: &str, expires_offset_secs: i64)
loom/src/orchestrator/monitor/soft_signals.rs:186
↓ 6 callers
Function
make_stage
(id: &str)
loom/src/orchestrator/merge_attribution.rs:343
↓ 6 callers
Function
read_stream_to_string
Read a stream to string, handling errors gracefully Reads output in chunks with a maximum size limit to prevent OOM attacks. If output exceeds MAX_OU
loom/src/verify/criteria/executor.rs:185
↓ 6 callers
Function
read_tool_events
Read all tool events from `.work/tool-events.jsonl`. Returns `Ok(empty vec)` if the file does not exist. Skips blank lines and malformed lines (warns
loom/src/hooks/events.rs:238
↓ 6 callers
Function
reconcile_main_repo_active_merge
Reconcile any main-repo active merge with stage state on disk. Pure free function — takes `repo_root` and `work_dir`; mutates only stage files on dis
loom/src/orchestrator/merge_attribution.rs:225
↓ 6 callers
Function
resolve_base_branch
Resolve the base branch from config, falling back to "main"
loom/src/commands/stage/complete.rs:66
↓ 6 callers
Function
resolve_plan_path
Resolve a user-supplied plan argument into both a filesystem path and the invocation string handed to the slash commands / codex skill. `repo_root` M
loom/src/commands/pressure/mod.rs:118
↓ 6 callers
Function
resolve_source_path
Resolve the plan source path to an absolute path. In worktrees, `.work/` is a symlink to `../../.work`. A relative `source_path` (e.g., `doc/plans/PL
loom/src/fs/mod.rs:103
↓ 6 callers
Method
results
Get all criterion results
loom/src/verify/criteria/result.rs:81
↓ 6 callers
Function
run_dead_code_check
Run dead code detection and parse output for violations Executes the configured command (e.g., "cargo build --message-format=json"), checks output ag
loom/src/verify/goal_backward/dead_code.rs:21
↓ 6 callers
Method
set_variable
Set a custom variable value.
loom/src/verify/context.rs:63
↓ 6 callers
Function
stage_color
Deterministically assign a color to a stage based on its ID Uses a hash of the stage ID to select from a palette of 16 terminal-appropriate colors. T
loom/src/commands/graph/colors.rs:51
↓ 6 callers
Function
start_active_merge_in_main
Triggers a merge conflict in main against a stage branch. Leaves MERGE_HEAD set on the main repo.
loom/tests/integration/merge_conflict_recovery.rs:98
↓ 6 callers
Function
trust_worktree
Add a worktree path to Claude Code's trusted projects Sets `projects[worktree_path].hasTrustDialogAccepted = true` in `~/.claude.json` so Claude Code
loom/src/fs/permissions/trust.rs:42
↓ 6 callers
Method
try_complete_merge
Complete merge conflict resolution and mark stage as completed. This clears the merge_conflict flag and marks the stage as merged. Computes and store
loom/src/models/stage/methods.rs:287
↓ 6 callers
Method
try_mark_context_exhausted
Mark the session as context exhausted with validation. # Returns `Ok(())` if the transition succeeded, `Err` if invalid
loom/src/models/session/methods.rs:197
↓ 6 callers
Method
try_skip
Mark the stage as skipped with validation. # Returns `Ok(())` if the transition succeeded, `Err` if invalid
loom/src/models/stage/methods.rs:261
↓ 6 callers
Function
validate_knowledge_content
Validates that knowledge content is within acceptable length limits. # Arguments `content` - The knowledge content string to validate # Returns `O
loom/src/validation.rs:129
↓ 6 callers
Function
validate_relpath
Validate that `relpath` is a relative path with no `..` components and no absolute prefix. Returns the cleaned set of components on success.
loom/src/fs/safe_fs.rs:74
↓ 6 callers
Function
validate_response_status
Validate HTTP response status code and return a descriptive error if not successful.
loom/src/commands/self_update/client.rs:46
↓ 6 callers
Function
verify_merge_succeeded
Verify that a merge actually succeeded by checking git ancestry. This prevents "phantom merges" where the merged flag is set but the code was never a
loom/src/git/merge/mod.rs:392
↓ 6 callers
Function
verify_or_derive_completed_commit
Read-only ancestry verification. Never mutates the stage; never saves. Resolves the commit (from `stage.completed_commit` or by deriving it from `loo
loom/src/commands/stage/merge_verify.rs:38
↓ 6 callers
Function
verify_regression_test
Verify a regression test file exists and contains required patterns. This is used by bug-fix stages to ensure regression tests are in place. # Argum
loom/src/verify/goal_backward/artifacts.rs:104
↓ 6 callers
Function
verify_wiring_tests
Verify all wiring tests pass their success criteria Runs each test command and validates the output against the defined success criteria. Returns a V
loom/src/verify/goal_backward/wiring_tests.rs:19
↓ 6 callers
Method
with_next_steps
Add next steps
loom/src/handoff/generator/content.rs:82
↓ 6 callers
Function
with_test_home
(test_fn: impl FnOnce(&Path, &Path))
loom/src/fs/permissions/trust.rs:163
↓ 6 callers
Function
write_phantom_stage
Build a Stage in the given Completed/merged state and write it to disk.
loom/tests/phantom_merge.rs:94
↓ 6 callers
Function
write_stage
(work_dir: &Path, stage: &Stage)
loom/src/orchestrator/adjudication/tests.rs:29
↓ 6 callers
Function
write_verdict
(work_dir: &Path, stage_id: &str, id: u32, verdict: DisputeVerdict, attempt: u32)
loom/src/orchestrator/adjudication/tests.rs:55
↓ 5 callers
Function
all_stages_merged
Check if all stages are merged by reading stage files.
loom/src/fs/plan_lifecycle.rs:86
↓ 5 callers
Function
apply_patch_vec
( vec: &mut Vec<T>, patch: &AmendmentPatch, new_value: Option<T>, )
loom/src/plan/amendment.rs:929
↓ 5 callers
Function
build_search_patterns
Build a list of grep patterns for detecting references to `name` in files of the given `extension`.
loom/src/verify/wiring_detection.rs:273
↓ 5 callers
Function
check_work_dir_state
Check the current state of the .work directory # Arguments `repo_root` - Path to the repository root # Returns The current state of the .work direct
loom/src/fs/work_integrity.rs:40
↓ 5 callers
Function
checkout_branch
Checkout a branch
loom/src/git/merge/mod.rs:314
↓ 5 callers
Function
cleanup_terminal_crossterm
Restore terminal from crossterm TUI state. This handles the full crossterm cleanup: - Disables raw mode - Disables mouse capture - Leaves alternate s
loom/src/utils.rs:180
↓ 5 callers
Function
close_cross_platform_terminal_window
(escaped_title: &str, terminal: &TerminalEmulator)
loom/src/orchestrator/terminal/native/window_ops.rs:153
↓ 5 callers
Function
connect
Connect to daemon socket.
loom/src/commands/status/ui/tui/daemon_client.rs:15
↓ 5 callers
Function
context_health
Calculate context health from tokens
loom/src/orchestrator/monitor/context.rs:20
↓ 5 callers
Function
create_test_git_repo
Create a temporary git repository for testing
loom/tests/e2e/uncommitted_changes.rs:17
↓ 5 callers
Function
create_test_stage
(id: &str, status: StageStatus)
loom/src/commands/stage/check_acceptance.rs:147
↓ 5 callers
Function
create_test_stage
(id: &str, status: StageStatus)
loom/src/commands/stage/merge.rs:438
↓ 5 callers
Function
create_test_stage
(stage_id: &str, work_dir: &std::path::Path)
loom/src/orchestrator/continuation/tests.rs:22
↓ 5 callers
Function
create_test_worktree
(stage_id: &str, project_root: &std::path::Path)
loom/src/orchestrator/continuation/tests.rs:39
↓ 5 callers
Function
cross_platform_terminal_window_exists
(escaped_title: &str, terminal: &TerminalEmulator)
loom/src/orchestrator/terminal/native/window_ops.rs:355
↓ 5 callers
Function
current_branch
Get the current branch name
loom/src/git/branch/operations.rs:29
↓ 5 callers
Function
delete_branch
Delete a branch
loom/src/git/branch/operations.rs:21
↓ 5 callers
Function
detect_stderr_warnings
Detect suspicious patterns in stderr that may indicate silent failures. Only checks results that reported success (exit code 0). Returns a list of war
loom/src/verify/criteria/runner.rs:188
↓ 5 callers
Method
dimmed
()
loom/src/commands/status/ui/theme.rs:45
↓ 5 callers
Function
enforce_size_limit
(content: &[u8])
loom/src/fs/safe_fs.rs:667
↓ 5 callers
Function
extract_backtick_items
Extract backtick-wrapped items from a list of markdown bullet lines. Parses lines like `- \`path/to/file\`` and returns the unwrapped values. Useful
loom/src/orchestrator/signals/helpers.rs:189
↓ 5 callers
Function
extract_description_triggers
Extract triggers from description text by looking for known patterns: - "TRIGGERS:" followed by comma-separated list - "Trigger keywords:" followed by
loom/src/skills/index.rs:174
↓ 5 callers
Function
extract_frontmatter_field
Extract a single field value from YAML frontmatter This is a convenience function for extracting simple scalar values from frontmatter without needin
loom/src/parser/frontmatter.rs:43
↓ 5 callers
Function
find_project_root
Find the project root directory containing a manifest file. Checks for common project manifest files: - Cargo.toml (Rust) - package.json (Node.js) -
loom/src/verify/context.rs:134
↓ 5 callers
Function
format_conflicting_files_section
Format the "## Conflicting Files" section as a bullet list of backtick-wrapped paths. Shows a fallback message when no files are listed. Shared acros
loom/src/orchestrator/signals/helpers.rs:97
↓ 5 callers
Function
format_execution_rules_section
Format the "## Execution Rules" section for conflict resolution signals. The `preserve_intent` parameter controls the wording: - `"BOTH branches"` fo
loom/src/orchestrator/signals/helpers.rs:66
↓ 5 callers
Function
format_merge_signal_content
( session: &Session, stage: &Stage, source_branch: &str, target_branch: &str, conflicting_
loom/src/orchestrator/signals/merge.rs:119
↓ 5 callers
Function
format_target_section
Format the "## Target" markdown section for conflict-type signals. Shared across merge, base_conflict, and merge_conflict signal generators. Standard
loom/src/orchestrator/signals/helpers.rs:41
↓ 5 callers
Function
generate_knowledge_stable_prefix
Stable prefix for knowledge stages (runs in main repo, no worktree)
loom/src/orchestrator/signals/cache.rs:661
↓ 5 callers
Method
get_by_name
Get a skill by exact name lookup
loom/src/skills/index.rs:128
↓ 5 callers
Function
get_merge_point
Get the merge point (base_branch) from config.toml in a work directory. This is a convenience function that returns the base_branch field, falling ba
loom/src/fs/mod.rs:72
↓ 5 callers
Method
has_any_goal_checks
Check if this stage definition has any goal-backward verification checks defined.
loom/src/plan/schema/types.rs:271
↓ 5 callers
Method
increment_fix_attempts
Increment the fix attempt counter and return the new count.
loom/src/models/stage/methods.rs:424
↓ 5 callers
Function
init_test_repo
()
loom/src/git/branch/ancestry.rs:165
↓ 5 callers
Function
initialize_with_plan
Initialize with a plan file Returns the number of stages created
loom/src/commands/init/plan_setup.rs:27
↓ 5 callers
Method
is_success
(&self)
loom/src/orchestrator/core/orchestrator.rs:522
↓ 5 callers
Method
kill_session
(&self, session: &Session)
loom/src/orchestrator/terminal/native/mod.rs:381
↓ 5 callers
Function
list_journals
List all memory journals in the work directory
loom/src/fs/memory/persistence.rs:10
↓ 5 callers
Function
load_stages_from_work_dir
Load stage definitions from .work/stages/ directory
loom/src/fs/stage_loading.rs:30
↓ 5 callers
Function
lock_parent_dir
Open the parent directory of `path` and acquire an advisory lock on it. The returned `File` owns the lock; dropping it releases the lock. Locking the
loom/src/fs/locking.rs:40
↓ 5 callers
Function
locked_read_modify_write
Read-modify-write with an exclusive lock held throughout. Opens the file (creating if needed), acquires exclusive lock, reads content, calls the modi
loom/src/fs/locking.rs:185
↓ 5 callers
Function
make_stage_summary
(id: &str, deps: Vec<&str>, status: StageStatus)
loom/src/commands/status/render/graph_tests.rs:4
↓ 5 callers
Method
mark_queued
Mark a stage as queued for execution. Used to reset orphaned/blocked stages back to queued state. Only succeeds if all dependencies are completed.
loom/src/plan/graph/mod.rs:221
↓ 5 callers
Function
memory_file_path
Get the path to a stage's memory file
loom/src/fs/memory/storage.rs:18
↓ 5 callers
Function
merge_stage
Merge a stage branch to target branch (typically main) Steps: 1. Acquire merge lock to prevent concurrent merges 2. Checkout target branch 3. Merge s
loom/src/git/merge/mod.rs:74
↓ 5 callers
Function
minimal_valid_plan
A minimal valid plan (standard stage with acceptance, no artifacts).
loom/tests/integration/plan_verify.rs:12
↓ 5 callers
Function
open_safely
Open a file under `dirfd` with the requested flags/mode, refusing every symlink along the path. Tries `openat2` first; falls back to the portable open
loom/src/fs/safe_fs.rs:209
↓ 5 callers
Function
pid_file_path
Get the path to a PID file for a tracking key. `pid_key` is the per-session tracking key (`tracking_key` + `session.id`), NOT a bare stage id — conse
loom/src/orchestrator/terminal/native/pid_tracking.rs:44
↓ 5 callers
Function
read_pid_entry
Read the PID (and optional start-time) from a PID file. File format written by the wrapper script: - line 1: the PID (`echo $$`) - line 2 (optional):
loom/src/orchestrator/terminal/native/pid_tracking.rs:73
↓ 5 callers
Function
read_recent_events
Read recent hook events from the events file Returns the last `limit` events, or all events if limit is None.
loom/src/hooks/events.rs:159
↓ 5 callers
Method
record_failure
Record a failure
loom/src/orchestrator/monitor/failure_tracking.rs:59
↓ 5 callers
Method
replace_section
Replace a section in a knowledge file identified by its ## heading. Finds the first `## <heading>` line and replaces everything between it and the ne
loom/src/fs/knowledge/dir.rs:142
↓ 5 callers
Method
root
Get the knowledge directory path
loom/src/fs/knowledge/dir.rs:24
↓ 5 callers
Method
run
Run the TUI event loop.
loom/src/commands/status/ui/tui/app.rs:113
↓ 5 callers
Function
run_after_stage_checks
Run after-stage checks to verify post-conditions. Executes TruthChecks that describe the expected state AFTER implementation. If any check fails, the
loom/src/verify/before_after.rs:35
↓ 5 callers
Function
run_before_stage_checks
Run before-stage checks to verify pre-conditions. Executes TruthChecks that describe the expected state BEFORE implementation. If any check fails, th
loom/src/verify/before_after.rs:24
↓ 5 callers
Function
safe_create_new_in_workdir
Create `relpath` under `dirfd` with `O_EXCL`: fails if the file already exists. Used for handoffs and other artefacts that must be unique.
loom/src/fs/safe_fs.rs:338
↓ 5 callers
Function
save_baseline
Save a baseline to the stage's directory in .work/stages/{stage-id}/ # Arguments `baseline` - The baseline to save `work_dir` - Path to the .work dir
loom/src/verify/baseline/capture.rs:72
↓ 5 callers
Function
save_session
Persist a session to `.work/sessions/{id}.md`. This is the single canonical session-persistence routine: it serializes the session via [`session_to_m
loom/src/fs/session_files.rs:27
↓ 5 callers
Method
save_session
Save session state to .work/sessions/ Delegates to the single canonical `save_session` in `fs/session_files` so the daemon, monitor thread, and CLI a
loom/src/orchestrator/core/persistence.rs:127
↓ 5 callers
Function
set
Set an output for a stage. The value is parsed as JSON if it looks like JSON, otherwise treated as a string. This allows simple values like "true" or
loom/src/commands/stage/output.rs:23
↓ 5 callers
Method
set_worktree_path
(&mut self, path: PathBuf)
loom/src/models/session/methods.rs:111
← previous
next →
301–400 of 3,851, ranked by callers