
Security News
Risky Biz Podcast: Making Reachability Analysis Work in Real-World Codebases
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.
Elelem is an interactive REPL (Read-Eval-Print Loop) for Ollama that provides a command-line chat interface for communicating with AI models. It features tool calling capabilities, streaming responses, and a clean state machine architecture.
Install the gem and add to the application's Gemfile by executing:
bundle add elelem
If bundler is not being used to manage dependencies, install the gem by executing:
gem install elelem
Start an interactive chat session with an Ollama model:
elelem chat
--host
: Specify Ollama host (default: localhost:11434)--model
: Specify Ollama model (default: gpt-oss, currently only tested with gpt-oss)--token
: Provide authentication token--debug
: Enable debug logging# Chat with default model
elelem chat
# Chat with specific model and host
elelem chat --model llama2 --host remote-host:11434
# Enable debug mode
elelem chat --debug
After checking out the repo, run bin/setup
to install dependencies. Then, run rake spec
to run the tests. You can also run bin/console
for an interactive prompt that will allow you to experiment.
To install this gem onto your local machine, run bundle exec rake install
. To release a new version, update the version number in version.rb
, and then run bundle exec rake release
, which will create a git tag for the version, push git commits and the created tag, and push the .gem
file to rubygems.org.
REPL State Diagram
┌─────────────────┐
│ START/INIT │
└─────────┬───────┘
│
v
┌─────────────────┐
┌────▶│ IDLE (Prompt) │◄────┐
│ │ Shows "> " │ │
│ └─────────┬───────┘ │
│ │ │
│ │ User input │
│ v │
│ ┌─────────────────┐ │
│ │ PROCESSING │ │
│ │ INPUT │ │
│ └─────────┬───────┘ │
│ │ │
│ │ API call │
│ v │
│ ┌─────────────────┐ │
│ │ STREAMING │ │
│ ┌──▶│ RESPONSE │─────┤
│ │ └─────────┬───────┘ │
│ │ │ │ done=true
│ │ │ Parse chunk │
│ │ v │
│ │ ┌─────────────────┐ │
│ │ │ MESSAGE TYPE │ │
│ │ │ ROUTING │ │
│ │ └─────┬─┬─┬───────┘ │
│ │ │ │ │ │
┌────────┴─┴─────────┘ │ └─────────────┴──────────┐
│ │ │
v v v
┌─────────────┐ ┌─────────────┐ ┌─────────────┐
│ THINKING │ │ TOOL │ │ CONTENT │
│ STATE │ │ EXECUTION │ │ OUTPUT │
│ │ │ STATE │ │ STATE │
└─────────────┘ └─────┬───────┘ └─────────────┘
│ │ │
│ │ done=false │
└───────────────────┼──────────────────────────┘
│
v
┌─────────────────┐
│ CONTINUE │
│ STREAMING │
└─────────────────┘
│
└─────────────────┐
│
┌─────────────────┐ │
│ ERROR STATE │ │
│ (Exception) │ │
└─────────────────┘ │
▲ │
│ Invalid response │
└────────────────────────────┘
EXIT CONDITIONS:
┌─────────────────────────┐
│ • User enters "" │
│ • User enters "exit" │
│ • EOF (Ctrl+D) │
│ • nil input │
└─────────────────────────┘
│
v
┌─────────────────────────┐
│ TERMINATE │
└─────────────────────────┘
Key Transitions:
The REPL operates as a continuous loop where the primary flow is IDLE → PROCESSING → STREAMING → back to IDLE, with the streaming phase potentially cycling through multiple message types before completion.
Bug reports and pull requests are welcome on GitHub at https://github.com/xlgmokha/elelem.
The gem is available as open source under the terms of the MIT License.
FAQs
Unknown package
We found that elelem demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.
Security News
/Research
Malicious Nx npm versions stole secrets and wallet info using AI CLI tools; Socket’s AI scanner detected the supply chain attack and flagged the malware.
Security News
CISA’s 2025 draft SBOM guidance adds new fields like hashes, licenses, and tool metadata to make software inventories more actionable.