Skip to content

Commit f161ebd

Browse files
committed
updated
1 parent f097948 commit f161ebd

File tree

5 files changed

+78
-321
lines changed

5 files changed

+78
-321
lines changed

docs/.obsidian/appearance.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,5 @@
1-
{}
1+
{
2+
"enabledCssSnippets": [
3+
"mermaid"
4+
]
5+
}

docs/.obsidian/workspace.json

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -4,21 +4,21 @@
44
"type": "split",
55
"children": [
66
{
7-
"id": "e7c32a3cd70437dc",
7+
"id": "b2016b63647bf1c5",
88
"type": "tabs",
99
"children": [
1010
{
11-
"id": "b94adbd1beee150b",
11+
"id": "8ef7765f59ef9398",
1212
"type": "leaf",
1313
"state": {
1414
"type": "markdown",
1515
"state": {
16-
"file": "5_api/1_overview.md",
16+
"file": "3_CustomAgents/2-getting-started/quickstart.md",
1717
"mode": "source",
1818
"source": false
1919
},
2020
"icon": "lucide-file",
21-
"title": "1_overview"
21+
"title": "quickstart"
2222
}
2323
}
2424
]
@@ -169,13 +169,16 @@
169169
"custom-sort:Toggle custom sorting": false
170170
}
171171
},
172-
"active": "9c82afebc22e5868",
172+
"active": "8ef7765f59ef9398",
173173
"lastOpenFiles": [
174+
"3_CustomAgents/1-index.md",
175+
"3_CustomAgents/2-getting-started/concepts.md",
176+
"3_CustomAgents/2-getting-started/installation.md",
177+
"3_CustomAgents/3-Key Concepts",
178+
"5_api/1_overview.md",
174179
"1_index.md",
175180
"sortspec.md",
176-
"3_CustomAgents/1-index.md",
177181
"Untitled.canvas",
178-
"3_CustomAgents/2-getting-started/concepts.md",
179182
"2_Docs/portal/5_Acounts/1_billing.md",
180183
"2_Docs/application/5_model.md",
181184
"2_Docs/application/4_agents.md",
@@ -203,10 +206,7 @@
203206
"3_CustomAgents/agents/overview.md",
204207
"3_CustomAgents/agents/custom-agent.md",
205208
"3_CustomAgents/core/chats/overview.md",
206-
"3_CustomAgents/core/cli/overview.md",
207-
"3_CustomAgents/CoreConcepts/Agents.md",
208209
"2_Docs/Tools",
209-
"2_Docs/Agents",
210-
"api/Mcp Access/Untitled"
210+
"2_Docs/Agents"
211211
]
212212
}

docs/3_CustomAgents/1-index.md

Lines changed: 62 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -1,44 +1,73 @@
1-
# Welcome to Codebolt AI Editor
1+
# Custom Agents in Codebolt
22

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.
44

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.
66

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?
88

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.
1010

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
1920
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+
```
2146

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
2648

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.
3455

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.
3964

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.
4166

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.

docs/3_CustomAgents/2-getting-started/concepts.md

Lines changed: 0 additions & 162 deletions
This file was deleted.

0 commit comments

Comments
 (0)