|
1 |
| -# Welcome to Codebolt AI Editor |
| 1 | +# Custom Agents in Codebolt |
2 | 2 |
|
3 |
| -Welcome to Codebolt AI Editor, the next-generation AI-powered code editor designed to accelerate your development workflow through intelligent automation and seamless AI integration. |
| 3 | +Codebolt is built from the ground up to support custom, code-based agents. Unlike other code editors where the agent logic is a closed "secret sauce" (or forks where the core agent behavior is buried in the editor), Codebolt exposes clear, composable APIs so you can implement and own the full agent behavior in code. |
4 | 4 |
|
5 |
| -## What is Codebolt AI Editor? |
| 5 | +This is a fundamental difference: in Codebolt, you write the logic that drives the agent’s decision-making and execution—the **Agentic Loop**—instead of treating it as a black box. |
6 | 6 |
|
7 |
| -Codebolt AI Editor is a revolutionary development environment that combines the power of artificial intelligence with traditional coding tools to provide an unparalleled programming experience. Built for modern developers, it offers intelligent code generation, automated workflows, and context-aware assistance to help you build better software faster. |
| 7 | +## What is the Agentic Loop? |
8 | 8 |
|
9 |
| -## Key Features |
| 9 | +The **Agentic Loop** is the iterative cycle an agent follows to solve a task by perceiving context, reasoning, taking actions, and learning from results until it reaches a done state. |
10 | 10 |
|
11 |
| -- **AI-Powered Agents**: Create custom agents that can understand your codebase and perform complex tasks autonomously |
12 |
| -- **Multi-Agent Coordination**: Orchestrate multiple agents to work together on complex projects |
13 |
| -- **Inline Edit (Ctrl+K)**: Make instant code modifications with AI assistance directly in your editor |
14 |
| -- **Intelligent Chats**: Get coding help through natural language conversations with AI |
15 |
| -- **Task Flow Automation**: Build and manage sophisticated workflows that integrate seamlessly with your development process |
16 |
| -- **Context-Aware Intelligence**: Leverage deep project understanding for smarter suggestions and actions |
17 |
| -- **Command Line Interface**: Powerful CLI tools for automation and scripting |
18 |
| -- **TypeScript SDK**: Extend Codebolt with custom integrations and extensions |
| 11 | +```mermaid |
| 12 | +%%{init: {'themeVariables': { 'fontSize': '12px', 'loopTextColor': '#000000', 'labelBoxBorderColor': '#000000', 'labelBoxBkgColor': '#ffffcc' }, 'sequence': { 'useMaxWidth': false, 'boxMargin': 10, 'boxTextMargin': 5 }}}%% |
| 13 | +sequenceDiagram |
| 14 | + autonumber |
| 15 | + participant User as User |
| 16 | + participant Agent as Agent |
| 17 | + participant LLM as LLM |
| 18 | + participant Memory as State |
| 19 | + participant Tool as Tool |
19 | 20 |
|
20 |
| -## Quick Links |
| 21 | + User->>Agent: in - intent/prompt |
| 22 | + activate Agent |
| 23 | + Agent->>Memory: Gather context (code, history, state) |
| 24 | + Memory-->>Agent: |
| 25 | + deactivate Agent |
| 26 | + activate Agent |
| 27 | + Agent->>LLM: Build prompt (context, tools, etc) and Call LLM |
| 28 | + LLM-->>Agent: LLM Response (Tool call(s) with args) |
| 29 | + deactivate Agent |
| 30 | + loop Agentic Loop |
| 31 | + activate Agent |
| 32 | + Agent->>Tool: Call Tool |
| 33 | + Tool-->>Agent: Tool Execution Results |
| 34 | + deactivate Agent |
| 35 | + activate Agent |
| 36 | + Agent->>Memory: Update memory/state/conversation history with Tool Execution Results |
| 37 | + Memory-->>Agent: |
| 38 | + deactivate Agent |
| 39 | + activate Agent |
| 40 | + Agent->>LLM: Update Prompt with Tool and Call LLM |
| 41 | + LLM-->>Agent: Tool call with args or Clarification question or Done |
| 42 | + deactivate Agent |
| 43 | + end |
| 44 | + Agent->>User: End the Agent if LLM Says Done |
| 45 | +``` |
21 | 46 |
|
22 |
| -### 🚀 Getting Started |
23 |
| -- [Installation Guide](3_CustomAgents/2-getting-started/installation.md) - Set up Codebolt AI Editor on your system |
24 |
| -- [Quickstart Tutorial](3_CustomAgents/2-getting-started/quickstart.md) - Get up and running in minutes |
25 |
| -- [Core Concepts](concepts.md) - Understand the fundamental building blocks |
| 47 | +### How it runs in Codebolt |
26 | 48 |
|
27 |
| -### 🔧 Core Features |
28 |
| -- [Agents](3_CustomAgents/agents/overview.md) - Learn about AI agents and how to create them |
29 |
| -- [Multi-Agents](3_CustomAgents/core/multi-agents/overview.md) - Coordinate multiple agents for complex tasks |
30 |
| -- [Inline Edit](3_CustomAgents/core/inline-edit/overview.md) - Master the Ctrl+K feature for quick edits |
31 |
| -- [MCP Tools](3_CustomAgents/Tools/overview.md) - Extend functionality with Modular Component Plugins |
32 |
| -- [Chats](3_CustomAgents/core/chats/overview.md) - Leverage AI-assisted conversations |
33 |
| -- [Task Flow](3_CustomAgents/core/task-flow/overview.md) - Automate your development workflows |
| 49 | +- Capture the user’s goal and current project context. |
| 50 | +- Build a structured prompt with relevant code, history, and available tools. |
| 51 | +- Call the model to reason about the next step (respond, ask, call tools, or finish). |
| 52 | +- If tools are selected, execute them (filesystem, git, browser, tests, vector search, etc.). |
| 53 | +- Observe results, update agent state, enrich context, and iterate. |
| 54 | +- Stop when the model or your policy signals completion and return the final answer. |
34 | 55 |
|
35 |
| -### 📚 Learn More |
36 |
| -- [End-to-End Tutorials](tutorials.md) - Complete project walkthroughs |
37 |
| -- [API Reference](api-reference.md) - Detailed technical documentation |
38 |
| -- [Troubleshooting](troubleshooting.md) - Common issues and solutions |
| 56 | +### Why exposing the Agentic Loop via APIs matters |
| 57 | +- **Full control**: Own the reasoning and action policy. Tailor when to plan, when to execute, when to ask for clarification, and when to stop. |
| 58 | +- **Determinism and testing**: Swap models, freeze prompts, inject mocks, and write unit/integration tests for each loop stage. |
| 59 | +- **Composability**: Mix and match tools, memory, RAG, and evaluators. Compose multi-agent patterns or delegate to remote agents. |
| 60 | +- **Safety and governance**: Enforce guardrails, approvals, rate limits, and sandboxed execution at the exact decision points. |
| 61 | +- **Observability**: Instrument every loop turn—prompts, tool I/O, and state transitions—for debugging and analytics. |
| 62 | +- **Performance tuning**: Cache sub-results, short-circuit trivial steps, batch tool calls, and control token/latency budgets. |
| 63 | +- **Portability**: Bring your agent logic to different projects or environments without rewriting editor internals. |
39 | 64 |
|
40 |
| -## Community & Support |
| 65 | +This page is an overview—specific API references are available elsewhere in the docs, but you don’t need them to understand the central idea: Codebolt lets you implement your own Agentic Loop, end to end. |
41 | 66 |
|
42 |
| -Join our growing community of developers who are revolutionizing how code is written with AI assistance. Whether you're building your first agent or orchestrating complex multi-agent workflows, we're here to help you succeed. |
43 |
| - |
44 |
| -Ready to transform your coding experience? Let's get started! |
| 67 | +### Agentic Loop vs. simple prompt-based editors |
| 68 | +- **Engineered loop vs. single-shot prompts**: Codebolt agents iterate with planning, tool use, and state. Prompt-only editors send a static prompt per turn with limited control over process. |
| 69 | +- **Actionable tools vs. plain text**: Agents execute filesystem, git, web, test, and other tools programmatically and verify results; prompt-only flows rely on manual copy-paste by the user. |
| 70 | +- **Policy control vs. hidden heuristics**: You define stop criteria, retries, approvals, and delegation. Simple editors hide these choices inside product logic. |
| 71 | +- **Traceable vs. opaque**: Every turn, prompt, tool call, and state change can be observed and tested. Prompt-only workflows typically expose just chat history. |
| 72 | +- **Safer by construction**: Guardrails and sandboxes live at action boundaries. Prompt-only systems offer coarse safeguards around text generation. |
| 73 | +- **Faster and cheaper at scale**: You can cache, batch, and short-circuit steps. One-shot prompting offers fewer levers for cost/latency control. |
0 commit comments