Skip to content

jchsoft/wv_runner

Repository files navigation

WvRunner

A gem that adds rake tasks to Rails applications for automated Claude Code execution of WorkVector tasks.

Installation

Add to your Gemfile:

gem 'wv_runner', git: 'https://github.com/jchsoft/wv_runner.git'

Then run:

bundle install

Usage

Available Rake Tasks

Run a single task once

rake wv_runner:run_once

Run tasks until end of today

rake wv_runner:run_today

Run tasks continuously in a daily loop

rake wv_runner:run_daily

Architecture

Core Components

  • WorkLoop: Main execution loop that orchestrates task processing
  • ClaudeCode: Interface to Claude Code runner
  • Decider: Decision logic for task routing and prioritization

Testing

Run all tests using the test runner:

ruby test_runner.rb

This will run all 128 tests across 14 test files and provide a summary:

  • Total runs, assertions, failures, and errors
  • Individual test file results
  • Clear pass/fail status

You can also run individual test files:

ruby -I lib -I test test/services/work_loop_test.rb
ruby -I lib -I test test/services/claude_code_base_test.rb
ruby -I lib -I test test/services/claude_code_step_tests.rb

Development

This gem is under active development. The service classes are currently scaffolded and ready for implementation.

License

MIT

About

rake task to run claude_code several times during a day

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages