From agentops
Traces lineage of knowledge artifacts to session transcripts using CASS searches, grep metadata, and bash. Reports sources, promotions, orphans, and stale files.
npx claudepluginhub boshu2/agentops --plugin agentopsThis skill is limited to using the following tools:
Trace knowledge artifact lineage to sources.
Creates isolated Git worktrees for feature branches with prioritized directory selection, gitignore safety checks, auto project setup for Node/Python/Rust/Go, and baseline verification.
Executes implementation plans in current session by dispatching fresh subagents per independent task, with two-stage reviews: spec compliance then code quality.
Dispatches parallel agents to independently tackle 2+ tasks like separate test failures or subsystems without shared state or dependencies.
Trace knowledge artifact lineage to sources.
Given /provenance <artifact>:
Tool: Read
Parameters:
file_path: <artifact-path>
Look for provenance metadata:
# Check for source metadata in the file
grep -i "source\|session\|from\|extracted" <artifact-path>
# Search for related transcripts using ao
ao search "<artifact-name>" 2>/dev/null
Use CASS to find when this artifact was discussed:
# Extract artifact name for search
artifact_name=$(basename "<artifact-path>" .md)
# Search session transcripts
cass search "$artifact_name" --json --limit 5
Parse CASS results to find:
CASS JSON output fields:
{
"hits": [{
"title": "...",
"source_path": "/path/to/session.jsonl",
"created_at": 1766076237333,
"score": 18.5,
"agent": "claude_code"
}]
}
Transcript (source of truth)
↓
Forge extraction (candidate)
↓
Human review (promotion)
↓
Pattern recognition (tier-up)
↓
Skill creation (automation)
# Provenance: <artifact-name>
## Current State
- **Tier:** <0-3>
- **Created:** <date>
- **Citations:** <count>
## Source Chain
1. **Origin:** <transcript or session>
- Line/context: <where extracted>
- Extracted: <date>
2. **Promoted:** <tier change>
- Reason: <why promoted>
- Date: <when>
## Session References (from CASS)
| Date | Session | Agent | Score |
|------|---------|-------|-------|
| <date> | <session-id> | <agent> | <score> |
## Related Artifacts
- <related artifact 1>
- <related artifact 2>
Tell the user:
/provenance --orphans
Find artifacts without source tracking:
# Files without "Source:" or "Session:" metadata
for f in .agents/learnings/*.md; do
grep -L "Source\|Session" "$f" 2>/dev/null
done
/provenance --stale
Find artifacts where source may have changed:
# Artifacts older than their sources
find .agents/ -name "*.md" -mtime +30 2>/dev/null
User says: /provenance .agents/learnings/2026-01-15-auth-tokens.md
What happens:
cass search "auth-tokens" --json --limit 5Result: Full provenance chain from transcript to current tier, showing when artifact was created, discussed, and promoted.
User says: /provenance --orphans
What happens:
.agents/learnings/, .agents/patterns/ for files missing source metadataResult: Untracked knowledge identified, enabling retroactive lineage documentation or archival.
| Problem | Cause | Solution |
|---|---|---|
| No source metadata found | Artifact created before provenance tracking | Use CASS to find origin session retroactively; add Source field manually |
| CASS returns no results | Session not indexed or artifact name mismatch | Check session transcript exists; try broader search terms |
| Stale artifact check fails | find command not available or permission error | Use `ls -lt .agents/ |
| Lineage chain incomplete | Promotion not recorded in artifact metadata | Reconstruct from git history or session transcripts; document gaps |