← Back to Leaderboard
7wangziqi06

wangziqi06/724-office

Self-hosted Python agent for team messaging, scheduled work, and MCP tools

View on GitHub ↗
Open-Source AI AppQuickstart ↓
Engineering Health (Methodology)
B · 57/100
Maintenance Activity
● Updated 4mo ago
Latest Release
Rolling commits (main)
Commercial License Check
MIT · Commercial Friendly

Automated SPDX check for reference only — not legal advice. Disclaimer

Maintenance12/35
Fork Adoption19/25
Release Cadence6/20
License Clarity20/20
DockerSelf-HostedMCPAPI
Total Stars
★ 1,020
24h Growth
+0
7d Growth
+1
Forks
168

GitHub Star History

Full-history star trajectory from GitHub official history. Switch ranges or hover any point for exact counts.

wangziqi06/724-office Star History (2026-03-17 - 2026-12-04) ALL-TIME STAR HISTORY (2026-03 – 2026-12) +1k in 262d · avg +4/day 1.1k 539 0 2026-03-17: ★ 12026-04-04: ★ 9262026-04-25: ★ 9642026-05-16: ★ 9822026-06-06: ★ 9862026-06-27: ★ 9892026-07-18: ★ 9922026-08-08: ★ 9982026-08-29: ★ 1,0012026-09-19: ★ 1,0072026-10-10: ★ 1,0122026-10-31: ★ 1,0162026-11-16: ★ 1,0172026-12-04: ★ 1,020 ★ 1k 2026-03 2026-07 2026-12

Evidence-Backed Technical Brief

AI Deep Review

Architecture & Core Mechanics

7/24 Office is a messaging-first application, not an agent framework. The original runtime enters through xiaowang.py, which handles HTTP callbacks, message debouncing, and media intake. In multi-tenant mode, router.py fronts the workers and manages per-user Docker containers. llm.py assembles token-budgeted context and drives an OpenAI-compatible function-calling loop; tools_base.py provides registration, filtering, and a circuit breaker for tools split across domain modules.

State lives in JSON session files and LanceDB-backed memory; scheduler.py handles persistent jobs, and nudge.py injects corrective hints when it detects tool misuse. The Python runtime avoids a large orchestration framework but still uses packages such as croniter, lancedb, and httpx. MCP is a separate extension path: mcp_client.py connects to external servers over JSON-RPC using stdio or HTTP, with hot reload.

Key Capabilities & Differentiators

The Python edition exposes 36 built-in tools, with automatic retries and up to 20 tool-loop iterations per conversation. It combines persistent one-shot and recurring schedules, multi-engine search, messaging and media handling, and diagnostics. Group conversations use @-mention gating and a 20-message context buffer. Model configuration supports OpenAI-compatible endpoints with a fallback chain; embeddings, ASR, and video generation have separate configuration sections.

The memory pipeline retains the latest 40 messages in JSON, auto-archives sessions over 100 KB, and uses an LLM to extract facts from evicted messages. Facts are deduplicated at a cosine similarity threshold of 0.92 and stored in LanceDB. At recall time, the agent embeds the incoming message, retrieves relevant memories, and injects them within the prompt budget. Runtime Python tool creation, MCP reloads, and daily self-checks extend the service without requiring a full redeploy for every tool change.

Trade-offs & Limitations

Compared with assembling an app on LangChain or CrewAI, the Python edition already connects messaging callbacks, schedules, memory, and tenant routing. Its plain Python call path is easy to inspect, but the operator owns provider configuration, uptime, and data retention. Separate containers give each tenant a process boundary at the cost of more provisioning and sizing work. API-backed inference removes the need to run a model in the agent process, but introduces provider latency, usage costs, and data-handling obligations.

Shell execution and runtime Python tool creation make trusted deployments flexible, but also increase the consequences of prompt injection or a compromised integration. Treat each worker as a privileged service until verified otherwise: restrict sensitive tools, keep tenant workers away from host Docker controls, and vet MCP servers. Do not treat per-user containers as proof of hardened isolation. MIT permits commercial use, but service-provider terms remain separate.

Hardware & Deployment Guide

For a direct run, prepare config.json from config.example.json, install the Python dependencies, create workspace/memory and workspace/files, and start python3 xiaowang.py. The container path starts from Dockerfile.example and docker-compose.example.yml, adds the deployment credentials, and uses Docker Compose to build and run the service. The HTTP listener uses port 8080 for messaging callbacks. Before exposing it, verify callback authentication, restrict network access, and confirm that mutable workspace data and schedules survive container replacement.

Self-hosting the agent does not make its model, embedding, or media APIs offline. The Jetson Orin Nano target (8 GB RAM, ARM64) and sub-2 GB RAM budget are design goals, not capacity measurements; size for active containers, memory growth, and media work. No GitHub release is listed. The in-tree xiaowang-v2 rewrite uses a single Node process and WAL-mode SQLite, focusing on durable cross-day jobs and personal WeCom use; evaluate it separately rather than assuming a drop-in upgrade.

Tool execution: OpenAI-compatible function calling with retries and a ceiling of 20 iterations per conversation.
Memory lifecycle: The latest 40 messages stay in JSON session history; evicted content can become LanceDB-backed recall, with deduplication at 0.92 cosine similarity.
Tool extension: Domain modules register Python functions with @tool; MCP servers use JSON-RPC over stdio or HTTP and support hot reload.
Tenant routing: router.py provisions one Docker container per user and runs health checks and reconciliation; group chats use separate containers and @-mention gating.
Persistent scheduling: Timezone-aware one-shot and recurring jobs survive restarts, with an inactivity guard.
Node successor: xiaowang-v2 pairs a single Node process with WAL-mode SQLite, approval gates, and idempotency controls.
Best For

An operator-led team that wants a persistent assistant in an existing messaging platform, with scheduled work, searchable memory, and a tool stack it can inspect and extend.

Skip If

You need offline inference out of the box, verified isolation for untrusted tenants, or a managed service that handles uptime and provider configuration for you.

Reviewed on 2026-12-03 · Grounded in GitHub README, root file tree & releasesMethodology

Quick Start & Installation

DockerSelf-HostedMCPAPI
git clone https://github.com/wangziqi06/724-office.git
cd 724-office
cp config.example.json config.json
# Edit config.json with your API keys

pip install croniter lancedb websocket-client pilk numpy httpx beautifulsoup4 pydub jieba fpdf2

mkdir -p workspace/memory workspace/files
python3 xiaowang.py

Comparison vs. Top Agents & Frameworks Alternatives

Full comparison →
RepositoryStars7d TrendStackLicenseCore Positioning
724-office ★1k+1JavaScriptMITSelf-hosted Python agent for team messaging, scheduled work, and MCP tools
hermes-agent268.1k+1.5kPythonMITSelf-hosted Python agent with persistent memory and automation across chat and C
n8n213.1k+787TypeScript—Visual Node.js platform for self-hosted workflows and multi-step AI agents
TradingAgents124.7k+709TypeScriptApache-2.0A multi-agent CLI for source-cited financial research and reporting

AI Context Briefing (for Claude / Cursor / Windsurf)

Standardized architecture summary & quickstart commands ready to paste into coding agents.

Raw .md ↗
curl -sL https://repoforai.com/repo/wangziqi06/724-office.md

Embed Star History Chart & Badges in README.md

Full-history Star History SVGs and velocity cards on GitHub Camo: drop-in replacement for OSSInsight and Star History widgets.

wangziqi06/724-office Star History on RepoForAI

Active README embeds unlock Hot-Tier 6h Telemetry Refresh automatically (zero pay-to-rank).

Frequently Asked Questions about 724-office

How do messaging, model inference, and MCP connect to the Python agent?

A messaging platform sends callbacks to the Python HTTP entrypoint in xiaowang.py. For multi-user deployments, router.py sits in front and provisions and reconciles per-user Docker containers. Use an OpenAI-compatible model API for inference. MCP tools connect over JSON-RPC via stdio or HTTP and can be reloaded without restarting the agent.

Do I need a GPU, and how should I size the host?

Not for the API-backed path: model inference runs behind an API rather than in the agent process. The Python runtime targets a Jetson Orin Nano with 8 GB RAM and an agent RAM budget below 2 GB; that is a design target, not a measured peak or a per-tenant guarantee. Size the host for concurrent containers, LanceDB growth, and media workloads. If you run inference locally, size that model server separately.

Can I self-host it commercially, and what remains my responsibility?

Yes. MIT permits commercial use and modification; retain the copyright and license notices when redistributing the software. Self-hosting does not cover messaging, model, embedding, or other provider terms, and it does not keep data local if those APIs are remote. Review what leaves the host and set retention policies for session files, archives, and vector memory.

When should I choose the Python app over a framework or xiaowang-v2?

Pick the Python app when you want a working messaging service with scheduling, memory, and Docker-based tenant routing rather than assembling those pieces around a framework. Evaluate xiaowang-v2 if your priority is a personal WeCom agent with durable execution, approval gates, and SQLite state. Treat v2 as a separate implementation; do not assume feature or migration parity.

Upstream README & Documentation

This profile focuses on independent engineering analysis and live telemetry. Read the full upstream README, changelog, and examples directly on GitHub.

Maintaining wangziqi06/724-office? Pin to Homepage + competitor /alternatives pages with a custom Cloud/Demo CTA.Feature wangziqi06/724-office on Homepage & Alternatives ($19)
WEEKLY BREAKOUT DIGEST

Top 10 Breakout Open-Source AI Repos, Every Thursday

Signal-only digest of fast-growing AI repos, SPDX license alerts, and architecture picks. Zero spam.

Zero spam · 1-click unsubscribe · Privacy Policy

Saved in your browser · Export Markdown RFC tables or jump into /vs compare