Commands for managed sessions and automation
This optional reference is for agents, scripts, and integrations using Logonomic's session commands. You can use the desktop without these commands; start with Sessions and coordination for finding, resuming, and continuing work.
Commands run with the originating session's authority and the selected launcher's capabilities. Configure those launchers through Launchers, accounts, and add-ons. For the standalone Git-log viewer, see Git, files, and diffs.
Contents
- Use the command environment provided to the session
- Command overview
- List and message other sessions
- Run an implementation task
- Maintain the session's title and summary
- Report worktrees used by a session
- Attribute Git commits to a conversation
- Ask Logonomic to display changes
- Read editor source and manage bookmarks
- Session Notes
- Structured delegation tools
- Advanced coordination tools
- Application-level repository control
- Common command failures
Use the command environment provided to the session
Run the executable supplied in LOGONOMIC_VNMCTL_PATH from the managed
session's environment. In PowerShell:
& $env:LOGONOMIC_VNMCTL_PATH help
& $env:LOGONOMIC_VNMCTL_PATH sessions
In a POSIX shell:
"$LOGONOMIC_VNMCTL_PATH" help
"$LOGONOMIC_VNMCTL_PATH" sessions
Examples abbreviate the executable as vnmctl; substitute the appropriate
invocation above. Running it from an unrelated shell does not connect that
shell to an existing session.
The commands read VNM_CONTROL_ENDPOINT, VNM_CONTROL_TOKEN, and
LOGONOMIC_SESSION_CAPABILITY automatically. Keep these credentials out
of prompts, screenshots, reports, and repository files. They expire with the
originating session. Structured agents may instead receive provider-exposed
MCP tools; use the interface supplied to that agent.
Text input and output
Piped prompts, summaries, and messages must be UTF-8. PowerShell 7 handles this
directly. In Windows PowerShell 5.1, use --text for short messages or set
the pipeline encoding before sending Unicode text:
$OutputEncoding = [System.Text.UTF8Encoding]::new($false)
Commands reading stdin wait until the input ends. Supply a pipeline or file. A successful submission does not establish task completion; check the result as described below and retain the task ID and diagnostic if it fails.
Command overview
| Command | Use |
|---|---|
help | Discover the commands available at the connected local endpoint. |
sessions [--summaries] [--query TEXT] [--repository PATH] [--phase PHASE] | Find other live managed sessions this session can message, optionally including their saved summaries. |
message send SESSION_ID [--thread THREAD_ID] [--text TEXT] [--informational | --wake REASON] | Store a passive peer message, an informational notice, or an explicit directed wake. Without --text, read its body from stdin. |
message inbox [--all] [--limit N] | Read received messages and mark returned unread messages read. |
message inbox --pending | Read retained direct messages awaiting this recipient's explicit acknowledgement, including already-read messages. Returned unread messages become read. |
message acknowledge MESSAGE_ID | Explicitly acknowledge receipt as the recipient. Repeating it retains the original receipt time. |
message status MESSAGE_ID | Inspect each original recipient's pending, acknowledged, or ended state. |
message wait MESSAGE_ID --timeout-ms N | Wait within the bounded message-status deadline for acknowledgements; timeout or ended recipients are not success. |
message thread THREAD_ID [--limit N] | Read the newest messages in a conversation thread. |
delegate targets [--purpose implementation|review] | List eligible saved targets for the selected purpose; implementation is the default. |
delegate run --title TITLE [--target TARGET_ID] [--purpose implementation|review] [--model MODEL] [--reasoning-effort EFFORT] | Submit a concise task title and the UTF-8 prompt from stdin, then wait for the complete result. |
delegate status TASK_ID | Read the caller's task state. |
delegate result TASK_ID | Retrieve the caller's complete retained result. |
delegate cancel TASK_ID | Request cancellation of the caller's task. |
set-title TITLE | Suggest a title for this root session. |
set-summary [--title TITLE] | Record a working-state summary from stdin. |
set-summary --unchanged [--title TITLE] | Confirm the stored summary is still accurate. |
report-worktree [--done] PATH | Record work in a Git worktree, or report finishing there. |
provenance query | Read this session's commit-attribution availability and acknowledged trailer. |
provenance bind --args-stdin | Bind the known provider root-session ID from JSON input. |
provenance verify --ref COMMIT | Verify one resulting Git commit's session attribution. |
provenance verify --range BASE TIP | Verify an explicit range of at most 256 resulting commits. |
provenance resume --ref COMMIT | Ask Logonomic to resume the conversation attributed to a commit. |
call logonomic.diff show_changed_files -- PATH... | Present current changes for paths relative to the command's current directory, or absolute paths inside the session's checkout. |
call logonomic.diff show --manifest-stdin | Present a supplied diff collection from a JSON manifest. |
call vnm.text_document ACTION --args-stdin | List open documents, read live source, and manage editor bookmarks using JSON input. |
notes ACTION --args-stdin | Create, list, read, write, edit, or rename Session Notes using JSON input. |
List and message other sessions
Find a recipient
& $env:LOGONOMIC_VNMCTL_PATH sessions
The JSON response identifies self and other live sessions. Choose the
recipient's returned session ID, checking its identifying details. A provider
conversation ID is a different identifier. Sessions can message across runs,
but cannot message themselves.
Add --summaries to read the saved working-state summaries while finding a
recipient:
& $env:LOGONOMIC_VNMCTL_PATH sessions --summaries
& $env:LOGONOMIC_VNMCTL_PATH sessions --summaries --query 'startup failure' --repository 'logonomic' --phase 'working'
Each entry then includes summary, either an object with text,
updated_at_ms, and reviewed_at_ms, or null when no summary is available.
The timestamps are Unix milliseconds: updated is when the text changed;
reviewed is when the agent last confirmed it. These are saved agent reports,
so check their age before relying on them. Listing summaries does not request
a refresh, send a message, mark messages read, or wake another session.
Plain sessions keeps the compact directory without the summary field.
The filters work independently of --summaries and combine with AND:
| Option | Match | Maximum UTF-8 bytes |
|---|---|---|
--query TEXT | Case-insensitive literal substring of the title or saved summary text. | 4,096 |
--repository PATH | Case-insensitive literal substring of the advertised launch repository path. | 16,384 |
--phase PHASE | Case-insensitive exact phase, such as working. | 64 |
Leading and trailing whitespace is removed from each filter; an empty filter has no effect. Each option may appear once, in any order. A missing summary can still match a title query, and repository and phase filters do not require a summary.
The command reads all matching directory pages with the same options. An answer exceeding 256 KiB fails rather than returning an incomplete directory; use filters to narrow the results.
Send a message or reply
& $env:LOGONOMIC_VNMCTL_PATH message send SESSION_ID --text 'The focused check passed. Please read the updated result before changing the same file.'
For multiline text, pipe a UTF-8 body:
@'
I found the cause of the startup failure.
The pending change affects the launcher settings; please leave those settings unchanged until I send the result.
'@ | & $env:LOGONOMIC_VNMCTL_PATH message send SESSION_ID
Add the returned thread ID to continue a conversation:
& $env:LOGONOMIC_VNMCTL_PATH message send SESSION_ID --thread THREAD_ID --text 'Understood. My changes are confined to the documentation.'
The body must be nonempty and at most 16 KiB. Options may appear in any order, once each. The caller must be a participant in the thread.
Ordinary direct messages are passive: storing one does not start a model turn.
At supported provider checkpoints, their bodies can enter the recipient's
context without an inbox command. Use
--informational for an announcement that needs no receipt and must not wake
the recipient:
'The shared test service will restart after this check. Keep your results before reconnecting.' |
& $env:LOGONOMIC_VNMCTL_PATH message send SESSION_ID --informational
When a recipient needs a new turn to respond, explicitly request a directed wake with a concrete reason:
$wake_reason = 'A review decision is needed before the caller can proceed.'
'Please read the focused review and report whether the fix addresses the failure.' |
& $env:LOGONOMIC_VNMCTL_PATH message send SESSION_ID --wake $wake_reason
--wake requires a nonempty reason of at most 512 UTF-8 bytes. It cannot be
combined with --informational. A wake depends on the recipient's live provider
integration, readiness and native permissions; working or paused sessions may
not start another turn. A returned notification status does not establish that
the agent has responded. An uncertain notification outcome is not automatically
retried. Broadcasts cannot wake recipients. See
provider wake prerequisites
for the configuration required by each integration.
The controls in Settings → General settings… → Sessions apply to these commands. Disabling communication stops peer discovery, sends and inbox access. Disabling wakes still permits passive messages. See Messages between running sessions for delivery and retention behavior.
Success means the message was stored. A stopped recipient, unavailable store, or full inbox causes a refusal. It does not confirm that the agent read or acted on the message.
Session listings and send results report notification status separately in
session_wake. Its state can be pending, accepted, deferred,
unavailable, awaiting_session_activity, uncertain, or ready; reason
and notification_id may provide more detail. accepted means the provider
admitted the notification. Deferred or unavailable notification leaves the
message waiting for session activity. ready means inspection succeeded after
the inbox was drained. Reading a message does not prove that a notification
already accepted by the provider has left its native queue.
Read messages
& $env:LOGONOMIC_VNMCTL_PATH message inbox
& $env:LOGONOMIC_VNMCTL_PATH message inbox --all --limit 50
& $env:LOGONOMIC_VNMCTL_PATH message inbox --pending
& $env:LOGONOMIC_VNMCTL_PATH message thread THREAD_ID --limit 50
The default inbox reads unread messages oldest first. --all reads the
newest received messages, including previously read ones; thread reads return
the newest messages in that conversation. The default limit is 32 and
--limit accepts 1–100.
Returned incoming messages become read, so repeating an inbox command can produce a different answer. Successful delivery of whole message bodies into supported provider context also marks those bodies read. Messages too large for that context remain available for retrieval. Reading the desktop preview leaves unread state unchanged. Peer text remains subject to the user's instructions.
Reading or context delivery does not acknowledge receipt. Informational messages
require no acknowledgement and are excluded from inbox --pending. Messages
awaiting acknowledgement (Awaiting in the desktop) stay available through
inbox --pending until the recipient explicitly acknowledges them or the message
is no longer retained.
Acknowledge and inspect receipt
The recipient acknowledges a received message with its returned message ID:
& $env:LOGONOMIC_VNMCTL_PATH message acknowledge MESSAGE_ID
This records an explicit receipt action, not agreement or task completion. Repeating the command preserves its original persisted receipt time. The sender or a recipient can check each original recipient's receipt state, or wait for acknowledgement:
& $env:LOGONOMIC_VNMCTL_PATH message status MESSAGE_ID
& $env:LOGONOMIC_VNMCTL_PATH message wait MESSAGE_ID --timeout-ms 3000
--timeout-ms accepts 1–5,000 milliseconds. The deadline covers the status
checks and exchanges. Process cleanup can add up to two five-second windows,
so the whole command can take longer. Cancellation, timeout, an ended recipient
that did not acknowledge, or an expired or unknown message
(message_unavailable) never means receipt was acknowledged. A saved
acknowledgement survives the recipient ending while the message is retained.
If acknowledgement storage is unavailable, ordinary messages and read history
are unaffected.
These commands return JSON. A refusal exits nonzero and reports its reason on stderr. See message capacity for inbox and storage limits.
Run an implementation task
Agents use their host provider's native tools for ordinary subagent and worker requests, including requests with a model or reasoning preference. To use a saved Logonomic launcher, explicitly request Logonomic delegation or delegation to another account or provider. If native tools are unavailable, the agent reports that limitation; Logonomic delegation still needs your explicit request.
Discover and choose a target
& $env:LOGONOMIC_VNMCTL_PATH delegate targets
The catalog lists eligible saved launchers, with target_id,
display_name, provider_id, and provider_name. Match the
requested launcher/account and use its exact target ID. If the request matches
none or several, clarify the choice. The optional model_selection record
advertises support for per-task model and reasoning_effort overrides.
Omitting --target works only when exactly one eligible target exists.
A launcher can appear in the desktop but lack delegation support.
Submit a prompt
Run from the Git checkout where the task should work:
Set-Location 'C:\work\my-project'
@'
Implement the requested correction in the assigned file. Keep unrelated changes intact, run the focused check, and return a description of the change and its validation.
'@ | & $env:LOGONOMIC_VNMCTL_PATH delegate run --title 'Correct session command documentation' --target TARGET_ID
Replace TARGET_ID with the catalog value. The UTF-8 prompt is the only
stdin content and must contain 1–49,152 bytes. The command uses its current
directory, independently of the repository selected in the desktop.
--title is required. Supply a nonempty single line of at most 120 characters;
aim for 3–7 words summarizing the complete task's objective and subject. The
title identifies the delegated task in the desktop; the prompt carries its full
instructions.
delegate run defaults to a one-shot implementation task with role
Implementer. The saved launcher selects the account and permissions.
Optional --model MODEL and --reasoning-effort EFFORT select a model and effort
for this task only, leaving the saved launcher and account defaults unchanged.
Omitted settings retain their saved defaults. Values use the selected provider's
native names; effort names are not interchangeable across providers. Unsupported
overrides are refused rather than silently ignored. The command has no --account
or --role option. Both implementation and review tasks require
a non-bare Git checkout as the command's current directory.
For a read-only review, select a target from the review catalog and pass the same purpose when running the task:
& $env:LOGONOMIC_VNMCTL_PATH delegate targets --purpose review
'Review the README.md changes against HEAD and report findings.' |
& $env:LOGONOMIC_VNMCTL_PATH delegate run --title 'Review README changes' --target TARGET_ID --purpose review --model gpt-6-astra
This selects the read_only_review purpose with role Reviewer.
The example requests Astra through a saved Codex launcher. Choose a target whose
integration advertises that purpose and whose identified
account and native permissions permit it. Use the selected catalog entry's exact
target_id as TARGET_ID; see
review launcher setup.
After submission, the command writes Task ID: ... to stderr, waits,
retrieves the complete result, and writes its text to stdout. Exit code 0
means the task completed and its full result was retrieved. Failed, cancelled,
interrupted, unconfirmed, or incomplete outcomes exit nonzero.
Task runtime and cancellation
Implementation and review tasks run until a terminal outcome or explicit
cancellation. delegate run waits for that result. A caller that needs a
deadline should monitor the task and request cancellation when appropriate.
Startup, control requests and cancellation confirmation retain their own
technical deadlines; these do not limit task execution time. See
Delegation limits and runtime.
The separate message wait --timeout-ms option bounds a message-receipt wait.
Inspect, retrieve, or cancel
& $env:LOGONOMIC_VNMCTL_PATH delegate status TASK_ID
& $env:LOGONOMIC_VNMCTL_PATH delegate result TASK_ID
& $env:LOGONOMIC_VNMCTL_PATH delegate cancel TASK_ID
Status reports task state, result availability, and diagnostics. Result retrieves the complete retained text. Cancel requests cancellation; read its response before treating the task as stopped.
Only the original live caller can use these operations for its tasks. Retained results remain viewable in desktop history after restart.
Interrupting a waiting delegate run requests cancellation and waits a
bounded time for confirmation. If it cannot confirm the stop, keep the task ID
and inspect its state from the original caller. Cancellation does not undo
edits, commits, or external actions already performed.
Maintain the session's title and summary
Suggest a title
& $env:LOGONOMIC_VNMCTL_PATH set-title 'Explain session history behavior'
Suggest a concise 3–7-word title for the root session, without the repository name. A user-assigned title wins; an already assigned title is accepted as a no-op. Other refusals are reported.
Record or reconsider a summary
@'
The session is documenting how history, exact resume, and continuation work. The history and timeline distinction is established. The remaining work is to check the command examples against the provider integration and review the user-facing wording.
'@ | & $env:LOGONOMIC_VNMCTL_PATH set-summary
Describe the objective, progress, important decisions/constraints, and remaining work. The summary must be nonempty, at most 500 whitespace-separated words and 8 KiB of UTF-8. Include file names and errors only when they help resume work.
Confirm an existing summary is still accurate with:
& $env:LOGONOMIC_VNMCTL_PATH set-summary --unchanged
--unchanged updates its review time without reading stdin. It requires an
existing summary. Add --title TITLE to either form when the subject
changes; a GUI-assigned title still wins.
The root agent owns these reports. Native subagents should send findings to the root rather than overwrite the session's summary.
Report worktrees used by a session
& $env:LOGONOMIC_VNMCTL_PATH report-worktree 'C:\work\dependency'
& $env:LOGONOMIC_VNMCTL_PATH report-worktree --done 'C:\work\dependency'
Report a worktree before the first change outside the launch worktree, including
delegated changes. Report a newly created worktree after creating it. Reading
needs no report; --done marks work there finished.
The path may name the worktree or something inside it. Relative paths resolve against the command's current directory. Logonomic refuses an unidentifiable worktree or an unavailable reporting capability.
Reports appear in session details and continuation context. They neither create, remove, clean, nor lock worktrees, and do not establish file authorship.
Attribute Git commits to a conversation
Session attribution links a Git commit to its recorded provider conversation. When enabled, integrated agents bind the root conversation, obtain a trailer, add it to commits, and verify it. If attribution is unavailable, ordinary Git work can continue with attribution reported unverified.
Query and bind
& $env:LOGONOMIC_VNMCTL_PATH provenance query
A bound response includes the exact Logonomic-Session trailer. An unbound
response means the root conversation has not yet been acknowledged. Bind the
actual provider root-session ID with:
'{"provider_session_id":"ACTUAL_PROVIDER_ROOT_SESSION_ID"}' |
& $env:LOGONOMIC_VNMCTL_PATH provenance bind --args-stdin
Use the known interactive root ID, not an invented value or native subagent ID. Bind before delegation if child agents would make initial root identification ambiguous. If the provider rolls over to a new root conversation, bind that identity for later commits.
The acknowledged trailer uses opaque references:
Logonomic-Session: provider=... account=... worktree=... session=...
Use the complete returned string unchanged. Do not substitute the raw provider ID or assemble individual fields.
Add and verify the trailer
Git must support commit --trailer and interpret-trailers --parse.
Remove duplicate Logonomic-Session trailers from the proposed message,
then add the single acknowledged value, preserving other trailers and hooks:
git -c trailer.separators=: -c "trailer.Logonomic-Session.key=Logonomic-Session: " -c trailer.Logonomic-Session.where=end -c trailer.Logonomic-Session.ifexists=replace -c trailer.Logonomic-Session.ifmissing=add commit <normal commit arguments> --trailer "<exact acknowledged trailer>"
After a single-result commit:
& $env:LOGONOMIC_VNMCTL_PATH provenance verify --ref HEAD
After a rewrite, verify fixed base and tip revisions:
& $env:LOGONOMIC_VNMCTL_PATH provenance verify --range BASE_COMMIT TIP_COMMIT
Ranges allow at most 256 resulting commits. Larger rewrites remain unverified; sampling does not verify the range.
Amend, merge, squash, and cherry-pick workflows need an explicit attributed commit step. Rebase needs each resulting commit amended through that form; custom rewrites can remain untagged. The trailer identifies the session producing the result, not per-line authorship.
If verification fails, repair and reverify a local unpublished result only when safe and authorized. Otherwise preserve it and report attribution unverified. Keep ordinary hooks and authorization for rewriting published work.
Resume from a commit
& $env:LOGONOMIC_VNMCTL_PATH provenance resume --ref COMMIT
The commit needs a usable attribution in this Logonomic profile. A refusal explains problems such as missing provider conversations, worktrees, or account/profile availability. Imported trailer text alone does not create a local session or restore deleted transcripts.
Control automatic recording and Git trailers
Use Settings → General settings… → Sessions to control local recording and agent Git-trailer instructions separately. Both default on. Local recording can keep new exact-resume identities with Git trailers off; usable Git attribution also keeps identities when local recording is off. Turning both off stops new automatic records, leaving existing records and explicit resume available. See Session recording and Git attribution for storage failures and the effect on already-running agents.
Ask Logonomic to display changes
An agent that knows which files it changed can request the normal diff presentation. This example runs from the checkout root:
Set-Location 'C:\work\my-project'
& $env:LOGONOMIC_VNMCTL_PATH call logonomic.diff show_changed_files -- src/example.cpp README.md
Pass paths after --, quoting each path containing spaces. Relative paths
resolve against the command's current directory; absolute paths are also
accepted. Each path must lie inside the session's launch worktree, and the view
shows current changes only; to present a commit, a revision range or changes in
another worktree, supply their unified diffs with the manifest form below. A
directory selects changes beneath it, and the checkout root selects all current
changes.
The viewer includes concurrent edits. Each session has at most one such view;
while it is open, another request from the session replaces the selected paths.
The command does not stage, commit, or modify files.
A caller that has the unified diffs, such as an integration or an agent presenting a commit, a revision range or changes from another worktree, can provide a complete diff collection with:
vnmctl call logonomic.diff show --manifest-stdin
It reads a JSON manifest from stdin and opens it in the desktop diff viewer.
Use this form when the caller supplies explicit unified diffs; use
show_changed_files for changes already in the launch worktree. Both require a
live authorized session and an available desktop presenter.
Supply a diff manifest
The input is UTF-8 JSON without a byte-order mark. This complete small example supplies one file change:
{
"capability": "logonomic.session_diff",
"version": 1,
"title": "Proposed greeting change",
"tab_tip": "One supplied example change",
"entries": [
{
"display_path": "greeting.txt",
"summary": "Clarify the greeting",
"unified_diff": "--- a/greeting.txt\n+++ b/greeting.txt\n@@ -1 +1 @@\n-Hello\n+Hello, world\n"
}
]
}
capability, version, and entries are required. title and tab_tip are
optional strings. Each entry requires nonempty display_path and
unified_diff strings, and may include a summary string. Unknown fields,
incorrect types, unsupported versions, invalid UTF-8, and NUL characters are
rejected. display_path is a label for the supplied change, not an instruction
to read or overwrite that path. An empty entries array represents an empty
collection.
To submit a manifest saved as UTF-8 JSON in PowerShell 7:
Get-Content -LiteralPath '.\changes.json' -Raw |
& $env:LOGONOMIC_VNMCTL_PATH call logonomic.diff show --manifest-stdin
Each session has at most one view of supplied changes; while it is open, another collection from the session replaces its entries, title, and tooltip. A supplied manifest neither refreshes from disk nor applies its patch to the repository.
| Manifest limit | Maximum |
|---|---|
| Encoded JSON input | 192 MiB |
| Title | 512 UTF-8 bytes |
| Tab tooltip | 2,048 UTF-8 bytes |
| Entries | 100,000 |
| Unified diff for one entry | 32 MiB and 250,000 lines |
| Combined entry display paths, summaries, and diff text | 64 MiB |
Read editor source and manage bookmarks
Use the managed session's existing command environment while the Logonomic editor is available. Discover the action schemas and list open documents:
& $env:LOGONOMIC_VNMCTL_PATH help vnm.text_document --json
'{"limit":32}' |
& $env:LOGONOMIC_VNMCTL_PATH call vnm.text_document list_documents --args-stdin
All five actions use call vnm.text_document ACTION --args-stdin with a JSON
object on stdin. Listing and reading leave the documents unchanged.
| Action | JSON arguments and result |
|---|---|
list_documents | Optional limit and cursor. Returns open documents with opaque document_handle values, source availability, and current content tokens. |
read_source | document_handle; optional decimal-string byte_offset, integer max_bytes (4–4,096), and expected_content_token. Reads live UTF-8 source, including unsaved edits. A nonzero offset requires the token. |
list_bookmarks | Optional limit, cursor, and either document_handle or identity. Lists live bookmarks with bounded source excerpts and closed last-known bookmarks. |
add_bookmark | One-based line plus either a live document_handle and expected_content_token, an absolute closed-file path, or a known closed identity. |
remove_bookmark | The same target forms as add; a closed target also requires its returned decimal-string expected_annotation_revision. |
Use handles, tokens, identities, and cursors exactly as returned. A content
token contains decimal-string binding_revision and content_revision.
Handles expire when the document closes. Pages contain at most 64 rows;
source reads contain at most 4,096 UTF-8 bytes, and the complete response is
bounded to 32 KiB. Follow returned continuation information even when a
bookmark page has no rows. Source offsets count bytes and must fall on UTF-8
character boundaries.
To prepare a bookmark for a closed file without opening a tab:
'{"path":"C:/work/project/src/main.cpp","line":42}' |
& $env:LOGONOMIC_VNMCTL_PATH call vnm.text_document add_bookmark --args-stdin
Closed bookmarks contain last-known line numbers; this operation does not read
the file body. Known Notes use their returned note: identity. Live bookmark
changes operate on the editor's current source and do not save it. These
actions do not open, focus, or reveal tabs. If the source, bookmark revision,
or live/closed state changed, refetch before retrying. After a timeout or
connection loss, inspect the current bookmarks before assuming a mutation did
or did not take effect. Structured delegated agents continue using their
supplied tools; do not copy the managed terminal's credentials into a task.
Session Notes
Use the executable in LOGONOMIC_VNMCTL_PATH and its existing session
environment. The notes command supplies the calling session's authority.
Create and list use the calling conversation; other actions address the stable
note_id returned by create or list. Titles are display metadata and may be
duplicated. See Session Notes for
their desktop presentation.
Inspect each action's argument_schema in JSON help; plain help omits these
schemas. Send one UTF-8 JSON object on stdin for each action:
& $env:LOGONOMIC_VNMCTL_PATH help logonomic.notes --json
'{}' | & $env:LOGONOMIC_VNMCTL_PATH notes create --args-stdin
'{"limit":32}' | & $env:LOGONOMIC_VNMCTL_PATH notes list --args-stdin
Creation accepts exactly {}, with no supplied title, body, or file path. It
produces an empty Note named from the conversation's current canonical title,
with Note N used when no usable name is available. A subsequent conversation
rename does not rename the Note. Its association follows the same provider
conversation when that conversation resumes in another terminal. Use rename
to change the Note's title and write or edit to populate its body. Renaming
preserves its ID, body path, bookmarks, and open views.
| Action | JSON input | Successful result |
|---|---|---|
create | {} | note_id, applied:true, metadata_persisted:true. |
list | Optional limit (1–64, default 32) and after_id. | notes containing note_id and title, complete, and next_after_id. Follow the latter until complete. |
read | note_id; optional decimal-string byte_offset and integer max_bytes (4–4,096). Continuations include the returned document_handle and expected_content_token. | Exact live source, document_handle, content_token, byte_length, byte_offset, next_byte_offset, and complete. |
write | note_id, document_handle, expected_content_token, and source. | Application result, updated token, and persistence state. Replaces the whole body. |
edit | The write arguments plus decimal-string byte_offset and delete_bytes. | The same result. Replaces one range; delete_bytes:"0" inserts. |
rename | note_id and title; an empty or whitespace-only title keeps the previous name. | note_id, applied:true, metadata_persisted:true. |
Read a Note, including one just created, before changing its body:
'{"note_id":"RETURNED_NOTE_ID"}' |
& $env:LOGONOMIC_VNMCTL_PATH notes read --args-stdin
The first read can open a closed Note as a managed background document without
activating it. An already open Note uses that same document, including unsaved
user edits. Reads contain at most 4,096 UTF-8 bytes. To continue, pass the
returned next_byte_offset as byte_offset, along with document_handle and
content_token under the input key expected_content_token. Stop and reread
if a page reports stale. Offsets and deletion lengths count UTF-8 bytes and
must end on character boundaries. byte_length gives the complete live byte
length for that token.
For example, after substituting the exact values returned by read:
{
"note_id": "RETURNED_NOTE_ID",
"document_handle": "RETURNED_DOCUMENT_HANDLE",
"expected_content_token": {
"binding_revision": "RETURNED_BINDING_REVISION",
"content_revision": "RETURNED_CONTENT_REVISION"
},
"byte_offset": "0",
"delete_bytes": "0",
"source": "A new first line\n"
}
Pipe this object to notes edit --args-stdin. Each write/edit accepts at most
4,096 replacement UTF-8 bytes and enters the native editor as one undo action.
For a longer body, make bounded edits using each successful edit's new token.
The command does not split or retry an operation automatically. A source change
or final close between read and write makes the old address/token stale and
refuses the edit. Read-only documents, pending saves, and close/exit admission
retain their usual guards.
applied:true confirms the edit entered the managed document; it does not
confirm that the backing file was written. persistence is dirty while the
working text differs from its baseline, pending during an admitted save, or
clean when it matches the baseline. Normal Notes autosave and save/conflict
handling own persistence. A clean result describes the editor baseline; it
does not acknowledge a new disk write. Update a managed Note through these
commands rather than writing its backing file directly.
The request object and complete reply are each bounded to 32 KiB. If the main
editor is unavailable, Notes commands report unavailable. A failed command
exits nonzero and emits a JSON error. An outcome:"unknown" result means the
operation may already have taken effect. After a timeout, disconnect, or
unknown outcome, list or reread the Note before deciding what to do next;
do not blindly repeat a create or append. A stale refusal requires a fresh
read and a decision based on the new content.
Structured delegation tools
Provider-exposed delegation tools let an integration submit tasks and read their results asynchronously:
| Tool | Inputs | Meaning |
|---|---|---|
targets | None | Read saved targets and advertised purposes/modes. |
submit | target_id, purpose, execution_mode, working_directory, role, title, prompt; optional model, reasoning_effort, idempotency_key | Submit one task and return its identity/state. |
status | task_id | Read a task owned by this caller. |
result | task_id; optional offset_bytes, limit_bytes | Read a bounded UTF-8 result page. |
cancel | task_id | Request cancellation of a caller-owned task. |
For submit, purpose is implementation or read_only_review as actually
offered by the chosen target, and the supported submitted mode is
structured_one_shot. working_directory is an absolute existing directory
inside a non-bare Git checkout. role is a nonempty description up to 64
characters; it does not alter permissions. The required title is a nonempty
single line of at most 120 characters, with 3–7 words recommended to summarize
the complete task. The target and optional idempotency key are each bounded to
256 characters, and the prompt to 48 KiB UTF-8.
Optional model and reasoning_effort use provider-native names bounded to
256 and 64 UTF-8 bytes respectively. They apply only to this task and do not
change the selected launcher or account. Check the target's model_selection
record for support; an unsupported request is refused.
Execution continues until a terminal outcome or explicit cancellation; see
Delegation limits and runtime.
An idempotency key identifies a submission within the caller's lifetime. Repeating that request can return the existing task; reusing its key for different work, model, or reasoning effort produces a conflict. It does not rerun completed work.
Result pages use zero-based UTF-8 byte offsets, not character indexes.
Offsets must start on a code-point boundary, and a page is at most 8 KiB.
Follow the returned next offset until page_complete is true. An empty page
with an unavailable result is not a completed empty answer. The high-level
delegate result command handles paging for shell callers.
Read terminal, result_available, and any diagnostics with state. A
persistence_pending response means the final outcome has not yet been fully
recorded; callers must not declare a durable completion from an intermediate
answer. The nesting, purpose, and result limits in the sessions chapter apply to
these tools too.
Advanced coordination tools
These optional provider tools report intended work and exchange coordination
messages. For shell-based peer messaging, use sessions and message above.
| Tool | Principal inputs | Effect |
|---|---|---|
status | Optional limit, cursor | Read sessions in the caller's run and current coordination information. |
claim | epoch, operation_sequence, target_directory | Declare one advisory WorkIntent over an existing Git checkout directory. |
list | Optional target_directory | Read the caller's declarations and relevant path relationships. |
release | epoch, operation_sequence, intent_id | Release a declaration owned by the caller. |
send | epoch, operation_sequence, recipient_session_ids, kind, topic, body; optional reply_to, informational, wake_reason | Store a bounded message for addressed live sessions. |
receive | epoch, operation_sequence; optional sender, topic, kind, and limit filters | Fetch unread messages matching those filters and mark returned copies read. |
notice_status | None | Read retained coordination-notice availability. |
fetch_notices | epoch, operation_sequence; optional limit | Fetch and consume retained notices. |
Provider-exposed tool schemas supply the exact field names. In receive, the
sender filter is sender_session_id; topic/kind filters are exact matches.
The caller's private session credential is supplied by Logonomic, not a model
argument. A status response supplies mailbox.epoch and
mailbox.next_sequence. Use that epoch and the canonical unsigned-decimal
string sequence as operation_sequence for the next mutation, then follow the
operation's returned state. Repeating an operation for replay requires its same
identity and input; a different operation cannot reuse its sequence. If the
sequence or epoch is stale, call status again and use its returned values for
the next operation.
Status pages default to 32 entries and allow up to 100. Follow their opaque
cursor as returned for the same caller; a stale cursor requires a fresh listing.
Receive also defaults to 32 and allows 1–100 messages. A send has 1–16
recipients, a topic up to 256 UTF-8 bytes, and a body up to 16 KiB. Kinds are
note, question, reply, and signal; a signal does not itself acknowledge
receipt. A reply uses an actual message identity when the reply relationship is
required. Notice fetch defaults to 16 and allows 1–32.
Multi-recipient sends are informational: they never wake recipients and require
no acknowledgement. A single-recipient send can set informational: true for
the same behavior. Informational deliveries can be removed while unread.
A directed wake instead supplies a nonempty wake_reason of at most 512 UTF-8
bytes, names exactly one recipient and cannot be informational. Without a wake
reason, direct delivery is passive. The user's
communication settings and the recipient's provider capabilities govern these
operations just as they govern the shell messaging commands.
Claims are advisory and do not lock files or reserve worktrees. Releasing a claim changes coordination information only. Fetching notices consumes them; reading notice status leaves them available.
Application-level repository control
This section is for integrations already configured with Logonomic's local application endpoint and its token. That connection controls repository discovery and desktop selection. It is separate from the managed-session connection used above; a managed session's credentials do not provision it. Use the desktop repository controls if you do not have a configured application connection.
An integration with that connection can use:
| Command | JSON arguments / result |
|---|---|
state logonomic.repos status | Read roots, last completed discovery snapshot, selected repository, and refresh/generation state. |
call logonomic.repos add_root --args-stdin | {"path":"ABSOLUTE_DIRECTORY","depth":N}; depth is optional. |
call logonomic.repos set_root_depth --args-stdin | {"path":"CONFIGURED_ROOT","depth":N}. |
call logonomic.repos remove_root --args-stdin | {"path":"CONFIGURED_ROOT"}. |
call logonomic.repos refresh | Start a rescan of configured roots. |
call logonomic.repos select --args-stdin | {"path":"DISCOVERED_REPOSITORY"}. |
These commands manage local discovery and desktop selection; they do not clone or delete repositories. Refresh can return while scanning continues. Read status again to check for the new completed snapshot.
Discovery depth accepts 0–32, with 1 the default: the root itself is depth 0 and its direct children depth 1. Use the discovery chapter to choose appropriate roots and understand excluded or unavailable directories.
Application-control credentials are redacted from startup and diagnostic logs. The managed-session commands earlier in this chapter use their supplied environment automatically.
Common command failures
| Symptom | Interpretation and action |
|---|---|
| Required environment variable missing | The command is outside the managed session environment or the provider did not expose that capability. Return to the originating managed agent environment. |
| No eligible delegation target | Save a recognized launcher with the required capability; verify its command configuration, account identity and native permissions. Choose review targets from the review catalog. |
| More than one target matches | Use the exact catalog target ID corresponding to the intended launcher/account. |
| Provider discovery in progress | Let launcher recognition finish, then request the catalog again. |
| Working directory rejected | Use an existing non-bare Git checkout; verify the original worktree has not been removed or replaced. |
| Direct child already active | The structured caller must finish/cancel its existing direct child before starting another. |
| Maximum ancestry depth | Keep delegation within the supported four levels. |
| Task unavailable to this caller | Use the original live caller; knowing a task ID does not transfer ownership. |
| Result unavailable or incomplete | Check status and the provider diagnostic; do not treat it as successful empty output. |
| Message capacity exceeded | Have the recipient read its inbox, or wait for capacity to become available. |
| Peer communication or wakes disabled | Check Settings → General settings… → Sessions. Passive messages remain available when only wakes are disabled. |
| Attribution unavailable | Continue ordinary Git work and report attribution unverified; do not invent trailer fields. |
| Resume rejected | Read the exact status and check the recorded provider/account/worktree; do not silently start a different conversation. |
| Storage error or persistence pending | Resolve the reported data-directory problem before relying on a durable result/history update. |
For permissions, authentication, and provider-specific launch failures, use the launcher chapter. For ending or recovering terminals, use the recovery chapter.