a rewrite agent project