Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/c4pt0r/pie
/ functions
Functions
2,618 in github.com/c4pt0r/pie
⨍
Functions
2,618
◇
Types & classes
570
↓ 6 callers
Function
fakeRelayNamespace
(log)
workers/fefe-hub/tests/relay.test.mjs:90
↓ 6 callers
Function
feed_text
(app: &App)
crates/coding-agent/src/ui/mod.rs:2398
↓ 6 callers
Method
handle_event
(&self, event: &AgentEvent, cancel: CancellationToken)
crates/coding-agent/src/hooks.rs:315
↓ 6 callers
Function
html_to_text
Minimal HTML → text. Strips tags, decodes a small set of entities, collapses whitespace. Not a readability pass (no main-content detection); good enou
crates/coding-agent/src/tools/web_fetch.rs:149
↓ 6 callers
Function
imul
(a: u32, b: u32)
crates/ai/src/utils/hash.rs:7
↓ 6 callers
Method
initialize
Run the initialize handshake. Sends `initialize` then notifies `notifications/initialized`.
crates/mcp/src/client.rs:189
↓ 6 callers
Function
json
(body: unknown, status = 200)
workers/fefe-hub/src/index.ts:136
↓ 6 callers
Function
load_all
Load skills from both roots, with project-local overriding user-global on name collision. Missing directories are silently skipped — most users won't
crates/coding-agent/src/skills.rs:33
↓ 6 callers
Method
load_entries
(&self)
crates/agent/src/harness/session/jsonl_storage.rs:97
↓ 6 callers
Function
log
(msg: str)
examples/mcp-notify-python/notify-server.py:34
↓ 6 callers
Function
make_exported_session
( temp: &Path, rules: Vec<DynamicTriggerRule>, jobs: Vec<CronJob>, )
crates/coding-agent/src/session_archive.rs:896
↓ 6 callers
Function
make_skill_md
(name: &str, description: &str, body: &str)
crates/coding-agent/src/tools/install_skill.rs:885
↓ 6 callers
Function
map_harness_event_for_test
(event: &HarnessEvent)
crates/coding-agent/src/ui/listener.rs:288
↓ 6 callers
Function
merge_with_user_project
Merge the resolved built-in skills with the user/project skills the existing dual-root loader returned. Same-name precedence is **user/project wins ov
crates/coding-agent/src/builtin_skills.rs:196
↓ 6 callers
Function
mk_model
()
crates/ai/src/providers/openai_responses.rs:829
↓ 6 callers
Function
parseSessionPath
(pathname: string)
workers/fefe-hub/src/relay.ts:102
↓ 6 callers
Function
parse_builtin_skills_config
Parse the contents of `~/.pie/config.toml` and extract the `[builtin_skills] enabled = [...]` list. Missing section / missing key / parse failure all
crates/coding-agent/src/builtin_skills.rs:215
↓ 6 callers
Function
push_error
(sender: &mut AssistantMessageEventSender, model: &Model, msg: String)
crates/ai/src/providers/anthropic.rs:770
↓ 6 callers
Function
push_error
(sender: &mut AssistantMessageEventSender, model: &Model, msg: String)
crates/ai/src/providers/openai_responses.rs:815
↓ 6 callers
Method
refresh_completions
(&mut self)
crates/coding-agent/src/ui/mod.rs:1365
↓ 6 callers
Function
register_custom_model
(model: Model)
crates/ai/src/models.rs:41
↓ 6 callers
Function
registry
()
crates/ai/src/api_registry.rs:51
↓ 6 callers
Function
render_line
Render one logical line of Markdown. Stateless on input. The caller decides whether to track code-fence state across lines (use [`Renderer`] for that)
crates/coding-agent/src/markdown.rs:20
↓ 6 callers
Function
resolve_compat
(model: &Model)
crates/ai/src/providers/anthropic.rs:55
↓ 6 callers
Method
root
(&self)
crates/agent/src/harness/session/jsonl_repo.rs:24
↓ 6 callers
Function
rule
(event: HookEvent)
crates/coding-agent/src/hooks.rs:919
↓ 6 callers
Function
runner
(rules: Vec<HookRule>)
crates/coding-agent/src/hooks.rs:907
↓ 6 callers
Method
set
(&mut self, provider: impl Into<String>, cred: ProviderCredential)
crates/coding-agent/src/auth.rs:117
↓ 6 callers
Method
snapshot
(&self)
crates/agent/src/harness/cost.rs:49
↓ 6 callers
Method
status
(&self)
crates/coding-agent/src/triggers/cron.rs:675
↓ 6 callers
Method
subscribe
public API for embedders; not used by the binary itself.
crates/coding-agent/src/agent_session.rs:80
↓ 6 callers
Method
tools_call
Invoke a server-side tool. If `cancel` is `Some`, the call races the cancel signal — when it fires before the server responds, the in-flight entry is
crates/mcp/src/client.rs:232
↓ 6 callers
Function
user_ctx
(text: &str)
crates/ai/tests/anthropic_sse_e2e.rs:57
↓ 6 callers
Function
user_message
(text: &str)
crates/agent/tests/harness_e2e.rs:68
↓ 6 callers
Function
validateSetModel
(model: unknown)
workers/fefe-hub/src/relay.ts:94
↓ 6 callers
Function
write_jobs_file
(path: &Path, jobs: &[CronJob])
crates/coding-agent/src/triggers/cron.rs:298
↓ 5 callers
Method
abort
(&self)
crates/coding-agent/src/ui/kernel.rs:84
↓ 5 callers
Method
add_from_spec
(&self, spec: &str)
crates/coding-agent/src/triggers/dynamic.rs:133
↓ 5 callers
Function
append_bytes
( tar: &mut tar::Builder<W>, path: &str, bytes: &[u8], )
crates/coding-agent/src/session_archive.rs:520
↓ 5 callers
Function
append_state
(harness: &Arc<AgentHarness>, state: &GoalState)
crates/coding-agent/src/goal.rs:123
↓ 5 callers
Function
auto_detect_model
Returns the resolved model + provider id of the chosen entry. If the catalog doesn't contain the default model id, returns an error so the caller can
crates/coding-agent/src/model.rs:23
↓ 5 callers
Function
automation_counts
Count automation in the sidecars next to `session_path`. Missing or unparsable sidecar files degrade to zero counts — this feeds listings and hints, n
crates/coding-agent/src/session/mod.rs:295
↓ 5 callers
Function
backoff_delay
(attempt: u32, server_delay_ms: u64, cap_ms: u64)
crates/ai/src/utils/retry.rs:160
↓ 5 callers
Method
begin_async_status_line
(&self, out: &mut dyn std::io::Write)
crates/coding-agent/src/tui.rs:354
↓ 5 callers
Function
build_harness_with_skills
(skills: Vec<Skill>)
crates/coding-agent/src/tools/skill.rs:160
↓ 5 callers
Function
build_request_body
( model: &Model, context: &Context, options: &StreamOptions, compat: &Compat, )
crates/ai/src/providers/anthropic.rs:579
↓ 5 callers
Function
build_test_harness
( seed: Vec<Skill>, )
crates/coding-agent/src/tools/skill_builder.rs:420
↓ 5 callers
Function
clear_api_providers
()
crates/ai/src/api_registry.rs:91
↓ 5 callers
Method
cost
Snapshot of running token + cost totals.
crates/agent/src/harness/agent_harness.rs:1046
↓ 5 callers
Function
default_inbox_path
()
crates/coding-agent/src/inbox.rs:42
↓ 5 callers
Function
display_prefix
(timestamp: Option<&str>, label: &str)
crates/coding-agent/src/ui/feed.rs:581
↓ 5 callers
Method
due_jobs
(&self, since: DateTime<Utc>, now: DateTime<Utc>)
crates/coding-agent/src/triggers/cron.rs:200
↓ 5 callers
Function
env_var_names
(provider: &str)
crates/ai/src/env_api_keys.rs:45
↓ 5 callers
Method
error_line
(&self, text: &str)
crates/coding-agent/src/tui.rs:93
↓ 5 callers
Function
execute
(tool: &SkillTool, name: &str)
crates/coding-agent/src/tools/skill.rs:179
↓ 5 callers
Function
expand
Returns `(rewritten_prompt, resolved_paths)`. If `input` has no `@<path>` tokens, the rewritten prompt is the original and `resolved_paths` is empty.
crates/coding-agent/src/mentions.rs:26
↓ 5 callers
Function
format_skills_for_system_prompt
Render the skill catalog into a `<skills>` block for inclusion in the system prompt. Returns the empty string when `skills` is empty so the surroundin
crates/agent/src/harness/system_prompt.rs:18
↓ 5 callers
Method
handle_mouse_scroll
(&mut self, column: u16, row: u16, up: bool)
crates/coding-agent/src/ui/mod.rs:1442
↓ 5 callers
Function
helloFrame
(key = "agent-key-1")
workers/fefe-hub/tests/relay.test.mjs:15
↓ 5 callers
Function
help_text
(registry: &Registry, topic: Option<&str>)
crates/coding-agent/src/commands.rs:1137
↓ 5 callers
Function
hmac
(key: &[u8], message: &[u8])
crates/ai/src/sigv4.rs:184
↓ 5 callers
Function
list
All entries, oldest first. Unparseable lines are skipped.
crates/coding-agent/src/inbox.rs:88
↓ 5 callers
Method
list
(&self)
crates/coding-agent/src/triggers/dynamic.rs:152
↓ 5 callers
Function
list_new
Entries with status `new`, oldest first.
crates/coding-agent/src/inbox.rs:101
↓ 5 callers
Function
map_agent_event
(event: &AgentEvent)
crates/coding-agent/src/ui/listener.rs:32
↓ 5 callers
Function
map_harness_event
( event: &HarnessEvent, quiet: &Mutex<HashSet<String>>, debug: bool, )
crates/coding-agent/src/ui/listener.rs:104
↓ 5 callers
Function
message_timestamp_label
(timestamp_ms: i64)
crates/coding-agent/src/ui/feed.rs:593
↓ 5 callers
Function
mk_model
()
crates/ai/src/providers/anthropic.rs:784
↓ 5 callers
Function
new_trigger_tool
Build the dynamic trigger creation tool. This is model-facing counterpart to the `/new-trigger` slash command: when the user asks in ordinary conversa
crates/coding-agent/src/tools/mod.rs:151
↓ 5 callers
Function
open_repo
(cwd: &std::path::Path)
crates/coding-agent/src/session/mod.rs:20
↓ 5 callers
Function
parse_field
(field: &str, min: u32, max: u32)
crates/coding-agent/src/triggers/cron.rs:1037
↓ 5 callers
Function
parse_trigger_rule
(spec: &str)
crates/coding-agent/src/triggers/dynamic.rs:452
↓ 5 callers
Function
pause_decision
(reason: String, state: &GoalState)
crates/coding-agent/src/goal.rs:347
↓ 5 callers
Function
persist_pause
(harness: &Arc<AgentHarness>, state: &mut GoalState, reason: String)
crates/coding-agent/src/goal.rs:334
↓ 5 callers
Function
push_error
(sender: &mut AssistantMessageEventSender, model: &Model, msg: String)
crates/ai/src/providers/openai_completions.rs:661
↓ 5 callers
Function
push_error
(sender: &mut AssistantMessageEventSender, model: &Model, msg: String)
crates/ai/src/providers/amazon_bedrock.rs:483
↓ 5 callers
Function
push_error
(sender: &mut AssistantMessageEventSender, model: &Model, msg: String)
crates/ai/src/providers/mistral.rs:486
↓ 5 callers
Function
push_paragraphs
Split `text` on newlines, word-wrap each paragraph to `width`, and push styled lines. An optional `prefix` is prepended to the very first paragraph (e
crates/coding-agent/src/ui/feed.rs:608
↓ 5 callers
Method
record
Apply a single assistant usage record. The provider has already computed costs against the catalog's pricing table — we just sum.
crates/agent/src/harness/cost.rs:60
↓ 5 callers
Method
refresh_goal_state
(&mut self)
crates/coding-agent/src/ui/mod.rs:1154
↓ 5 callers
Function
sample_trigger
()
crates/agent/src/harness/trigger.rs:299
↓ 5 callers
Function
set_and_save
Convenience: load → set → save in one call, returning the updated overlay. Used by the `SetSkillState` tool and the `/skills enable|disable` slash com
crates/coding-agent/src/skills_state.rs:135
↓ 5 callers
Method
set_input
(&mut self, text: &str)
crates/coding-agent/src/ui/mod.rs:1358
↓ 5 callers
Method
shutdown
(&self)
crates/coding-agent/src/lsp.rs:214
↓ 5 callers
Function
sign
(req: &SigningRequest<'_>)
crates/ai/src/sigv4.rs:41
↓ 5 callers
Method
start_user_prompt_turn
( &mut self, prompt_text: String, loaded_images: Vec<ImageContent>, turn: &mut
crates/coding-agent/src/ui/mod.rs:1253
↓ 5 callers
Function
test_tool
(cell: SkillHarnessCell, dir: &tempfile::TempDir)
crates/coding-agent/src/tools/skill_builder.rs:453
↓ 5 callers
Function
truncate_line
(line: &str, width: usize)
crates/coding-agent/src/resume_picker.rs:126
↓ 5 callers
Function
truncate_on_char_boundary
Truncate `body` to fit within `cap_bytes` *including* the truncation marker. The body portion is cut on a UTF-8 char boundary so `truncate` never pani
crates/agent/src/harness/agent_harness.rs:2999
↓ 5 callers
Function
validated_payload_agent_id
(trigger: &Trigger, path: &[&str])
crates/agent/src/harness/agent_harness.rs:2301
↓ 5 callers
Function
wrap_str
Display-width-aware word wrap. Breaks at the last space that fits; hard-breaks a single word longer than `width`. Preserves leading whitespace (so ind
crates/coding-agent/src/ui/feed.rs:636
↓ 5 callers
Method
write
(&self, bytes: &[u8])
crates/coding-agent/src/spinner.rs:44
↓ 5 callers
Function
write_rules_file
( path: &Path, rules: &[DynamicTriggerRule], )
crates/coding-agent/src/triggers/dynamic.rs:428
↓ 4 callers
Method
add_job_full
( &self, schedule: &str, action: &str, stateful: bool, )
crates/coding-agent/src/triggers/cron.rs:117
↓ 4 callers
Method
add_rule_with_flags
( &self, condition: &str, action: &str, fire_once: bool, promote_to_ch
crates/coding-agent/src/triggers/dynamic.rs:108
↓ 4 callers
Method
append_thinking_level_change
( &self, thinking_level: impl Into<String>, )
crates/agent/src/harness/session/session.rs:452
↓ 4 callers
Function
apply_auth_to_simple_options
( model: &pie_ai::Model, options: Option<&pie_ai::SimpleStreamOptions>, resolve_api_key: F, )
crates/coding-agent/src/main.rs:1236
↓ 4 callers
Function
assert_full_timestamp_prefix
(row: &str, rendered: &str)
crates/coding-agent/src/ui/feed.rs:801
↓ 4 callers
Function
atomic_write_skill
(target: &Path, content: &str)
crates/coding-agent/src/tools/install_skill.rs:702
↓ 4 callers
Method
attach_clipboard_image
(&mut self, image: crate::clipboard_image::ClipboardImage)
crates/coding-agent/src/ui/mod.rs:1042
← previous
next →
201–300 of 2,618, ranked by callers