Skip to content

Commit 3a77db5

Browse files
committed
Explain: Flag agent output more clearly when logging.
1 parent 41f1d2c commit 3a77db5

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

explain/amp_agent.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ async def _handle_messages(self, stdout: asyncio.StreamReader) -> str:
4242
line = line_bytes.decode("utf-8").rstrip()
4343

4444
if self.log_level == "DEBUG":
45-
print("Line:", line)
45+
print("Amp:", line)
4646

4747
match line:
4848
case "<thinking>":

explain/claude_agent.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ async def _handle_messages(self, stdout: asyncio.StreamReader) -> str:
5353
async for line in stdout:
5454
msg = json.loads(line)
5555
if self.log_level == "DEBUG":
56-
print("Message:", msg)
56+
print("Claude:", msg)
5757

5858
if msg.get("type") == "result":
5959
# Fetch the session ID so that we can resume our conversation next time.

explain/codex_agent.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ async def _handle_messages(self, stdout: asyncio.StreamReader) -> str:
3333
async for line in stdout:
3434
line_data = json.loads(line)
3535
if self.log_level == "DEBUG":
36-
print("Message:", line_data)
36+
print("Codex:", line_data)
3737

3838
match line_data:
3939
case {"type": "turn.completed"}:

explain/copilot_cli_agent.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ async def _handle_messages(self, stdout: asyncio.StreamReader) -> str:
4444
line = line_bytes.decode("utf-8").rstrip()
4545

4646
if self.log_level == "DEBUG":
47-
print("Line:", line)
47+
print("Copilot:", line)
4848

4949
if "<thinking>" in line:
5050
assert not thinking and not answering

0 commit comments

Comments
 (0)