FlareStart
HomeNewsHow ToSources
FlareStart

Where developers start their day. All the tech news & tutorials that matter, in one place.

Quick Links

  • Home
  • News
  • Tutorials
  • Sources
  • Privacy Policy

Connect

© 2026 FlareStart. All rights reserved.

Back to articles
Going deeper: Intercepting subcommands in Make, Just, and Git Hooks
How-ToTools

Going deeper: Intercepting subcommands in Make, Just, and Git Hooks

via Dev.toMatjaž Domen Pečan3w ago

If you haven't seen it yet, I have been working on tokf, a command and hook combo that helps me reduce the amount of tokens injected into Claude Code when commands like cargo test are run. The initial post about it can be found here . The main benefit of doing this is increasing the amount of context available to Claude Code, which generally leads to better results. Going deeper I started by using the hooks to intercept the commands being run and modify them to be run by tokf instead, this works well when Claude Code simply tries to run a command like cargo test . A lot of the time, however, that simple command will be part of a Justfile or a Makefile. This means that being able to intercept just test doesn't let us filter the subcommands. We need to go deeper, we need to be able to intercept the commands that just tries to run, not only just itself. Shell interception Both make and just allow us to set up a shell which they can use to execute the commands that have been configured. Th

Continue reading on Dev.to

Opens in a new tab

Read Full Article
15 views

Related Articles

150 million users later, Roblox competitor Rec Room is shutting down
How-To

150 million users later, Roblox competitor Rec Room is shutting down

The Verge • 1d ago

Here are our favorite spring cleaning deals from Amazon’s Big Spring Sale
How-To

Here are our favorite spring cleaning deals from Amazon’s Big Spring Sale

The Verge • 1d ago

What we’re looking for in Startup Battlefield 2026 and how to put your best application forward
How-To

What we’re looking for in Startup Battlefield 2026 and how to put your best application forward

TechCrunch • 1d ago

Build Days That Actually Mean Something
How-To

Build Days That Actually Mean Something

Medium Programming • 1d ago

I have blogged about the difference between code coverage and test coverage and why it matters to distinguish between these 2.
How-To

I have blogged about the difference between code coverage and test coverage and why it matters to distinguish between these 2.

Dev.to Beginners • 1d ago

Discover More Articles