anchor.diff:    </tbody>
   </table>
   
  -## Creating agent hooks
  +## Creating Lifecycle hooks
   
   Agent hooks are executed and can be written in any programming language.
   
  -## Creating step hooks
  +## Creating Step hooks
   
   Step hooks are shell scripts you can use to run commands and export environment
   variables. Hooks have access to all the standard [Buildkite environment variables](/docs/pipelines/environment-variables).
  
positive.code: # Buildkite Agent Hooks
  
  Every agent installer comes with a hooks directory which can be used to override
  and extend the built-in agent behavior. For example, you could create an agent
  `checkout` hook which speeds up a fresh `git clone` on a new build machine, an
  agent `environment` hook which exports secret API keys as environment
  variables, or a repository `pre-command` hook which sets up repository-specific
  environment variables.
  
  {:toc}
  
  
negative.code: 
  See the [plugin documentation](/docs/plugins) for how to implement plugin hooks.
  
  ## Available Lifecycle hooks
  
  <table>
    <thead>
  