Harsh | building Medha (@ReetuHarsh) — Harnesses and agentic coding¶
Original post: https://x.com/ReetuHarsh/status/2115910750573396299
Posted: 2026-10-29T20:56:49Z · Collected: 2026-10-30T14:59:37Z
Why it matters¶
Concrete, code-backed harness security patterns.
Summary¶
Harsh | building Medha (@ReetuHarsh) walks through six security decisions in the Rust Medha agent harness: approvals bound to the reviewed file state, shell networking denied by default, compaction that changes the model’s view but not the event log, escalation of irreversible actions after web content enters, scanning of skill packages before install, and delegation that intersects child tools with parent capabilities, each linked to code (tools, sandbox, context, kernel, skills, orchestrator).
Referenced links¶
medha-agent/crates/tools/src/lib.rs at main · kashyaprajharsh/medha-agent (from post
2115910750573396299)medha-agent/crates/sandbox/src/exec.rs at main · kashyaprajharsh/medha-agent (from post
2115910753505161527)medha-agent/crates/context/src/engine.rs at main · kashyaprajharsh/medha-agent (from post
2115910757267443840)medha-agent/crates/kernel/src/loop_.rs at main · kashyaprajharsh/medha-agent (from post
2115910761000427866)medha-agent/crates/tools/src/skills.rs at main · kashyaprajharsh/medha-agent (from post
2115910765035319471)medha-agent/crates/orchestrator/src/narrow.rs at main · kashyaprajharsh/medha-agent (from post
2115910769133203572)