GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - schoopet/schoopet-ai: An agent to never forget important things

BranchesTags
Open more actions menu

Latest commit

 

History

260 Commits
260 Commits

Folders and files

NameName
Last commit message
Last commit date
.firebase
.firebase
 
 
.github/workflows
.github/workflows
 
 
agents
agents
 
 
changelogs
changelogs
 
 
docs
docs
 
 
environments
environments
 
 
scripts
scripts
 
 
sms-gateway
sms-gateway
 
 
terraform
terraform
 
 
web
web
 
 
.firebaserc
.firebaserc
 
 
.gcloudignore
.gcloudignore
 
 
.gitignore
.gitignore
 
 
CLAUDE.md
CLAUDE.md
 
 
GEMINI.md
GEMINI.md
 
 
Makefile
Makefile
 
 
README.md
README.md
 
 
deploy_web.sh
deploy_web.sh
 
 
firebase.json
firebase.json
 
 
firestore.indexes.json
firestore.indexes.json
 
 
setup_agent_identity_permissions.sh
setup_agent_identity_permissions.sh
 
 
setup_infrastructure.sh
setup_infrastructure.sh
 
 

Repository files navigation

Schoopet

Schoopet is a personal workflow assistant built around a single Google Vertex AI Agent Engine deployment. Users interact with the agent through Discord, with Gmail-triggered automation feeding notifications back to Discord. The agent can use memory, Google Calendar, Drive, Docs, Sheets, Gmail, search, code execution, and background tasks.

Components

Component Path Runtime Purpose
Agent agents/schoopet/ Vertex AI Agent Engine ADK agent, tools, subagents, memory, deployment code
Gateway sms-gateway/ Cloud Run / FastAPI Webhooks, OAuth, sessions, confirmations, async task execution
Web web/ Firebase Hosting / Vite Static website, signup, privacy, terms
Infrastructure terraform/ Terraform Agent Engine shell, Cloud Run, Cloud Tasks, Pub/Sub, IAM, secrets, storage

The active production path is:

User channel -> sms-gateway -> Vertex AI Agent Engine -> tools/subagents
                                 ^
Cloud Tasks -> sms-gateway -------|

There is one active agent engine per environment: PERSONAL_AGENT_ENGINE_ID.

Architecture

See docs/architecture.md for the current architecture description and request flows.

Key points:

  • The gateway owns active channel ingress and keeps channel/session metadata in Firestore.
  • The agent owns reasoning, tool selection, memory, and Google Workspace actions.
  • Google user OAuth is still custom: access tokens in Firestore, refresh tokens in Secret Manager.
  • Background tasks are stored in Firestore, scheduled with Cloud Tasks, and executed by the gateway at /internal/tasks/execute.
  • Long-delay scheduled work beyond the Cloud Tasks 30-day window is requeued weekly by Cloud Scheduler.

Invariants

See docs/invariants.md for the review checklist of contracts that should stay true as the system changes.

The highest-risk invariants are:

  • User-scoped data access must always be keyed by ADK tool_context.user_id.
  • OAuth state must be single-use and short-lived.
  • Background task execution must be claimed atomically before work starts.
  • Offline Drive/Docs/Sheets writes may only target resource IDs explicitly approved at scheduling time.
  • Cloud Tasks and scheduler calls must reach internal endpoints with valid OIDC/HMAC auth.

Environments

Non-secret environment files live in environments/:

File Project Use
environments/dev.env schoopet-dev Development
environments/prod.env schoopet-prod Production

Optional environments/<name>.secrets.env files are gitignored and loaded after the checked-in env file by deploy scripts.

Important variables:

Variable Used by Meaning
GOOGLE_CLOUD_PROJECT all services GCP project
GOOGLE_CLOUD_LOCATION all services GCP region, usually us-central1
PERSONAL_AGENT_ENGINE_ID agent/gateway Vertex AI reasoning engine ID or resource suffix
ARTIFACT_BUCKET_NAME agent/gateway GCS bucket for ADK artifacts and email attachments
OAUTH_BASE_URL gateway/deploy Public base URL used for OAuth callbacks
SMS_GATEWAY_URL agent/tasks Cloud Run gateway URL used by Cloud Tasks
SMS_GATEWAY_SA agent/tasks Service account used for OIDC task calls
EMAIL_PUBSUB_TOPIC gateway Gmail Pub/Sub topic

Development

Install and run gateway tests:

make test

Run only gateway tests:

make test-sms-gateway

Agent development uses the agents/ directory as the package parent:

cd agents
python3.13 -m venv .venv
source .venv/bin/activate
pip install -r schoopet/requirements.txt

set -a && source ../environments/dev.env && set +a
python -m schoopet.main

Always run agent modules with python -m schoopet.<module> from agents/ so relative imports resolve correctly.

Run the web app locally:

cd web
npm install
npm run dev

Deployment

Terraform creates the durable cloud resources, including the Agent Engine shell. The agent deploy updates that existing engine.

First-time infrastructure:

cd terraform
terraform init -backend-config="bucket=<state-bucket>" -backend-config="prefix=<env>"
terraform apply -var-file=environments/<env>.tfvars

Agent deploy:

./agents/deploy.sh --env=prod

Requirements:

  • agents/.venv must use Python 3.13.
  • PERSONAL_AGENT_ENGINE_ID must be set or discoverable from Terraform output.

Gateway deploy:

./sms-gateway/scripts/deploy.sh --env=prod

The gateway deploy builds the container with Cloud Build, resolves the image digest, and applies Terraform with sms_gateway_image.

Web deploy:

./deploy_web.sh

Channel Webhooks

Configure external integrations to call the gateway:

Integration Endpoint
Discord interactions POST https://<gateway>/webhook/discord
Gmail Pub/Sub push POST https://<gateway>/webhook/email

Discord DM and mention handling also uses the gateway's Discord Gateway WebSocket when Discord secrets are configured.

Historical Notes

Existing design notes remain in docs/:

  • OAuth flow issues
  • IAM connectors adoption plan

About

An agent to never forget important things

Resources

Readme
Activity
Custom properties

Stars

1 star

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.