Skip to content
Open
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
2 changes: 1 addition & 1 deletion .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:
# version: 9 # Not needed if you've set "packageManager" in package.json
# - uses: oven-sh/setup-bun@v1 # Uncomment this if you're using Bun
- name: Setup Node
uses: actions/setup-node@v4
uses: actions/setup-node@v5
with:
node-version: 22
cache: npm # or pnpm / yarn
Expand Down
6 changes: 4 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ test/dummy/config/master.key
docs/.vitepress/dist
docs/.vitepress/cache
docs/parts/examples/*.md

lib/libtorch
gemfiles/*.lock
Gemfile.lock
Gemfile.lock
*.onnx
*.zip
7 changes: 6 additions & 1 deletion CLAUDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -1335,4 +1335,9 @@ When updating documentation:
2. Add regions for important snippets
3. Call doc_example_output for response examples
4. Import in docs using VitePress snippets
5. Verify with `npm run docs:build` - no hardcoded blocks should exist
5. Verify with `npm run docs:build` - no hardcoded blocks should exist
- use playwright mcp for The documentation is running at http://localhost:5173/ and shows the Active Agent homepage with its key features. The Slidev
presentation is at http://localhost:3035/ displaying the Rails World 2025 lightning talk about "AI on Rails with Active Agent". Screenshots have been saved:
- docs-homepage.png - Full page documentation site
- slidev-presentation-slide1.png - First slide of the presentation
- remember to reference https://docs.activeagents.ai
56 changes: 56 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
FROM ruby:3.3-slim

# Install system dependencies
RUN apt-get update -qq && apt-get install -y \
build-essential \
git \
curl \
wget \
unzip \
libssl-dev \
libreadline-dev \
zlib1g-dev \
libsqlite3-dev \
pkg-config \
# For ONNX Runtime
libgomp1 \
# For PyTorch/LibTorch (torch-rb)
libtorch-dev \
libopenblas-dev \
# For transformers and NLP
python3 \
python3-pip \
# Clean up
&& rm -rf /var/lib/apt/lists/*

# Install Python dependencies for model conversion tools (optional)
RUN pip3 install --no-cache-dir \
onnx \
onnxconverter-common \
transformers

# Set up working directory
WORKDIR /activeagent

# Copy gemfiles first for better caching
COPY Gemfile* activeagent.gemspec ./
COPY lib/active_agent/version.rb ./lib/active_agent/

# Install Ruby dependencies
RUN bundle config set --local deployment 'false' && \
bundle config set --local without 'production' && \
bundle install --jobs 4 --retry 3

# Copy the rest of the application
COPY . .

# Create models directory
RUN mkdir -p models

# Set environment variables for optimal performance
ENV OMP_NUM_THREADS=4
ENV MKL_NUM_THREADS=4
ENV RAILS_ENV=development

# Default command
CMD ["bin/rails", "server", "-b", "0.0.0.0"]
29 changes: 29 additions & 0 deletions Procfile.dev
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# Development Procfile for ActiveAgent
# Start with: foreman start -f Procfile.dev
# Or use overmind: overmind start -f Procfile.dev

# Rails server (optional - uncomment if needed)
# web: bin/rails server -p 3000

# MCP Services
# These need to be running for MCP-based tests and agents to work

# Playwright MCP - Browser automation
playwright: npx @anthropic/playwright-mcp

# GitHub MCP - GitHub API integration (if needed)
# github: npx @anthropic/github-mcp

# Hugging Face MCP - Model hub access (if needed)
# huggingface: npx @anthropic/huggingface-mcp

# Local AI Services (uncomment as needed)

# Ollama - Local LLM inference
# ollama: ollama serve

# Transformers server (if using local transformers)
# transformers: python -m transformers_server --port 8000

# ONNX Runtime server (if using ONNX models)
# onnx: python -m onnx_server --port 8001
1 change: 1 addition & 0 deletions activeagent.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ Gem::Specification.new do |spec|

spec.add_development_dependency "ruby-openai", ">= 8.1.0"
spec.add_development_dependency "ruby-anthropic", "~> 0.4.2"
spec.add_development_dependency "ruby_llm", ">= 0.1.0"

spec.add_development_dependency "standard"
spec.add_development_dependency "rubocop-rails-omakase"
Expand Down
Loading
Loading