-
Notifications
You must be signed in to change notification settings - Fork 3
feat: add AI agent to backend-and-client template #153
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
🚀 Package Preview Available!Install this PR's preview build with npm: npm i @base44-preview/[email protected]Prefer not to change any import paths? Install using npm alias so your code still imports npm i "base44@npm:@base44-preview/[email protected]"Or add it to your {
"dependencies": {
"base44": "npm:@base44-preview/[email protected]"
}
}
Preview published to npm registry — try new features instantly! |
Code reviewNo issues found. Checked for bugs and CLAUDE.md compliance. |
4c7830a to
9947faa
Compare
Add task_manager agent configuration to the backend-and-client template and prompt users to configure AI agents during project creation. Co-Authored-By: Claude Opus 4.5 <[email protected]>
9947faa to
685c294
Compare
src/cli/commands/project/create.ts
Outdated
| successMessage: theme.colors.base44Orange("AI agent configured successfully"), | ||
| errorMessage: "Failed to configure AI agent", |
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.
@claude let's add the same plural/singular logic you have in 203
you can probably reuse a little helper here
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.
Claude finished @Paveltarno's task in 56s —— View job
Done!
Tasks
- Read the file to understand the plural/singular logic at line 203
- Create a reusable helper function for plural/singular formatting
- Apply the helper at line 203
- Apply the helper at line 209 (success and error messages)
- Commit and push changes
Summary
I've added a reusable pluralize helper function and applied it to the agent configuration messages:
Changes made:
- Created
pluralize(count, singular, plural?)helper function that handles singular/plural forms - Applied it to the loading message:
`Configuring ${agents.length} AI ${pluralize(agents.length, "agent")}...` - Applied it to the success message:
`AI ${pluralize(agents.length, "agent")} configured successfully` - Applied it to the error message:
`Failed to configure AI ${pluralize(agents.length, "agent")}`
The helper now makes it easy to reuse this logic anywhere else in the codebase where plural/singular handling is needed.
Created a reusable pluralize helper function and applied it to agent configuration messages (loading message, success message, and error message) to properly handle both singular and plural cases. Co-authored-by: paveltarno <[email protected]>
|
@claude, the helper you've added for pluralization is good but i think we can just use plural all the time the same as we do with data-models |
|
Claude finished @Paveltarno's task in 59s —— View job Tasks
SummaryRemoved the Changes made:
The messages now always use "agents" regardless of count, consistent with how "data models" are handled. |
Co-authored-by: paveltarno <[email protected]>
|
We have another task to remove questions from the |
@claude please remove the push code, leave only the agent config we've added to the template |
|
Claude finished @Paveltarno's task in 1m 16s —— View job Tasks
SummarySuccessfully removed the agent push/configuration code from Changes made:
What remains:
The PR now contains only the template addition, ready to be merged once the create flow questions are updated separately. |
Keep only the agent template file, remove the integration code that prompts and pushes agents during project creation. Co-authored-by: paveltarno <[email protected]>
Code reviewNo issues found. Checked for bugs and CLAUDE.md compliance. |
@kfirstri done, please take a look |
Description
This PR adds a pre-configured AI task management agent template to the backend-and-client project template. The agent provides a conversational interface for managing tasks through natural language interactions with the Task entity, demonstrating how AI agents can be integrated into Base44 projects. The agent template file is included in new projects created with this template.
Related Issue
None
Type of Change
Changes Made
task_manager.jsoncagent configuration file totemplates/backend-and-client/base44/agents/directoryTesting
npm test)Checklist
Additional Notes
The task_manager agent serves as both a practical feature for projects created with the backend-and-client template and as a reference implementation for developers learning how to integrate AI agents. Users can interact with it conversationally to create, update, complete, and delete tasks.
Note: Earlier commits in this PR included agent deployment integration code in the create command flow, but that was removed in subsequent refactoring commits (b876e0a) to keep the implementation focused on providing the template file only.
🤖 Generated by Claude | 2026-01-29 19:45 UTC