Building Ai Agents with Shell Scripts
summary
Demo shows a working agent framework written in Nushell that calls REST LLMs (uses GPT-4 mini with temperature 0 and stream=false), converts repo commit logs and PDFs into embeddings, stores them in Couchbase vector search, and performs RAG by vector-querying the top-k results then re-prompting the model. The pipeline uses curl, ddgr, git clone, and one-line Nushell modules, runs with a max-iteration guard to avoid loops, and works in the demo but carries clear security and governance risks.
AI-written summary · about
chapters (19)
- 0:00Introduction and speaker intro
- 1:09Why New Shell for AI agents
- 2:53New Shell features and data frames
- 5:23Couchbase Shell and vector search
- 7:28Large language models explained
- 11:21Model limitations and context
- 15:54Retrieval augmented generation
- 19:23AI agents vs chatbots
- 21:52Old tool use patterns
- 24:20Modern tool use with MCP
- 25:47Demo setup and framework
- 28:14Running the agent demo
- 31:45Model tools and parameters
- 33:30Tool implementations
- 35:37Agent execution flow
- 38:04Live demo with GitHub repo
- 43:15Security and governance concerns
- 45:42MCP advantages and limitations
- 47:28Demo results and wrap-up
