Skip to main content

Module issue

Module issue 

Source
Expand description

Local issue management tool backed by the .oxicode/issues/ store. issue agent tool — agent-driven local issue management.

Implements [oxicode_agent::AgentTool] against the [FileIssueStore]. One tool with an action discriminator (matches the pattern used by the github tool, see oxicode-agent/src/tools/github.rs).

Actions: list, read, create, update, start, release, close, link_session. See AgentTool::parameters_schema for the exact JSON schema each action accepts.

Design notes:

  • The tool holds an Arc<FileIssueStore> so it can be cheaply cloned when the tool is registered in the live ToolRegistry (mirrors how McpTool/WasmTool hold their managers).
  • The “current session id” used for assignment / session-linking is taken from ToolContext.session_id. The agent loop fills this in from the active session.

Structs§

IssueTool
The issue tool. One registration, multiple actions.

Functions§

cas_retry
Run an issue store mutation under bounded compare-and-set retry.
format_issue_full
Render a full issue view (summary line + meta + body). Used by both the agent tool and the CLI.
format_issue_line
Render an issue as a single summary line (id, status, priority, lock, title, labels, assignee). Used by both the agent tool and the CLI.