This repository was archived by the owner on Jan 23, 2026. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 7
Code-editor agent and Debug agent prototypes #286
Closed
Closed
Changes from all commits
Commits
Show all changes
21 commits
Select commit
Hold shift + click to select a range
f924699
first draft of a code editor
rblalock 8a9d513
Add agent prompt flow to project creation
rblalock 37ff113
Debug agent help
rblalock 096f63b
more debug handling
rblalock 94d823e
deep link, error cache hit, and more.
rblalock cfd1fc6
clean up comments
rblalock e832b0d
fix error gen
rblalock 29f058e
just log a warn for now.
rblalock 51eeb72
Cleanup, tool refactor and organization.
rblalock 40348e7
Remove some emojis for now
rblalock d49c41d
apply fixes!
rblalock 9100a2c
apply patch tool fix
rblalock 442d2b3
try to be careful of changes after edit
rblalock 9b0aa11
optimize file reading
rblalock a7ede05
monitor should only listen on stderr, git diff is non-interactive std…
rblalock 023bd61
pass in the analysis to the fix call
rblalock e5a8e6b
Make it more obvious the applied edits in stdout
rblalock 170a75c
fix test
rblalock 4f32d14
tell grep tool to take a chill pill. add tracing to debug agent
rblalock 47a6108
remove old test
rblalock ae59ba0
streaming!
rblalock File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change | ||||||
|---|---|---|---|---|---|---|---|---|
|
|
@@ -11,6 +11,7 @@ import ( | |||||||
| "sort" | ||||||||
| "syscall" | ||||||||
|
|
||||||||
| "github.com/agentuity/cli/internal/codeagent" | ||||||||
| "github.com/agentuity/cli/internal/errsystem" | ||||||||
| "github.com/agentuity/cli/internal/mcp" | ||||||||
| "github.com/agentuity/cli/internal/organization" | ||||||||
|
|
@@ -326,7 +327,7 @@ Examples: | |||||||
|
|
||||||||
| orgId := promptForOrganization(ctx, logger, cmd, apiUrl, apikey) | ||||||||
|
|
||||||||
| var name, description, agentName, agentDescription, authType, githubAction string | ||||||||
| var name, description, agentName, agentDescription, authType, githubAction, agentGoal string | ||||||||
|
|
||||||||
| if len(args) > 0 { | ||||||||
| name = args[0] | ||||||||
|
|
@@ -340,6 +341,9 @@ Examples: | |||||||
| if len(args) > 3 { | ||||||||
| agentDescription = args[3] | ||||||||
| } | ||||||||
| goalFlag, _ := cmd.Flags().GetString("goal") | ||||||||
| agentGoal = goalFlag | ||||||||
|
Comment on lines
+344
to
+345
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. not sure what foalFlag is supposed to do
Suggested change
|
||||||||
| experimentalCode, _ := cmd.Flags().GetBool("experimental-code-agent") | ||||||||
|
|
||||||||
| authType, _ = cmd.Flags().GetString("auth") | ||||||||
| githubAction, _ = cmd.Flags().GetString("action") | ||||||||
|
|
@@ -446,6 +450,9 @@ Examples: | |||||||
| templateName = resp.Template | ||||||||
| providerName = resp.Runtime | ||||||||
| provider = resp.Provider | ||||||||
| if agentGoal == "" { | ||||||||
| agentGoal = tui.Input(logger, "Describe what the initial agent should do", "Enter a brief description of the agent's functionality") | ||||||||
| } | ||||||||
| } | ||||||||
| } | ||||||||
|
|
||||||||
|
|
@@ -551,9 +558,24 @@ Examples: | |||||||
|
|
||||||||
| }) | ||||||||
|
|
||||||||
| // run the git flow | ||||||||
| projectGitFlow(ctx, provider, tmplContext, githubAction) | ||||||||
|
|
||||||||
| // run code generation for the initial agent if a goal is provided | ||||||||
| if agentGoal != "" && experimentalCode { | ||||||||
| // determine the agent source directory via template rules | ||||||||
| dirRule, err := templates.LoadTemplateRuleForIdentifier(tmplDir, provider.Identifier) | ||||||||
| if err == nil { | ||||||||
| dir := filepath.Join(projectDir, dirRule.SrcDir, util.SafeFilename(agentName)) | ||||||||
| genOpts := codeagent.Options{Dir: dir, Goal: agentGoal, Logger: logger} | ||||||||
| codegenAction := func() { | ||||||||
| if err := codeagent.Generate(ctx, genOpts); err != nil { | ||||||||
| logger.Warn("Agent code generation failed: %s", err) | ||||||||
| } | ||||||||
| } | ||||||||
| tui.ShowSpinner("Crafting Agent code ...", codegenAction) | ||||||||
| } | ||||||||
| } | ||||||||
|
|
||||||||
| if format == "json" { | ||||||||
| json.NewEncoder(os.Stdout).Encode(projectData) | ||||||||
| } else { | ||||||||
|
|
@@ -813,4 +835,6 @@ func init() { | |||||||
| projectNewCmd.Flags().String("templates-dir", "", "The directory to load the templates. Defaults to loading them from the github.com/agentuity/templates repository") | ||||||||
| projectNewCmd.Flags().String("auth", "bearer", "The authentication type for the agent (bearer or none)") | ||||||||
| projectNewCmd.Flags().String("action", "github-app", "The action to take for the project (github-action, github-app, none)") | ||||||||
| projectNewCmd.Flags().String("goal", "", "A description of what the initial agent should do (optional)") | ||||||||
| projectNewCmd.Flags().Bool("experimental-code-agent", false, "Enable experimental code agent generation") | ||||||||
| } | ||||||||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.