ax-agent-context

Route AxAgent context-management tasks to the correct tool and skill.

2.9k|186|Updated Feb 23, 2023
One-click install
npx skills add https://github.com/ax-llm/ax --skill ax-agent-context
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: ax-agent-context
Source: https://github.com/ax-llm/ax/tree/main/website/static/typescript/.well-known/agent-skills/ax-agent-context
Command: npx skills add https://github.com/ax-llm/ax --skill ax-agent-context

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps you avoid choosing the wrong AxAgent context mechanism when building long-context LLM workflows, so you can match the task to the right tool instead of guessing.

Core Features & Use Cases

  • Tool Routing: Distinguishes when to use contextMap, contextPolicy, agent.optimize, agent.playbook, or retrieval-based memory skills.
  • Decision Guidance: Clarifies recurring corpus management, within-run history control, offline instruction tuning, evolving playbooks, and turn-level fact lookup.
  • Use Case: If you are designing an agent that must remember a shared knowledge base across runs, compact its own history during one run, or improve its behavior from examples, this Skill points you to the correct Ax feature and the next skill to open.

Quick Start

Ask the assistant to identify which AxAgent context feature best fits your task and to hand off to the matching next skill.

Frequently Asked Questions about ax-agent-context

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

FAQPage Schema
How do I manage context for long-context LLM agents across multiple runs?

To manage context for long-context LLM agents across multiple runs, you need a recurring corpus orientation tool. This skill routes your requirement to contextMap for shared knowledge base retention and hands off to the appropriate memory skill.

What's the best way to compact agent history during a single LLM run?

The best way to compact agent history during a single run is within-run trajectory control. This skill identifies that need and routes you to the contextPolicy mechanism to manage evolving context windows effectively.

When should I use agent.optimize versus agent.playbook for offline instruction tuning?

Use agent.optimize for improving behavior from examples and agent.playbook for evolving offline instructions. This skill distinguishes between these two offline tuning approaches and routes you to the correct optimization tool.

How do I choose the right Ax context tool for per-turn fact retrieval?

To choose the right Ax context tool for per-turn fact retrieval, you need a retrieval-based memory skill. This skill clarifies your turn-level lookup requirement and enforces handoff to the matching recall or discover skill.

Can I use this routing skill to distinguish between contextMap and contextPolicy?

Yes, you can use this routing skill to distinguish between contextMap and contextPolicy. It clarifies that contextMap applies to recurring corpus management while contextPolicy handles within-run trajectory control for long-context agents.

Why does my AxAgent workflow keep selecting the wrong context management mechanism?

Your AxAgent workflow selects the wrong context management mechanism because routing logic is missing. This skill enforces appropriate handoff to ax-agent-rlm, ax-agent-optimize, or ax-agent-memory-skills to prevent incorrect tool selection.