ctx

Resolve hierarchical context from .context, .claude, and home directories.

Updated Jan 4, 2026
One-click install
npx skills add https://github.com/c-daly/agent-swarm --skill ctx
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: ctx
Source: https://github.com/c-daly/agent-swarm/tree/main/skills/ctx
Command: npx skills add https://github.com/c-daly/agent-swarm --skill ctx

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

View and manage hierarchical context for the current directory, consolidating information from all levels to improve orientation and governance.

Core Features & Use Cases

  • Show the resolved context for the current working directory.
  • Inspect context from multiple levels: feature/component level (.context/CONTEXT.md) in the current or parent dirs, repo root (.claude/CONTEXT.md), project level, and user level.
  • Edit or override context at the current scope to customize behavior.

Quick Start

Run the resolver to view the current context: python3 ~/.claude/plugins/agent-swarm/ctx/resolver.py resolve . To view a tree of the context: python3 ~/.claude/plugins/agent-swarm/ctx/resolver.py tree .

Frequently Asked Questions about ctx

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

FAQPage Schema
How do I view hierarchical context across nested directories and scopes?

Hierarchical context consolidates information from multiple levels—component, repo root, project, and user—into a single resolved view. Run the resolver script to display the current directory's complete context: python3 ~/.claude/plugins/agent-swarm/ctx/resolver.py resolve .

Can I override context settings at specific directory levels?

Yes, context supports inheritance and overrides. Edit or create context files at any scope (.context/CONTEXT.md, .claude/CONTEXT.md, or user home) to customize behavior for that level. Changes automatically propagate through the hierarchy.

How do I understand which context rules apply to my current working directory?

Use the tree command to visualize the complete context hierarchy: python3 ~/.claude/plugins/agent-swarm/ctx/resolver.py tree . This shows all levels and how settings are inherited or overridden from component through user scope.

What context files does the resolver check when determining current scope?

The resolver inspects context files in this order: .context/CONTEXT.md in the current or parent directories, .claude/CONTEXT.md at repo root, project-level context, and user home configuration. It applies inheritance and ignore rules to produce the resolved context.

Can I manage context for multiple nested projects with different requirements?

Yes, hierarchical context is designed for nested projects and repositories. Each level can inherit from parent scopes or override settings independently, enabling consistent context awareness across feature branches, components, and multi-repo environments.