Agentf
Agentf is a Ruby CLI and installer for running multi-agent development workflows with shared Redis memory.
It helps you install provider manifests, run workflows, inspect memory, and expose tools via MCP.
Quick install
- Install prerequisites
- Ruby 3.3+
- Redis Stack (required for RedisJSON + RediSearch)
docker run -d -p 6379:6379 redis/redis-stack:latest- Install the gem (local development)
bundle exec rake installOr install the released gem:
gem install agentf- Verify install
agentf version
agentf help60-second quick start
Set environment variables (or create a .env file). Example:
export REDIS_URL=redis://localhost:6379
export AGENTF_PROJECT_NAME=my-projectInstall provider manifests (example providers shown):
agentf install --provider=opencode,copilot --scope=localTry useful commands after install:
agentf memory recent -n 5
agentf code glob "lib/**/*.rb"
agentf metrics summary -n 100
agentf mcp-serverCore commands
-
agentf installinstall provider manifests from agent metadata -
agentf updateregenerate manifests when gem version changes -
agentf memory ...inspect/search/add memory entries -
agentf code ...explore project files and patterns -
agentf architecture ...analyze layer distribution -
agentf metrics ...inspect workflow quality and provider parity -
agentf mcp-serverrun MCP server over stdio -
agentf helpshow command help
For command details, run:
agentf <command> helpMinimal configuration
-
REDIS_URLRedis connection string (default:redis://localhost:6379) -
AGENTF_PROJECT_NAMEproject key used for memory isolation -
AGENTF_METRICS_ENABLEDenable/disable metrics (default:true) -
AGENTF_WORKFLOW_CONTRACT_ENABLEDenable/disable workflow stage checks (default:true) -
AGENTF_WORKFLOW_CONTRACT_MODEworkflow stage mode:advisory|enforcing|off(default:advisory) -
AGENTF_AGENT_CONTRACT_ENABLEDenable/disable per-agent pre/post checks (default:true) -
AGENTF_AGENT_CONTRACT_MODEper-agent mode:advisory|enforcing|off(default:enforcing) -
AGENTF_GEM_PATHoptional gem root hint for OpenCode plugin binary resolution
If Redis requires auth, include credentials in REDIS_URL (example: redis://:password@localhost:6379).
Docs
- Security guidance:
docs/security.md - RubyGems package: https://rubygems.org/gems/agentf
Development
Run dependencies and the test suite locally:
bundle install
bundle exec rspec spec/When making changes to the CLI or gemspec use bundle exec rake install to
install the locally built gem into your system Ruby gems for manual testing.
License
MIT