Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/atomicdotdev/atomic
/ functions
Functions
14,266 in github.com/atomicdotdev/atomic
⨍
Functions
14,266
◇
Types & classes
1,144
↓ 11 callers
Method
semantic_section_count
Set the number of SEMANTIC sections (one per modified file). Automatically sets the `HAS_SEMANTIC` flag if count > 0.
atomic-core/src/change/format_v3/types/builder.rs:76
↓ 11 callers
Method
set
(mut self, k: &str, v: &str)
atomic-cli/src/commands/update.rs:595
↓ 11 callers
Method
set_agent
Set the agent identity for sessions created by this orchestrator. Called by the CLI hook handler after construction, before dispatching events. This
atomic-agent/src/turn/orchestrator/mod.rs:300
↓ 11 callers
Function
test_change_id
()
atomic-core/src/diff/semantic_to_crdt.rs:612
↓ 11 callers
Function
test_hash
()
atomic-core/src/apply/change.rs:241
↓ 11 callers
Method
turn_duration_ms
(mut self, ms: u64)
atomic-agent/src/envelope.rs:502
↓ 11 callers
Method
with_detail
Set the detail field.
atomic-agent/src/provenance/types.rs:305
↓ 11 callers
Method
with_files
Builder: set files to restore.
atomic-cli/src/commands/restore.rs:131
↓ 11 callers
Method
with_metadata
Set custom metadata.
atomic-core/src/output/mod.rs:385
↓ 11 callers
Method
with_summary
Builder: set summary.
atomic-core/src/pristine/vault.rs:332
↓ 11 callers
Method
with_tool_use_id
(mut self, id: impl Into<String>)
atomic-agent/src/event.rs:364
↓ 11 callers
Method
with_transcript_path
(mut self, path: impl Into<PathBuf>)
atomic-agent/src/event.rs:343
↓ 10 callers
Method
add_hunk
Add a graph_op to this diff.
atomic-cli/src/commands/diff/types.rs:612
↓ 10 callers
Method
add_hunk
Add a graph_op to the recorded actions. # Arguments `graph_op` - The graph_op to add # Returns The index of the added graph_op (for associating in
atomic-core/src/record/builder.rs:296
↓ 10 callers
Method
alloc_inode
(&mut self)
atomic-core/src/crdt/apply/leaf.rs:614
↓ 10 callers
Method
analyze
Performs the analysis and returns the result. This is the main entry point for analyzing differences.
atomic-core/src/record/workflow/crdt/line_ops/analyzer.rs:291
↓ 10 callers
Method
build_options
Build RecordOptions from command-line arguments.
atomic-cli/src/commands/record/provenance.rs:168
↓ 10 callers
Method
build_provenance
Build AI provenance from CLI flags and environment variables. Environment variables take precedence over CLI flags for consistency with AI tool integ
atomic-cli/src/commands/record/provenance.rs:8
↓ 10 callers
Function
build_turn_message
Build the change message for a turn. Message priority: 1. If the prompt is meaningful (not a slash command, not too short), use it directly — the use
atomic-agent/src/record/message.rs:27
↓ 10 callers
Method
change_path
Compute the filesystem path for a change with the given hash. The path follows the two-level directory structure: `{changes_dir}/{prefix}/{full_hash}
atomic-repository/src/changestore/mod.rs:237
↓ 10 callers
Function
compute_new_state
Compute the new Merkle state after applying a change. The Merkle state is computed incrementally: `new_state = Hash(old_state || change_hash)` This
atomic-core/src/apply/change.rs:139
↓ 10 callers
Function
compute_order
Compute the output order using Tarjan's SCC algorithm. This function: 1. Runs Tarjan's algorithm to find all SCCs 2. Builds the conflict tree 3. Iden
atomic-core/src/output/alive/order.rs:354
↓ 10 callers
Function
conflict
Format conflict content in bold red. Use this for conflict markers or conflicted file indicators.
atomic-cli/src/output/colors.rs:504
↓ 10 callers
Method
convert_diff
Convert a SemanticDiff to FileOps. # Arguments `diff` - The semantic diff to convert `path` - The file path # Returns A `FileOps` containing all t
atomic-core/src/diff/semantic_to_crdt.rs:326
↓ 10 callers
Method
convert_file_content
Converts a file addition with content to CRDT operations. This generates: - `TrunkOp::Create` for the file - `BranchOp::Insert` for each line - `Leaf
atomic-core/src/record/workflow/crdt/convert/converter.rs:109
↓ 10 callers
Method
count
Get the number of changes unrecorded.
atomic-repository/src/unrecord.rs:299
↓ 10 callers
Method
create_tag
Create a named tag on the current view at the current sequence.
atomic-repository/src/repository/tags.rs:26
↓ 10 callers
Function
create_test_file_add_hunk
Create a simple test FileAdd graph_op
atomic-core/src/record/builder.rs:1010
↓ 10 callers
Function
decode_inode_vertex
(key: &[u8; 32])
atomic-core/src/pristine/tables.rs:813
↓ 10 callers
Method
email
Set the email address.
atomic-identity/src/identity.rs:420
↓ 10 callers
Function
encode_leaf_id
(id: &LeafId)
atomic-core/src/crdt/tables.rs:310
↓ 10 callers
Method
extract
(&mut self, source: &str, file_path: &str)
atomic-semantic/src/parsers/swift.rs:644
↓ 10 callers
Method
fail_on_conflict
(&self)
atomic-core/src/crdt/apply/options.rs:296
↓ 10 callers
Function
format_upgrade_message
Produce the multi-line outdated message for a given source. Pure so the unit tests can match on substrings.
atomic-cli/src/commands/update.rs:356
↓ 10 callers
Method
get_default
Get the default identity ID.
atomic-identity/src/store.rs:95
↓ 10 callers
Method
get_file_content
Get the recorded content for a tracked file. This method builds a **change filter** that defines the current view's content perspective, then retriev
atomic-repository/src/repository/content.rs:27
↓ 10 callers
Function
hash_embed
Simple hash-based "embedding" for testing purposes. Produces a deterministic vector from text content using character frequency analysis. NOT suitabl
atomic-repository/src/repository/vault_embeddings.rs:283
↓ 10 callers
Method
init_embeddings
(&mut self)
atomic-core/src/pristine/txn/write/embeddings.rs:227
↓ 10 callers
Method
inode_node
(&self)
atomic-core/src/types/position.rs:89
↓ 10 callers
Method
introduced_by
(&self)
atomic-core/src/types/edge_kind.rs:321
↓ 10 callers
Method
is_file
Check if this format is a single file.
atomic-repository/src/archive.rs:202
↓ 10 callers
Method
is_pub
Check if a node has a `pub` visibility modifier.
atomic-semantic/src/parsers/rust.rs:482
↓ 10 callers
Method
is_success
Check if the push was successful (no failures).
atomic-cli/src/commands/push/types.rs:311
↓ 10 callers
Function
is_tracked
Check if a path is tracked. # Arguments `txn` - A transaction (read or write) `path` - The normalized path string
atomic-repository/src/tracking/tree_ops.rs:286
↓ 10 callers
Method
iter
(&self)
atomic-core/src/crdt/apply/conflict.rs:566
↓ 10 callers
Method
len
Get the number of collected files.
atomic-core/src/record/workflow/collect.rs:268
↓ 10 callers
Method
load_by_name
Load an identity by name.
atomic-identity/src/store.rs:518
↓ 10 callers
Method
load_remotes
Load remote configuration for this repository. # Returns The remote configuration, which may be empty if no remotes are configured. # Errors Retur
atomic-repository/src/repository/remotes.rs:26
↓ 10 callers
Function
make_inode
Helper to create a test inode.
atomic-core/tests/inode_graph_test.rs:28
↓ 10 callers
Function
make_vertex
Helper to create a test span.
atomic-core/tests/inode_graph_test.rs:19
↓ 10 callers
Method
operation
(&self)
atomic-core/src/change/ops.rs:573
↓ 10 callers
Function
print_blank
Print a blank line for visual separation.
atomic-cli/src/output/mod.rs:181
↓ 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
root
(&self)
atomic-repository/src/repository/mod.rs:547
↓ 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:495
↓ 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:362
↓ 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
to_bytes
Serialize to a compact binary blob via postcard.
atomic-core/src/change/session.rs:136
↓ 10 callers
Method
untracked
Iterate over untracked files.
atomic-repository/src/status.rs:542
↓ 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:117
↓ 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_view
Builder: set the initial view name.
atomic-cli/src/commands/init.rs:357
↓ 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:203
↓ 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
collect_visible_change_ids
Collect all change `NodeId`s visible from a view, including parent views. For **draft** views this walks the full overlay chain (other draft ancestor
atomic-repository/src/repository/filter.rs:53
↓ 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
Method
del_tree
(&mut self, path: &str)
atomic-core/src/pristine/txn/write/mod.rs:889
↓ 9 callers
Method
delete
Create a Delete operation.
atomic-core/src/diff/ops.rs:132
↓ 9 callers
Function
deserialize_edge
(bytes: &[u8; 24])
atomic-core/src/pristine/txn/helpers.rs:36
↓ 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:200
↓ 9 callers
Method
find_block_in_inode
( &self, inode: Inode, pos: Position<NodeId>, )
atomic-core/src/pristine/txn/read.rs:1590
↓ 9 callers
Method
finish
(self)
atomic-repository/src/archive.rs:765
↓ 9 callers
Method
format
Builder: set format.
atomic-cli/src/commands/log/command.rs:642
↓ 9 callers
Method
get_change
(&self, hash: &Hash)
atomic-core/src/change/store.rs:418
↓ 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
index
(&self, id: VertexId)
atomic-core/src/output/alive/graph.rs:409
↓ 9 callers
Method
is_root
Check if this is the repository root.
atomic-core/src/record/item.rs:669
↓ 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
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
Function
now_secs
()
atomic-cli/src/commands/agent/lifecycle.rs:590
↓ 9 callers
Method
options
(&self)
atomic-core/src/crdt/apply/context.rs:450
← previous
next →
401–500 of 14,266, ranked by callers