Phase 5: Configuration & Documentation
Updated all documentation and configuration files: Documentation changes: - Updated README.md to describe LLMX as LiteLLM-powered fork - Updated CLAUDE.md with LiteLLM integration details - Updated 50+ markdown files across docs/, llmx-rs/, llmx-cli/, sdk/ - Changed all references: codex → llmx, Codex → LLMX - Updated package references: @openai/codex → @llmx/llmx - Updated repository URLs: github.com/openai/codex → github.com/valknar/llmx Configuration changes: - Updated .github/dependabot.yaml - Updated .github workflow files - Updated cliff.toml (changelog configuration) - Updated Cargo.toml comments Key branding updates: - Project description: "coding agent from OpenAI" → "coding agent powered by LiteLLM" - Added attribution to original OpenAI Codex project - Documented LiteLLM integration benefits Files changed: 51 files (559 insertions, 559 deletions) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -1,13 +1,13 @@
|
||||
# Codex SDK
|
||||
# LLMX SDK
|
||||
|
||||
Embed the Codex agent in your workflows and apps.
|
||||
Embed the LLMX agent in your workflows and apps.
|
||||
|
||||
The TypeScript SDK wraps the bundled `codex` binary. It spawns the CLI and exchanges JSONL events over stdin/stdout.
|
||||
The TypeScript SDK wraps the bundled `llmx` binary. It spawns the CLI and exchanges JSONL events over stdin/stdout.
|
||||
|
||||
## Installation
|
||||
|
||||
```bash
|
||||
npm install @openai/codex-sdk
|
||||
npm install @llmx/llmx-sdk
|
||||
```
|
||||
|
||||
Requires Node.js 18+.
|
||||
@@ -15,10 +15,10 @@ Requires Node.js 18+.
|
||||
## Quickstart
|
||||
|
||||
```typescript
|
||||
import { Codex } from "@openai/codex-sdk";
|
||||
import { LLMX } from "@llmx/llmx-sdk";
|
||||
|
||||
const codex = new Codex();
|
||||
const thread = codex.startThread();
|
||||
const llmx = new LLMX();
|
||||
const thread = llmx.startThread();
|
||||
const turn = await thread.run("Diagnose the test failure and propose a fix");
|
||||
|
||||
console.log(turn.finalResponse);
|
||||
@@ -52,7 +52,7 @@ for await (const event of events) {
|
||||
|
||||
### Structured output
|
||||
|
||||
The Codex agent can produce a JSON response that conforms to a specified schema. The schema can be provided for each turn as a plain JSON object.
|
||||
The LLMX agent can produce a JSON response that conforms to a specified schema. The schema can be provided for each turn as a plain JSON object.
|
||||
|
||||
```typescript
|
||||
const schema = {
|
||||
@@ -85,7 +85,7 @@ console.log(turn.finalResponse);
|
||||
|
||||
### Attaching images
|
||||
|
||||
Provide structured input entries when you need to include images alongside text. Text entries are concatenated into the final prompt while image entries are passed to the Codex CLI via `--image`.
|
||||
Provide structured input entries when you need to include images alongside text. Text entries are concatenated into the final prompt while image entries are passed to the LLMX CLI via `--image`.
|
||||
|
||||
```typescript
|
||||
const turn = await thread.run([
|
||||
@@ -97,20 +97,20 @@ const turn = await thread.run([
|
||||
|
||||
### Resuming an existing thread
|
||||
|
||||
Threads are persisted in `~/.codex/sessions`. If you lose the in-memory `Thread` object, reconstruct it with `resumeThread()` and keep going.
|
||||
Threads are persisted in `~/.llmx/sessions`. If you lose the in-memory `Thread` object, reconstruct it with `resumeThread()` and keep going.
|
||||
|
||||
```typescript
|
||||
const savedThreadId = process.env.CODEX_THREAD_ID!;
|
||||
const thread = codex.resumeThread(savedThreadId);
|
||||
const thread = llmx.resumeThread(savedThreadId);
|
||||
await thread.run("Implement the fix");
|
||||
```
|
||||
|
||||
### Working directory controls
|
||||
|
||||
Codex runs in the current working directory by default. To avoid unrecoverable errors, Codex requires the working directory to be a Git repository. You can skip the Git repository check by passing the `skipGitRepoCheck` option when creating a thread.
|
||||
LLMX runs in the current working directory by default. To avoid unrecoverable errors, LLMX requires the working directory to be a Git repository. You can skip the Git repository check by passing the `skipGitRepoCheck` option when creating a thread.
|
||||
|
||||
```typescript
|
||||
const thread = codex.startThread({
|
||||
const thread = llmx.startThread({
|
||||
workingDirectory: "/path/to/project",
|
||||
skipGitRepoCheck: true,
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user