Skip to content

Commit b4f313b

Browse files
authored
Merge pull request #583 from Kayce10/feat/issue-481-ollama-local-llm-final
Add local Ollama assistant for Soroban workflows
2 parents 66d1c3c + 34f220c commit b4f313b

23 files changed

Lines changed: 1217 additions & 114 deletions

Cargo.lock

Lines changed: 172 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

README.md

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -195,6 +195,38 @@ starforge new contract my-dex --template uniswap-v2 --from marketplace
195195
starforge new dapp my-dapp
196196
```
197197

198+
### Local AI assistant
199+
200+
StarForge can use a locally running [Ollama](https://ollama.ai/) instance for
201+
Soroban development help. Install Ollama, start the daemon, and pull the
202+
recommended model before using the assistant:
203+
204+
```bash
205+
ollama serve
206+
starforge ai pull codellama:7b
207+
```
208+
209+
```bash
210+
# Check Ollama and locally installed models
211+
starforge ai status
212+
starforge ai models
213+
214+
# Ask a Soroban development question
215+
starforge ai ask "How should I store an expiring value?"
216+
217+
# Review or explain a contract source file
218+
starforge ai audit src/lib.rs
219+
starforge ai explain src/lib.rs
220+
221+
# Generate tests or find gas optimisation opportunities
222+
starforge ai test src/lib.rs
223+
starforge ai optimise src/lib.rs
224+
```
225+
226+
All requests remain local to Ollama at `http://localhost:11434`; no contract
227+
source or prompts are sent to a cloud provider. Use `starforge ai status` to
228+
diagnose an installation or runtime problem.
229+
198230
### Template marketplace commands
199231

200232
```bash

0 commit comments

Comments
 (0)