About Agentf
Agentf is an MCP server in the Agents category: ruby multi-agent AI workflow engine.
Install
git clone https://github.com/nealdeters/agentfThis server has no ConduID identity, so agent calls to it are not receipted. Pin the version you install and review the source before granting it credentials.
Ask AI
Ask AI about Agentf
Powered by Claude · Grounded in docs
Security checks
- ✓README presentThe repository ships documentation.
5 checks have not been run yet.
README
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 install
Or install the released gem:
gem install agentf
- Verify install
agentf version
agentf help
If you use GitHub Copilot in VS Code, agentf install --provider=copilot --scope=local
also writes .vscode/mcp.json so Copilot can start the local agentf mcp-server
and discover tools like agentf-memory-recent.
60-second quick start
Set environment variables (or create a .env file). Example:
export REDIS_URL=redis://localhost:6379
export AGENTF_PROJECT_NAME=my-project
Install provider manifests (example providers shown):
agentf install --provider=opencode,copilot --scope=local
Try useful commands after install:
agentf memory recent -n 5
agentf code glob "lib/**/*.rb"
agentf metrics summary -n 100
agentf mcp-server
agentf eval list
Core commands
agentf installinstall provider manifests from agent metadataagentf updateregenerate manifests when gem version changesagentf memory ...inspect/search/add memory entriesagentf code ...explore project files and patternsagentf architecture ...analyze layer distributionagentf metrics ...inspect workflow quality and provider parityagentf mcp-serverrun MCP server over stdioagentf eval ...run black-box eval scenarios againstagentf agentagentf helpshow command help
For command details, run:
agentf <command> help
Minimal configuration
REDIS_URLRedis connection string (default:redis://localhost:6379)AGENTF_PROJECT_NAMEproject key used for memory isolationAGENTF_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
Memory retrieval
- Episodic memory is stored as
episoderecords with anoutcomesuch aspositive,negative, orneutral lessonremains distilled memory, andplaybookremains procedural memoryagentf memory searchuses embedding-based semantic retrieval- When Redis Stack supports vector fields and KNN queries, Agentf uses native RediSearch vector search for episodic candidate retrieval
- If vector indexing is unavailable, Agentf automatically falls back to semantic scan/rerank over stored embeddings
Copilot MCP notes
- VS Code Copilot discovers local MCP tools from
.vscode/mcp.json agentf install --provider=copilot --scope=localnow writes that file with anagentfstdio server entry- After install, start or restart the server from VS Code with
MCP: List Servers, or open.vscode/mcp.jsonand use the Start action - In Copilot Chat, use Agent mode and confirm the
agentfserver is trusted/running before testing tool calls
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.
Evals
Agentf includes a black-box eval harness under evals/ for proof-based testing.
Each scenario includes:
scenario.ymlmetadata such as agent, timeout, tags, and env overridesprompt.txtthe exact payload sent toagentf agentsetup.shoptional environment preparationverify.shrequired assertions against filesystem, CLI output, or Redis state
Supported scenario metadata includes:
execution_mode: agent|mcpretry_on_confirmation: true|falsefor non-interactive retry flowsexecution_mode: providerfor installer + provider-facing artifact proofexecution_mode: provider_runtimefor generated host/plugin runtime proofproviders/modelstags for matrix summaries
Useful commands:
agentf eval list
agentf eval run engineer_episode_positive
agentf eval run engineer_confirmation_retry
agentf eval run mcp_add_lesson
agentf eval run provider_install_opencode
agentf eval run provider_runtime_opencode_recent
agentf eval run provider_runtime_copilot_recent
agentf eval report
agentf eval report --scenario=engineer_confirmation_retry --since=2026-03-16T00:00:00Z
agentf eval run all --json
Artifacts are written to tmp/evals/ by default. The initial scenarios focus on
direct agentf agent execution plus in-process MCP tool evals. Opencode installs
now default to MCP-first configuration; the legacy plugin runtime remains
available as an explicit fallback. Results are also appended to
tmp/evals/history.jsonl and aggregated into provider/model matrix summaries so
compatibility trends can be compared over time.
License
MIT
README copy captured when this server was indexed; it may lag the repository. The original is authoritative.