Skip to content

Linger is An Open-Source Personal Agent That Runs Fully on Your PC. We aim to break Big Tech’s grip on AI by bringing powerful local AI to everyday computers through efficient model–harness co-design, so everyone can run their own.

6.6 KB
Raw Blame
/**
 * Executable examples, deliberately independent of the server request schemas.
 * They run with a configured Room Context; no example names its Room or Task.
 */
export const skillMarkdown =
  "---\nname: release-check\ndescription: Checks releases.\n---\nCheck releases.\n";
const profileModule = (overview: string) => ({ overview, points: [] });
export const personalProfileDocument = {
  name: "Owner",
  background: {
    overview: "",
    points: [],
    timeline: [
      {
        period: "2019–Present",
        organization: "Acme",
        place: "",
        role: "Engineer",
        description: "",
        details: [],
      },
    ],
  },
  communication_style: profileModule("Direct."),
  working_style: profileModule("Plans first."),
  preferences: profileModule("Prefers mornings."),
  writing_style: profileModule("Short sentences."),
};
export const rawEvidenceId = "raw_0123456789abcdef_0123456789abcdef";
export const taskDetail = {
  task_id: "task_one",
  name: "Review report",
  status: "idle",
  origin_room_id: "room_one",
  work_room_id: "room_work",
  created_at: "2026-10-27T00:00:00Z",
  status_since: "2026-10-27T00:10:00Z",
  recent_activity: [
    { at: "2026-10-27T00:10:00Z", kind: "idle", summary: "Turn ended" },
  ],
  pending_approvals: [],
  last_report: { at: "2026-10-27T00:10:00Z", body: "Report ready." },
  queued_message_count: 0,
};
export const commandExamples: Record<string, string[]> = {
  get_room_members: [],
  get_team_md: [],
  read_messages: [],
  search_messages: ["Contract"],
  send_message: ["--content", "Contract example"],
  send_message_card: [
    "--title",
    "Contract card",
    "--content",
    "Contract example",
  ],
  send_message_sequence: [
    "--content",
    "First",
    "--content",
    "Second",
    "--pause",
    "brief",
  ],
  send_direct_message: ["--content", "First", "--content", "Second"],
  send_emoji: ["message_one", "tada"],
  ask_user: [
    "--title",
    "Lunch order",
    "--questions",
    '[{"question":"Noodles or rice?","options":["Noodles","Rice"]}]',
  ],
  create_document: ["--title", "Report", "--content", "# Report\nEvidence"],
  list_documents: [],
  get_document: ["document_one", "-o", "download.txt"],
  apply_document_semantic_mutation: [
    "document_one",
    "--command",
    "set_title",
    "--title",
    "Updated report",
  ],
  replace_document: ["document_one", "download.html"],
  put_document_image: [
    "document_one",
    "playground/card.png",
    "--replace",
    "block_card",
  ],
  get_document_image: ["document_one", "block_card", "-o", "card-copy.png"],
  put_document_file: [
    "document_one",
    "playground/report.md",
    "--after",
    "block_card",
  ],
  get_document_comment_thread: ["thread_one"],
  reply_document_comment: [
    "thread_one",
    "--parent-comment-id",
    "comment_one",
    "--content",
    "Evidence",
  ],
  replace_document_comment_text: [
    "thread_one",
    "--content",
    "Updated evidence",
  ],
  list_available_agents: ["--limit", "10"],
  get_agent: ["--agent-id", "actor_agent"],
  add_room_member: ["--agent-id", "actor_agent"],
  hand_off_to_room: [
    "--inbox",
    "room:room_two",
    "--content",
    "Plan the offsite with the travel Agents and tell me the result.",
  ],
  create_agent: [
    "--name",
    "Reviewer",
    "--description",
    "Reviews evidence.",
    "--prompt",
    "Check evidence.",
  ],
  update_agent: ["--agent-id", "actor_agent", "--name", "Reviewer"],
  list_connected_apps: [],
  connect_app: ["notion"],
  request_browser_connection: [],
  web_search: ["rust edition", "--limit", "3", "--recency", "month"],
  web_open: ["https://example.com/page", "--backend", "tavily"],
  list_web_backends: ["--backend", "you"],
  connect_web_backend: ["tavily"],
  read_computer_permissions: [],
  request_computer_permission: ["--permissions", "screen_recording"],
  list_auto_reminders: [],
  set_auto_reminders: ["connection_one", "--off"],
  search_app_tools: [
    "read",
    "--connectionId",
    "connection_one",
    "--name",
    "notion",
    "--limit",
    "1",
  ],
  execute_app_tool: [
    "--connectionId",
    "connection_one",
    "--toolSlug",
    "NOTION_FETCH_PAGE",
    "--toolVersion",
    "20261009_00",
    "--arguments",
    '{"page_id":"page_one"}',
  ],
  search_knowledge: [
    "report",
    "--date-from",
    "2026-10-01",
    "--date-to",
    "2026-10-09",
    "--event-from",
    "2026-09-01",
    "--as-of",
    "2026-10-09",
    "--scope",
    "originals",
    "--page",
    "2",
  ],
  read_knowledge: [rawEvidenceId, "--section-id", "summary", "--offset", "0"],
  list_tracking_items: [],
  add_tracking_item: [
    "--item",
    '{"kind":"todo","content":"Send pricing","due_at":null,"due_text":"next week","source_ref":"message_one","source_date":"2026-10-23","source_timezone":"Asia/Shanghai","idempotency_key":"pricing"}',
  ],
  update_tracking_item: [
    "--item",
    '{"kind":"todo","content":"Send pricing","due_at":null,"due_text":"next week","source_ref":"message_one","source_date":"2026-10-23","source_timezone":"Asia/Shanghai","id":"ti_00000000000000000000000000000001","expected_revision":1,"status":"open"}',
  ],
  complete_tracking_item: [
    "--item",
    '{"id":"ti_00000000000000000000000000000001","expected_revision":1}',
  ],
  publish_skill: ["playground/skill/release-check"],
  create_room: [
    "--name",
    "Review room",
    "--member-id",
    "actor_agent",
    "--content",
    "Contract example",
  ],
  create_team_md: ["--content", "# Team\nReview evidence."],
  create_task: ["--name", "Review report", "--requirement", "Contract example"],
  check_task: ["--task-id", "task_one"],
  send_task: [
    "--task-id",
    "task_one",
    "--message",
    "Use the Q3 data.",
    "--steer",
  ],
  stop_task: ["--task-id", "task_one"],
  create_routine: [
    "--name",
    "Review",
    "--content",
    "Review the report",
    "--daily",
    "09:00",
    "--timezone",
    "Asia/Shanghai",
  ],
  list_routines: [],
  pause_routine: ["routine_one"],
  enable_routine: ["routine_one"],
  run_routine: ["routine_one"],
  delete_routine: ["routine_one"],
  get_personal_profile: [],
  start_personal_profile_build: [],
  write_personal_profile: [
    "--base-revision",
    "personal_profile_revision_one",
    "--content",
    JSON.stringify(personalProfileDocument),
  ],
  get_account_profile: [],
  update_account_profile: ["--name", "Alice", "--organization", "Acme"],
};

export const fileExamples = [
  {
    command: ["docs", "get"],
    args: ["docs", "get", "document_one", "-o", "raw.txt", "--raw"],
  },
  {
    command: ["docs", "replace"],
    args: ["docs", "replace", "document_one", "download.html"],
    downloadFirst: true,
  },
];