FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
cecli/cecli/coders/sub_agent_coder.py at main · cecli-dev/cecli · GitHub
cecli-dev
cecli
Repository navigation
Code
Issues
11
(11)
Pull requests
8
(8)
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
cecli
/
cecli
/
coders
/
sub_agent_coder.py
Copy path
More file actions
More file actions
Latest commit
History
History
History
23 lines (15 loc) · 637 Bytes
Breadcrumbs
cecli
/
cecli
/
coders
/
sub_agent_coder.py
Copy path
File metadata and controls
23 lines (15 loc) · 637 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
"""SubAgentCoder - a Coder variant for sub-agents.
Extends AgentCoder but excludes the Delegate tool from its tool schemas
so sub-agents cannot spawn further sub-agents.
"""
import
logging
from
cecli
.
coders
.
agent_coder
import
AgentCoder
logger
=
logging
.
getLogger
(
__name__
)
class
SubAgentCoder
(
AgentCoder
):
"""Coder for sub-agents that disallows spawning further sub-agents."""
edit_format
=
"subagent"
prompt_format
=
"subagent"
def
post_init
(
self
):
super
().
post_init
()
if
not
self
.
agent_config
.
get
(
"allow_nested_delegation"
,
False
):
self
.
registered_tools
[
"excluded"
].
add
(
"delegate"
)
Back
|
FazBrowse Home
|
New Git URL