Files
agents_and_robots/Makefile
T
egutierrez bd8e1432e5 feat: add assistant bot with LLM integration and configuration
- Implemented the assistant bot with basic command handling and LLM routing.
- Created configuration file for the assistant bot with personality, behavior, and LLM settings.
- Added system prompt for the assistant bot to define its capabilities and limitations.
- Developed registration script for creating Matrix bot users via Synapse admin API.
- Introduced common development scripts for agent management (start, stop, list, logs).
- Scaffolded new agent creation script to streamline the addition of new agents.
- Implemented agent removal script to disable agents without deleting data.
2026-03-03 23:57:13 +00:00

54 lines
1.6 KiB
Makefile

BIN := bin
LDFLAGS := -ldflags="-s -w"
.PHONY: build build-launcher build-agentctl build-register \
list start stop remove register \
clean tidy
# ── Build ──────────────────────────────────────────────────────────────────
build: build-launcher build-agentctl build-register
build-launcher:
@mkdir -p $(BIN)
go build $(LDFLAGS) -o $(BIN)/launcher ./cmd/launcher
build-agentctl:
@mkdir -p $(BIN)
go build $(LDFLAGS) -o $(BIN)/agentctl ./cmd/agentctl
build-register:
@mkdir -p $(BIN)
go build $(LDFLAGS) -o $(BIN)/register ./cmd/register
# ── Agent management (shortcuts via agentctl) ──────────────────────────────
list:
@go run ./cmd/agentctl list
start:
@go run ./cmd/agentctl start $(AGENT)
stop:
@go run ./cmd/agentctl stop $(AGENT)
remove:
@go run ./cmd/agentctl remove $(AGENT)
# Usage: make register USERNAME=assistant-bot DISPLAYNAME="Assistant" ENV_VAR=MATRIX_TOKEN_ASSISTANT
register:
MATRIX_ADMIN_TOKEN=$$MATRIX_ADMIN_TOKEN \
go run ./cmd/register \
--homeserver $$MATRIX_HOMESERVER \
--username $(USERNAME) \
--displayname "$(DISPLAYNAME)" \
--env-var $(ENV_VAR)
# ── Dev ────────────────────────────────────────────────────────────────────
tidy:
go mod tidy
clean:
rm -rf $(BIN) run/