REFAC: Global rename of org-agent to opencortex

This commit is contained in:
2026-04-14 12:10:11 -04:00
parent b58b780a44
commit 849c078c37
95 changed files with 662 additions and 642 deletions

View File

@@ -1,10 +1,10 @@
#!/bin/bash
# org-agent: Bare Metal Installation Script
# This script sets up the org-agent daemon on a Linux host (Debian/Fedora).
# opencortex: Bare Metal Installation Script
# This script sets up the opencortex daemon on a Linux host (Debian/Fedora).
set -e
echo "--- org-agent: Bare Metal Installation ---"
echo "--- opencortex: Bare Metal Installation ---"
# 1. Check Dependencies
echo "[1/4] Checking dependencies..."
@@ -31,16 +31,16 @@ echo "[3/4] Building standalone binary..."
PROJECT_ROOT=$(pwd)/../..
sbcl --non-interactive \
--eval "(push \"$PROJECT_ROOT/\" asdf:*central-registry*)" \
--eval "(ql:quickload :org-agent)" \
--eval "(asdf:make :org-agent)"
--eval "(ql:quickload :opencortex)" \
--eval "(asdf:make :opencortex)"
echo "Binary built: $PROJECT_ROOT/org-agent-server"
echo "Binary built: $PROJECT_ROOT/opencortex-server"
# 4. Instructions for Systemd
echo "[4/4] Installation complete."
echo ""
echo "To run as a systemd service:"
echo "1. Edit org-agent.service to set correct paths."
echo "2. sudo cp org-agent.service /etc/systemd/system/"
echo "1. Edit opencortex.service to set correct paths."
echo "2. sudo cp opencortex.service /etc/systemd/system/"
echo "3. sudo systemctl daemon-reload"
echo "4. sudo systemctl enable --now org-agent"
echo "4. sudo systemctl enable --now opencortex"

View File

@@ -1,18 +1,18 @@
[Unit]
Description=org-agent: Probabilistic-Deterministic Lisp Machine Kernel
Description=opencortex: Probabilistic-Deterministic Lisp Machine Kernel
After=network.target
[Service]
Type=simple
# Update User and WorkingDirectory to match your local setup
User=amr
WorkingDirectory=/home/amr/.openclaw/workspace/memex/5_projects/org-agent
ExecStart=/home/amr/.openclaw/workspace/memex/5_projects/org-agent/org-agent-server
WorkingDirectory=/home/amr/.openclaw/workspace/memex/5_projects/opencortex
ExecStart=/home/amr/.openclaw/workspace/memex/5_projects/opencortex/opencortex-server
Restart=always
RestartSec=10
# Environment variables can be loaded from the .env file
EnvironmentFile=/home/amr/.openclaw/workspace/memex/5_projects/org-agent/.env
EnvironmentFile=/home/amr/.openclaw/workspace/memex/5_projects/opencortex/.env
[Install]
WantedBy=multi-user.target

View File

@@ -18,21 +18,21 @@ RUN curl -O https://beta.quicklisp.org/quicklisp.lisp && \
WORKDIR /app
# Copy source code and system definition
COPY org-agent.asd /app/
COPY opencortex.asd /app/
COPY src/ /app/src/
# Ensure we aren't using a stale binary from the host
RUN rm -f /app/org-agent-server
RUN rm -f /app/opencortex-server
# Build the standalone binary natively inside the container
# This ensures GLIBC compatibility with the runtime environment.
RUN sbcl --non-interactive \
--eval '(push "/app/" asdf:*central-registry*)' \
--eval '(ql:quickload :org-agent)' \
--eval '(asdf:make :org-agent)'
--eval '(ql:quickload :opencortex)' \
--eval '(asdf:make :opencortex)'
# Ensure the binary is executable
RUN chmod +x /app/org-agent-server
RUN chmod +x /app/opencortex-server
# Expose the communication protocol and Web Dashboard ports
EXPOSE 9105 8080
@@ -41,4 +41,4 @@ EXPOSE 9105 8080
VOLUME /memex
# Run the natively compiled standalone daemon
CMD ["./org-agent-server"]
CMD ["./opencortex-server"]

View File

@@ -1,11 +1,11 @@
version: '3.8'
services:
org-agent:
opencortex:
build:
context: ../..
dockerfile: deploy/docker/Dockerfile
container_name: org-agent
container_name: opencortex
restart: unless-stopped
ports:
- "${ORG_AGENT_DAEMON_PORT:-9105}:${ORG_AGENT_DAEMON_PORT:-9105}"

View File

@@ -1,4 +1,4 @@
;; org-agent: Guix Environment Manifest
;; opencortex: Guix Environment Manifest
;; Usage: guix shell -m manifest.scm -- sbcl --eval ...
(specifications->manifest

View File

@@ -1,19 +1,19 @@
#+TITLE: LXC / Systemd-nspawn Deployment Guide
#+AUTHOR: org-agent
#+AUTHOR: opencortex
* Overview
For users who prefer containerization without the overhead or dependency on the Docker daemon, `org-agent` can be run within a standard Linux Container (LXC) or a systemd-nspawn container.
For users who prefer containerization without the overhead or dependency on the Docker daemon, `opencortex` can be run within a standard Linux Container (LXC) or a systemd-nspawn container.
* Systemd-nspawn Setup (Fastest for Linux users)
1. **Create the container root:**
#+begin_src bash
sudo debootstrap --arch=amd64 bookworm /var/lib/machines/org-agent
sudo debootstrap --arch=amd64 bookworm /var/lib/machines/opencortex
#+end_src
2. **Start and enter the container:**
#+begin_src bash
sudo systemd-nspawn -D /var/lib/machines/org-agent
sudo systemd-nspawn -D /var/lib/machines/opencortex
#+end_src
3. **Install dependencies (inside container):**
@@ -24,7 +24,7 @@ For users who prefer containerization without the overhead or dependency on the
4. **Bind mount the Memex directory:**
Add this to your container startup or use the `--bind` flag:
#+begin_src bash
sudo systemd-nspawn -D /var/lib/machines/org-agent --bind /home/amr/.openclaw/workspace/memex
sudo systemd-nspawn -D /var/lib/machines/opencortex --bind /home/amr/.openclaw/workspace/memex
#+end_src
* Proxmox LXC Setup

View File

@@ -11,12 +11,12 @@ Vagrant.configure("2") do |config|
apt-get update
apt-get install -y sbcl curl git ripgrep libsqlite3-dev build-essential
# Setup for org-agent
mkdir -p /home/vagrant/org-agent
cp -r /vagrant/* /home/vagrant/org-agent/
chown -R vagrant:vagrant /home/vagrant/org-agent
# Setup for opencortex
mkdir -p /home/vagrant/opencortex
cp -r /vagrant/* /home/vagrant/opencortex/
chown -R vagrant:vagrant /home/vagrant/opencortex
# Build binary natively
sudo -u vagrant bash -c "cd /home/vagrant/org-agent && ./deploy/bare-metal/install.sh"
sudo -u vagrant bash -c "cd /home/vagrant/opencortex && ./deploy/bare-metal/install.sh"
SHELL
end

View File

@@ -10,12 +10,12 @@ Vagrant.configure("2") do |config|
config.vm.provision "shell", inline: <<-SHELL
dnf install -y sbcl curl git ripgrep sqlite-devel make gcc
# Setup for org-agent
mkdir -p /home/vagrant/org-agent
cp -r /vagrant/* /home/vagrant/org-agent/
chown -R vagrant:vagrant /home/vagrant/org-agent
# Setup for opencortex
mkdir -p /home/vagrant/opencortex
cp -r /vagrant/* /home/vagrant/opencortex/
chown -R vagrant:vagrant /home/vagrant/opencortex
# Build binary natively
sudo -u vagrant bash -c "cd /home/vagrant/org-agent && ./deploy/bare-metal/install.sh"
sudo -u vagrant bash -c "cd /home/vagrant/opencortex && ./deploy/bare-metal/install.sh"
SHELL
end