Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
102 commits
Select commit Hold shift + click to select a range
6431b8b
fix: auto-detect Claude CLI path and add vt.tiktok.com URL support
maximchongADO Mar 28, 2026
11e08e2
fix: add TikTok browser impersonation to yt-dlp calls
maximchongADO Mar 28, 2026
5520a65
fix: resolve Whisper transcription on Windows for TikTok videos
maximchongADO Mar 28, 2026
91601a1
fix: force h264+aac format for TikTok and add npm claude.cmd path
maximchongADO Mar 28, 2026
e989e76
chore: add active goals to drive autonomous work loop
maximchongADO Mar 28, 2026
e4eb1ee
feat: autonomous agent — context-driven decider, auto-commit, Jira, v…
maximchongADO Mar 28, 2026
3c565f6
feat: 7 AM daily brief — GitHub commits + Jira + overnight summary
maximchongADO Mar 28, 2026
7014289
chore: complete TASK-004 and update social intel feed
maximchongADO Mar 28, 2026
9807b94
chore: complete TASK-004 and update social intel feed
maximchongADO Mar 28, 2026
8dc87d7
chore: clean up after agent.js EPIPE errors
maximchongADO Mar 28, 2026
46d2bd8
fix: eliminate work loop noise from daily notes
maximchongADO Mar 28, 2026
3cc6685
chore: complete Goal 3 — work loop noise fix
maximchongADO Mar 28, 2026
4ef5ad4
chore: update daily note with session completion
maximchongADO Mar 28, 2026
342a52f
feat: add TODO CRUD API with models, routes, and tests
maximchongADO Mar 28, 2026
5d74d4d
chore: update daily notes with worker completion logs
maximchongADO Mar 28, 2026
c70b40b
feat: add OpenAPI/Swagger documentation to agent-tools API
maximchongADO Mar 28, 2026
b4ee758
feat: add SQLite persistence to agent-tools TODO API
maximchongADO Mar 28, 2026
027bb59
feat: add SQLite persistence and API key authentication
maximchongADO Mar 28, 2026
8c40f2b
chore: update daily notes with worker completion logs
maximchongADO Mar 28, 2026
26e5ec7
feat: add rate limiting middleware to agent-tools API
maximchongADO Mar 28, 2026
b532085
chore: update daily notes and document API build patterns
maximchongADO Mar 28, 2026
4becfb6
feat: add centralized error handling middleware
maximchongADO Mar 28, 2026
b19d32e
feat: add centralized error handling middleware
maximchongADO Mar 28, 2026
e5e17e9
feat: add structured logging with winston and request logging middleware
maximchongADO Mar 28, 2026
0c78a77
feat: implement structured logging with Winston and request IDs
maximchongADO Mar 28, 2026
e2677fe
feat: add comprehensive input validation with Joi
maximchongADO Mar 28, 2026
391c89c
docs: update README with comprehensive validation rules
maximchongADO Mar 28, 2026
9767bff
feat: add CORS middleware with configurable origins
maximchongADO Mar 28, 2026
585b0e8
chore: update daily log with CORS implementation completion
maximchongADO Mar 28, 2026
b4e2858
feat: add security headers middleware with helmet
maximchongADO Mar 28, 2026
6443a26
chore: update daily log and rebuild after security headers
maximchongADO Mar 28, 2026
d7b8f84
feat: add graceful shutdown handling to agent-tools API
maximchongADO Mar 28, 2026
303c084
chore: add GitHub Actions CI/CD pipeline for agent-tools
maximchongADO Mar 28, 2026
12c6651
feat: add Docker containerization to agent-tools API
maximchongADO Mar 28, 2026
cb2aeda
feat: add Docker containerization to agent-tools
maximchongADO Mar 28, 2026
ee48b75
feat: add deployment configurations for Vercel, Railway, and PM2
maximchongADO Mar 28, 2026
cd07770
fix: decision engine now parses Claude CLI JSON output correctly
maximchongADO Mar 28, 2026
b277d14
chore: update daily log with push task
maximchongADO Mar 28, 2026
57ea061
chore: temporarily remove workflow file and document token scope issue
maximchongADO Mar 28, 2026
fe79618
chore: log branch push completion
maximchongADO Mar 28, 2026
daaee1e
feat: add observability dashboard for autonomous agent monitoring
maximchongADO Mar 28, 2026
d92ee48
docs: log agent-dashboard completion in daily notes
maximchongADO Mar 28, 2026
73f7f97
feat: add dedicated API endpoints to agent-dashboard
maximchongADO Mar 28, 2026
0f2ba7e
feat: add dedicated API endpoints to agent-dashboard
maximchongADO Mar 28, 2026
3cac643
docs: finalize agent-dashboard verification and update daily logs
maximchongADO Mar 28, 2026
ed4dbe9
feat: add /api/tasks endpoint to agent-dashboard
maximchongADO Mar 28, 2026
1794684
feat: add /api/goals endpoint to agent-dashboard
maximchongADO Mar 28, 2026
8843cf8
feat: update agent-dashboard UI with all 5 API endpoints
maximchongADO Mar 28, 2026
782928f
feat: create agent-scheduler cron-like task scheduler
maximchongADO Mar 28, 2026
2b4f56b
feat: add scheduled tasks display to agent-dashboard
maximchongADO Mar 28, 2026
329732d
feat: integrate agent-scheduler with hybrid architecture
maximchongADO Mar 28, 2026
a126fe4
feat: add comprehensive metrics/analytics to agent-dashboard
maximchongADO Mar 28, 2026
b23c17d
feat: add memory browsing to agent-dashboard
maximchongADO Mar 28, 2026
4ec5a77
feat: add docker-compose orchestration for agent stack
maximchongADO Mar 29, 2026
441f02e
chore: log docker orchestration completion in daily note
maximchongADO Mar 29, 2026
d46e950
chore: update daily log and clean up corrupted artifact file
maximchongADO Mar 29, 2026
c496ef2
chore: add worker AUTO-1774742864831 completion entry
maximchongADO Mar 29, 2026
71038e7
chore: log worker AUTO-1774743479817 completion
maximchongADO Mar 29, 2026
e25e3c9
fix: investigate and document worker tracking discrepancy
maximchongADO Mar 29, 2026
5b8f78d
chore: remove artifact file 0
maximchongADO Mar 29, 2026
c09dcd4
feat: add process-manager.js to detect duplicate agent processes
maximchongADO Mar 29, 2026
2952a4b
feat: add startup duplicate process check to prevent multiple agent i…
maximchongADO Mar 29, 2026
4efcb90
chore: log duplicate process check commit completion
maximchongADO Mar 29, 2026
500a364
feat: expand rate limiting tests and documentation for agent-tools API
maximchongADO Mar 29, 2026
36b9f06
feat: add CORS and security headers middleware to agent-dashboard and…
maximchongADO Mar 29, 2026
38d8575
feat: add comprehensive security documentation to agent-scheduler
maximchongADO Mar 29, 2026
60cd7bb
fix: resolve analytics test failures with timezone and date handling
maximchongADO Mar 29, 2026
0615e66
feat: add GitHub Actions CI/CD workflows with automated testing and D…
maximchongADO Mar 29, 2026
4fa9917
chore: update daily log and README
maximchongADO Mar 29, 2026
4355727
feat: add automated security scanning to CI/CD pipeline
maximchongADO Mar 29, 2026
f931bcd
Task timed out after 1 minutes.
maximchongADO Mar 29, 2026
1ab0f28
feat: replace Jira with GitHub Issues for task tracking + structured …
maximchongADO Mar 29, 2026
54e4a50
Task timed out after 1 minutes.
maximchongADO Mar 29, 2026
7f0fc4a
fix: use actual worker completion messages for auto-commits
maximchongADO Mar 29, 2026
ddf394a
fix: use actual worker completion messages for auto-commits
maximchongADO Mar 29, 2026
66bd48f
feat: continuous 24/7 sprint loop with GitHub Issues as task board
maximchongADO Mar 29, 2026
24ab12b
chore: remove dead Jira integration code, GitHub Issues has replaced it
maximchongADO Mar 29, 2026
d09713e
feat: replace Jira with GitHub Issues for task tracking + structured …
maximchongADO Mar 29, 2026
f5a4890
Task timed out after 1 minutes.
maximchongADO Mar 29, 2026
e90882d
feat: prepare Fly.io deployment configuration for agent-dashboard
maximchongADO Mar 29, 2026
ee119dc
fix: improve worker message extraction for better auto-commit messages
maximchongADO Mar 29, 2026
76c695a
feat: add comprehensive environment variable validation to all API pr…
maximchongADO Mar 29, 2026
27a4b07
chore: log worker message fix and env validation commits
maximchongADO Mar 29, 2026
f11d7c8
test: add comprehensive Jest suite for change-validator with 23 tests
maximchongADO Mar 29, 2026
2b41469
test: add comprehensive Jest suite for decider with 29 tests
maximchongADO Mar 29, 2026
001bfb9
test: add comprehensive Jest suite for task-queue with 29 tests
maximchongADO Mar 29, 2026
c5f4f49
test: add comprehensive Jest suite for claude-runner with 34 tests
maximchongADO Mar 29, 2026
d30f2ee
test: add comprehensive Jest suite for memory with 41 tests
maximchongADO Mar 29, 2026
0e8ae52
test: add comprehensive Jest suite for git-ops with 46 tests
maximchongADO Mar 29, 2026
c0bde7a
chore: update social-intel feed with 2026-03-29 entries
maximchongADO Mar 29, 2026
b7e4c84
test: add comprehensive Jest suite for github-issues with 34 tests
maximchongADO Mar 29, 2026
cbb04e7
You've hit your limit · resets 7pm (Asia/Singapore)
maximchongADO Mar 29, 2026
c2d7c4c
feat: add Claude API usage tracking with Telegram notifications
maximchongADO Mar 29, 2026
bb1d986
feat: add PR merge approval flow via Telegram inline buttons
maximchongADO Mar 29, 2026
4410d96
feat: per-project Telegram thread routing + /threads command
maximchongADO Mar 29, 2026
32746c8
chore: init project-threads.json + label all existing issues as inter…
maximchongADO Mar 29, 2026
5b074f3
chore: staged missing Sprint Board integration files (index.ts +390
maximchongADO Mar 30, 2026
a657994
fix: command injection vulnerability in github-issues.ts by adding
maximchongADO Mar 30, 2026
8c743fa
fix: command injection vulnerability in github-issues.ts by adding
maximchongADO Mar 30, 2026
81efac5
fix: command injection vulnerability in github-issues.ts by adding
maximchongADO Mar 30, 2026
1b14c07
chore: staged Issue #27's onlyMemoryFiles fix (change-validator.js +13
maximchongADO Mar 30, 2026
9ab73c9
Resolve merge conflict in daily memory
maximchongADO Mar 30, 2026
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
26 changes: 25 additions & 1 deletion .env.example
Original file line number Diff line number Diff line change
@@ -1 +1,25 @@
# placeholder
# Environment Configuration
NODE_ENV=production

# Service Ports
AGENT_TOOLS_PORT=3000
AGENT_DASHBOARD_PORT=3001
AGENT_SCHEDULER_PORT=3002

# Agent Tools Configuration
AGENT_TOOLS_API_KEY=your-secure-api-key-here-change-in-production

# Rate Limiting (agent-tools)
RATE_LIMIT_WINDOW_MS=900000
RATE_LIMIT_MAX_REQUESTS=100

# CORS Configuration (agent-tools)
# Comma-separated list of allowed origins
CORS_ALLOWED_ORIGINS=http://localhost:3001,http://agent-dashboard:3001

# Service URLs (for inter-service communication)
AGENT_TOOLS_URL=http://agent-tools:3000
AGENT_SCHEDULER_URL=http://agent-scheduler:3002

# Logging
LOG_LEVEL=info
53 changes: 53 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
name: CI

on:
push:
branches: ['**']
pull_request:
branches: ['**']

jobs:
test:
name: Test ${{ matrix.project }}
runs-on: ubuntu-latest

strategy:
matrix:
project:
- agent-tools
- agent-dashboard
- agent-scheduler
fail-fast: false

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20'

- name: Cache npm dependencies
uses: actions/cache@v3
with:
path: projects/${{ matrix.project }}/node_modules
key: ${{ runner.os }}-node-${{ matrix.project }}-${{ hashFiles('projects/${{ matrix.project }}/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-${{ matrix.project }}-

- name: Install dependencies
working-directory: projects/${{ matrix.project }}
run: npm install

- name: Security audit
working-directory: projects/${{ matrix.project }}
run: npm audit --audit-level=high

- name: Run tests
working-directory: projects/${{ matrix.project }}
run: npm test

- name: Build project
working-directory: projects/${{ matrix.project }}
run: npm run build
36 changes: 36 additions & 0 deletions .github/workflows/docker-build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Docker Build

on:
push:
branches:
- main

jobs:
build:
name: Build ${{ matrix.project }}
runs-on: ubuntu-latest

strategy:
matrix:
project:
- agent-tools
- agent-dashboard
- agent-scheduler
fail-fast: false

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: Build Docker image
uses: docker/build-push-action@v5
with:
context: ./projects/${{ matrix.project }}
file: ./projects/${{ matrix.project }}/Dockerfile
push: false
tags: ${{ matrix.project }}:latest
cache-from: type=gha
cache-to: type=gha,mode=max
73 changes: 73 additions & 0 deletions .github/workflows/security.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
name: Security

on:
push:
branches: [main]
pull_request:
branches: [main]
schedule:
# Run weekly on Mondays at 00:00 UTC
- cron: '0 0 * * 1'

jobs:
codeql:
name: CodeQL Analysis
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
security-events: write

strategy:
matrix:
project:
- agent-tools
- agent-dashboard
- agent-scheduler
fail-fast: false

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Initialize CodeQL
uses: github/codeql-action/init@v3
with:
languages: javascript-typescript
queries: security-extended

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20'

- name: Install dependencies
working-directory: projects/${{ matrix.project }}
run: npm install

- name: Build project
working-directory: projects/${{ matrix.project }}
run: npm run build

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3
with:
category: "/language:javascript-typescript/${{ matrix.project }}"

dependency-review:
name: Dependency Review
runs-on: ubuntu-latest
if: github.event_name == 'pull_request'
permissions:
contents: read
pull-requests: write

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Dependency Review
uses: actions/dependency-review-action@v4
with:
fail-on-severity: high
comment-summary-in-pr: always
136 changes: 136 additions & 0 deletions MIGRATION_GUIDE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,136 @@
# Agent Migration Guide

Your autonomous agent infrastructure is ready to move to your PC. Two files are needed:

## Files to Download

1. **agent-repo.bundle** (8.8 MB) - Complete git history & all branches
2. **agent-files.tar.gz** (1.1 MB) - All project files, config, memory

Both are in the current directory.

---

## Setup on New PC

### Step 1: Create Project Directory
```bash
cd your-workspace
mkdir agent-workspace
cd agent-workspace
```

### Step 2: Restore Git Repository
```bash
# Create empty repo
git init

# Add bundle as remote (temporary)
git remote add bundle /path/to/agent-repo.bundle

# Fetch all branches and history
git fetch bundle '*:*'

# Remove temporary remote
git remote remove bundle

# Set upstream to origin (or your GitHub if you have one)
# git remote add origin https://github.com/your-username/agent
```

### Step 3: Restore Project Files
```bash
# Extract files
tar -xzf /path/to/agent-files.tar.gz -C .

# Check out the main branch
git checkout main

# Check out the active development branch
git checkout claude/serene-lamarr
```

### Step 4: Install Dependencies
```bash
npm install
npm run build
npm test
```

### Step 5: Configure Environment
Create `.env` file:
```bash
TELEGRAM_BOT_TOKEN=your_token_here
TELEGRAM_GROUP_ID=your_group_id
TELEGRAM_USER_ID=your_user_id
GITHUB_TOKEN=your_github_token
GITHUB_USERNAME=your_username
```

⚠️ **CRITICAL**: Never commit `.env` files

### Step 6: Start Agent
```bash
node scripts/agent.js
```

Dashboard will be available at: `http://localhost:3000/?token=agent`

---

## What's Included

✅ All source code (projects/, scripts/, tests/)
✅ Configuration (.claude/, .mcp.json, CLAUDE.md)
✅ Memory system (memory/ with patterns, daily notes, projects)
✅ Git history (all branches, commits, tags)
✅ Project threads mapping (memory/project-threads.json)
✅ Usage tracking (memory/usage-log.jsonl)

❌ **NOT included** (for security):
- node_modules/ (rebuilt via npm install)
- .env files (create fresh on new PC)
- .git/ folder (restored from bundle)

---

## Verify Everything Works

After setup:
```bash
npm test # All tests should pass
npm run build # Should compile without errors
node scripts/agent.js # Should boot and connect to Telegram
```

---

## Quick Steps Summary

```bash
# On new PC:
cd workspace
mkdir agent && cd agent
git init
git remote add bundle /path/to/agent-repo.bundle
git fetch bundle '*:*'
git remote remove bundle
tar -xzf /path/to/agent-files.tar.gz -C .
git checkout claude/serene-lamarr
npm install
# Create .env with your tokens
node scripts/agent.js
```

---

## Using GitHub Instead (Optional)

If you want to use GitHub:
1. Create private repo on GitHub
2. Push from this machine: `git push -u origin main claude/serene-lamarr`
3. On new PC: `git clone <repo-url>`
4. Follow Step 4-6 above

This way you don't need to copy files manually.

Loading
Loading