Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
ADHD_HUB_AUTH_TOKENYesA long random token for authentication. Set a real token before binding to 0.0.0.0. Generate with python -c "import secrets; print(secrets.token_urlsafe(32))".

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

Use this hub to avoid losing half-finished work. One thread = one independently finishable outcome (not the whole project). On session start call resolve_project, then session_digest with the task query. Before potentially new work call check_overlap and compare against thread Goal. At checkpoints call upsert_progress with the known thread_id and compact goal/focus/next_steps/blocked_reason/resume_step only — omit ritual content. If upsert_progress returns needs_thread_selection, pass thread_id or force_new_thread. End of task: if completion.ready (or Goal truly done) mark_done that thread only; if work remains, upsert_progress then pause_thread — never mark_done. If mark_done is rejected for unfinished work, do not retry; checkpoint + pause. Thread payloads include advisory return_cue coaching for resume_step (missing/vague/concrete); it never blocks. Improve a weak cue once when you know the real first action — never invent files or commands. Never save secrets or full transcripts.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{
  "listChanged": false
}
prompts
{
  "listChanged": false
}
resources
{
  "subscribe": false,
  "listChanged": false
}
experimental
{}

Tools

Functions exposed to the LLM to take actions

NameDescription
check_overlapA

Find open threads that may overlap a planned task.

Use before starting potentially new work. The query should describe the intended task, and the result is read-only; compare likely matches before creating another thread.

search_workA

Search local Hub work without an external index.

Returns mixed hits (thread, project, wiki) with quiet snippets. Read-only; does not create or change threads.

suggest_duplicate_threadsC

Review overlap suggestions for an existing thread's finishable outcome.

Same-goal evidence is conservative; related work is not a merge candidate. Forge-backed work stays separate and forge-authoritative. No writes.

request_thread_mergeA

Queue a local duplicate-thread merge for explicit human approval.

This only creates a pending action, never executes a merge. A human must review both states and approve through authenticated REST pending-actions. The target state is kept, the source and all its history are retained. Forge-backed threads cannot be merged. Never approve on the human's behalf.

thread_merge_historyA

Read retained merged threads, progress notes and events with original IDs.

Limit applies per original thread. All source and resume information is retained; this does not fetch or change remote issues.

list_open_threadsA

List unfinished threads without changing them.

    Filter by project or energy when narrowing existing work. Use
    session_digest when you want a session-start summary with reminders and
    resume context instead of the raw thread list. Each thread carries
    advisory return_cue coaching for its resume_step.
    
list_projectsA

List registered Hub projects with open/done thread counts.

    Use for project discovery or navigation. This is read-only; use
    resolve_project or upsert_project when a project needs to be resolved or
    changed.
    
resolve_projectA

Resolve the current Hub project from a workspace path or slug.

    Use at session start before session_digest. With create_if_missing=true,
    this may create a local project registry entry; false prevents creation.
    An existing project_slug with workspace_path still registers that path.
    Use upsert_project for explicit metadata or forge configuration changes.
    
upsert_projectA

Create or update a project registry entry and its explicit metadata.

    Use when setting title, workspace path, repository, energy, parent, or forge
    targeting. parent_slug nests under any project (unlimited depth; cycles rejected).
    This persists local Hub project configuration; it does not by itself create,
    rename, or delete a remote forge repository.
    
rename_projectA

Queue a project rename for human confirmation in /ui.

    Use when the project identity should change. This request does not apply
    the rename immediately; list_pending_actions shows queued confirmations.
    
delete_projectA

Queue project deletion for human confirmation in /ui.

    Nothing is deleted immediately. The flags describe what the confirmed
    action should remove; use list_pending_actions to inspect the queued
    request before confirmation.
    
list_pending_actionsA

List project rename/delete requests waiting for /ui confirmation.

    This is read-only and is useful after rename_project or delete_project to
    show the operator exactly what remains pending.
    
upsert_threadA

Create a new finishable work thread or explicitly update one.

    One thread should represent one independently finishable outcome, not a
    whole project. Pass thread_id when updating a known thread. For routine
    checkpoints on active work, prefer upsert_progress so progress notes and
    PROGRESS.md stay in sync. Without thread_id, a generated ID may match and
    update an existing thread. Updates apply the status and energy defaults;
    supplied progress fields clear paused_at. Writes update progress/wiki
    files and may sync to a configured forge or refresh scan-line AI.
    
upsert_progressA

Save a checkpoint to active thread state and project PROGRESS.md.

    Prefer a known thread_id so the checkpoint cannot land on the wrong
    thread. Update structured Goal/Focus/Next/Blocked/Resume only on routine
    checkpoints — do not pass ritual content such as "Thread upserted from …".
    Reserve content for rare human-meaningful events (decision, blocker note,
    ship note). If selection is ambiguous the tool can request a thread_id;
    force_new_thread explicitly starts another outcome. Depending on
    create_thread_if_missing, a missing thread may be created as a side effect.
    When completion.ready is false, prefer this plus pause_thread over mark_done.
    Saving thread progress clears paused_at and may sync to a configured
    forge/wiki or refresh scan-line AI. The returned thread.return_cue is
    advisory coaching on resume_step (missing / vague / concrete); weak cues
    do not reject a save. Name the first action using only facts you know.
    
mark_doneA

Close a specific thread when its finishable outcome is complete.

    Prefer completion.ready == true (or clear Goal completion) before calling.
    Use pause_thread for unfinished work that will resume later, or
    dismiss_thread when intentionally abandoning it. note is an optional
    completion note. If this call is denied/rejected because work remains,
    do not retry unchanged — checkpoint with upsert_progress and pause_thread.
    
pause_threadA

Pause unfinished work and save the concrete next action to resume it.

    Use when the thread will continue later (including when completion.ready
    is false). This updates its pause/resume state; use mark_done for
    completed work or dismiss_thread for work being intentionally abandoned.
    Requires the exact thread_id and next_step. Weak wording never blocks the
    pause; the response's advisory return_cue says whether next_step names
    something specific to open, run or check first.
    
dismiss_threadA

Soft-close a thread that should stop without being marked complete.

    Use for abandoned, superseded, or no-longer-relevant work. Use mark_done
    when the intended outcome was completed, or pause_thread when it will be
    resumed later. Prefer confirm_thread_relevant / snooze_thread_triage for
    a calm stale-work check — never auto-dismiss from those tools.
    
confirm_thread_relevantA

Confirm a stale open thread is still relevant (Wave 7 soft triage).

    Quiets the “still relevant?” prompt via reminder cooldown. Does not
    change status and never dismisses. Use snooze_thread_triage to ask again
    later, or dismiss_thread only when the human intentionally abandons it.
    
snooze_thread_triageA

Snooze stale-thread triage prompts for a few days (default 7).

    Soft only — thread stays open. Never auto-dismisses. Use
    confirm_thread_relevant when the outcome is still wanted now.
    
list_remindersA

List persisted Hub reminders without changing them.

    Prefer due_only=true at session start to surface only reminders that need
    attention now. Set include_handled=true only when historical handled
    reminders are relevant.
    
get_overviewA

Return a compact, read-only Hub overview for agents.

    Includes counts, next-up work, and due reminders. Use session_digest when
    you also need project-specific resume context or the progress wiki snippet.
    next_up and triage_candidates carry advisory return_cue coaching.
    clock_off reports the global opt-in schedule boundary and advisory guidance:
    finish a small safe step, checkpoint with upsert_progress and pause_thread
    instead of starting substantial new work. The user can override temporarily.
    
register_workspaceA

Register a local folder as a Hub project in one operation.

    Side effect: this persists the workspace/project mapping and, when
    create_open_thread=true, also creates a default open thread. Use
    resolve_project when you only need to resolve an already-known workspace
    or want optional lookup-with-create behavior.
    
report_guidance_healthA

Record versions of Hub guidance a local client actually verified.

Call only after inspecting managed markers or running a local doctor/setup check. The Hub cannot inspect the client's checkout; it replaces the project's last verification record and timestamp with the supplied versions. Null versions mean unavailable, not verified current. Project resolution may create a local registry entry; no guidance files are edited.

set_reminderA

Create and persist a Hub reminder.

    kind selects once, session, daily, or random scheduling. A once reminder
    requires due_at_iso to become due; future times delay any kind. Use an
    ISO datetime with a UTC offset. Each call creates a separate reminder.
    Use list_reminders to read existing reminders without creating one.
    
suggest_next_upA

Calm cross-project Next-up pick (Wave 7 continuity intelligence).

    Soft ranking only — prefers quiet/stale open work with a resume cue,
    optional energy match, and optional focus_project_slug to honour focus
    mode / drift (stay near the chosen project). Never starts or dismisses
    work. Prefer this when focus is off and the human asks “what now?”.
    
session_digestA

Build the session-start resume digest for the current work context.

    Use after resolve_project. It combines relevant stale/open threads, due
    reminders, and the progress wiki snippet; query narrows overlap relevance
    and energy can filter work to the operator's current capacity. Each item
    carries completion readiness and advisory return_cue coaching for its
    resume_step (deterministic, local, never blocking). This is a mutating
    session action: it refreshes nudged threads' reminder cooldowns, marks
    surfaced non-session reminders fired, and builds a missing wiki index.
    Random reminders are sampled, so repeat calls may produce different results.

    clock_off is the global opt-in advisory boundary. During winding_down or
    clocked_off, avoid substantial new work, finish only a small safe step,
    checkpoint with upsert_progress and pause_thread with a concrete resume
    step. Respect explicit temporary overrides; no forced shutdown or strict
    Continuity Guard is required. Disabled Clock-Off adds no work restrictions.

    Includes a `guidance` object (expected versions + last local verification
    status). The Hub cannot inspect the client's checkout — run
    `adhd-hub doctor --project` locally (or call `report_guidance_health`
    after a local check) so this field becomes meaningful.
    
push_openclaw_memoryA

Best-effort push of a short Hub digest into configured OpenClaw memory.

    This has an external side effect and depends on the operator's OpenClaw
    integration being configured. It sends a compact Hub-generated digest,
    not raw chats; project_slug narrows it and note adds short context.
    

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

TDQS

A3.5/5.0

Scored across 27 tools

Disambiguation3/5

Several clusters overlap: suggest_duplicate_threads / check_overlap / search_work all answer 'is this already being worked on', and get_overview / session_digest / suggest_next_up / list_open_threads all answer 'what should I do next'. Likewise resolve_project (with create_if_missing), upsert_project, and register_workspace are three different ways to end up with a project registry entry. The descriptions do heavy cross-referencing to steer selection, which keeps this from being worse, but the agent still has to read carefully to pick correctly.

Naming Consistency4/5

Nearly everything follows a snake_case verb_noun pattern (list_open_threads, upsert_progress, mark_done, pause_thread, set_reminder, report_guidance_health). Two outliers — thread_merge_history and session_digest — drop the verb prefix and are named as nouns, but they remain readable and unambiguous.

Tool Count3/5

At 27 tools this sits above the comfortable 3-15 band and each tool requires real reading to use correctly. The breadth is justified by several distinct sub-domains (threads, projects, reminders, triage, session digest, guidance, external integration), but consolidation of the overlap/search surfaces would materially shrink the set.

Completeness3/5

Thread lifecycle is genuinely complete (create, progress, done, pause, dismiss, triage confirm/snooze, merge request/history), and projects have list/resolve/upsert/rename/delete/register. However reminders only have set_reminder and list_reminders — there is no update, cancel/delete, or explicit mark-handled operation despite include_handled implying handled state. There is also no way to cancel a queued pending action, only list it.

Maintenance

ActivityActive
ResponsivenessLimited data