Real-time Streaming¶
CodeTether provides real-time streaming of agent output via Server-Sent Events (SSE).
Connecting¶
const events = new EventSource('/v1/agent/codebases/{id}/events');
events.onmessage = (e) => {
console.log(JSON.parse(e.data));
};
Event Types¶
output- Agent text outputtool_use- Tool invocationfile_change- File modificationscomplete- Task completederror- Error occurred
See SSE Events for details.