{"ref":"content:cap-in-the-age-of-ai-4-more-on-agents","page":"/content/cap-in-the-age-of-ai-4-more-on-agents","json":"/content/cap-in-the-age-of-ai-4-more-on-agents.json","generated":"2026-11-15","drafted_with_ai":true,"entity":{"id":"cap-in-the-age-of-ai-4-more-on-agents","content_type":"video","url":"https://www.youtube.com/watch?v=2nWIwzoNw-M","title":"CAP in the age of AI #4 - more on agents","published_on":"source:youtube","published":"2026-09-11","part_of":"content:cap-in-the-age-of-ai","position":4,"authors":["actor:dj-adams","actor:akatuoro"],"summary":"Asking a human first, and telling the agent how to behave. Ordering a book through [@cap-js/agents](artifact:cap-js-agents) happens without a question being asked; the human-in-the-loop annotation on the action turns the same request into an approve-or-reject step, which the episode follows down to the A2A status update that stores the task in an input-required state in the database — A2A itself being JSON-RPC 2.0 over HTTP with server-sent events for the stream. The rest is instructions on disk: an `agents.md` in the service's own folder removes the question about how many copies to order, a skill under a skills folder is advertised by its description and read only when the agent decides the case applies, and either file makes the plugin build a deep agent instead of the plain one.","short":"Human-in-the-loop approvals and agent behaviour in @cap-js/agents","explains":["artifact:cap-js-agents","capability:agent-tooling"],"sources":[{"url":"https://www.youtube.com/watch?v=2nWIwzoNw-M","title":"CAP in the age of AI #4 - more on agents — the human-in-the-loop annotation","checked":"2026-10-18","quote":"uh we can we have this agent hitter so hitter for human in the loop annotation, right?"},{"url":"https://www.youtube.com/watch?v=2nWIwzoNw-M","title":"CAP in the age of AI #4 - more on agents — approving the action","checked":"2026-10-18","quote":"And now I can right I can click approve um and now okay orders were submitted"},{"url":"https://www.youtube.com/watch?v=2nWIwzoNw-M","title":"CAP in the age of AI #4 - more on agents — the input-required state","checked":"2026-10-18","quote":"what this is on A2A part is a status update right uh where the status input required right so this is something where now in the back end right we can save in the database hey uh this task has gone to this state input required"},{"url":"https://www.youtube.com/watch?v=2nWIwzoNw-M","title":"CAP in the age of AI #4 - more on agents — what A2A is","checked":"2026-10-18","quote":"it's a sim similar to MCP as in it's JSON RPC2.0 over HTTP, right?"},{"url":"https://www.youtube.com/watch?v=2nWIwzoNw-M","title":"CAP in the age of AI #4 - more on agents — server-sent events","checked":"2026-10-18","quote":"Event stream server side uh events are also done here."},{"url":"https://www.youtube.com/watch?v=2nWIwzoNw-M","title":"CAP in the age of AI #4 - more on agents — agents.md beside the service","checked":"2026-10-18","quote":"And basically what we can do in here we can provide an agents MD similar to how we would do this like in a local like open code setup for example right"},{"url":"https://www.youtube.com/watch?v=2nWIwzoNw-M","title":"CAP in the age of AI #4 - more on agents — where the file is looked for","checked":"2026-10-18","quote":"we like when we have a service, we look for this slugified name, right, with agent um suffix here um and we look for an agent in there, right?"},{"url":"https://www.youtube.com/watch?v=2nWIwzoNw-M","title":"CAP in the age of AI #4 - more on agents — how a skill is advertised and read","checked":"2026-10-18","quote":"skills do have a description right um and basically what this does is this does get loaded into the context initially"},{"url":"https://www.youtube.com/watch?v=2nWIwzoNw-M","title":"CAP in the age of AI #4 - more on agents — the skill is loaded on demand","checked":"2026-10-18","quote":"if the agent now detects okay hey yeah we're in that use case we want to use a skill it can load that skills via simply reading the skills"},{"url":"https://www.youtube.com/watch?v=2nWIwzoNw-M","title":"CAP in the age of AI #4 - more on agents — the deep agent","checked":"2026-10-18","quote":"we are auto building a deep agent here"},{"url":"https://www.youtube.com/watch?v=2nWIwzoNw-M","title":"CAP in the age of AI #4 - more on agents — the question the instructions remove","checked":"2026-10-18","quote":"I just specified I want to order this and previously I was always asked for how many do I want."}],"provenance":{"discovered_via":[{"source":"source:youtube"}],"first_seen":"2026-10-18"},"drafted_with_ai":true},"readings":{"liveness":[{"label":"Checked against the source","tier":"unknown","evidence":"nobody has checked it"},{"label":"Source reachable","tier":"unknown","evidence":"not crawled"},{"label":"Age","tier":"good","evidence":"published 2 months ago"}],"compatibility":[{"label":"Version","tier":"unknown","evidence":"no version declared"},{"label":"Moved since?","tier":"good","evidence":"no recorded change after 2026-09-11"},{"label":"Findings","tier":"good","evidence":"none flagged"}],"reach":[{"value":null,"unit":"views"},{"value":null,"unit":"comments"},{"value":null,"unit":"likes"}]},"signals":null,"series":{"head":{"id":"cap-in-the-age-of-ai","title":"CAP in the age of AI","content_type":"series"},"container":true,"of":7,"at":4,"parts":[{"position":1,"title":"CAP in the age of AI #1 - the MCP adapter","url":"https://www.youtube.com/watch?v=VPJhkR9pHVM","published":"2026-08-07","state":"indexed","id":"cap-in-the-age-of-ai-1-the-mcp-adapter"},{"position":2,"title":"CAP in the age of AI #2 - more on the MCP adapter","url":"https://www.youtube.com/watch?v=5RBFxl5IqKs","published":"2026-08-14","state":"indexed","id":"cap-in-the-age-of-ai-2-more-on-the-mcp-adapter"},{"position":3,"title":"CAP in the age of AI #3 - from MCP to A2A","url":"https://www.youtube.com/watch?v=Nu_bEVFM7DM","published":"2026-08-21","state":"indexed","id":"cap-in-the-age-of-ai-3-from-mcp-to-a2a"},{"position":4,"title":"CAP in the age of AI #4 - more on agents","url":"https://www.youtube.com/watch?v=2nWIwzoNw-M","published":"2026-09-11","state":"indexed","id":"cap-in-the-age-of-ai-4-more-on-agents"},{"position":5,"title":"CAP in the age of AI #5 - agents wrap-up","url":"https://www.youtube.com/watch?v=cMqSxjtN1hs","published":"2026-10-02","state":"indexed","id":"cap-in-the-age-of-ai-5-agents-wrap-up"},{"position":6,"title":"CAP in the age of AI #6 - vector embeddings","url":"https://www.youtube.com/watch?v=tdtRgPy4B40","published":"2026-10-09","state":"indexed","id":"cap-in-the-age-of-ai-6-vector-embeddings"},{"position":7,"title":"CAP in the age of AI #7 - vector embeddings wrap-up","url":"https://www.youtube.com/watch?v=JGXE952l4JM","published":"2026-10-16","state":"indexed","id":"cap-in-the-age-of-ai-7-vector-embeddings-wrap-up"}]},"edges":{"authors":[{"ref":"actor:dj-adams","name":"DJ Adams","json":"/actors/dj-adams.json"},{"ref":"actor:akatuoro","name":"Johannes Vogt","json":"/actors/akatuoro.json"}]}}