Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -93,4 +93,7 @@ instance/
# Cython debug symbols
cython_debug/

# roborev
.roborev.toml


1 change: 1 addition & 0 deletions .rhiza/.env
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,4 @@ DOCFORMAT=google

# Agentic-specific variables
DEFAULT_AI_MODEL=gpt-4.1
ROBOREV_AGENT=copilot
45 changes: 44 additions & 1 deletion .rhiza/agentic/Makefile.agentic
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,56 @@
# This file is included by the main Makefile

# Declare phony targets
.PHONY: install-copilot analyse-repo summarize-changes
.PHONY: install-copilot analyse-repo summarize-changes roborev roborev-init roborev-serve roborev-tui roborev-status roborev-stop roborev-review roborev-show

##@ Agentic Workflows

copilot: install-copilot ## open interactive prompt for copilot
@${INSTALL_DIR}/copilot --model "${DEFAULT_AI_MODEL}"

roborev-init: install-roborev ## initialize roborev in the current repository with default agent
@${INSTALL_DIR}/roborev init
@if [ ! -f .roborev.toml ] || ! grep -q "agent =" .roborev.toml; then \
echo 'agent = "$(ROBOREV_AGENT)"' >> .roborev.toml; \
printf "${GREEN}[INFO] Set default roborev agent to $(ROBOREV_AGENT) in .roborev.toml${RESET}\n"; \
fi

review-latest: install-copilot install-roborev roborev-init roborev-serve ## review the current HEAD commit
@PATH="$$(pwd)/${INSTALL_DIR}:${PATH}" ${INSTALL_DIR}/roborev enqueue HEAD --agent $(ROBOREV_AGENT)

review-status: install-roborev ## show code reviews
@PATH="$$(pwd)/${INSTALL_DIR}:${PATH}" ${INSTALL_DIR}/roborev status

roborev-serve: install-roborev install-copilot ## start the roborev daemon
@PATH="$$(pwd)/${INSTALL_DIR}:${PATH}" ${INSTALL_DIR}/roborev daemon start

review-dashboard: install-roborev install-copilot ## open the roborev interactive terminal UI
@PATH="$$(pwd)/${INSTALL_DIR}:${PATH}" ${INSTALL_DIR}/roborev tui

roborev-stop: install-roborev install-copilot ## stop the roborev daemon
@PATH="$$(pwd)/${INSTALL_DIR}:${PATH}" ${INSTALL_DIR}/roborev daemon stop

install-roborev: ## checks for roborev and prompts to install
@if [ -x "${INSTALL_DIR}/roborev" ]; then \
printf "${GREEN}[INFO] roborev is already installed in ${INSTALL_DIR}.${RESET}\n"; \
else \
printf "${YELLOW}[WARN] roborev not found in ${INSTALL_DIR}.${RESET}\n"; \
printf "${BLUE}Do you want to install roborev? [y/N] ${RESET}"; \
read -r response; \
if [ "$$response" = "y" ] || [ "$$response" = "Y" ]; then \
printf "${BLUE}[INFO] Installing roborev to ${INSTALL_DIR}...${RESET}\n"; \
mkdir -p "${INSTALL_DIR}"; \
if curl -fsSL https://raw.githubusercontent.com/wesm/roborev/main/scripts/install.sh | sed 's|local install_dir=$$(find_install_dir)|local install_dir="${INSTALL_DIR}"|' | bash; then \
printf "${GREEN}[INFO] roborev installed successfully.${RESET}\n"; \
else \
printf "${RED}[ERROR] Failed to install roborev.${RESET}\n"; \
exit 1; \
fi; \
else \
printf "${BLUE}[INFO] Skipping installation.${RESET}\n"; \
fi; \
fi

analyse-repo: install-copilot ## run the analyser agent to update REPOSITORY_ANALYSIS.md
@${INSTALL_DIR}/copilot --agent analyser \
--model "${DEFAULT_AI_MODEL}" \
Expand Down
4 changes: 3 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ RED := \033[31m
YELLOW := \033[33m
RESET := \033[0m


define RHIZA_LOGO
____ _ _
| _ \| |__ (_)______ _
Expand Down Expand Up @@ -159,7 +160,8 @@ clean: ## Clean project artifacts and stale local branches
build \
*.egg-info \
.coverage \
.pytest_cache
.pytest_cache \
.roborev.toml

@printf "%bRemoving local branches with no remote counterpart...%b\n" "$(BLUE)" "$(RESET)"

Expand Down
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,13 @@ Customisations

Agentic Workflows
copilot open interactive prompt for copilot
roborev-init initialize roborev in the current repository with default agent
review-latest review the current HEAD commit
review-status show code reviews
roborev-serve start the roborev daemon
review-dashboard open the roborev interactive terminal UI
roborev-stop stop the roborev daemon
install-roborev checks for roborev and prompts to install
analyse-repo run the analyser agent to update REPOSITORY_ANALYSIS.md
summarize-changes summarize changes since the most recent release/tag
install-copilot checks for copilot and prompts to install
Expand Down