Skip to content

refactor: remove builtin agent runtime and pinix chat TUI - #158

Merged
yan5xu merged 1 commit into
mainfrom
refactor/remove-agent-runtime
Jun 1, 2026
Merged

refactor: remove builtin agent runtime and pinix chat TUI#158
yan5xu merged 1 commit into
mainfrom
refactor/remove-agent-runtime

Conversation

@yan5xu

@yan5xu yan5xu commented Jun 1, 2026

Copy link
Copy Markdown
Contributor

Summary

Remove the Go Agent Runtime, TUI, and pinix chat command from pinixd.

Agent functionality is now exclusively provided by the cloud service at pinixai.com via the /ai/* API endpoints in cmd/api.

What's removed

Code (~4700 lines deleted)

  • internal/agent/ (9 files) — LLM client, tool loop, context manager, SQLite store
  • internal/builtin/agent.go — agent builtin clip bridge
  • internal/tui/ (3 files) — bubbletea v2 TUI for pinix chat
  • cmd/pinix/chat.gopinix chat cobra command

Modifications

  • internal/daemon/daemon.go — removed initAgentRuntime(), listAgentClips(), daemonClipInvoker, and agent imports
  • cmd/pinix/main.go — removed newChatCommand() registration
  • go.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 commands
  • docs/concepts.md — updated agent-clip references to generic cloud agent
  • docs/protocol.md — replaced agent examples with todo clip examples
  • docs/vision.md — updated to reference cloud agent at pinixai.com

What'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 — OK
  • go build ./cmd/pinix — OK
  • go vet ./... — OK
  • go mod tidy — cleaned

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
yan5xu merged commit 2ba9942 into main Jun 1, 2026
1 check passed
@yan5xu
yan5xu deleted the refactor/remove-agent-runtime branch June 1, 2026 05:57
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.)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant