← Back to context

Comment by andai

6 hours ago

So what does the top level thread look like? "Make foo() do bar" (Subagent invoked) "Job finished!"

The top level and N+1 looks like:

  [User] Actual human prompt
  [Agent] Attempted use of tool & hand slap
  [Agent] call(projection of user's prompt relative to discovered tool constraints)
    ["User"] Prompt from above call
    [Agent] Legal tool use
    [Agent] ... until satisfied 
    [Agent] return(summary that satisfies the prompt for this level of execution)
  [Agent] Additional call() invokes possible depending on returned summary
  [Agent] Final return(summary) from root ends this turn of conversation and user sees summary
  [User] Next turn of conversation initiated by actual human