feat: optional JSON metadata on tasks, projects, and initiatives#27
Merged
feat: optional JSON metadata on tasks, projects, and initiatives#27
Conversation
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Entity metadata
Tasks, projects, and initiatives now support an optional free-form JSON
metadatafield. This lets you attach arbitrary structured information — environment config, tracking IDs, custom fields — to any entity without being limited to text-only tags.CLI usage:
Metadata works the same way on projects (
project create/update --metadata) and initiatives (initiative create/update --metadata).Output behavior:
Metadata is included in
--output json/--jsonoutput but is intentionally excluded from prompt and text formats, keeping those outputs clean for human and LLM consumption.Event template access:
Metadata is embedded as a nested JSON object in all event payloads (task.created, task.updated, task.next, project.created, etc.), so event templates can reference individual metadata fields:
This enables metadata-driven automation — for example, a
task.nexthandler that routes work based on{metadata.env}or{metadata.worktree}.✻ Clauded...