MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / sherpa_graph

Function sherpa_graph

atomic-agent/src/export.rs:507–605  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

505 }
506
507 fn sherpa_graph() -> ProvenanceGraph {
508 let goal_detail = serde_json::json!({
509 "intent_title": "Build Hello World CLI",
510 "intent_description": "A simple CLI that prints Hello World",
511 "intent_turn_id": 3,
512 "session_id": "tiny-star-8412",
513 "phases": {
514 "orienting": { "input": 1000, "output": 200, "cost_usd": 0.006 },
515 "executing": { "input": 5000, "output": 1000, "cost_usd": 0.05 }
516 },
517 "turn_totals": { "input": 6000, "output": 1200, "total": 7200, "cost_usd": 0.056 },
518 "model": "anthropic/claude-sonnet-4-6",
519 "context_pct": 3.6
520 });
521
522 let commitment_detail = serde_json::json!({
523 "todo_id": "t2",
524 "todo_content": "Create src/index.ts",
525 "priority": "high",
526 "contributor": "ai",
527 "file": "src/index.ts",
528 "start_line": 1,
529 "end_line": 12,
530 "atomic_change_hash": null,
531 "tokens": { "input": 1200, "output": 300, "cost_usd": 0.013 }
532 });
533
534 let execution_detail = serde_json::json!({
535 "todo_id": "t2",
536 "command": "npm install",
537 "exit_code": 0,
538 "duration_ms": 1234,
539 "output_summary": "added 42 packages"
540 });
541
542 let verification_detail = serde_json::json!({
543 "intent_turn_id": 3,
544 "intent_title": "Build Hello World CLI",
545 "outcome": "completed",
546 "summary": "CLI printed Hello World successfully",
547 "turn_cost_usd": 0.056,
548 "turn_tokens_total": 7200,
549 "learnings": { "repo": [], "workflow": [], "code": [] }
550 });
551
552 let nodes = vec![
553 make_node(
554 "g-tiny-3",
555 ProvenanceNodeKind::Goal,
556 "Build Hello World CLI",
557 Some(&goal_detail.to_string()),
558 ),
559 make_node(
560 "c-tiny-3-0",
561 ProvenanceNodeKind::Commitment,
562 "wrote src/index.ts",
563 Some(&commitment_detail.to_string()),
564 ),

Calls 7

profileMethod · 0.80
agent_vendorMethod · 0.80
buildMethod · 0.45
timestampMethod · 0.45
edgesMethod · 0.45
nodesMethod · 0.45
agent_display_nameMethod · 0.45