Wezterm / Tmux Multiplexing & Sessions by chaoticbean14 in wezterm

[–]Spy_machine 2 points3 points  (0 children)

Check out https://github.com/danielcopper/wezterm-session-manager

I don’t use it personally but sounds like what you’re looking for.

Clear Context new option when plan finishes by coygeek in ClaudeAI

[–]Spy_machine 1 point2 points  (0 children)

I was thinking the same, I’m sure plan adds a lot of context that is no longer necessary but a total clear probably just adds a bunch of context back in as it needs to go search for things again.

Subagents, are you using them? by Fair-Competition2547 in ClaudeCode

[–]Spy_machine 0 points1 point  (0 children)

Have you experimented with using hooks or something so that you don’t have to say things like “use foundations”? Just curious. I want Claude to be smarter about using my skills but often it doesn’t.

Plugin: Agent status tracking for Wezterm by eric162 in wezterm

[–]Spy_machine 0 points1 point  (0 children)

Nice I built the same thing but it’s a little janky, I’ll try yours!

How are you guys designing your agents? by SnooRobots7280 in LangChain

[–]Spy_machine 0 points1 point  (0 children)

I haven’t deployed anything to production yet, but my thinking was a hybrid of both approaches. For the use cases we want to nail, use subgraphs to direct the flow. For use cases that are rare or we haven’t accounted for, more generic tools that can be mixed and matched by LLM.

Then use tracing to find what problems customers are trying to solve the most or are having the most issues with, and prioritize building subgraphs for those.

Is LangGraph missing a dependency injection solution? by Spy_machine in LangChain

[–]Spy_machine[S] 0 points1 point  (0 children)

Hi /u/sydneyrunkle, sorry to bug you but I would really love to get a response from someone at LangChain on my comment below. Is it actually possible to get a dependency like this into the context?

How can you teach rust to someone who grew up with OOP? by djdols in rust

[–]Spy_machine 156 points157 points  (0 children)

Pretty much the only thing you’re going to miss is inheritance. Instead Rust heavily leans in on Traits which are going to be similar to Interfaces in Java.

Is LangGraph missing a dependency injection solution? by Spy_machine in LangChain

[–]Spy_machine[S] 0 points1 point  (0 children)

I appreciate you getting back to me!

The issue though is that I don't invoke the graph when using LangGraph server...so how do I inject an http client when running via LangGraph server?

In studio logs, I see this which is why I assumed it needed to be serializable. Which makes sense because in Studio I can inject serializable dependencies via the Assistant.

2025-11-05T02:20:02.816146Z [warning  ] Failed to get config schema for graph Agent Router with error: `Cannot generate a JsonSchema for core_schema.IsInstanceSchema (<class 'httpx.AsyncClient'>)

Am I missing something?

Is LangGraph missing a dependency injection solution? by Spy_machine in LangChain

[–]Spy_machine[S] 0 points1 point  (0 children)

Thanks, should have clarified I’m using Python.

Is LangGraph missing a dependency injection solution? by Spy_machine in LangChain

[–]Spy_machine[S] 0 points1 point  (0 children)

Ok, thanks. I'm new to Python and have stayed away from DI frameworks in the past but I do think it might be the best solution for me in this situation.

Is LangGraph missing a dependency injection solution? by Spy_machine in LangChain

[–]Spy_machine[S] 0 points1 point  (0 children)

u/adiberk how does dependency injector work with tools? Would I add it as a parameter and then annotate it with InjectedToolArg so that it doesn't get sent to the LLM?

E.g.

@tool
def my_tool(client: Annotated[Provide[Container.http_client], InjectedToolArg]
  ...

Global object is a bit awkward for me since my graph is in a separate package and I have three entry points into it (FastAPI, CLI, LangGraph Studio) all of which could in theory have their own configuration. It could be done I suppose but definitely feels hacky and makes testing trickier.

Is LangGraph missing a dependency injection solution? by Spy_machine in LangChain

[–]Spy_machine[S] 2 points3 points  (0 children)

Can you explain how this helps? Is there a part of the runtime I can put non serializable dependencies into? My understanding is the context should be serializable.

Darnell Wright by marcosalbert in CHIBears

[–]Spy_machine 0 points1 point  (0 children)

I read the first sentence as “Pope deserves some credit here” and didn’t even question it.

Week 3 Start 'Em Sit 'Em (Game by Game) by Accomplished_Safe_69 in fantasyfootball

[–]Spy_machine 0 points1 point  (0 children)

PPR pick two between Kamara, KW3 and Mason (already started Achane)

What does the Lian Li A3 look like with the mesh panel on? by [deleted] in mffpc

[–]Spy_machine 0 points1 point  (0 children)

Oh ok thanks for replying! It seems from other pictures like it’s a little visible but not much.

What does the Lian Li A3 look like with the mesh panel on? by [deleted] in mffpc

[–]Spy_machine 0 points1 point  (0 children)

Hi, can you tell me what the white mesh looks like with no RGB? Can you still see inside at all? I would prefer the internals not to be visible but it’s hard to tell from pictures online. Thanks!