Add spec and update code assistant library