@samooth/open-codex 0.3.8 → 0.3.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +11 -0
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -408,6 +408,8 @@ Inside the interactive chat, you can use several slash commands to manage your s
408
408
  | `/help` | Show the help overlay with all available commands and shortcuts. |
409
409
  | `/model` | Open the model picker to switch the current AI model. |
410
410
  | `/index` | Index the current codebase for semantic search. |
411
+ | `/pin <path>`| Pin a file to the context window (it will always be included in the prompt).|
412
+ | `/unpin <path>`| Unpin a file from the context window. |
411
413
  | `/approval` | Change the current approval mode (Suggest, Auto Edit, Full Auto). |
412
414
  | `/config` | Toggle settings like Dry Run and Debug mode. |
413
415
  | `/history` | View and select from your prompt history. |
@@ -415,6 +417,15 @@ Inside the interactive chat, you can use several slash commands to manage your s
415
417
  | `/theme` | Change the UI theme (Default, Nord, One Dark, Synthwave, Gruvbox, Cyberpunk).|
416
418
  | `/clear` | Clear the chat history (start a fresh session). |
417
419
 
420
+ #### File Pinning
421
+
422
+ File pinning allows you to ensure that specific files are always included in the agent's context window, regardless of the conversation length. This is useful for keeping core documentation, API definitions, or complex logic always "top of mind" for the agent.
423
+
424
+ - **To pin a file**: `/pin src/main.ts`
425
+ - **To unpin a file**: `/unpin src/main.ts`
426
+
427
+ Pinned files are persisted in your `~/.codex/config.json` and will be loaded in every session.
428
+
418
429
  #### Dynamic Model Discovery
419
430
 
420
431
  For many providers, you can use the `/models` command within the interactive chat to see a list of available models and switch between them. For the **Hugging Face** provider, this dynamically fetches the latest `tool-use` compatible models directly from the Hugging Face Hub.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@samooth/open-codex",
3
- "version": "0.3.8",
3
+ "version": "0.3.9",
4
4
  "license": "Apache-2.0",
5
5
  "bin": {
6
6
  "open-codex": "dist/cli.js"