ClaudeCode

works.iterative.claude.direct.ClaudeCode
See theClaudeCode companion class
object ClaudeCode

Attributes

Companion
class
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
ClaudeCode.type

Members list

Value members

Concrete methods

def ask(prompt: String)(using Logger): String

Simple convenience method to ask Claude a question with sane defaults. This method blocks until the response is received.

Simple convenience method to ask Claude a question with sane defaults. This method blocks until the response is received.

Attributes

def concurrent(using Logger, Ox): ClaudeCode

Creates a ClaudeCode instance for concurrent operations within a supervised scope. Use this when you need to perform multiple concurrent queries.

Creates a ClaudeCode instance for concurrent operations within a supervised scope. Use this when you need to perform multiple concurrent queries.

Attributes

def queryResult(options: QueryOptions)(using Logger): String

Executes a query and extracts the text content from AssistantMessage. This method blocks until the response is received.

Executes a query and extracts the text content from AssistantMessage. This method blocks until the response is received.

Attributes

def querySync(options: QueryOptions)(using Logger): List[Message]

Executes a query and returns all messages as a List. This method blocks until all messages are received.

Executes a query and returns all messages as a List. This method blocks until all messages are received.

Attributes

def session(options: SessionOptions)(using Logger, Ox): Session

Starts a long-lived CLI session and returns it for multi-turn conversations. The caller must provide an Ox scope for background forks (stderr capture). The session remains open until Session.close() is called.

Starts a long-lived CLI session and returns it for multi-turn conversations. The caller must provide an Ox scope for background forks (stderr capture). The session remains open until Session.close() is called.

Attributes