Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/atomicdotdev/atomic
/ functions
Functions
15,497 in github.com/atomicdotdev/atomic
⨍
Functions
15,497
◇
Types & classes
1,261
↓ 10 callers
Method
put_embedding
( &mut self, path: &str, chunk_idx: u32, record: &EmbeddingRecord, )
atomic-core/src/pristine/txn/write/embeddings.rs:171
↓ 10 callers
Method
put_tree
(&mut self, path: &str, inode: Inode)
atomic-core/src/pristine/txn/write/mod.rs:1398
↓ 10 callers
Method
run
Execute the init command. This method: 1. Resolves and validates the target path 2. Validates the view name 3. Creates the directory if it doesn't ex
atomic-cli/src/commands/init.rs:502
↓ 10 callers
Method
save_change
Save a change to the repository. The change is serialized and written to the `.atomic/changes/` directory using a content-addressed two-level directo
atomic-repository/src/repository/changes.rs:87
↓ 10 callers
Function
save_learnings_to_context_file
Save learnings to the agent's context file. If the file doesn't exist, creates it with the learnings section. If the file exists but has no learnings
atomic-agent/src/learnings.rs:364
↓ 10 callers
Method
sign
Sign a message
atomic-identity/src/keypair.rs:147
↓ 10 callers
Function
test_trunk_id
()
atomic-core/src/diff/semantic_to_crdt.rs:616
↓ 10 callers
Function
test_trunk_id
()
atomic-core/src/change/ops.rs:813
↓ 10 callers
Function
to_agent_trace_record
Convert a [`ProvenanceGraph`] into a [`TraceRecord`] suitable for appending to `.agent-trace/traces.jsonl`. `root` is the repository root used for co
atomic-agent/src/export.rs:184
↓ 10 callers
Method
untracked
Iterate over untracked files.
atomic-repository/src/status.rs:554
↓ 10 callers
Method
vault_index_kg
Extract and store KG data for a vault entry in one step.
atomic-repository/src/repository/vault_triples.rs:268
↓ 10 callers
Method
view
Builder: set view filter.
atomic-cli/src/commands/log/command.rs:691
↓ 10 callers
Method
with_change_filter
Set a change filter for view-aware output.
atomic-core/src/output/repo/repository/types.rs:85
↓ 10 callers
Method
with_files
Builder: set files to diff.
atomic-cli/src/commands/diff/command.rs:107
↓ 10 callers
Method
with_view
Builder: set the initial view name.
atomic-cli/src/commands/init.rs:364
↓ 10 callers
Method
write_file
Open a file for writing, creating it if necessary.
atomic-core/src/output/filesystem/mod.rs:290
↓ 10 callers
Method
write_to
Write this header to a writer. Writes exactly 64 bytes. # Errors Returns an I/O error if the write fails.
atomic-core/src/change/format_v3/types/header.rs:328
↓ 9 callers
Function
add_to_tree
Add a single file to tracking. This is the low-level function that actually modifies the database. It does NOT check if the file exists on disk or is
atomic-repository/src/tracking/tree_ops.rs:30
↓ 9 callers
Method
advance
(&mut self)
atomic-core/src/diff/token/tokenizer.rs:186
↓ 9 callers
Method
append_patch_proposal
Append a patch proposal node (change recorded). Returns the new node's ID.
atomic-agent/src/provenance/accumulator/append.rs:254
↓ 9 callers
Method
as_str
(&self)
atomic-core/src/diff/token/token_type.rs:108
↓ 9 callers
Function
atomic
Run `atomic <args>` inside `dir`.
atomic-cli/tests/restore_integration_test.rs:17
↓ 9 callers
Method
begin_conflict
( &mut self, id: usize, changes: Option<&[Hash]>, )
atomic-core/src/output/repo/writer.rs:416
↓ 9 callers
Method
branch_id
(&self)
atomic-core/src/change/ops.rs:567
↓ 9 callers
Function
canonicalize
Canonicalize a JSON value into its RFC-8785 string form.
atomic-canonical/src/jcs.rs:24
↓ 9 callers
Function
create_test_store
()
atomic-identity/src/store.rs:777
↓ 9 callers
Method
db
Get a reference to the underlying database.
atomic-repository/src/redb_change_store/mod.rs:211
↓ 9 callers
Function
decide_identity_with_default_fallback
Pure decision core for identity resolution with a default fallback. Split from [`resolve_identity_with_default_fallback`] so the fallback logic can b
atomic-cli/src/commands/auth.rs:235
↓ 9 callers
Method
del_kg_node
(&mut self, id: &str)
atomic-core/src/pristine/txn/write/triples.rs:401
↓ 9 callers
Function
deserialize_edge
(bytes: &[u8; 24])
atomic-core/src/pristine/txn/helpers.rs:55
↓ 9 callers
Method
dest
(&self)
atomic-core/src/types/edge_kind.rs:330
↓ 9 callers
Function
diff
Compute the diff between two sequences of lines. This is the main entry point for diffing. It takes two slices of [`Line`]s and returns a [`DiffResul
atomic-core/src/diff/mod.rs:172
↓ 9 callers
Function
diff_snapshots
Diff two snapshots to produce a `TurnChanges`.
atomic-agent/src/watcher/fallback.rs:125
↓ 9 callers
Function
encode_branch_value
(data: &SerializedBranch)
atomic-core/src/crdt/tables.rs:541
↓ 9 callers
Function
encode_leaf_value
(data: &SerializedLeaf)
atomic-core/src/crdt/tables.rs:633
↓ 9 callers
Function
execute_plan
Execute a query plan against a repository.
atomic-repository/src/query_plan.rs:143
↓ 9 callers
Function
explicit_empty
()
atomic-core/src/pristine/tables.rs:212
↓ 9 callers
Method
finalize
(&self)
atomic-core/src/types/hash.rs:84
↓ 9 callers
Method
finish
(self)
atomic-repository/src/archive.rs:765
↓ 9 callers
Function
fm
()
atomic-canonical/src/lift.rs:357
↓ 9 callers
Method
get_change
(&self, hash: &Hash)
atomic-core/src/change/store.rs:418
↓ 9 callers
Method
get_file_content_before_change
Get file content as it was BEFORE a specific change was applied. This method retrieves the content of a file at the state immediately prior to a chan
atomic-repository/src/repository/content.rs:568
↓ 9 callers
Function
get_inode
Get the inode for a tracked path. # Arguments `txn` - A transaction (read or write) `path` - The normalized path string
atomic-repository/src/tracking/tree_ops.rs:299
↓ 9 callers
Method
get_leaf
(&self, id: LeafId)
atomic-core/src/crdt/apply/leaf.rs:565
↓ 9 callers
Method
get_path
(&self, _inode: Inode)
atomic-core/src/record/context.rs:848
↓ 9 callers
Method
index
(&self, id: VertexId)
atomic-core/src/output/alive/graph.rs:409
↓ 9 callers
Function
iter_trunk_branches_in_file_order
Returns this trunk's branches in **file order** — top-of-file first. Iteration over `TRUNK_BRANCHES` alone returns branches in `(change_id, branch_id
atomic-core/src/crdt/queries.rs:43
↓ 9 callers
Method
len
Get the number of entries (files + directories).
atomic-core/src/output/memory.rs:431
↓ 9 callers
Function
lift_and_attest_memory
Lift an authored memory (frontmatter + body) into a canonical node, attest it (hash + sign) with the given identity, and return the node. Mirrors [`li
atomic-canonical/src/lib.rs:82
↓ 9 callers
Function
make_leaf
()
atomic-core/src/crdt/leaf.rs:510
↓ 9 callers
Function
make_record
(dims: usize, chunk: u32)
atomic-core/src/pristine/txn/write/embeddings.rs:242
↓ 9 callers
Method
next
(&mut self)
atomic-core/src/record/workflow/crdt/tokenize/mod.rs:243
↓ 9 callers
Function
normalize_memory_path
Normalize a bare id, a `memory/<id>` path, an `<id>.md` name, or a full `memory/<id>.md` path all to the canonical vault path `memory/<id>.md`. This
atomic-cli/src/commands/memory/bridge.rs:68
↓ 9 callers
Function
now_secs
()
atomic-cli/src/commands/agent/lifecycle.rs:590
↓ 9 callers
Method
options
(&self)
atomic-core/src/crdt/apply/context.rs:450
↓ 9 callers
Function
output_graph_content
Output the content of an alive graph to a span buffer. This function traverses the graph in SCC order (as computed by [`compute_order`](crate::output
atomic-core/src/output/repo/content.rs:137
↓ 9 callers
Method
parse_event
(&self, hook_type: HookType, input: &[u8])
atomic-agent/src/hooks/gemini_cli.rs:538
↓ 9 callers
Method
parse_event
(&self, hook_type: HookType, input: &[u8])
atomic-agent/src/hooks/agy.rs:232
↓ 9 callers
Method
parse_event
(&self, hook_type: HookType, input: &[u8])
atomic-agent/src/hooks/kiro.rs:219
↓ 9 callers
Method
range
(&self)
atomic-core/src/diff/inline.rs:232
↓ 9 callers
Method
read_file
Read the contents of a file into a buffer. The buffer is **appended to**, not cleared.
atomic-core/src/output/filesystem/walk.rs:112
↓ 9 callers
Method
record_directory
Record a directory creation. Duplicate directory paths are automatically deduplicated. # Arguments `path` - The path of the directory that was crea
atomic-core/src/output/repo/outcome.rs:250
↓ 9 callers
Function
repo_with_recorded_file
Initialize a repo with a single recorded file `file.txt` = "v1\n".
atomic-cli/tests/restore_integration_test.rs:26
↓ 9 callers
Function
request
()
atomic-cli/src/commands/vault/context.rs:972
↓ 9 callers
Method
set_columns
Set the columns with full configuration. Use this when you need to customize alignment or width constraints. # Arguments `columns` - The column con
atomic-cli/src/output/table.rs:358
↓ 9 callers
Method
set_content_range
Sets the content range.
atomic-core/src/crdt/leaf.rs:235
↓ 9 callers
Function
sherpa_graph
()
atomic-agent/src/export.rs:506
↓ 9 callers
Function
take_snapshot
Walk the directory tree and build a snapshot of all files. Skips directories matching any of the ignore patterns. Only includes regular files (not di
atomic-agent/src/watcher/fallback.rs:70
↓ 9 callers
Method
try_merge
Attempt to merge a conflict group using token-level semantics. # Algorithm 1. Extract the two competing vertices (only 2-way supported). 2. Retrieve
atomic-core/src/merge/engine.rs:89
↓ 9 callers
Method
vault_kg_neighbors
Get the neighborhood subgraph around a node.
atomic-repository/src/repository/vault_triples.rs:733
↓ 9 callers
Method
vault_record_working_copy
Deflate changed vault files from disk into redb. Scans the vault working copy, detects changes, and updates the database. Returns the list of paths t
atomic-repository/src/repository/vault.rs:654
↓ 9 callers
Function
verify
Verify an attested node's content hash and signature against a public key.
atomic-canonical/src/lib.rs:71
↓ 9 callers
Method
walk_files
(&self, prefix: &str)
atomic-core/src/output/memory.rs:554
↓ 9 callers
Method
with_added
(mut self, files: Vec<PathBuf>)
atomic-agent/src/event.rs:502
↓ 9 callers
Method
with_ai_assisted
Builder: set the AI-assisted flag.
atomic-cli/src/commands/record/mod.rs:347
↓ 9 callers
Method
with_ai_provider
Builder: set the AI provider.
atomic-cli/src/commands/record/mod.rs:353
↓ 9 callers
Method
with_algorithm
Builder: set the diff algorithm.
atomic-cli/src/commands/record/mod.rs:317
↓ 9 callers
Method
with_column
Builder method to set column
atomic-semantic/src/entity.rs:196
↓ 9 callers
Method
with_exported
Builder method to set exported flag
atomic-semantic/src/entity.rs:208
↓ 9 callers
Method
with_new_line_num
Set the new line number.
atomic-core/src/record/workflow/crdt/builder/branch.rs:107
↓ 9 callers
Method
with_provenance
Mark that this change has a provenance section. Automatically sets the `HAS_PROVENANCE` flag.
atomic-core/src/change/format_v3/types/builder.rs:96
↓ 9 callers
Method
write_unhashed
Write the optional UNHASHED section. This section is NOT included in the content hash. It's intended for data that shouldn't affect the change's iden
atomic-core/src/change/format_v3/writer/sections.rs:172
↓ 8 callers
Method
add_change
Add a detected change.
atomic-core/src/record/detect.rs:618
↓ 8 callers
Method
add_change_explained
Add a change hash that this graph explains.
atomic-core/src/change/provenance_graph/builder.rs:144
↓ 8 callers
Method
add_conflict
(&mut self)
atomic-core/src/crdt/apply/context.rs:203
↓ 8 callers
Method
add_file
Add a file item.
atomic-core/src/output/repo/tree.rs:688
↓ 8 callers
Method
add_file_with_content
Adds a new file with content, automatically tokenizing into lines.
atomic-core/src/record/workflow/crdt/builder/trunk.rs:165
↓ 8 callers
Method
add_files_touched
Add files to the accumulated files_touched list (deduplicating).
atomic-agent/src/turn/session.rs:336
↓ 8 callers
Method
add_hunk
Add a built graph_op to the result.
atomic-core/src/record/workflow/graph_op/hunk.rs:413
↓ 8 callers
Method
add_zombie_vertex
Add a zombie span (simplified API).
atomic-core/src/apply/conflict.rs:320
↓ 8 callers
Method
align_to_view
Align the view pointer without materializing the working copy. This persists the new view name to `.atomic/current_view` so that subsequent `status()
atomic-repository/src/repository/mod.rs:677
↓ 8 callers
Method
append_contents
Append raw bytes to the contents buffer. Returns the starting position of the appended content, which can be used to reference this content in hunks.
atomic-core/src/record/builder.rs:272
↓ 8 callers
Method
branch
(self, branch_id: BranchId)
atomic-core/src/crdt/apply/conflict.rs:446
↓ 8 callers
Function
calculate_pull_delta
Calculate which changes need to be pulled from the remote. Compares remote and local changelists to determine which remote changes are missing locall
atomic-cli/src/commands/pull/helpers.rs:68
↓ 8 callers
Method
child_count
Get the number of children for a span. This includes both regular and extra children.
atomic-core/src/output/alive/graph.rs:314
↓ 8 callers
Function
collect_working_files
Collect files from the working copy. Scans the working copy to find all files present on disk. This is the complement to `collect_tracked_files` for
atomic-core/src/record/workflow/collect.rs:436
↓ 8 callers
Method
compact_position
Convert a `Position<Option<Hash>>` to a [`CompactPosition`]. # Errors Returns [`FormatError::HashNotFound`](super::super::error::FormatError::HashNo
atomic-core/src/change/format_v3/compact/compactor.rs:71
↓ 8 callers
Function
convert_remote_error
Convert a remote error to a CLI error. Maps the various remote error types to appropriate CLI error types with user-friendly messages and suggestions
atomic-cli/src/commands/push/helpers.rs:398
↓ 8 callers
Method
cost_usd
Set the total cost in USD.
atomic-core/src/change/attestation.rs:582
↓ 8 callers
Method
create
Creates a file creation operation. # Arguments `trunk_id` - The trunk ID for the new file `path` - The file path `encoding` - Optional text encoding
atomic-core/src/change/ops.rs:132
← previous
next →
501–600 of 15,497, ranked by callers