trajectory-garden

Analyze JSONL agent trajectory logs to propose removal of redundant or high-cost turns.

30|12|Updated Jun 21, 2026
One-click install
npx skills add https://github.com/anthony-chaudhary/fak --skill trajectory-garden
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: trajectory-garden
Source: https://github.com/anthony-chaudhary/fak/tree/main/.claude/skills/trajectory-garden
Command: npx skills add https://github.com/anthony-chaudhary/fak --skill trajectory-garden

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill addresses the accumulation of redundant and low-quality agent trajectories that bloat memory stores, inflate retrieval costs, and degrade few-shot recall performance.

Core Features & Use Cases

  • Trajectory Scoring: Automatically ranks agent turns based on redundancy, cost, and denial rates using reference scorers.
  • Prune Proposal: Generates a concrete, sourced work-list of prune candidates for human approval, ensuring no data is deleted without oversight.
  • Extensible Framework: Provides a pluggable seam for developers to swap the reference simhash scorer with custom semantic embedding models.

Quick Start

Run the trajectory garden skill to score the sample corpus and generate a list of prune candidates for review.

Frequently Asked Questions about trajectory-garden

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I remove redundant agent trajectories from my JSONL memory store?

Remove redundant agent trajectories by analyzing JSONL logs to identify duplicate queries and high-cost interaction turns, generating a sourced work-list of prune candidates for human approval to optimize memory stores.

Why does my agent memory retrieval performance degrade as conversation history grows?

Agent memory retrieval degrades due to the accumulation of redundant and low-quality agent trajectories that bloat memory stores and inflate retrieval costs, an issue addressed by identifying and pruning redundant interaction turns.

How does simhash similarity detect duplicate queries in agent trajectory logs?

Simhash similarity detects duplicate queries in agent trajectory logs by computing lexical similarity scores across interaction turns, allowing the system to automatically rank agent turns based on redundancy and flag them for removal.

Can I use custom semantic embedding models instead of the default simhash scorer for trajectory pruning?

You can use custom semantic embedding models for trajectory pruning by utilizing the extensible framework's pluggable seam, which allows developers to swap the reference simhash scorer with custom semantic embedding models.

Does pruning agent memory delete data automatically without oversight?

Pruning agent memory does not delete data automatically; the system generates a concrete, sourced work-list of prune candidates strictly for human approval, ensuring no data is deleted without oversight.

What is the best way to identify high-cost interaction turns in agent observability logs?

The best way to identify high-cost interaction turns in agent observability logs is to utilize custom scoring hooks that analyze JSONL trajectory corpora to detect performance outliers and rank turns based on cost and denial rates.