
Twin Me Up
io.github.GitDakky由 GitHub 账号 GitDakky 发布v0.2.1更新于 Oct 27, 2026
A personal work twin for every AI agent: your confirmed guidance and explicit grants, enforced.
概览
本地“工作分身”服务器:向 AI 代理传达你已确认的准则,判断某项操作是否获授权,并把审批请求留给你本人决定。
- 可以做什么
- 向代理提供某工作流下你已确认的准则、边界与当前授权,并可检索这些准则
- 判断某个具体操作是否被允许,为单个操作发起审批请求,并查询审批状态
- 记录决策、纠正意见与候选经验,并列出等待你审核的未确认经验
- 查看某工作流的成效记录,以及针对已记录决策值得追问的问题
- 适用场景
- 适合同时使用多个 AI 代理、却要反复向每个代理重复相同偏好、红线与审批习惯的人。也适合希望把已确认准则和明确、可过期的授权集中保存在本地,并让重要操作先征求你同意而非被默默执行的场景。
- 运行要求
- 需要 Python 3.11 或更高版本,以及 uv 或 pipx;macOS 与 Linux 已测试,Windows 未测试。先在你自己的终端运行 twinmeup init 设置姓名和口令,再用 uvx twin-me-up 启动服务器。数据默认存放在 ~/.twinmeup,可用 TWINMEUP_HOME 更改。无需账号或 API 密钥,只有可选的评测运行会调用模型。
安装
在 SourceWeft 中
- 打开 控制台中的 Twin Me Up,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
其他 MCP 客户端
参照 仓库 中的启动说明。
README
[Twin Me Up: a personal work twin for every AI agent]
[PyPI] [Python versions] [CI] [OpenSSF Scorecard] [Licence: Apache-2.0] [Model Context Protocol]
Teach it once. Every agent you use works the way you would, and asks before it acts.
Quick start · One-prompt install · How it works · Works with · The research · Safety
Why
You probably use more than one AI agent. Each one starts from zero. It does not know what you care about, which corners you never cut, or which decisions you always want to make yourself. So you repeat yourself, correct the same mistakes, and hope nothing consequential happens before you look.
Twin Me Up is a small, local, open-source service that gives every agent the same answers to three questions:
- How does this person want this kind of work done? Your confirmed guidance, criteria, exceptions and red lines, briefed to the agent at the start of work.
- Am I allowed to do this? Explicit grants, scoped to a workflow and a set of actions, with
optional expiry. Anything not granted returns
ask. Optional hooks enforce that outside the model. - What did I just learn? Your decisions and corrections become candidate lessons. Only you can confirm them.
It is not a chatbot of you, a personality clone or an autonomous replacement for you. The evidence does not support those claims, and the research explains why.
What makes it different
Compared with what you might use today
Quick start
You need Python 3.11 or later and uv (or pipx). macOS and Linux are tested. Windows should work but is untested.
twinmeup init asks for your name and a passphrase. The passphrase guards everything only you
should do: confirming lessons, granting authority, exporting and erasing. Agents are never
given it, and those commands refuse to run without it.
Only need the MCP server? After twinmeup init, any MCP client can start it with
uvx twin-me-up. Prefer the latest code? uv tool install git+https://github.com/GitDakky/twin-me-up.
Upgrading? Run uv tool upgrade twin-me-up (or pipx upgrade twin-me-up), then twinmeup doctor.
The FAQ explains what an upgrade changes for your twin.
Using Claude Desktop? After twinmeup init, download the .mcpb desktop extension from the
latest release and open it. One bundle
works on macOS, Windows and Linux.
Install with one prompt
Already working inside an agent? Paste this into it.
Copy-paste install prompt
The agent installs the package, connects itself and checks the result. The two steps that matter stay with you: choosing the passphrase, and approving any enforcement hooks. The prompt is also in docs/install-prompt.md.
How it works
The loop
- Orient. At the start of work the agent calls
twin_brief. It gets your confirmed guidance for the workflow, with boundaries and escalation rules always included, and a list of what it is authorised to do. - Check. Before anything consequential it calls
twin_authorise. The answer isallowonly when a live grant covers the action. Otherwise it isask: the agent prepares a draft, requests your approval and waits for your decision. - Learn. When you make a decision or correct the agent, it records the decision or the correction and proposes lessons from it.
- Ratify. You review the queue and confirm, revise or reject each lesson. Only confirmed lessons reach future briefs.
- Prove. You freeze held-out decisions and test the twin against two baselines before trusting it with more.
Tools your agents get
What only you can do
These commands need your passphrase, so agents cannot run them.
Approvals
An agent that needs an action it has not been granted asks for it, then waits:
twin_authorisesaysask. The agent prepares a draft and callstwin_request_approvalwith a one-line summary of what and why.- You see the request with
twinmeup approvals listand decide in your own terminal:twinmeup approvals approve <id>, ortwinmeup approvals decline <id> --note "why". - The agent checks
twin_approval_statusand acts only once it saysapproved.
An approval grants exactly the action requested, once and for an hour, unless you say otherwise
(--uses 3, --for 1d). Where a hook enforces, the tool call that acts spends it, so another
attempt needs another request. Every approval and decline is also recorded as a decision, so
your twin learns where your lines are. Requests survive restarts, and an agent that asks twice
gets its first request back.
Write tools also take an optional request_id. A retry with the same id, after a dropped
connection or a crash, returns the first result instead of recording twice.
Works with
twinmeup connect <system> prints the exact steps for each of these, using the paths on your
machine. All the guides are also in docs/integrations.md.
Checked in October 2026 against current releases. The host checks ran on 0.1.0; 0.2.0 adds
two tools to the same MCP server, and the Pi Durable check ran on 0.2.0. The framework checks are reproducible with
scripts/interop/frameworks.py. Got it working
somewhere marked "not yet run"? Tell us how.
No MCP? Export function-calling schemas and dispatch calls through the CLI:
Teach your twin
Start small: one workflow you repeat often, such as reviewing quotes or triaging requests.
1. Write down the red lines. These are carried into every brief and never ranked out.
2. Record real decisions. Agents do this with twin_record_decision as you work. You can
also add them yourself from JSON (see examples/); records you add
yourself ask for your passphrase, because they carry your name.
3. Review what it proposes. Nothing an agent proposes has authority until you say so.
4. Grant authority narrowly, and let it expire.
Lessons come in seven kinds: fact, criterion, exception, escalation, procedure,
boundary and preference. Each records whether it was a written rule, elicited from you,
inferred by a model or learned from a correction.
Measure it
Do not trust a twin because it sounds like you. Test it on decisions it has not seen.
Each case is answered three ways with the same model:
The twin has earned its keep only if it beats the rules arm. Reports show agreement with
your choices and how often the twin correctly escalated, with warnings when the sample is too
small to mean much. twin_track_record moves a workflow from observe to draft to
supervised as evidence accumulates. A stage is advice, not authority: more autonomy still
needs an explicit grant from you.
docs/pilot-guide.md describes a six-week pilot for one workflow.
Safety model
- Human-only operations need your passphrase. It is stored as a salted scrypt hash and read from your terminal, never from an agent's arguments.
- Agents cannot set themselves up as you. Setting up an unprotected twin has to be done from a real terminal.
- Reserved actions. Anything under
twin.can never be granted, so no grant can hand an agent control of the twin itself. - Approvals cover one action, once. Only you can approve or decline, with your passphrase. An approval grants exactly the action requested, for one use and an hour unless you say otherwise. Where a hook enforces, every tool call is a new attempt, so an id a host reuses cannot ride on a spent approval.
- Enforcement fails closed. If a hook cannot reach a decision, the tool call is blocked. The example action maps also stop agents running human-only commands, writing to the twin's store or editing the host configuration that registers the hook.
- Tamper-evident audit. Every write is appended to a hash chain.
twinmeup audit verifychecks it. - Signed, reproducible releases. Packages are built in GitHub Actions and published to PyPI with trusted publishing and attestations. No long-lived tokens exist.
- Honest limits. Twin Me Up runs as you. Any program running as your user can read your files. The passphrase stops agents using the twin's own commands to act as you, and hooks stop governed tool calls, but neither is a sandbox. For hard isolation, run agents as a different user or in a container.
See SECURITY.md for the threat model and how to report a vulnerability.
Where it can still fail
Twin Me Up narrows what agents may do. It does not make an agent safe on its own.
- Without a hook, the twin advises. Over MCP alone it tells an agent what it may do, and nothing stops an agent that ignores it. Enforcement needs a pre-action hook: Hermes, Claude Code, Cursor, pi or Pi Durable.
- Hooks govern only mapped calls. A tool or command your action map does not match is left to the host's own permissions.
- Without a hook, an approval is time-boxed, not single-use. The hook is what spends it, so over MCP alone an approved action stays allowed until it expires.
- A grant is not a sandbox. An allowed action runs with the agent's full permissions.
- Retries are safe only with a
request_id. A write retried without one can be recorded twice. - Your passphrase is the boundary. Anyone with it and your terminal can confirm lessons and approve requests. Agents never receive it, and a compromised machine is out of scope.
- Files are private, not encrypted. The store and settings are readable only by your user account. Encryption at rest is not built in yet.
- A prediction is not consent. The twin learns how you decide, and never treats a forecast of your answer as your approval.
Your data
- Everything lives in
~/.twinmeup(setTWINMEUP_HOMEto move it). Files are readable by you only. twinmeup export twin.bundle.jsonwrites a portable bundle. Held-out evaluation answers stay sealed unless you ask for them.twinmeup erase episode <id> --reason "..."removes a decision and every lesson, handoff and evaluation case derived from it, and redacts it from the audit log while keeping the chain valid.- The twin itself never calls a model and sends nothing anywhere. The only network calls are the evaluation responders you choose to configure.
The research
Before writing code we reviewed the primary research on digital twins of people, expertise transfer and AI assistance. The headline results:
That is why the twin never infers authority, why learning needs your confirmation, why it asks follow-up questions about omitted reasons, and why it is tested against baselines instead of trusted on feel. The full review, with every source and the regulatory lines it draws (including the EU AI Act's prohibition on workplace emotion inference), is in docs/research.md.
Command reference
All commands
Every command has --help. Global options: --home, --actor, --principal and
--passphrase-stdin (for scripts you run yourself).
FAQ
Does Twin Me Up need an LLM?
No. The twin is deterministic: storage, retrieval, authority and audit. Your agents bring the
model. Only eval run with a model responder calls one.
Is this a clone of me?
No. It holds the guidance you have confirmed and the decisions you have recorded, and it tells agents what they may do. It does not imitate your voice or personality, and it does not model emotions.
What if an agent ignores the twin?
Without hooks the twin is advisory: well-behaved agents follow the skill, but nothing forces them. With hooks (Hermes, Claude Code and pi) or the Pi Durable extension, governed tool calls are checked outside the model, and ungranted ones are blocked or wait for your approval.
Can I use it at work?
Yes, as your own tool. If an organisation deploys twins for its staff, it needs its own assessment of lawful basis, notices and retention, and clear rules on who owns and can revoke each twin. Consent is rarely a sound basis for workplace monitoring. See docs/research.md.
Do I type twinmeup or twin-me-up?
Either. twinmeup is the CLI. twin-me-up is the package's own name: given a command, such as
twin-me-up doctor, it does the same as twinmeup. With no command it starts the MCP server,
which is what agent hosts and uvx twin-me-up run.
How do I upgrade?
Run uv tool upgrade twin-me-up, or pipx upgrade twin-me-up. If uv says there is nothing to
upgrade just after a release, it is reading a cached index: run uv cache clean twin-me-up
and try again. A newer version moves your twin to its store format the first time it opens
it, and older versions cannot open it after that. Check with twinmeup version and
twinmeup doctor.
Can several people share a machine?
Give each person their own TWINMEUP_HOME. One twin belongs to one person.
Roadmap
- Enforcement hooks for more hosts as their hook interfaces allow
- Encryption at rest for the store
- Signed bundles for moving a twin between machines
- A small local review app for lessons and approvals
- Verified guides for VS Code, Goose and Windows
- The Pi Durable extension out of experimental, with a verified map for pi's coding tools
Follow along, or pick something up, in issues and discussions.
Contributing
Contributions are very welcome, from a typo fix to a new agent integration. Good first issues are a gentle start, and CONTRIBUTING.md explains the setup, the one-command check and how reviews work. Please report security issues privately, as described in SECURITY.md.
Credit and licence
Twin Me Up was created by GitDakky and is released under the Apache License 2.0. If you redistribute it or build on it, the licence requires you to keep the NOTICE file, which credits the original author. Using it in research? GitHub's "Cite this repository" button gives you a ready-made citation.
If Twin Me Up is useful to you, a star helps other people find it.
Built on the Model Context Protocol.
来源:README.md,提交 7d1113c
工具
0版本历史
3- v0.2.1最新Oct 15, 2026
- v0.2.0Oct 15, 2026
- v0.1.0Oct 14, 2026
评分
已满足适用检查项的 50%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分