Agent skill

Trajex

by wutongyuonce in wutongyuonce/Trajex

Search and query past Claude Code, Codex, and Pi session history.

No licenceAuto-check passedAgent Workflows

Install Trajex

skills CLI
$ npx skills add wutongyuonce/Trajex --skill trajex -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install wutongyuonce/Trajex trajex --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/wutongyuonce/Trajex.git skills-src && mkdir -p .claude/skills && cp -r skills-src/trajex-skill .claude/skills/trajex && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
trajex
GitHub stars
0
Token cost
~5.3k tokens
SKILL.md length
2,503 words
Files
6 (incl. references)
Skills in repo
1
First seen
Licence
None found

At a glance

Search and query past Claude Code, Codex, and Pi session history.

  • Works in 3 steps: Write a bounded JS query to a temp file,… → Run → Parse JSON stdout and answer with…
  • Asks how did I fix X
  • SKILL.md covers Quick Start, Sandbox Write Access, Default First Pass and Reference Map, plus 7 more sections
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Trajex is an agent skill from wutongyuonce/Trajex. Search and query past Claude Code, Codex, and Pi session history. Reactive: when the user asks "how did I fix X", "what did we do last time", "find the session where", "resume session", "上次怎么修的", "之前的session", "历史记录". Proactive: when the user references past work you lack context for, when you're about to modify a file with complex edit history, when the user says "继续之前的" or "continue where we left off", or when understanding prior decisions would improve your current response. Memory: when the user says "记住这个"…

Its SKILL.md is about 5.3k tokens, which your agent loads only when the skill is triggered. The skill folder holds 6 other files, including reference files (for example `references/api-reference.md`, `references/pitfalls.md` and `references/query-patterns.md`).

It sits in Agent Workflows, covering Session handoff.

When your agent uses it

  • Asks how did I fix X
  • What did we do last time
  • Find the session where
  • References past work you lack context for

Example prompts

  • “how did I fix X”
  • “what did we do last time”
  • “find the session where”
  • “/trajex”

Requirements

  • Pre-approved tools (allowed-tools): Read, Bash(trajex:*), Write

Workflow steps

3 steps, taken from the first numbered list in SKILL.md.

  1. Write a bounded JS query to a temp file, for example /tmp/q.mjs.
  2. Run
  3. Parse JSON stdout and answer with concise evidence.

What it can do on your machine

Read from SKILL.md and the folder at commit f2f1171. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves these tools, so the agent can use them without asking each time:

    • Read
    • Bash(trajex:*)
    • Write

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md (its code samples are javascript and bash).

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Trajex loads about 5.3k tokens when it runs, and up to ~21k if it reads all its reference files. Until then it costs about 164 tokens; SKILL.md has 2,503 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~164
When it runs · the whole SKILL.md, loaded when a task matches
~5.3k
With references · SKILL.md plus every file in references/, read only if the agent opens them
~21k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

Without a licence we can't republish the file, so here is its outline and opening line. It has 2,503 words (~5,267 tokens).

“Search and query Claude Code, Codex, and Pi session history from their configured local transcript roots. Defaults are ~/.claude/, ~/.codex/, and Pi's ~/.pi/agent/sessions. Pi may additionally use a session directory selected in App Settings; the configured value is already the…”

— opening of SKILL.md by wutongyuonce
name
trajex
allowed-tools
Read, Bash(trajex:*), Write

Read the full SKILL.md on GitHub

Files

SKILL.md and 5 other files (references) in trajex-skill of wutongyuonce/Trajex.

  • SKILL.md
  • references/api-reference.md
  • references/pitfalls.md
  • references/query-patterns.md
  • references/retrieval-semantics.md
  • references/schema.md

Open the folder on GitHubat commit f2f1171

Compare with similar skills

Trajex next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Trajex compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Trajex this skillwutongyuonce/Trajex0—~5.3kAutomated safety check: PassNone—
Orca CLIstablyai/orca89k2 repos~593Automated safety check: PassMIT
Beads Task Memorygastownhall/beads28k—~1.2kAutomated safety check: PassMIT
Session History Searchslopus/happy24k—~3.1kAutomated safety check: PassMIT
Paseo Agent Handoffgetpaseo/paseo20k1 repos~606Automated safety check: PassCustom licence
Memori Long-Term MemoryMemoriLabs/Memori17k—~2kAutomated safety check: NotesCustom licence

Similar skills

  • Orca CLI

    stablyai/orca

    Operate Orca-managed worktrees, folder contexts, terminals, repos, automations, artifacts, skill sharing, worktree comments, and Orca's embedded browser…

    89k GitHub starsUsed in 2 repos~593 tokens
    Agent WorkflowsAuto-check passed
  • Beads Task Memory

    gastownhall/beads

    Tracks multi-session work with dependencies in the bd issue tracker so the agent can find ready tasks and recover its context after conversation compaction.

    28k GitHub stars~1.2k tokensUpdated today
    Agent WorkflowsAuto-check passed
  • Searches past Claude Code, Codex and Cursor sessions and summarizes what was worked on, tried or decided, using extraction scripts instead of reading raw logs.

    24k GitHub stars~3.1k tokensUpdated today
    Agent WorkflowsAuto-check passed
  • Paseo Agent Handoff

    getpaseo/paseo

    Hands off the current task, including context, decisions and failed attempts, to a fresh agent through Paseo by writing a self-contained briefing prompt and launching that agent.

    20k GitHub starsUsed in 1 repo~606 tokens
    Agent WorkflowsAuto-check passed
  • Memori Long-Term Memory

    MemoriLabs/Memori

    Connects Claude Code to Memori Cloud for long-term memory, recalling stored context before substantive replies and saving new context afterward.

    17k GitHub stars~2k tokensUpdated 7 days ago
    Agent WorkflowsAuto-check: notes
  • Beads

    liwp/again

    A skill your agent uses when working in a repository that uses bd or Beads for durable project task tracking, issue dependencies, blocker management, multi-session handoff, or shared work memory.

    118 GitHub starsUsed in 6 repos~537 tokens
    Agent WorkflowsAuto-check passed

Categories

Questions about Trajex

What does Trajex do?

Search and query past Claude Code, Codex, and Pi session history. Trajex is an agent skill from wutongyuonce/Trajex. Search and query past Claude Code, Codex, and Pi session history.

When should I use Trajex?

Trajex fits situations like: asks how did I fix X; what did we do last time; find the session where; references past work you lack context for.

How do I install Trajex in Claude Code?

Run `npx skills add wutongyuonce/Trajex --skill trajex -a claude-code`. Or copy the skill folder (trajex-skill in wutongyuonce/Trajex) into .claude/skills/trajex in your project. Claude Code loads it when a task matches its description.

How do I install Trajex in Codex?

Run `npx skills add wutongyuonce/Trajex --skill trajex -a codex`. Or copy the skill folder (trajex-skill in wutongyuonce/Trajex) into .agents/skills/trajex in your project. Codex loads it when a task matches its description.

Can I use Trajex in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add wutongyuonce/Trajex --skill trajex -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/trajex, .gemini/skills/trajex, .github/skills/trajex and .opencode/skills/trajex in your project.

What does Trajex need to run?

SKILL.md names no scripts, command-line tools or credentials: Trajex is instructions for the agent only. Its frontmatter pre-approves these tools: Read, Bash(trajex:*), Write.

Does Trajex access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Trajex safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Trajex use?

No licence was found for Trajex or its repository. Without one, default copyright applies: ask the author before reusing or redistributing it.

How many tokens does Trajex use?

About 5.3k tokens (SKILL.md is roughly 21k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 16k tokens, read only when the agent opens those files.

What are the alternatives to Trajex?

Skills that share tags, products or a category with Trajex: Orca CLI (stablyai/orca, 89k stars), Beads Task Memory (gastownhall/beads, 28k stars), Session History Search (slopus/happy, 24k stars) and Paseo Agent Handoff (getpaseo/paseo, 20k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Trajex?

wutongyuonce (a GitHub organization) maintains it in wutongyuonce/Trajex, which has 0 GitHub stars.

Source: wutongyuonce/Trajex on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.