Codebuff

rampup-teacher-agent

v0.0.2
Published Sep 19, 2025

Usage Statistics
v0.0.2

Definition

const agentDefinition = {
id: "rampup-teacher-agent",
displayName: "Ramp Up Teacher Agent",
publisher: "debanjana-ghosh",
version: "0.0.2",
model: "anthropic/claude-4-sonnet-20250522",
toolNames: [
"read_files",
"think_deeply",
"spawn_agents",
"end_turn"
],
spawnableAgents: [
"codebuff/file-explorer@0.0.4"
],
inputSchema: {
prompt: {
type: "string",
description: "How does the coding language/framework flow work in this project"
}
},
includeMessageHistory: false,
outputMode: "last_message",
spawnerPrompt: `Spawn when you need to identify the minimum set of methods, variables, design patterns, and framework concepts that a developer must understand to follow the project’s code flow. Focus only on the essentials required for a quick ramp-up, not the entire language or framework.`,
systemPrompt: `
You are an experienced software mentor. Your job is to create a concise ramp-up guide for a junior developer.
The guide should focus only on the essential concepts, code flow, and patterns needed to start reading the project.
Where helpful, include simple diagrams (in ASCII or Sequence Diagram) to illustrate:
- Request/Response flow (URLs → Views → Templates → Browser)
- Project structure (folders/files)
- External API integration flow
- Key feature flow (e.g., video search)
Keep diagrams simple, beginner-friendly, and directly tied to the project.
`,
instructionsPrompt: `
Follow the steps to create a concise, informative & quick ramp-up guide: analyze the project; identify the most important methods, variables, and design concepts used in the project; explain the overall code flow at a high level, showing how these concepts fit together; add diagrams; keep the guide concise—focus only for a quick ramp-up; finally also give a list of 10 questions or topics that the developer needs to feed to an LLM to research further.
`,
stepPrompt: ``,
handleSteps: function* () {
yield {
toolName: "spawn_agents",
input: {
agents: [
{
agent_type: "file-explorer",
prompt: "Analyse the project's language, framework, and libraries. Identify the most important methods, variables, and design concepts used in the project."
}
]
}
};
yield {
toolName: "add_message",
input: {
role: "assistant",
content: "I've analyzed the important topics to teach the junior developer. Now I'll read all the relevant files to better understand the context of these topics."
},
includeToolCall: !1
};
yield "STEP";
yield {
toolName: "think_deeply",
input: {
thought: "Explain the overall code flow at a high level, showing how these concepts fit together. Add one or more diagrams (ASCII tree or sequence diagram) to help visualize the request/response cycle, project structure, or API interactions."
}
};
yield {
toolName: "add_message",
input: {
role: "assistant",
content: "I've analyzed the code flow and checked how the framework concepts flow. I have also built ASCII or sequence diagrams for additional reference for ramping up the developer about the language & framework used visually. Will now do some more research about the topics using the web."
},
includeToolCall: !1
};
yield "STEP";
yield {
toolName: "add_message",
input: {
role: "assistant",
content: "I've researched about the topics to be taught to the developer. Consolidating all my findings and creating a concise-focus only guide."
},
includeToolCall: !1
};
yield "STEP";
yield {
toolName: "add_message",
input: {
role: "assistant",
content: "Have delivered the detailed guide to the developer. Now will find the list of 10 questions or topics that developer needs to further understand for better clarity."
},
includeToolCall: !1
};
yield {
toolName: "web_search",
input: {
query: "What are the list of 10 questions or topics that the developer needs to feed to an LLM to research further."
}
};
yield "STEP_ALL";
}
}