Repository navigation
Closed
Description
Context
Agents touch every surface (UI, REST, MCP, CLI, worker, daemon) and have security- and cost-relevant behavior (delegated MCP grants, cost gate, capabilities). Operators and users need one coherent guide, and the existing references (MCP guide, CLI reference, settings catalog, execution safety) must mention the new pieces. ProPR's bundled docs are also served to MCP clients via search_docs/get_doc, so good docs directly improve chat-driven use.
Requirements
- New
docs/docs/features/agents.md(add todocs/sidebars.tsunder Core Workflow, after Goals):- What an Agent is (saved definition → isolated task run → free-form report), and what it is not (no new engine, no event watching in v1, no structured actions).
- Creating an agent: scope, prompt + files, previous reports, model, capabilities (with the enforcement table: Claude/Codex native; others best-effort for web; MCP only Claude/Codex), schedule (5-field cron, UTC, min 15 min, presets), autonomy modes.
- Triggers: Run now, schedule, and the trigger primitive over HTTP/MCP/CLI, with copy-paste examples:
curlwithIdempotency-Key, a GitHub Actions workflow step, a crontab line, an MCPtrigger_agent_runcall. - Reports and previous reports; report view; truncation.
- Acting step and autonomy (dry run / preview + approve / auto), what the acting agent can and cannot do (scopes
read/plan/execute, repositories only, no merge/deploy/settings, cannot trigger agents). - Cost control: the pause threshold, defer vs. skip rules, bounded deferrals, attended Run now warning, fail-open when Agent Tank has no data.
- Run states table and troubleshooting (skipped with reason,
GITHUB_AUTHORIZATION_REQUIRED,MCP_DISABLED, offboarded owner disables schedule).
- Update
docs/mcp.md(new "Agents" section) anddocs/mcp-coverage.md(tool rows). - Update
docs/docs/features/propr-cli.md(propr automationgroup, exit codes, JSON kinds). - Update
docs/docs/features/execution-safety.md(agent runs never commit/push; workspace without repository code whenrepository_readis off; delegated MCP grant lifetime and revocation;SYSTEM_TASK_SECRETnow also signs agent grant requests). - Update
docs/docs/operations/agent-tank.md(Agents cost gate consumes usage data). - Update
docs/docs/features/web-ui.md(Agents page). - Settings catalog (
packages/api/mcp/settingsCatalog.ts) entries for the usage-pause threshold (if added in issue 11) and env varsPROPR_INTERNAL_API_URL,PROPR_AGENT_MCP_URL; add them to.env.examplewith comments. CHANGELOG.mdentry.npm run buildindocs/passes; themcpObservableSurfacetest that checks documented tool names against the catalog passes.
Implementation Specification
- Examples must use the real routes/flags from issues 5, 13 and 14.
- State explicitly what is deferred: built-in event triggers/label watching and per-action-kind autonomy.
Acceptance Criteria
-
docsbuilds; new page appears in the sidebar. - Every new MCP tool appears in
docs/mcp-coverage.md. -
search_docsfor "agent schedule" returns the new page (bundled docs manifest regenerated). -
.env.exampledocuments the two new variables.
Created by ProPR AI Planner
Activity
propr-dev commentedon Oct 6, 2026
Suggested Implementation:
Implementation Approach
One feature page carries the user-facing story; existing references get short, linked additions instead of duplicated content. Because bundled docs are also an MCP knowledge source, the feature page uses concrete examples (exact routes, tool names, CLI flags) that a connected chat client can follow verbatim.
File:
docs/docs/features/agents.md(new file)Why this file: The canonical guide to Agents for users and operators.
GitHub Actions, for example to run a triage agent whenever an issue is labelled
bug:MCP:
trigger_agent_runwithdefinitionIdandidempotencyKey.Reports and the acting step
The report is shown on the run page as Markdown. ProPR never parses it.
Acting on it is a separate agent run that receives the report and may only use
ProPR tools (create tasks and TODOs, comment on pull requests) on the agent's
repositories. It cannot merge, deploy, change settings or start other agents.
Cost control
Scheduled, API, MCP and CLI runs are checked against your subscription
pause threshold using Agent Tank data before they start:
window resets (checked every minute, at most 6 deferrals, then skipped);
Run states
queued → running → report_ready → completed | awaiting_approval → acting → completed,plus
deferred,skipped,rejected,failed,cancelled. Every skip, deferraland failure records a sentence explaining why.
Not in v1
Built-in event triggers / label watching (use the trigger primitive) and
per-action-kind autonomy policies.
File:
docs/mcp.md/docs/mcp-coverage.mdIn
docs/mcp.mdadd an "## Agents" section after "Start a one-off task" with thetrigger_agent_runJSON example, the receipt lifecycle (completed when the run completes/rejects/skips), and the recursion rule.File:
docs/docs/features/execution-safety.mdFile:
packages/api/.env.exampleFile:
CHANGELOG.mdAlso add the CLI section to
docs/docs/features/propr-cli.md(commands, exit codes 0/1/2/3/4, JSONkinds), a short "Agents" paragraph todocs/docs/features/web-ui.md, and a "Used by Agents" note todocs/docs/operations/agent-tank.md. Regenerate the bundled docs manifest with the existing docs generator script sosearch_docsfinds the page.propr-dev commentedon Oct 7, 2026
🤖 AI processing has started for this issue using claude agent with claude-opus-5-5 model.
I'll analyze the problem and work on a solution. This may take a few minutes.
Processing Details:
claudeclaude-opus-5-52816/claude-opus-5-5-agents-v1-17-17-documenta-20261007-1623-sdx2800-epic-agents-v1-y7tissue-2816-20261007-1623-claude-opus-5-5-sdx🔍 Track Task Execution
I've written the Agents documentation for issue #2816: a new feature …
I've written the Agents documentation for issue #2816: a new feature …