Skip to content

feat(D28): agentshift registry command with drift detection#24

Merged
ogkranthi merged 2 commits into
mainfrom
agent/dev/D28
Apr 3, 2026
Merged

feat(D28): agentshift registry command with drift detection#24
ogkranthi merged 2 commits into
mainfrom
agent/dev/D28

Conversation

@ogkranthi
Copy link
Copy Markdown
Owner

Summary

  • Implements agentshift registry subcommand group with register/list/diff/export commands
  • Local registry stored at ~/.agentshift/registry.json with content-hash-based drift detection
  • Field-level recursive diff produces detailed drift reports showing added/removed/modified fields
  • Rich table output for list and diff commands

Test plan

  • Register a test agent and verify it appears in registry list
  • Modify the agent source and run registry diff to confirm drift is detected
  • Test registry export output is valid JSON with correct structure
  • Verify existing 887 tests still pass

🤖 Generated with Claude Code

@cloudflare-workers-and-pages
Copy link
Copy Markdown

cloudflare-workers-and-pages Bot commented Apr 1, 2026

Deploying agentshift with  Cloudflare Pages  Cloudflare Pages

Latest commit: da13743
Status: ✅  Deploy successful!
Preview URL: https://a490c1ab.agentshift.pages.dev
Branch Preview URL: https://agent-dev-d28.agentshift.pages.dev

View logs

Adds local agent registry stored at ~/.agentshift/registry.json:
- `agentshift registry register <path>` — snapshot agent IR for tracking
- `agentshift registry list` — show all registered agents with rich table
- `agentshift registry diff <name>` — detect drift between current and snapshot
- `agentshift registry export` — export full registry as JSON

Drift detection computes content hash of IR (excluding metadata) and provides
field-level change reports (added/removed/modified) with recursive comparison.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@ogkranthi ogkranthi merged commit 543c6f3 into main Apr 3, 2026
@ogkranthi ogkranthi deleted the agent/dev/D28 branch April 3, 2026 05:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant