0.0
No release in over 3 years
Install and manage context files from Ruby gems.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
 Dependencies

Runtime

~> 1.25
 Project Readme

Agent::Context

Provides tools for installing and managing context files from Ruby gems for AI agents.

Development Status

Overview

This gem allows you to install and manage context files from other gems. Gems can provide context files in a context/ directory in their root, which can contain documentation, configuration examples, migration guides, and other contextual information.

Context

This gem provides it's own context files in context and external dependencies in .context:

Usage

Installation

Add the agent-context gem to your project:

$ bundle add agent-context

Commands

List available context

List all gems that have context available:

$ bake agent:context:list

List context files for a specific gem:

$ bake agent:context:list --gem async

Show context content

Show the content of a specific context file:

$ bake agent:context:show --gem async --file thread-safety

Install context

Install context from all available gems:

$ bake agent:context:install

Install context from a specific gem:

$ bake agent:context:install --gem async

This will create a .context/ directory in your project with the installed context files organized by gem name.

Providing Context in Your Gem

To provide context files in your gem, create a context/ directory in your gem's root:

your-gem/
├── context/
│   ├── thread-safety.mdc
│   ├── performance.mdc
│   └── migration-guide.mdc
├── lib/
└── your-gem.gemspec

Context files can be in any format, but .mdc and .md files are commonly used for documentation.

See Also

  • Bake — The bake task execution tool.

Contributing

We welcome contributions to this project.

  1. Fork it.
  2. Create your feature branch (git checkout -b my-new-feature).
  3. Commit your changes (git commit -am 'Add some feature').
  4. Push to the branch (git push origin my-new-feature).
  5. Create new Pull Request.

Developer Certificate of Origin

In order to protect users of this project, we require all contributors to comply with the Developer Certificate of Origin. This ensures that all contributions are properly licensed and attributed.

Community Guidelines

This project is best served by a collaborative and respectful environment. Treat each other professionally, respect differing viewpoints, and engage constructively. Harassment, discrimination, or harmful behavior is not tolerated. Communicate clearly, listen actively, and support one another. If any issues arise, please inform the project maintainers.