
official account of the open agent framework. write once • deploy anywhere • use any LLM • zero lock-in.
- Tweets34
- Following9
- Followers2.4K
- Likes56
!["use agent"; export function CompanySlackAgent() { // Attach persistent data to each agent, stored in your DB. const [isEnhanced, setEnhanced] = usePersistentState("isEnhanced", false); // Give your agent the ability to upgrade itself. useTool({ name: "enhance", description: "...", run: () => setEnhanced(true) }); // Attach new capabilities, on-demand. if (isEnhanced) { useModel('anthropic/fable-5-0'); useSandbox(daytona()); useTool(/* ... */); useSkill(/* ... */); useSubagent(/* ... */); } else { useModel('anthropic/sonnet-5-0'); } // Return your agent instructions. Flue handles the rest. return `You are a helpful assistant.`; }](https://pbs.twimg.com/media/HN2TLAabUAApADJ.jpg?name=small&format=webp)
ALT "use agent"; export function CompanySlackAgent() { // Attach persistent data to each agent, stored in your DB. const [isEnhanced, setEnhanced] = usePersistentState("isEnhanced", false); // Give your agent the ability to upgrade itself. useTool({ name: "enhance", description: "...", run: () => setEnhanced(true) }); // Attach new capabilities, on-demand. if (isEnhanced) { useModel('anthropic/fable-5-0'); useSandbox(daytona()); useTool(/* ... */); useSkill(/* ... */); useSubagent(/* ... */); } else { useModel('anthropic/sonnet-5-0'); } // Return your agent instructions. Flue handles the rest. return `You are a helpful assistant.`; }
!["use agent"; export function CompanySlackAgent() { // Attach metadata to each agent: channel ID, thread ID, etc. const {isAdmin} = useInitialData<{isAdmin: boolean}>(); // Attach new capabilities, conditionally. if (isAdmin) { useTool(/* ... */); useSkill(/* ... */); useSubagent(/* ... */); } // Return your agent instructions. Flue handles the rest. return `You are a helpful assistant. [...]`; }](https://pbs.twimg.com/media/HN2R-RAaMAAcgTh.jpg?name=small&format=webp)
ALT "use agent"; export function CompanySlackAgent() { // Attach metadata to each agent: channel ID, thread ID, etc. const {isAdmin} = useInitialData<{isAdmin: boolean}>(); // Attach new capabilities, conditionally. if (isAdmin) { useTool(/* ... */); useSkill(/* ... */); useSubagent(/* ... */); } // Return your agent instructions. Flue handles the rest. return `You are a helpful assistant. [...]`; }
!["use agent"; // This is the IssueTriage agent. export function IssueTriage() { // Define your agent with hooks. // Attach capabilities to your agent. useModel("anthropic/claude-sonnet-5-0"); useSkill(triageSkill); // Attach and store persistent data on each agent. const [isSandbox, setSandbox] = usePersistentState("isSandbox", false); // Update agent capabilities as that state evolves. useTool({ name: "handoff", description: "...", run: () => setSandbox(true) }); if (isSandbox) useSandbox(local()); // Return your agent instructions. Flue handles the rest. return `Triage the bug report end-to-end...`; }](https://pbs.twimg.com/media/HNxU8kPaAAAirmx.jpg?name=small&format=webp)
ALT "use agent"; // This is the IssueTriage agent. export function IssueTriage() { // Define your agent with hooks. // Attach capabilities to your agent. useModel("anthropic/claude-sonnet-5-0"); useSkill(triageSkill); // Attach and store persistent data on each agent. const [isSandbox, setSandbox] = usePersistentState("isSandbox", false); // Update agent capabilities as that state evolves. useTool({ name: "handoff", description: "...", run: () => setSandbox(true) }); if (isSandbox) useSandbox(local()); // Return your agent instructions. Flue handles the rest. return `Triage the bug report end-to-end...`; }




















