Skip to content

v0.1.29 — Intent capture via set_intent MCP tool

Choose a tag to compare

@codeprakhar25 codeprakhar25 released this 22 May 07:49
· 4 commits to main since this release
43c734e

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) includes intent_type

Bug fixes:

  • Fix byte-boundary panic on non-ASCII descriptions ≥ 500 bytes
  • Server-side intent_type enum validation in MCP handler
  • Prune consumed intent events from session.jsonl after finalize (prevents stale intent bleed)
  • Skip session-id matching when session_id = "unknown"

Upgrade

curl -fsSL https://agentdiff.site/install | sh

Or via cargo:

cargo install agentdiff