Skip to content

Commit 315f31c

Browse files
author
Bruce Hauman
committed
Remove clojure-edit-agent from codebase
- Delete clojure_edit_agent.edn configuration file - Remove clojure-edit-agent-config function from default_agents.clj - Remove clojure-edit-agent from default-agent-ids set - Remove clojure_edit_agent mapping from tool-id->agent-id - Remove unused clojure.edn import - All tests pass (293 tests, 2062 assertions)
1 parent f83b1d2 commit 315f31c

File tree

3 files changed

+5
-79
lines changed

3 files changed

+5
-79
lines changed

resources/clojure-mcp/agents/clojure_edit_agent.edn

Lines changed: 0 additions & 64 deletions
This file was deleted.

src/clojure_mcp/tools/agent_tool_builder/default_agents.clj

Lines changed: 4 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
(ns clojure-mcp.tools.agent-tool-builder.default-agents
2-
"Default agent configurations that replicate the functionality of
2+
"Default agent configurations that replicate the functionality of
33
the original hardcoded agent tools (dispatch_agent, architect, code_critique)"
4-
(:require [clojure.java.io :as io]
5-
[clojure.edn :as edn]))
4+
(:require [clojure.java.io :as io]))
65

76
(defn dispatch-agent-config
87
"Configuration for the dispatch agent - a general purpose agent with read-only tools"
@@ -37,13 +36,6 @@
3736
:enable-tools nil ; No tools needed
3837
:memory-size 35})
3938

40-
(defn clojure-edit-agent-config
41-
"Configuration for the clojure edit agent - loaded from EDN resource"
42-
[]
43-
(-> (io/resource "clojure-mcp/agents/clojure_edit_agent.edn")
44-
slurp
45-
edn/read-string))
46-
4739
(defn parent-agent-config
4840
"Configuration for the parent agent - has all tools and uses Clojure REPL system prompt"
4941
[]
@@ -62,13 +54,12 @@
6254
[]
6355
[(dispatch-agent-config)
6456
(architect-config)
65-
(code-critique-config)
66-
#_(clojure-edit-agent-config)])
57+
(code-critique-config)])
6758

6859
(defn default-agent-ids
6960
"Returns a set of default agent IDs for easy checking"
7061
[]
71-
#{:dispatch-agent :architect :code-critique :clojure-edit-agent})
62+
#{:dispatch-agent :architect :code-critique})
7263

7364
(defn merge-tool-config-into-agent
7465
"Merges tool-specific configuration from :tools-config into an agent configuration.

src/clojure_mcp/tools/agent_tool_builder/tool.clj

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,8 +88,7 @@
8888
;; Map tool-id keywords to agent-id keywords
8989
tool-id->agent-id {:dispatch_agent :dispatch-agent
9090
:architect :architect
91-
:code_critique :code-critique
92-
:clojure_edit_agent :clojure-edit-agent}
91+
:code_critique :code-critique}
9392

9493
;; Merge tool configs into matching default agents
9594
default-agents-with-tool-config

0 commit comments

Comments
 (0)