Skip to content

Open source AI coding agent. Designed for large projects and real world tasks.

748 B
Raw Blame
package shared

func (f *ConvoMessageFlags) GetReplyTags() []string {
	var replyTags []string
	if f.DidLoadContext {
		replyTags = append(replyTags, "πŸ“₯ Loaded Context")
	}
	if f.DidMakePlan {
		if f.DidMakeDebuggingPlan {
			replyTags = append(replyTags, "🐞 Made Debug Plan")
		} else if f.DidRemoveTasks {
			replyTags = append(replyTags, "πŸ”„ Revised Plan")
		} else {
			replyTags = append(replyTags, "πŸ“‹ Made Plan")
		}
	}
	if f.DidWriteCode {
		replyTags = append(replyTags, "πŸ‘¨β€πŸ’» Wrote Code")
	}
	// if f.DidCompleteTask {
	// 	replyTags = append(replyTags, "βœ…")
	// }
	if f.DidCompletePlan {
		replyTags = append(replyTags, "🏁")
	}

	if f.HasError {
		replyTags = append(replyTags, "🚨 Error")
	}

	return replyTags
}