TEMPLATE

Deep Researcher

Searches the web, reads pages, synthesizes findings into reports. Run on schedule or on demand.

agent.ts
import { Agent } from "oncell";
const agent = new Agent("researcher", {
instructions: `You are a research agent. Search thoroughly,
cross-reference sources, and produce clear reports.
Store findings in files for future reference.`,
model: "kimi-k3",
skills: {
synthesis: {
when: "Combining findings into a report",
guide: "Be thorough. Cite sources. Structure clearly.",
model: "claude-opus",
},
},
tools: ["files", "shell", "memory"],
});
agent.task("research", async ({ topic }) => {
const result = await agent.llm(
`Research this topic thoroughly: ${topic}`,
{ maxSteps: 30, maxCost: 3.00 },
);
await agent.files.write(
`reports/${topic.replace(/\s+/g, "-")}.md`,
result.text,
);
return result;
});
// Weekly research digest
agent.schedule("digest", "weekly monday 9am", async () => {
return agent.llm("Review this week's research and summarize key findings.");
});
export default agent;

DEPLOY

$ npx oncell deploy research-agent
DEPLOY NOW

WHAT YOU GET

Web search & fetch
Durable file storage
Scheduled reports
Multi-step research
Knowledge accumulation
Export to files