agentleFS
MicrosoftKnown publishermicrosoft/ai-agents-for-beginners/translations/pcm/.agents/skills/local-ai-agents/SKILL.md

local-ai-agents

Skill76k starsChanged 5 months agoMITView on GitHub

Build local-first AI agents wey dey run fully for developer workstation

Adopted by

Steady: 0 new projects took it in the last 4 weeks, none the 4 weeks before.thin data

Week of Oct 4: 0 new projectsWeek of Oct 11: 0 new projectsWeek of Oct 18: 0 new projectsWeek of Oct 25: 0 new projectsWeek of Nov 1: 0 new projectsWeek of Nov 8: 0 new projectsWeek of Nov 15: 0 new projectsWeek of Nov 22: 0 new projects
Oct 2026Nov 2026Nov 2026
New projects taking a version of this file each week, over the 8 weeks our latest run read: only 0 in all, so this is a hint, not a trend.

Who's talking about microsoft/ai-agents-for-beginners

The biggest 5 of 88 mentions linking to the repository that our crawl found. Each line is their own headline.

See all 88

Talked about on GitHub, Bluesky and Hacker News (88 times).

On GitHub · 50

45 more on GitHub

On Bluesky · 35

30 more on Bluesky

On Hacker News · 3

The file

We split this skill into the rules it gives an agent

7 rules. About 0 are common, 6 are distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈6

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Run agent fully inside device for privacy, cost, or offline reasons.

    line 26
  2. Distinctive:

    Use Qwen function-calling model to make local tool calls correct.

    line 28
  3. Distinctive:

    Add local RAG (Chroma) or local MCP server.

    line 29
  4. Distinctive:

    Sandboxed tools: every file tool dey resolve paths and no allow anything wey dey outside one project root — even if na local, tool dey run …

    line 70
  5. Very specific:

    Local RAG: put docs inside Chroma collection.

    line 72
  6. Distinctive:

    Keep every file/tool work confined to sandboxed project directory.

    line 90
  7. Distinctive:

    No send code or data go cloud when the learner talk say na privacy/offline e wan — keep everything local.

    line 91

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

How to Create Local AI Agents wit Foundry Local and Qwen

Skill wey go help for Lesson 17 – Creating Local AI Agents. Use am to help person wey dey learn build agent wey sabi reason, dey call tools, and dey search documentation all na inside dem machine — no cloud inference. Make every recommendation stand gidigba for lesson content and the runnable notebook.

Triggers

Activate this skill when person wey dey learn want:

  • Run agent fully inside device for privacy, cost, or offline reasons.
  • Serve model locally with Foundry Local and connect via the OpenAI-compatible endpoint.
  • Use Qwen function-calling model to make local tool calls correct.
  • Add local RAG (Chroma) or local MCP server.
  • Design hybrid local/cloud routing way.

Core mental model

Small Language Model (SLM) dey trade wide knowledge for privacy, cost, and offline work. The best way: make the SLM dey organize and make tools carry the heavy work. The model no need to know the codebase — e need to know wen to call read_file and search_docs. Dis one dey play to SLM strength (small decisions like tool choice) and avoid hin weakness (big knowledge, long multi-hop reasoning).

Why these specific pieces

  • Foundry Local get OpenAI-compatible HTTP endpoint, so cloud agent code fit transfer by just changing base_url (and using local fake API key). E also dey choose best build (CPU/GPU/NPU) for machine.
  • Qwen models get epp to call functions and always dey give correct tool calls — na dis one make local chat model become local agent.
  • Chroma dey run inside process and dey store vectors for disk, so all RAG work (embed → store → retrieve → reason) remains local.
  • MCP na transport, no be cloud service: MCP server fit run local with stdio.

Setup essentials

foundry model run qwen2.5-7b-instruct
foundry service status
from foundry_local import FoundryLocalManager
from openai import OpenAI

manager = FoundryLocalManager("qwen2.5-7b-instruct")
client = OpenAI(base_url=manager.endpoint, api_key=manager.api_key)  # lokal plassholder

About 8 GB RAM na minimum wey make sense; GPU/NPU fit help but dem no mandatory.

Key patterns wey you fit repeat

Show the learner the notebook 17-local-agent-foundry-local.ipynb:

  • Sandboxed tools: every file tool dey resolve paths and no allow anything wey dey outside one project root — even if na local, tool dey run wit user permissions.
  • Tool-calling loop: register tools with OpenAI tools schema, run requested tools locally, give the results back, keep am up till final answer.
  • Local RAG: put docs inside Chroma collection; search_docs go return top-k chunks.
  • Local MCP: connect to local server thru stdio; scope am to project directory and check outputs well.

Hybrid routing (local as one of the models)

SituationWhere e dey run
Sensitive data / offlineLocal SLM
Simple, bounded taskLocal SLM (cheap, fast)
Hard multi-hop reasoning on non-sensitive dataCloud model
Cloud outageLocal SLM (graceful degradation)

Dis one dey mirror di model-routing idea from Lesson 16, with workstation as one of di routes. Make you like designs wey fit fall back to local so agent go degrade in quality, no be just fail completely.

Guardrails for the assistant

  • Keep every file/tool work confined to sandboxed project directory.
  • No send code or data go cloud when the learner talk say na privacy/offline e wan — keep everything local.
  • Set correct expectations for SLM quality; rely on tools and RAG, no be the model memorized knowledge.
  • Note say Lesson 17 no get Foundry Responses endpoint, so cloud smoke-test ka no go work — make sure by running notebook local.

<!-- CO-OP TRANSLATOR DISCLAIMER START -->

Disclaimer: Dis document don translate wit AI translation service Co-op Translator. Even tho we dey try make am correct, abeg make you know say automated translation fit get errors or mistakes. Di original document for dia own language na im be di correct source. For important info, make person wey sabi human translation do am. We no go responsible for any misunderstanding or wrong understanding wey fit happen because of dis translation.

<!-- CO-OP TRANSLATOR DISCLAIMER END -->

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.