MCPcopy Create free account

hub / github.com/antirez/ds4 / functions

Functions2,709 in github.com/antirez/ds4

↓ 2 callersFunctionagent_kv_write_title_trailer
ds4_agent.c:3701
↓ 2 callersFunctionagent_line_for_offset
ds4_agent.c:5565
↓ 2 callersFunctionagent_maybe_save_before_exiting
Process exit is different from /new or /switch: once the terminal is already * restored, declining the save can terminate immediately and let the OS
ds4_agent.c:9594
↓ 2 callersFunctionagent_maybe_save_before_leaving_session
Ask before discarding a dirty user session. Fresh sessions that contain only * the system prompt are deliberately ignored. */
ds4_agent.c:9576
↓ 2 callersFunctionagent_mkdir_p
ds4_agent.c:3592
↓ 2 callersFunctionagent_prompt_queue_free
ds4_agent.c:8502
↓ 2 callersFunctionagent_prompt_queue_pop
ds4_agent.c:8452
↓ 2 callersFunctionagent_prompt_queue_push_front
ds4_agent.c:8460
↓ 2 callersFunctionagent_prompt_queue_take_all_echo
ds4_agent.c:8487
↓ 2 callersFunctionagent_prompt_yes_no_ex
Shared y/n prompt. By default it blocks forever like the historical helper; * callers that cannot safely stall the agent can request an automatic an
ds4_agent.c:9513
↓ 2 callersFunctionagent_publishf_system_status
ds4_agent.c:4013
↓ 2 callersFunctionagent_read_range
Read file text for the model. Normal mode shows plain line numbers. Raw * mode is reserved for cases where line decoration would corrupt the payloa
ds4_agent.c:5654
↓ 2 callersFunctionagent_session_title_from_span
ds4_agent.c:4423
↓ 2 callersFunctionagent_stream_feed_dsml_byte
ds4_agent.c:3185
↓ 2 callersFunctionagent_stream_normal_byte
Route ordinary assistant bytes either to normal markdown rendering or into * the DSML detector. The detector must hold short prefixes because the mo
ds4_agent.c:3338
↓ 2 callersFunctionagent_stream_tool_events
Mirror parser progress into the terminal visualizer. Parser state is the * source of truth; this function only decides what the user should see. */
ds4_agent.c:3141
↓ 2 callersFunctionagent_stream_wants_greedy_sampling
DSML structure is a machine-readable grammar, so once the model has clearly * started a tool stanza we decode grammar bytes greedily. Parameter valu
ds4_agent.c:7592
↓ 2 callersFunctionagent_syntax_separator
ds4_agent.c:2027
↓ 2 callersFunctionagent_tail_ends_with
ds4_agent.c:8636
↓ 2 callersFunctionagent_tool_calls_push
ds4_agent.c:1280
↓ 2 callersFunctionagent_tool_viz_code_byte
ds4_agent.c:2933
↓ 2 callersFunctionagent_tool_viz_code_prefix
ds4_agent.c:2888
↓ 2 callersFunctionagent_tool_viz_diff_prefix
ds4_agent.c:2874
↓ 2 callersFunctionagent_tool_viz_line_prefix
ds4_agent.c:2761
↓ 2 callersFunctionagent_tool_viz_render_read
ds4_agent.c:2827
↓ 2 callersFunctionagent_tool_viz_tool
ds4_agent.c:2779
↓ 2 callersFunctionagent_trace_escaped
ds4_agent.c:1168
↓ 2 callersFunctionagent_trace_token
ds4_agent.c:1185
↓ 2 callersFunctionagent_trace_tokens
ds4_agent.c:1201
↓ 2 callersFunctionagent_worker_build_system_tokens
ds4_agent.c:3991
↓ 2 callersFunctionagent_worker_compact_if_needed
ds4_agent.c:7517
↓ 2 callersFunctionagent_worker_has_user_session
ds4_agent.c:4324
↓ 2 callersFunctionagent_worker_init
Initialize the worker, cache directory, sysprompt checkpoint path, trace file, * and model thread. After this returns, all DS4 session mutation happ
ds4_agent.c:9421
↓ 2 callersFunctionagent_worker_needs_save
ds4_agent.c:4331
↓ 2 callersFunctionagent_worker_note_terminal_mode_may_have_changed
ds4_agent.c:6743
↓ 2 callersFunctionagent_worker_reset_to_sysprompt
Start a new session at the system/tool prompt. A fixed sysprompt.kv * checkpoint avoids paying this prefill cost repeatedly, but only when the * re
ds4_agent.c:4192
↓ 2 callersFunctionagent_worker_save_session_now
Save the current session under its stable agent identity. The worker owns * the live KV, so busy /save requests are deferred until a stable append-o
ds4_agent.c:4341
↓ 2 callersFunctionagent_worker_set_more
ds4_agent.c:5631
↓ 2 callersFunctionagent_worker_show_history
Render recent saved transcript text without mutating the live session. */
ds4_agent.c:4956
↓ 2 callersFunctionansiEscapeLen
If s[] points at an ANSI CSI escape sequence (e.g. a color change like * ESC [ 1 ; 32 m), return its length in bytes. Otherwise return 0. * * The c
linenoise.c:425
↓ 2 callersFunctionanthropic_final_response
ds4_server.c:6905
↓ 2 callersFunctionanthropic_live_clear
ds4_server.c:8031
↓ 2 callersFunctionanthropic_msg_is_tool_result_tail
ds4_server.c:2553
↓ 2 callersFunctionanthropic_prepare_live_continuation
Prepare the Anthropic live-tool fast path. * * Anthropic's visible replay normally includes the assistant tool_use JSON and * the user tool_result.
ds4_server.c:2606
↓ 2 callersFunctionanthropic_sse_delta_live
ds4_server.c:7097
↓ 2 callersFunctionanthropic_stop_reason
ds4_server.c:6830
↓ 2 callersFunctionanthropic_tool_emit_string_value
ds4_server.c:7175
↓ 2 callersFunctionanthropic_tool_stream_free
ds4_server.c:7003
↓ 2 callersFunctionappend_anthropic_block_content
ds4_server.c:1693
↓ 2 callersFunctionappend_anthropic_content
ds4_server.c:6858
↓ 2 callersFunctionappend_anthropic_usage_json
ds4_server.c:6891
↓ 2 callersFunctionappend_cors_headers
ds4_server.c:4788
↓ 2 callersFunctionappend_dsml_arg
ds4_server.c:2188
↓ 2 callersFunctionappend_dsml_attr_escaped
ds4_server.c:2134
↓ 2 callersFunctionappend_dsml_parameter_text
ds4_server.c:2144
↓ 2 callersFunctionappend_openai_usage_json
ds4_server.c:4948
↓ 2 callersFunctionappend_responses_usage_json
ds4_server.c:6448
↓ 2 callersFunctionappend_tool_call_deltas_json
ds4_server.c:4766
↓ 2 callersFunctionappend_tool_calls_json
ds4_server.c:4746
↓ 2 callersFunctionapply_anthropic_stream_tool_ids
ds4_server.c:8216
↓ 2 callersFunctionapply_openai_stream_tool_ids
ds4_server.c:8206
↓ 2 callersFunctionascii_digit
ds4.c:22055
↓ 2 callersFunctionascii_space
ds4.c:22059
↓ 2 callersFunctionassign_tool_call_ids
ds4_server.c:8193
↓ 2 callersFunctionbuf_appendf
ds4_eval.c:1352
↓ 2 callersFunctionbuf_reserve
ds4_server.c:114
↓ 2 callersFunctionbuild_invalid_dsml_tool_error_suffix
ds4_server.c:9520
↓ 2 callersFunctionbuild_question_prompt
ds4_eval.c:2363
↓ 2 callersFunctionbuild_toolless_thinking_visible_text
In thinking mode without tools, old assistant reasoning is intentionally not * rendered back into later prompts. The sampled live graph still contai
ds4_server.c:9780
↓ 2 callersFunctionbytes_has_prefix
ds4_cli.c:300
↓ 2 callersFunctionbytes_has_prefix
ds4_eval.c:2089
↓ 2 callersFunctionbytes_is_partial_prefix
ds4_cli.c:305
↓ 2 callersFunctionbytes_is_partial_prefix
ds4_eval.c:2094
↓ 2 callersFunctionc_string_value_at
Parse one or more adjacent C string literals. ``ds4_eval.c`` uses ordinary escaped C strings for embedded questions. We reuse those definiti
gguf-tools/imatrix/dataset/build_ds4_imatrix_dataset.py:849
↓ 2 callersFunctionchat_think_tool_recovery
Live recovery for a tool call started inside an unclosed <think> block. * * The model sometimes opens a DSML stanza without closing its thinking fir
ds4_server.c:9450
↓ 2 callersFunctionchunk_text
(text: str, size: int, overlap: int)
gguf-tools/imatrix/dataset/build_ds4_imatrix_dataset.py:271
↓ 2 callersFunctioncli_distributed_coordinator
ds4_cli.c:90
↓ 2 callersFunctioncollect_tool_call_ids
ds4_server.c:8330
↓ 2 callersFunctioncompressor_decode_one_decode_scratch
ds4.c:8762
↓ 2 callersFunctioncompressor_finish_prefill_state_cpu
After prefill, clear unused compressor state rows so decode starts from the * same partial-window state the streaming path would have produced. */
ds4.c:8565
↓ 2 callersFunctioncompressor_pool_decode_state
Pool the current compression window with a softmax over per-dimension scores. * Ratio-4 layers keep two lanes: attention compression and indexer comp
ds4.c:8610
↓ 2 callersFunctioncontinue_after_invalid_dsml
ds4_server.c:9575
↓ 2 callersFunctioncpu_decode_quantize_q8_0
Decode scratch owns this temporary activation quantization so generation * can assert that the hot path performs no malloc. */
ds4.c:5300
↓ 2 callersFunctioncursor_skip
ds4.c:1496
↓ 2 callersFunctiondb_close
gguf-tools/deepseek4-quantize.c:558
↓ 2 callersFunctiondb_find_shard
gguf-tools/deepseek4-quantize.c:450
↓ 2 callersFunctiondb_tensor
gguf-tools/deepseek4-quantize.c:588
↓ 2 callersFunctiondist_activation_values_from_wire_bytes
ds4_distributed.c:804
↓ 2 callersFunctiondist_cli_parse_port
ds4_distributed.c:8092
↓ 2 callersFunctiondist_coordinator_build_route_plan
ds4_distributed.c:2201
↓ 2 callersFunctiondist_coordinator_can_pipeline_prefill
ds4_distributed.c:3421
↓ 2 callersFunctiondist_coordinator_prefill_chunk_cap
ds4_distributed.c:3441
↓ 2 callersFunctiondist_coordinator_prefill_prompt_pipelined
ds4_distributed.c:3513
↓ 2 callersFunctiondist_coordinator_send_remote_work_on_fd
ds4_distributed.c:2493
↓ 2 callersFunctiondist_decode_activation_payload
ds4_distributed.c:966
↓ 2 callersFunctiondist_kv_layer_tensor_bytes
ds4_distributed.c:4611
↓ 2 callersFunctiondist_kv_raw_live_valid
ds4_distributed.c:4671
↓ 2 callersFunctiondist_kv_route_shard
ds4_distributed.c:4860
↓ 2 callersFunctiondist_kv_route_shard_count
ds4_distributed.c:4856
↓ 2 callersFunctiondist_kv_route_validate
ds4_distributed.c:4878
← previousnext →901–1,000 of 2,709, ranked by callers