Update README.md

This commit is contained in:
2026-01-25 10:19:58 +00:00
parent 9d74b700e7
commit c973499445

View File

@@ -132,14 +132,14 @@ The agent has access to the following tools:
### Interactive CLI ### Interactive CLI
``` ```
──────────────────────────────────────── ────────────────────────────────────────
❯ what files are here? what files are here?
──────────────────────────────────────── ────────────────────────────────────────
⏺ Thinking... Thinking...
⏺ globfiles(pattern='**/*', path='.') globfiles(pattern='**/*', path='.')
⏺ I found the following files: I found the following files:
- nanocode.py - nanocode.py
- README.md - README.md
- modaic/SKILL.md - modaic/SKILL.md
@@ -171,29 +171,25 @@ print(result.answer)
### Overview ### Overview
``` ```python
nanocode.py class RLMCodingProgram(PrecompiledProgram):
├── File Operations config: RLMCodingConfig
│ ├── read_file() - Read with line numbers
│ ├── write_file() - Write content def forward(self, task: str) -> dspy.Prediction:
│ └── edit_file() - Find & replace # Returns prediction with .answer
├── Search Operations return self.agent(task=task)
│ ├── glob_files() - Pattern matching
│ └── grep_files() - Regex search def get_tools(self) -> dict:
├── Shell Operations # Returns dict of available tools
│ └── run_bash() - Execute commands
├── DSPy Components def set_tool(self, name: str, tool: callable):
│ ├── CodingAssistant (Signature) # Add or replace a tool
│ ├── RLMCodingProgram (PrecompiledProgram)
│ │ ├── forward() - Run agent on task def remove_tool(self, name: str):
│ │ ├── get_tools() - Get available tools # Remove a tool by name
│ │ ├── set_tool() - Add/replace a tool
│ │ ├── remove_tool() - Remove a tool def reload_lms(self):
│ │ ├── reload_lms() - Recreate LMs from config # Recreate LM objects from current config
│ │ └── load_state() - Load state with LM fix
│ └── RLMReasoningCallback
└── Modaic Integration
└── RLMCodingConfig (PrecompiledConfig)
``` ```
### Key Classes ### Key Classes