refactor: remove builtin agent runtime and pinix chat TUI - #158
Merged
Conversation
Remove the Go Agent Runtime (internal/agent/), TUI (internal/tui/), builtin agent clip (internal/builtin/agent.go), and pinix chat command. Agent functionality is now exclusively provided by the cloud service at pinixai.com via the /ai/* API endpoints. Deleted: - internal/agent/ (9 files) — LLM client, tool loop, context manager, store - internal/builtin/agent.go — agent clip bridge - internal/tui/ (3 files) — bubbletea v2 TUI - cmd/pinix/chat.go — pinix chat command Modified: - internal/daemon/daemon.go — removed initAgentRuntime(), listAgentClips(), daemonClipInvoker and all agent imports - cmd/pinix/main.go — removed newChatCommand() registration - AGENTS.md, docs/ — updated to reflect removal - go.mod/go.sum — removed unused dependencies (bubbletea, LLM SDKs, etc.)
yan5xu
added a commit
that referenced
this pull request
Jun 2, 2026
Remove the Go Agent Runtime (internal/agent/), TUI (internal/tui/), builtin agent clip (internal/builtin/agent.go), and pinix chat command. Agent functionality is now exclusively provided by the cloud service at pinixai.com via the /ai/* API endpoints. Deleted: - internal/agent/ (9 files) — LLM client, tool loop, context manager, store - internal/builtin/agent.go — agent clip bridge - internal/tui/ (3 files) — bubbletea v2 TUI - cmd/pinix/chat.go — pinix chat command Modified: - internal/daemon/daemon.go — removed initAgentRuntime(), listAgentClips(), daemonClipInvoker and all agent imports - cmd/pinix/main.go — removed newChatCommand() registration - AGENTS.md, docs/ — updated to reflect removal - go.mod/go.sum — removed unused dependencies (bubbletea, LLM SDKs, etc.)
yan5xu
added a commit
that referenced
this pull request
Jun 2, 2026
Remove the Go Agent Runtime (internal/agent/), TUI (internal/tui/), builtin agent clip (internal/builtin/agent.go), and pinix chat command. Agent functionality is now exclusively provided by the cloud service at pinixai.com via the /ai/* API endpoints. Deleted: - internal/agent/ (9 files) — LLM client, tool loop, context manager, store - internal/builtin/agent.go — agent clip bridge - internal/tui/ (3 files) — bubbletea v2 TUI - cmd/pinix/chat.go — pinix chat command Modified: - internal/daemon/daemon.go — removed initAgentRuntime(), listAgentClips(), daemonClipInvoker and all agent imports - cmd/pinix/main.go — removed newChatCommand() registration - AGENTS.md, docs/ — updated to reflect removal - go.mod/go.sum — removed unused dependencies (bubbletea, LLM SDKs, etc.)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Remove the Go Agent Runtime, TUI, and
pinix chatcommand from pinixd.Agent functionality is now exclusively provided by the cloud service at pinixai.com via the
/ai/*API endpoints incmd/api.What's removed
Code (~4700 lines deleted)
internal/agent/(9 files) — LLM client, tool loop, context manager, SQLite storeinternal/builtin/agent.go— agent builtin clip bridgeinternal/tui/(3 files) — bubbletea v2 TUI forpinix chatcmd/pinix/chat.go—pinix chatcobra commandModifications
internal/daemon/daemon.go— removedinitAgentRuntime(),listAgentClips(),daemonClipInvoker, and agent importscmd/pinix/main.go— removednewChatCommand()registrationgo.mod/go.sum— removed unused dependencies (bubbletea, LLM SDKs, SQLite driver, etc.)Documentation
AGENTS.md— removed agent/tui/chat references from source-of-truth, directory structure, and dev commandsdocs/concepts.md— updated agent-clip references to generic cloud agentdocs/protocol.md— replaced agent examples with todo clip examplesdocs/vision.md— updated to reference cloud agent at pinixai.comWhat's NOT removed
internal/builtin/builtin.go— framework code (unchanged)internal/builtin/scheduler.go— scheduler builtin clip (unchanged, no agent dependency)internal/daemon/scheduler.go— scheduler (independent, no agent dependency)Verification
go build ./cmd/pinixd— OKgo build ./cmd/pinix— OKgo vet ./...— OKgo mod tidy— cleaned