Skip to content

Commit ac9deba

Browse files
committed
Replaced Context Generator with CTX
1 parent 6f36f97 commit ac9deba

21 files changed

+88
-60
lines changed

docs/.vitepress/config.mts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ import {withMermaid} from "vitepress-plugin-mermaid";
33

44
export default withMermaid({
55
ignoreDeadLinks: true,
6-
title: "Context Generator Docs",
7-
description: "Documentation for Context Generator for LLM",
6+
title: "CTX Docs",
7+
description: "Documentation for CTX",
88
themeConfig: {
99
// https://vitepress.dev/reference/default-theme-config
1010
search: {
@@ -77,7 +77,7 @@ export default withMermaid({
7777
items: [
7878
{text: 'Instructions (Examples)', link: '/advanced/instructions'},
7979
{text: 'Development steps', link: '/advanced/development-steps'},
80-
{text: 'Development with Context Generator', link: '/advanced/development-process'},
80+
{text: 'Development with CTX', link: '/advanced/development-process'},
8181
{text: 'LLM Integration: Smart Context Requesting', link: '/advanced/smart-context-requesting'},
8282
],
8383
},

docs/advanced/development-process.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
# How to Use Context Generator to Explore and Work with Any Codebase
1+
# How to Use **CTX** to Explore and Work with Any Codebase
22

3-
Context Generator is a powerful tool that can help you understand and navigate any codebase, making it easier to
4-
implement features, fix bugs, and contribute to projects. This guide shows you how to leverage Context Generator's
3+
**CTX** is a powerful tool that can help you understand and navigate any codebase, making it easier to
4+
implement features, fix bugs, and contribute to projects. This guide shows you how to leverage **CTX**'s
55
capabilities throughout your development workflow.
66

77
## Understanding a New Codebase
@@ -325,7 +325,7 @@ Share this with team members or AI assistants to get feedback on your implementa
325325
326326
### Pattern 3: Documentation Generation
327327
328-
Use Context Generator to create comprehensive documentation:
328+
Use **CTX** to create comprehensive documentation:
329329
330330
```yaml
331331
documents:
@@ -352,6 +352,6 @@ documents:
352352
6. **Create Implementation Plans**: Use gathered context to formulate clear implementation strategies
353353
7. **Share Context Efficiently**: Generate focused context documents to share with team members or AI assistants
354354

355-
By effectively using Context Generator to explore unfamiliar codebases, you can significantly reduce the time needed to
355+
By effectively using **CTX** to explore unfamiliar codebases, you can significantly reduce the time needed to
356356
understand complex systems, implement features more confidently, and solve bugs more efficiently. The tool transforms
357357
overwhelming code exploration into a structured, methodical process that builds comprehensive understanding.

docs/advanced/development-steps.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -553,6 +553,6 @@ ctx --inline='{
553553
}'
554554
```
555555

556-
These examples illustrate how to use Context Generator effectively at each stage of the development workflow. The
556+
These examples illustrate how to use **CTX** effectively at each stage of the development workflow. The
557557
combination of inline ctx commands and clear instructions for AI assistants creates a powerful methodology for managing
558558
complex development tasks with appropriate context.

docs/advanced/instructions.md

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# Instructions
22

3+
There are several useful instructions for different tasks. Each instruction is tailored to a specific role or task,
4+
ensuring clarity and efficiency in the process.
5+
6+
CTX supports also prompts definition straight in the `context.yaml` file. Read more about it in the [Prompts](/prompts)
7+
section.
8+
39
## PHP Developer
410

511
```
@@ -297,4 +303,18 @@ repositories).
297303
298304
By following these principles, repositories will become the **single source of truth** for querying entities,
299305
improving maintainability and consistency in the application.
300-
```
306+
```
307+
308+
## **Shared Prompts Resources:**
309+
310+
CTX supports importing prompts from external sources, allowing you to leverage community-maintained prompt libraries.
311+
You can add ready-to-use prompts to your project by adding the following to your `context.yaml`:
312+
313+
```yaml
314+
import:
315+
- type: url
316+
url: https://gist.githubusercontent.com/butschster/1b7e597691cc1a6476b15dc120ecbddb/raw/9cda0186689e5c819e1f60b486a9d960fcf412c2/prompts.yaml
317+
```
318+
319+
These shared prompt collections can help standardize approaches to common development tasks across your team and
320+
projects. **For more details on working with prompts, see the [Prompts documentation](/prompts)**.

docs/advanced/logging.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Logging
22

3-
Context Generator includes a PSR-3 compliant logging system with console output support. The logger integrates with
3+
**CTX** includes a PSR-3 compliant logging system with console output support. The logger integrates with
44
Symfony Console and respects verbosity levels.
55

66
### Verbosity Levels

docs/advanced/smart-context-requesting.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ requests without the need for predefined configuration files.
99

1010
Before diving into advanced usage, you need to understand:
1111

12-
1. **JSON Schema**: The Context Generator uses a specific JSON structure to define what context to gather
12+
1. **JSON Schema**: **CTX** uses a specific JSON structure to define what context to gather
1313

1414
> Link to the [JSON Schema](https://raw.githubusercontent.com/context-hub/generator/refs/heads/main/json-schema.json)
1515
@@ -34,7 +34,7 @@ through executable commands. This creates a feedback loop that significantly enh
3434

3535
## Real-World Example Workflow
3636

37-
Here's a complete workflow example showing how an LLM and the Context Generator can work together:
37+
Here's a complete workflow example showing how an LLM and the **CTX** can work together:
3838

3939
1. **User Question**:
4040

@@ -127,7 +127,7 @@ When working with sensitive codebases:
127127

128128
## Conclusion
129129

130-
The combination of Context Generator's inline configuration and LLMs creates a powerful workflow that drastically
130+
The combination of **CTX**'s inline configuration and LLMs creates a powerful workflow that drastically
131131
improves the efficiency of code assistance, troubleshooting, and development guidance. By enabling LLMs to request
132132
precise context, you eliminate the need for lengthy explanations and manual code searching, leading to faster and more
133133
accurate solutions.

docs/configuration.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ documents:
211211

212212
## Using variables in configuration
213213

214-
Context Generator supports various types of variables throughout your configuration files, including environment
214+
**CTX** supports various types of variables throughout your configuration files, including environment
215215
variables, predefined system variables, and custom configuration variables.
216216

217217
Read more about [variables](./variables.md) in the documentation.

docs/contributing.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,29 @@
1-
# Contributing to Context Generator
1+
# Contributing to **CTX**
22

3-
We're excited to welcome you as a contributor to the Context Generator project! This guide will help you get started
3+
We're excited to welcome you as a contributor to the **CTX** project! This guide will help you get started
44
with contributing to our project.
55

66
## How to Contribute
77

8-
There are many ways to contribute to Context Generator:
8+
There are many ways to contribute to **CTX**:
99

1010
1. **Report Issues**: If you find a bug or have a
1111
suggestion, [create an issue](https://github.com/context-hub/generator/issues) on our GitHub repository.
1212
2. **Submit Pull Requests**: Have a fix or a new feature? Submit a pull request!
1313
3. **Improve Documentation**: Help us make our documentation more clear, comprehensive, and accessible.
14-
4. **Share Your Use Cases**: Let us know how you're using Context Generator in your projects.
14+
4. **Share Your Use Cases**: Let us know how you're using **CTX** in your projects.
1515

1616
We label issues that are suitable for community contribution with the `help wanted` tag. Additionally, we use labels
1717
such as `good first issue` for newcomer-friendly tasks, and complexity indicators to help you choose tasks that match
1818
your experience level.
1919

2020
I'd be happy to write a better instruction for the Getting Started section that highlights the use of the context.yaml
21-
file for context generation. This will help new contributors understand how they can use Context Generator itself to
21+
file for context generation. This will help new contributors understand how they can use **CTX** itself to
2222
explore and work with the codebase.
2323

2424
## Getting Started with Contributing
2525

26-
Follow this guide to set up your environment and effectively contribute to the Context Generator project. We've designed
26+
Follow this guide to set up your environment and effectively contribute to the **CTX** project. We've designed
2727
a workflow that leverages the tool's own capabilities to help you understand and improve the codebase.
2828

2929
### 1. Set Up Your Environment
@@ -83,7 +83,7 @@ Run this configuration to generate a visual representation of the codebase struc
8383
This will create a `docs/file-structure.md` file that outlines the project's organization. Just put this file in the
8484
Claude project context to help it understand the codebase.
8585

86-
### 3. Explore the Codebase Using Context Generator
86+
### 3. Explore the Codebase Using **CTX**
8787

8888
The project includes a pre-configured `context.yaml` file to help you explore the codebase:
8989

@@ -220,7 +220,7 @@ documents:
220220
- Include relevant context files or excerpts
221221
- Reference any related issues
222222
223-
By using Context Generator in your contribution workflow, you'll not only improve the project but also gain firsthand
223+
By using **CTX** in your contribution workflow, you'll not only improve the project but also gain firsthand
224224
experience with the tool while developing more effective collaboration patterns with AI assistants.
225225
226226
## Areas Where Help Is Needed
@@ -232,12 +232,12 @@ We're particularly looking for help with:
232232
- Creating specialized content modifiers for different languages
233233
- Building integrations with popular IDEs and tools
234234
235-
Your contributions, big or small, help make Context Generator a better tool for everyone. We look forward to
235+
Your contributions, big or small, help make **CTX** a better tool for everyone. We look forward to
236236
collaborating with you!
237237
238238
## Questions?
239239
240240
If you have any questions about contributing, feel free to open an issue labeled "question" or reach out through the
241241
[discussions](https://github.com/context-hub/generator/discussions) section on GitHub.
242242
243-
Thank you for considering contributing to Context Generator!
243+
Thank you for considering contributing to **CTX**!

docs/documents.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Document
22

3-
A document is the primary output unit produced by the Context Generator. It represents a complete, formatted context
3+
A document is the primary output unit produced by the **CTX**. It represents a complete, formatted context
44
file that's designed to be shared with Large Language Models (LLMs) like ChatGPT or Claude.
55

66
Each document produces a single output file (typically Markdown) that contains all the compiled

docs/getting-started.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,9 @@ The PHAR file can be used on any system with PHP 8.2 or higher.
1414

1515
### Requirements
1616

17-
- Linux or MacOS
17+
- Linux,
18+
- MacOS
19+
- or Windows with or without WSL
1820

1921
The easiest way to install Context Generator is by using our installation script. This automatically downloads the
2022
latest version and sets it up for immediate use.
@@ -39,6 +41,8 @@ If you install to a system directory like `/usr/local/bin`, you probably need `s
3941
curl -sSL https://raw.githubusercontent.com/context-hub/generator/main/download-latest.sh | sudo sh
4042
```
4143

44+
> **Note**: When using `sudo`, to run the script, you may need use `sudo` to run the `ctx` command as well.
45+
4246
Install to a custom path to avoid using `sudo`:
4347

4448
```bash

docs/getting-started/command-reference.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ ctx version
7878
ctx v
7979
```
8080

81-
Displays the current version of Context Generator.
81+
Displays the current version of **CTX**.
8282

8383
```bash
8484
ctx version --check-updates
@@ -88,7 +88,7 @@ ctx version -c
8888

8989
## Self-Update
9090

91-
Updates the Context Generator to the latest version.
91+
Updates the **CTX** to the latest version.
9292

9393
```bash
9494
ctx self-update

docs/getting-started/ide-integration.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# IDE Integration
22

3-
To get the best experience when working with Context Generator configuration files, you can use the JSON schema for
3+
To get the best experience when working with **CTX** configuration files, you can use the JSON schema for
44
autocompletion and validation in your IDE:
55

66
## Using schema definition in configuration files

docs/index.md

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,19 @@
1-
# Context Generator for AI-Powered Development
1+
# CTX: Context as Code (CaC) tool with MCP server inside.
2+
### The missing link between your codebase and your LLM.
23

3-
## What is Context Generator?
4+
![Good morning, LLM](https://github.com/user-attachments/assets/8129f227-dc3f-4671-bc0e-0ecd2f3a1888)
45

5-
Context Generator is a tool designed to solve a common problem when working with LLMs like ChatGPT, Claude: providing
6-
sufficient context about your codebase.
6+
## What is **CTX**?
77

8-
> There is an article about Context Generator
8+
**CTX** is a tool made to solve a big problem when chatting with LLMs like ChatGPT or Claude: **giving them enough
9+
context about your project**.
10+
11+
> There is an article about **CTX**
912
> on [Medium](https://medium.com/@butschster/context-not-prompts-2-0-the-evolution-9c4a84214784) that explains the
1013
> motivation behind the project and the problem it solves.
1114
12-
It automates the process of building context files from various sources:
15+
Instead of manually copying or explaining your entire codebase each time, ctx automatically builds neat, organized
16+
context files from:
1317

1418
- Code files,
1519
- GitHub repositories,
@@ -24,11 +28,11 @@ context about your codebase.
2428

2529
When working with AI-powered development tools context is everything.
2630

27-
- **Code Refactoring Assistance**: Want AI help refactoring a complex class? Context Generator builds a properly
31+
- **Code Refactoring Assistance**: Want AI help refactoring a complex class? **CTX** builds a properly
2832
formatted document containing all relevant code files.
2933

3034
- **Multiple Iteration Development**: Working through several iterations with an AI helper requires constantly updating
31-
the context. Context Generator automates this process.
35+
the context. **CTX** automates this process.
3236

3337
- **Documentation Generation:** Transform your codebase into comprehensive documentation by combining source code with
3438
custom explanations. Use AI to generate user guides, API references, or developer documentation based on your actual

docs/mcp-server.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,23 +4,23 @@ The Model Control Protocol (MCP) server is a bridge that enables AI assistants l
44
understand your project's context. It acts as an intermediary that provides real-time, structured information about your
55
codebase to AI models, enabling more accurate and contextually relevant assistance.
66

7-
Context Generator now supports the MCP protocol, allowing Claude to seamlessly access your project's contexts, and
7+
**CTX** now supports the MCP protocol, allowing Claude to seamlessly access your project's contexts, and
88
documentation without requiring manual context uploads.
99

1010
## How integration works
1111

12-
When you connect Claude to Context Generator via MCP:
12+
When you connect Claude to **CTX** via MCP:
1313

1414
1. Claude can request specific context about your project directly through the MCP protocol
15-
2. Context Generator processes these requests by accessing your codebase based on your `context.yaml`
15+
2. **CTX** processes these requests by accessing your codebase based on your `context.yaml`
1616
3. Relevant code, documentation, and structural information is formatted and returned to Claude
1717
4. Claude uses this rich context to provide more accurate, project-aware responses
1818

1919
```mermaid
2020
sequenceDiagram
2121
participant User
2222
participant Claude
23-
participant MCP Server as "Context Generator<br/>MCP Server"
23+
participant MCP Server as "CTX<br/>MCP Server"
2424
participant Files as "Project Files"
2525
participant Config as "context.yaml/<br/>context.json"
2626
@@ -68,7 +68,7 @@ Each operation is handled by a dedicated controller, using appropriate HTTP sema
6868

6969
## Why?
7070

71-
**Developer-Controlled Context**: As a developer and product owner, YOU know your code best. Context Generator puts you
71+
**Developer-Controlled Context**: As a developer and product owner, YOU know your code best. **CTX** puts you
7272
in control of exactly what context is relevant, rather than relying on AI to guess.
7373

7474
### The Problem with Automatic Context Gathering
@@ -81,12 +81,12 @@ Let's imagine IDE tools like Cursor that attempt to gather context automatically
8181
3. Without your guidance, they can prioritize the wrong files, including less important context while omitting what you
8282
actually need
8383

84-
Context Generator solves these problems by giving you explicit control over which parts of your codebase are included,
84+
**CTX** solves these problems by giving you explicit control over which parts of your codebase are included,
8585
ensuring the AI receives precisely the information needed to assist you effectively.
8686

8787
## Setting Up
8888

89-
First of all you need to [install](https://claude.ai/download) Claude app and latest version of Context Generator (**>
89+
First of all you need to [install](https://claude.ai/download) Claude app and latest version of **CTX** (**>
9090
1.18.0**).
9191

9292
> **Note**: The MCP server is only available in the desktop version of Claude. The web version does not support it.
@@ -96,7 +96,7 @@ First of all you need to [install](https://claude.ai/download) Claude app and la
9696

9797
1. Download Claude App for your operating system
9898
2. Open **Settings****Developer****Edit config** → open config file `claude_desktop_config`
99-
3. Register the Context Generator MCP server using the appropriate configuration
99+
3. Register the **CTX** MCP server using the appropriate configuration
100100

101101
---
102102

docs/mcp/filesystem.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Filesystem Tools
22

3-
The Context Generator MCP server includes a comprehensive set of filesystem tools that allow Claude to directly interact
3+
**CTX** MCP server includes a comprehensive set of filesystem tools that allow Claude to directly interact
44
with your project files. These tools enable powerful AI-assisted development workflows and make it easy to analyze,
55
modify, and create files without leaving your conversation.
66

docs/mcp/prompts.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,15 +72,15 @@ Here's how LLM might use prompts during a conversation:
7272

7373
## Shareable Prompts
7474

75-
Prompts in Context Generator aren't just static templates - they're designed to be shared, imported, and reused across
75+
Prompts in **CTX** aren't just static templates - they're designed to be shared, imported, and reused across
7676
projects and teams. This creates an ecosystem where:
7777

7878
- Teams can maintain consistent approaches to common development tasks
7979
- Best practices can be encoded once and shared widely
8080
- Specialized domain knowledge can be packaged into reusable templates
8181
- The community can collaborate on high-quality prompt libraries
8282

83-
Context Generator supports configuration imports from multiple sources to enable modular configuration management:
83+
**CTX** supports configuration imports from multiple sources to enable modular configuration management:
8484

8585
### Import Capabilities
8686

@@ -110,6 +110,6 @@ import:
110110
Authorization: "Bearer ${API_TOKEN}"
111111
112112
# GitHub Gist import (using URL)
113-
- url: https://gist.githubusercontent.com/butschster/1b7e597691cc1a6476b15dc120ecbddb/raw/8c0f9d0145dcd260b814f866ec130ec630c80ee8/prompts.yaml
113+
- url: https://gist.githubusercontent.com/butschster/1b7e597691cc1a6476b15dc120ecbddb/raw/9cda0186689e5c819e1f60b486a9d960fcf412c2/prompts.yaml
114114
type: url
115115
```

0 commit comments

Comments
 (0)