惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

腾讯CDC
Microsoft Azure Blog
Microsoft Azure Blog
B
Blog
S
SegmentFault 最新的问题
WordPress大学
WordPress大学
P
Proofpoint News Feed
Hugging Face - Blog
Hugging Face - Blog
MyScale Blog
MyScale Blog
A
About on SuperTechFans
雷峰网
雷峰网
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
T
The Blog of Author Tim Ferriss
MongoDB | Blog
MongoDB | Blog
博客园 - 【当耐特】
The Cloudflare Blog
F
Fortinet All Blogs
小众软件
小众软件
博客园 - 三生石上(FineUI控件)
宝玉的分享
宝玉的分享
罗磊的独立博客
量子位
有赞技术团队
有赞技术团队
V
V2EX
Engineering at Meta
Engineering at Meta

Hacker News - Newest: "AI"

AI can't read an investor deck AI as an attorney? Student uses ChatGPT, Gemini to sue UW over alleged racial discrimination Hacking MCP Servers in AI Systems – The Rug Pull: Tool Changes After Approval GitHub - MeepCastana/KubeezCut: Free Web based video editor Can AI judge journalism? A Thiel-backed startup says yes, even if it risks chilling whistleblowers Coming soon: 10 Things That Matter in AI Right Now DARPA built an AI to fact-check enemy weapons claims What explains heterogeneity in AI adoption? When AI Meets Muscle: Context-Aware Electrical Stimulation Promises a New Way to Guide Human Movements - Department of Computer Science AI Changed How We Build. It Did Not Change What Matters. Linux rules on using AI-generated code - Copilot is OK, but humans must take 'full responsibility for the… Meta spins up AI version of Mark Zuckerberg to engage with employees Code Mode: Let Your AI Write Programs, Not Just Call Tools | TanStack Blog GitHub - Delavalom/graft: Go framework for building AI agents. Type-safe tools, multi-provider (OpenAI, Anthropic, Gemini, Bedrock), zero vendor SDKs. India's TCS tops estimates, says new AI models did not dent services demand Gen Z's fading AI hype Strong feeling: we are in a folded AI reality GitHub - machinarii/total-recall-catalog: A reference catalog of latest knowledge retrieval, memory & RAG systems GitHub - mensfeld/code-on-incus: Give each AI agent its own isolated machine with root, Docker, and systemd. Active defense detects and stops threats automatically.. Quantization, LoRA, and the 8% Problem: Benchmarking Local LLMs for Production AI Iran war: We spoke to the man making Lego-style AI videos that experts say are powerful propaganda Powell, Bessent discussed Anthropic's Mythos AI cyber threat with major U.S. banks GitHub - immartian/bellamem: Persistent belief-graph memory for AI agents. Retrieves decisive context by importance — not recency, not RAG, not /compact. recursive-mode: The Repo-Native Operating System for AI Engineering After the attack on Sam Altman's home, will AI CEO's go on the offensive? The biggest advance in AI since the LLM Opus 4.6 vs GPT 5.4 One Prompt Unity World Generation Test “AI polls” are fake polls Client Challenge Can AI be a 'child of God'? Inside Anthropic's meeting with Christian leaders
GitHub - glitchnsec/fortyone-oss: AI Executive Assistant ...
glitchnsec · 2026-04-16 · via Hacker News - Newest: "AI"

A personal operating system disguised as an AI assistant.

FortyOne lets users interact with their own named assistant over SMS, Slack, and the web. The assistant can remember context, manage tasks and goals, use connected services, and proactively help with work and personal life. The product is multi-tenant by design: one operator can run an instance for many users while each user's data, tools, memories, and credentials remain isolated.

Core Idea

Users do not need to learn a new app to use an assistant. They text the assistant they already named, for example: "Jarvis, your FortyOne operator." FortyOne handles the infrastructure, routing, memory, tools, and proactive follow-up behind that simple interface.

Read the full story: Your Chief of Staff, One Text Away — Building FortyOne

Features

  • SMS-first assistant via Twilio, with Slack DM support and a web dashboard for setup and management.
  • Fast ACK plus async worker architecture using Redis Streams and Redis Pub/Sub.
  • Manager/subagent tool-calling loop with built-in tools, custom agents, and MCP-backed connections.
  • Persona-aware operation for work, personal, and shared contexts.
  • Google Gmail and Calendar integrations through the internal connections service.
  • Slack workspace connection support separate from Slack DM delivery.
  • Proactive scheduler for briefings, recaps, goal coaching, nudges, cooldowns, quiet hours, and content suppression.
  • Context engineering with tiered retrieval, conversation history, memories, profile traits, active tasks, and persona scope.
  • Multi-tenant isolation across routes, queue payloads, database queries, Redis keys, OAuth tokens, and tool execution.
  • Admin dashboard for users, analytics, health, and operational visibility.

Architecture

┌─────────────────────────────────────────────────────┐
│   Users (SMS via Twilio · Slack DM · Web Dashboard) │
└──────────────────────┬──────────────────────────────┘
                       ▼
        ┌──────────────────────────────────┐
        │         FastAPI API Server       │
        │                                  │
        │  • Webhook ingestion (SMS/Slack) │
        │  • JWT auth + registration       │
        │  • Rule-based intent classifier  │
        │  • Context assembly + job queue  │
        │  • ACK race pattern              │
        │  • REST API for dashboard/admin  │
        │  • OAuth callback proxy          │
        │  • ResponseListener (pub/sub)    │
        └──────────┬───────────┬───────────┘
                   │           ▲
           Redis Streams   Redis Pub/Sub
           (durable queue) (result delivery)
                   │           │
                   ▼           │
        ┌──────────────────────────────────┐
        │          Worker Process          │
        │                                  │
        │  • Manager / subagent pattern    │
        │  • 16 tools across 7 subagents   │
        │  • LLM calls via OpenRouter      │
        │  • Tool-calling loop (max 3)     │
        │  • Passive learning → memory     │
        │  • Goal vs reminder recognition  │
        └──────────┬───────────────────────┘
                   ▼
        ┌──────────────────────────────────┐
        │     PostgreSQL + pgvector        │
        │  Users · Memories · Tasks        │
        │  Goals · Personas · Connections  │
        │  ProactivePreferences · Logs     │
        └──────────────────────────────────┘

        ┌────────────────┐  ┌─────────────────┐
        │   Scheduler    │  │  Connections    │
        │  1-3 proactive │  │  OAuth providers│
        │  msgs/day      │  │  Gmail/Cal/Slack│
        │  Weighted pool │  │  MCP gateway    │
        │  Delta suppress│  │  Fernet encrypt │
        └────────────────┘  └─────────────────┘

Stack: Python 3.11 · FastAPI · SQLAlchemy (async) · PostgreSQL + pgvector · Redis Streams · React/Vite/shadcn · OpenRouter (model-agnostic)

The connections service is intentionally internal-only. Public OAuth callbacks land on the main API at /oauth/callback/google and /oauth/callback/slack; the API forwards them to the connections service with X-Service-Token.

Quick Start

Prerequisites:

  • Docker and Docker Compose
  • Python 3.11+
  • Node.js 20+ if developing the dashboard outside Docker

Create environment files:

cp .env.example .env
cp connections/.env.example connections/.env

Generate required secrets:

python -c "import secrets; print(secrets.token_urlsafe(64))"  # JWT_SECRET
python -c "import secrets; print(secrets.token_urlsafe(32))"  # SERVICE_AUTH_TOKEN
python -c "from cryptography.fernet import Fernet; print(Fernet.generate_key().decode())"  # ENCRYPTION_KEY

Start the stack:

docker compose up --build

Open the dashboard:

For real SMS, configure Twilio, set MOCK_SMS=false, and expose the API through a stable HTTPS URL so Twilio can reach /sms/inbound.

Production Security Checklist

Before exposing an instance to real users:

  • Replace JWT_SECRET; never use change-me-in-production.
  • Set ENCRYPTION_KEY; OAuth tokens and sensitive values depend on it.
  • Set the same strong SERVICE_AUTH_TOKEN for the API, worker, scheduler, and connections service.
  • Keep the connections service internal; do not publish port 8001 to the internet.
  • Set MOCK_SMS=false only after Twilio credentials and webhook validation are configured.
  • Set BASE_URL to the exact public HTTPS origin used by Twilio and Slack webhooks.
  • Configure OAuth redirects to the API callback paths, not the internal connections service.
  • Set MCP_ALLOWLIST in production; an empty allowlist permits arbitrary MCP server URLs and creates SSRF risk.
  • Use a strong PostgreSQL password and do not reuse the sample operator:operator local database credentials.
  • Keep ENVIRONMENT=production unless intentionally enabling development-only debug routes.
  • Rotate any exposed OpenRouter, Twilio, Slack, Google, or Brave credentials immediately.

Production Environment Variables

Variable Required Purpose
DATABASE_URL Yes PostgreSQL connection string for app data. Use pgvector for semantic memory.
REDIS_URL Yes Redis queue, pub/sub, proactive plans, cooldowns, and idempotency.
JWT_SECRET Yes Signs API access and refresh tokens. Must be unique per deployment.
ENCRYPTION_KEY Yes Fernet key for OAuth tokens and sensitive data at rest. Do not rotate without migration.
SERVICE_AUTH_TOKEN Yes Shared secret for API-to-connections internal calls.
OPENROUTER_API_KEY Yes LLM provider access through OpenRouter.
TWILIO_ACCOUNT_SID For SMS Twilio account identifier.
TWILIO_AUTH_TOKEN For SMS Twilio API secret and webhook validation secret.
TWILIO_PHONE_NUMBER For SMS Outbound assistant number.
MOCK_SMS Recommended Use true for local logs-only SMS; use false for real delivery.
BASE_URL Production Public HTTPS origin for webhooks and callback generation.
DASHBOARD_URL OAuth Browser landing URL after OAuth connection flows.
CONNECTIONS_SERVICE_URL Yes Internal URL, usually http://connections:8001 in Docker Compose.
GOOGLE_CLIENT_ID / GOOGLE_CLIENT_SECRET Google Gmail and Calendar OAuth.
SLACK_BOT_TOKEN / SLACK_SIGNING_SECRET Slack DM Slack channel delivery and event verification.
SLACK_CLIENT_ID / SLACK_CLIENT_SECRET Slack connection Slack workspace OAuth inside connections/.env.
MCP_ALLOWLIST Production Comma-separated trusted MCP server URL prefixes. Empty means allow all.
ENVIRONMENT Recommended Defaults to production; set development only for debug routes.

Setup Guides

Guide Purpose
Docker Setup Local and production Docker Compose behavior.
Portainer Setup Deploying and operating through Portainer.
Webhook Setup Public webhook and OAuth callback URLs.
Database Setup PostgreSQL, pgvector, migrations, and backups.
Encryption Setup Fernet key generation and token encryption requirements.
Twilio Setup SMS registration, inbound webhooks, and outbound delivery.
Slack Setup Slack DM channel and Slack workspace connection configuration.
Google OAuth Setup Gmail and Calendar OAuth setup.
OpenRouter Setup LLM API keys and model configuration.

Development

Run backend tests:

python -m pytest tests -q
python -m pytest connections/tests -q

Run dashboard checks:

cd dashboard
npm run build
npm run lint

See CONTRIBUTING.md for contribution expectations, project structure, and security-sensitive review guidance.

License

FortyOne is licensed under the GNU Affero General Public License v3.0 only (AGPL-3.0-only). See LICENSE.

If you modify FortyOne and run it as a network service, the AGPL requires that you provide the corresponding source code to users who interact with that service over the network.

Trademark

"FortyOne" is the project name for this open source release. The AGPL license grants rights to the code; it does not grant trademark rights or imply endorsement by the project maintainers.