Go implementation of DeepSeek Harness and self-hosted personal agent.
Go
package main
import (
"context"
"flag"
"fmt"
"os"
"os/signal"
"syscall"
"go-bot/internal/config"
"go-bot/internal/host"
)
func main() {
flag.Parse()
c, err := config.LoadHost()
if err != nil {
fmt.Fprintln(os.Stderr, err)
os.Exit(2)
}
ctx, stop := signal.NotifyContext(context.Background(), os.Interrupt, syscall.SIGTERM)
defer stop()
if err = host.Run(ctx, c); err != nil {
fmt.Fprintln(os.Stderr, err)
os.Exit(1)
}
}