Twin Me Up

v0.2.1
io.github.GitDakky/twin-me-up Checked 11 hours ago Published 1 month ago

A personal work twin for every AI agent: your confirmed guidance and explicit grants, enforced.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

twin_brief Get the operating brief

Call at the start of work in a workflow. Returns the principal's confirmed guidance, hard limits, your authority, stop conditions and how to report back. Embed and follow it.

ParameterTypeDescription
objective *stringWhat you are about to do, in one sentence.
workflow *stringWorkflow slug, for example quote-review.
actionsarrayActions you expect to need, for example email.send.
include_hypothesesbooleanAlso list unconfirmed proposals, clearly labelled.

twin_authorise Check authority for an action

Call before any consequential action (sending, paying, committing, writing to live systems). 'allow' means an active grant covers it. 'ask' means stop, prepare a draft and request approval with twin_request_approval.

ParameterTypeDescription
action *stringThe action you intend to take, for example email.send.
workflow *string
attempt_idFor enforcement hooks only: the id of the tool call about to run. It spends one use of an approval; repeating the same attempt_id is safe. Agents leave this unset.

twin_request_approval Ask the principal to approve an action

Call when twin_authorise says 'ask' and the work needs that action. Records one request the principal approves or declines in their own terminal. Do not act until twin_approval_status says approved; an approval covers one attempt unless they say more.

ParameterTypeDescription
action *stringThe one action you need approved, for example repo.push.
summary *stringWhat you will do and why, in a sentence or two. The principal decides on this.
workflow *string
detailsAnything that helps them decide: recipients, amounts, a diff summary.
request_idOptional idempotency key, for example your tool call id. A retry with the same request_id returns the first result instead of recording twice.
sourcesarray

twin_approval_status Check an approval request

Whether the principal has approved, declined or not yet decided a request, and whether the approval is still unused. Poll this while you wait; it changes nothing.

ParameterTypeDescription
approval_id *stringThe approval_id twin_request_approval returned.

twin_review_queue List proposals awaiting the principal

Unconfirmed lessons to present to the principal for confirmation, revision or rejection.

ParameterTypeDescription
workflow

twin_track_record Show how well the twin knows a workflow

Evidence and stage for a workflow: confirmed learning, corrections, evaluation results, grants and the recommended next step. It recommends; only the principal promotes.

ParameterTypeDescription
workflow *string

twin_next_questions Get follow-up questions for a decision

The most valuable unanswered questions about a recorded decision. Ask them, then amend.

ParameterTypeDescription
episode_id *string
limitinteger

twin_record_decision Record a decision the principal made

Capture a real decision: situation, options, choice, reasons for rejected options, cues, what would change it and when to escalate. Returns follow-up questions.

ParameterTypeDescription
situation *string
workflow *string
chosenThe option id the principal chose.
cuesarray
escalation_triggersarray
goal
missing_informationarray
optionsarray
outcome
rationale
rejectedobjectOption id to the principal's reason for rejecting it.
request_idOptional idempotency key, for example your tool call id. A retry with the same request_id returns the first result instead of recording twice.
reversal_conditionsarray
sourcesarray

twin_amend_decision Add answers to a recorded decision

Merge the principal's answers to follow-up questions into a recorded decision.

ParameterTypeDescription
changes *objectFields to merge into the recorded decision, using record_decision names.
episode_id *string
request_idOptional idempotency key, for example your tool call id. A retry with the same request_id returns the first result instead of recording twice.

twin_record_correction Record a correction from the principal

Call whenever the principal edits, overrides or rejects your work. Captures both versions and the reason as learning material.

ParameterTypeDescription
agent_proposal *stringWhat you proposed or did.
human_decision *stringWhat the principal chose instead.
situation *stringWhat the task was.
workflow *string
reasonThe principal's reason, if given.
request_idOptional idempotency key, for example your tool call id. A retry with the same request_id returns the first result instead of recording twice.
sourcesarray

twin_propose_lesson Propose new guidance

Propose a lesson for the principal to confirm. It is never authoritative until confirmed.

ParameterTypeDescription
kind *string
statement *stringOne clear, testable rule or fact.
workflow *string
conditionsarray
confidence
episode_idsarray
originstringelicited: the principal said it. inferred: your generalisation. correction: drawn from a correction.
request_idOptional idempotency key, for example your tool call id. A retry with the same request_id returns the first result instead of recording twice.
review_by