What it does
Foursday is an AI work twin for people who want an agent to work inside their real projects—not a chatbot that needs a new workflow for every question.
For a direct-message sender whose stable identity is verified in the current DingTalk organization, Foursday can:
- read an exact shared DingTalk link in an isolated intake, let Codex choose a primary work scope and related projects from evidence, and bind the next turn to the real workspace;
- read authorized pages from your personal gbrain;
- use Codex inside the real workspace;
- search, calculate, edit files, run tests, and recover from failures;
- reply naturally with read-back evidence;
- freeze stale outbound text when the owner intervenes, while preserving or stopping background work according to the owner's intent.
Push, merge, deployment, production writes, irreversible deletion, payment, contracts, HR decisions, and secret disclosure remain hard boundaries.
Architecture
flowchart LR
M["Personal DingTalk / messaging channels"] --> T["Foursday Gateway + session"]
T --> R["Foursday trust + work-scope router"]
G["Personal gbrain project graph"] --> C["Private context"]
R --> C
C --> X["Codex Agent Loop"]
X --> L["Semantic task contract + evidence manifest"]
L --> Q{"Immediate / foreground / durable background"}
Q -->|"durable"| D["Ack + persisted continuation"]
D --> X
X --> W["Real project workspace"]
W --> X
X --> V["Read-back evidence"]
V --> T
L --> U["Codex / Claude / optional desktop companion"]
T --> M
X --> B{"Sandbox + rules + review"}
B -->|"reversible"| W
B -->|"external / irreversible"| O["Blocked / owner-authorized exit"]
Foursday uses a pinned, minimally installed Hermes control plane internally; Codex is the only work-planning and reply-generating loop. Foursday ships:
- an isolated
foursday Profile;
- DWS personal DingTalk and work-scope router plugins, with Stream event wake-up, filesystem wake-up, bounded fallback, exact enterprise dual-identity binding, and private bounded retry for temporary directory failures;
- an isolated Codex home with an App Server policy proxy, workspace sandboxing, forbidden command rules, automatic approval review, and a Foursday MCP;
- scope-bound live DingTalk reads through that MCP: common sources may be registered, while exact links from verified current-enterprise direct-message senders become short-lived
provided_N sources outside the model. DWS, node IDs, URLs, contact/global search, writes, and paths outside the current primary workspace remain unavailable to the Codex shell;
- a project-work Skill;
- a private semantic task ledger: Codex derives the goal, deliverables, acceptance criteria and evidence state from full context, while Foursday enforces identity, revision and lifecycle boundaries; verified reversible work can finish automatically, while only the requester or owner can mark business acceptance;
- a durable long-task lane: Codex semantically declares the execution shape before substantive tools, runtime activity can promote an underestimated task, DWS sends at most one generation-fenced acknowledgement, and Hermes queues an internal continuation that resumes the same Codex Thread after the acknowledgement Turn; restart recovery replays only the current leased generation;
- small host-side bridges for credentials and personal-memory promotion.
- an owner-intervention fence that invalidates stale delivery first, then asks a no-tool Codex classification turn for one bounded control intent; the connector—not the model—applies the revisioned state change;
- one host-neutral Foursday Control MCP, with thin Codex and Claude plugins, a macOS desktop companion that combines the task worksite with folded system diagnostics, and a hidden read-only browser fallback for non-macOS or recovery use.