From 5684028709a1d5b533a53228a21d52116add71b1 Mon Sep 17 00:00:00 2001 From: konard Date: Fri, 30 Jan 2026 16:10:51 +0100 Subject: [PATCH 1/4] Initial commit with task details Adding CLAUDE.md with task information for AI processing. This file will be removed when the task is complete. Issue: https://github.com/link-assistant/agent/issues/144 --- CLAUDE.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 CLAUDE.md diff --git a/CLAUDE.md b/CLAUDE.md new file mode 100644 index 0000000..ec5ab20 --- /dev/null +++ b/CLAUDE.md @@ -0,0 +1,5 @@ +Issue to solve: https://github.com/link-assistant/agent/issues/144 +Your prepared branch: issue-144-d48eec4cec33 +Your prepared working directory: /tmp/gh-issue-solver-1769785849999 + +Proceed. From bb66f8799cd859729be91c8cd847369019ed6a5f Mon Sep 17 00:00:00 2001 From: konard Date: Fri, 30 Jan 2026 16:22:42 +0100 Subject: [PATCH 2/4] Fix process name to show as 'agent' instead of 'bun' in process monitoring tools - Set both process.title and process.argv0 to 'agent' at CLI startup - This addresses issue #144 where agent processes appeared as 'bun' in top/ps - The fix enables proper identification of running agent processes - Both properties are set for maximum compatibility across different tools Issue: https://github.com/link-assistant/agent/issues/144 --- js/src/index.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/js/src/index.js b/js/src/index.js index b97b152..bd2f5fc 100755 --- a/js/src/index.js +++ b/js/src/index.js @@ -1,5 +1,10 @@ #!/usr/bin/env bun +// Set process title to 'agent' so it appears correctly in process monitoring tools like top/ps +// Both process.title and process.argv0 need to be set for maximum compatibility +process.title = 'agent'; +process.argv0 = 'agent'; + import { Server } from './server/server.ts'; import { Instance } from './project/instance.ts'; import { Log } from './util/log.ts'; From 878a3b33034a857a9ddef378aa574a13f08102f1 Mon Sep 17 00:00:00 2001 From: konard Date: Fri, 30 Jan 2026 16:23:31 +0100 Subject: [PATCH 3/4] Revert "Initial commit with task details" This reverts commit 5684028709a1d5b533a53228a21d52116add71b1. --- CLAUDE.md | 5 ----- 1 file changed, 5 deletions(-) delete mode 100644 CLAUDE.md diff --git a/CLAUDE.md b/CLAUDE.md deleted file mode 100644 index ec5ab20..0000000 --- a/CLAUDE.md +++ /dev/null @@ -1,5 +0,0 @@ -Issue to solve: https://github.com/link-assistant/agent/issues/144 -Your prepared branch: issue-144-d48eec4cec33 -Your prepared working directory: /tmp/gh-issue-solver-1769785849999 - -Proceed. From 5a9f0de82ea292141ab637a96213a71439238212 Mon Sep 17 00:00:00 2001 From: konard Date: Fri, 30 Jan 2026 19:00:44 +0100 Subject: [PATCH 4/4] Add changeset for process name fix --- js/.changeset/fix-process-name.md | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 js/.changeset/fix-process-name.md diff --git a/js/.changeset/fix-process-name.md b/js/.changeset/fix-process-name.md new file mode 100644 index 0000000..9ab58ff --- /dev/null +++ b/js/.changeset/fix-process-name.md @@ -0,0 +1,8 @@ +--- +'@link-assistant/agent': patch +--- + +Fix process name to show as 'agent' instead of 'bun' in process monitoring tools + +This change sets both process.title and process.argv0 to 'agent' at CLI startup, +ensuring the process appears as 'agent' instead of 'bun' in monitoring tools like top and ps.