Repository navigation
v0.1.29 — Intent capture via set_intent MCP tool
What's new
Intent capture (Issue #27)
Agents can now record why they made changes before committing. Intent flows from the MCP tool call through to signed traces and PR review comments.
New set_intent MCP tool:
set_intent(
description: "Extract auth middleware to eliminate duplicate token validation",
intent_type: "refactor" // bugfix | feature | refactor | test | docs | security | performance | config | dependency
)
Written as a type=intent event to session.jsonl, picked up by prepare-ledger.py at commit time, and stored in the signed AgentTrace metadata.
In agentdiff report --context:
- Review Context block shows
[refactor] Extract auth middleware... - Trace details table gains a Type column
- JSON report (
--format json) includesintent_type
Bug fixes:
- Fix byte-boundary panic on non-ASCII descriptions ≥ 500 bytes
- Server-side
intent_typeenum validation in MCP handler - Prune consumed intent events from
session.jsonlafter finalize (prevents stale intent bleed) - Skip session-id matching when
session_id = "unknown"
Upgrade
curl -fsSL https://agentdiff.site/install | shOr via cargo:
cargo install agentdiff