Many plan9 programs post a file tree which you can manipulate with regular Unix tools - Acme's are described here - http://man.cat-v.org/plan_9/4/acme
for instance, if I name this shell script C
#!/bin/rc
tags=`{cat /mnt/acme/$winid/tag}
s = `{echo $tags(1) | sed 's/\.c$//'}
8c $s.c && 8l -o $s $s.8
And middle click on a 'C' in the tag bar (or anywhere in the window) and the filename ends in .c, it will be compiled and linked for me. The /mnt/acme/$winid/tag is exported by Acme which provides a file tree to all of its windows.Other similarly behaving programs in the distribution (including the windowing system) are described in http://man.cat-v.org/plan_9/4/