Many of the players were not having a whole lot of fun working in some of the previous 49ers regimes. But, now, Staley said there is clearly a purpose within the 49ers, and he feels a rebirth.

“The energy is back in the building, the excitement level, the attention to detail,” Staley said just moments after the 49ers’ final practice of the offseason program.

“This might sound kind of bad, but I’m enjoying football again. I’m excited to come to work every single day. The last couple of years, there were days when I couldn’t honestly say that. That’s awesome to have that feeling back.”

The biggest reason for Staley’s renewed enthusiasm, he said, is coach Kyle Shanahan, whom he called “the smartest coach I’ve been around.”

First, Shanahan impressed Staley with his honesty. He kept tight end Vance McDonald in the loop when there were trade talks during the weekend of the draft. And Staley said he holds all players to the same high standards.

“He calls out myself and (NaVorro) Bowman the same way he calls out a rookie free agent,” Staley said. “No one’s above anybody.”

Players on both sides of the ball have expressed their amazement with Shanahan’s unique ability to break down a play from the perspectives of every player on offense and defense.

Staley said he had one of those moments Wednesday during a team meeting when Shanahan dissected plays for both sides of the ball.

Said Staley, “Even today we had a meeting, and I looked over at (Daniel) Kilgore – I was sitting next to him in a team meeting – and (said), ‘This is awesome.’ You get chills, almost.

“It’s cool to see football talked about that way. Instead, of ‘Hey, you have to do your job.’ ‘OK. Yes, sir.’ ‘Why do I have to do my job?’”

Staley said Shanahan is able to pinpoint the details of every play that determine why it is successful and articulate it in an easy-to-follow manner.

Staley has been familar with Shanahan's system for a while, he said. He has watched film of offensive tackles Trent Williams and Joe Thomas, who played in Shanahan’s offenses with Washington and Cleveland, respectively.

“I felt I’d be a good fit,” Staley said. “(I’m) excited, but kind of bummed it’s happening in Year 11, and not Year 4 or 3 or 1.”

49ers set aside cap space with an eye to the future

49ers set aside cap space with an eye to the future

The club identified two players coach Kyle Shanahan tabbed as fits for his offense and they paid the money it took to get them.

General manager John Lynch said there were five teams seriously interested in free-agent running back Jerick McKinnon. Even more teams were going after center Weston Richburg, he said.

That drove up the prices on McKinnon and Richburg to the point that they rank behind only quarterback Jimmy Garoppolo ($37 million) as taking up the most cap space among the 72 players currently under contract to the 49ers.

McKinnon and Richburg account for $10.5 million and $9.26 million, respectively, on the 49ers' salary cap. Veteran cornerback Richard Sherman's deal takes up $6.175 million on the 49ers' cap this season.

The big spending to attract free agents to the team is likely over. The 49ers have $45.1 million in cap space, according to the NFL Players Association. That figure does not include a projected $8.3 million to sign their 2018 rookie class, according to overthecap.com.

The major spending for this offseason is over because the 49ers have apparently looked to the future and set aside cap space with the idea of retaining some of their own players whose contracts are winding down.

The first decisions for the future must occur by May 3, the deadline for picking up the fifth-year options on first-round picks from the 2015 draft. The 49ers have decisions to make on defensive lineman Arik Armstread and left guard Laken Tomlinson, who was acquired from Detroit in a trade just prior to the start of the 2017 regular season.

It is still unclear how or if Armstead’s skills fit into the 49ers’ defense. He opened last season at the team's pass-rush end before moving to the "big end," which also appears to be first-round pick Solomon Thomas' best position.

Tomlinson showed reasons for the 49ers to be optimistic about his future as his play got better as he acclimated to the offense. Among the guards already on the 49ers’ roster, Tomlinson appears to be the most likely to be a starter in 2018.

Presumptive starting safeties Jimmie Ward and Jaquiski Tartt are scheduled to be unrestricted free agents next offseason. Ward’s fifth-year option deal of one-year, $8.526 million became fully guaranteed last Wednesday. But in order for the 49ers to make a multi-year commitment, Ward would likely have to prove he can remain healthy and available for a full season.

DeForest Buckner is likely the target for the next blockbuster contract extension. Buckner has emerged as one of the top young defensive linemen in the league. Next offseason will be the first time the 49ers are permitted to negotiate a multi-year extension with him.

With a scarcity of offensive linemen available in the draft and free agency, right tackle Trent Brown could be set to cash in with an enormous deal next offseason – either with the 49ers or some other team.

Deepest position in the NFL Draft? 49ers VP of Player Personnel weighs in

Deepest position in the NFL Draft? 49ers VP of Player Personnel weighs in

The 49ers concluded the first wave of the free-agent signing period with the signings of players to fill the team’s biggest offseason needs.

--Cornerback. Aqib Talib would have been the answer in a trade with the Denver Broncos, but he wanted to play elsewhere. Instead, the 49ers signed veteran Richard Sherman, whom the Seattle Seahawks cut a day earlier.

--Interior offensive line. Center Weston Richburg was the player the team had rated as their top target in free agency, and they signed him to a lucrative five-year deal.

--Running back. The team decided Jerick McKinnon was a better fit than Carlos Hyde. They wrapped him up with a four-year contract.

--Edge rusher. Lacking many options in free agency, the 49ers signed Jeremiah Attaochu to a one-year contract in hopes he will earn a spot on the team and make a contribution at the “Leo” position.

The 49ers can still use more help at a number of different positions, including cornerback, wide receiver, offensive line, linebacker and edge rusher. While the 49ers might add some role players in the second wave of free agency, most of the major acquisitions at this point are likely to come in the draft.

On the 49ers Insider Podcast, 49ers vice president of player personnel Adam Peters addressed what positions he believes are strong in this year’s draft.

“I think running backs, absolutely. It’s a deep position,” Peters said. “Quarterbacks at the top is deeper than it was last year. Secondary, corners, it’s not deeper than it was last year, but it’s a strong class of corners. Those are the main ones. The offensive line class is a little better than last year, too.”

The 49ers feel good about Witherspoon, a third-round draft pick, as a starter with Sherman on the other side. Peters said a lot of the team’s rookies played larger roles than expected in 2017, but Witherspoon might have been at the top of the list.

“I don’t think he was active for the first four games,” Peters said of Witherspoon. “And he ended up playing at a high level at the end. Really driven, conscientious player who wants to be great.

"We were lucky we got a chance to play a lot of rookies because that’ll help us moving forward.”